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
927 enable_version_specific_runtime_libs
929 enable_libquadmath_support
930 with_linker_hash_style
932 ac_precious_vars
='build_alias
953 # Initialize some variables set by options.
955 ac_init_version
=false
956 ac_unrecognized_opts
=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
967 program_transform_name
=s
,x
,x
,
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir
='${exec_prefix}/bin'
982 sbindir
='${exec_prefix}/sbin'
983 libexecdir
='${exec_prefix}/libexec'
984 datarootdir
='${prefix}/share'
985 datadir
='${datarootdir}'
986 sysconfdir
='${prefix}/etc'
987 sharedstatedir
='${prefix}/com'
988 localstatedir
='${prefix}/var'
989 includedir
='${prefix}/include'
990 oldincludedir
='/usr/include'
991 docdir
='${datarootdir}/doc/${PACKAGE}'
992 infodir
='${datarootdir}/info'
997 libdir
='${exec_prefix}/lib'
998 localedir
='${datarootdir}/locale'
999 mandir
='${datarootdir}/man'
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\
$ac_option
1013 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1023 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1025 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1026 bindir
=$ac_optarg ;;
1028 -build |
--build |
--buil |
--bui |
--bu)
1029 ac_prev
=build_alias
;;
1030 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1031 build_alias
=$ac_optarg ;;
1033 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1034 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1035 ac_prev
=cache_file
;;
1036 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1037 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1038 cache_file
=$ac_optarg ;;
1040 --config-cache |
-C)
1041 cache_file
=config.cache
;;
1043 -datadir |
--datadir |
--datadi |
--datad)
1045 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1046 datadir
=$ac_optarg ;;
1048 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1049 |
--dataroo |
--dataro |
--datar)
1050 ac_prev
=datarootdir
;;
1051 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1052 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1053 datarootdir
=$ac_optarg ;;
1055 -disable-* |
--disable-*)
1056 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1059 as_fn_error
"invalid feature name: $ac_useropt"
1060 ac_useropt_orig
=$ac_useropt
1061 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_
$ac_useropt"
1066 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep
=', ';;
1069 eval enable_
$ac_useropt=no
;;
1071 -docdir |
--docdir |
--docdi |
--doc |
--do)
1073 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1074 docdir
=$ac_optarg ;;
1076 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1078 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1079 dvidir
=$ac_optarg ;;
1081 -enable-* |
--enable-*)
1082 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1085 as_fn_error
"invalid feature name: $ac_useropt"
1086 ac_useropt_orig
=$ac_useropt
1087 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_
$ac_useropt"
1092 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep
=', ';;
1095 eval enable_
$ac_useropt=\
$ac_optarg ;;
1097 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1098 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1099 |
--exec |
--exe |
--ex)
1100 ac_prev
=exec_prefix
;;
1101 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1102 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1103 |
--exec=* |
--exe=* |
--ex=*)
1104 exec_prefix
=$ac_optarg ;;
1106 -gas |
--gas |
--ga |
--g)
1107 # Obsolete; use --with-gas.
1110 -help |
--help |
--hel |
--he |
-h)
1111 ac_init_help
=long
;;
1112 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1113 ac_init_help
=recursive
;;
1114 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1115 ac_init_help
=short
;;
1117 -host |
--host |
--hos |
--ho)
1118 ac_prev
=host_alias
;;
1119 -host=* |
--host=* |
--hos=* |
--ho=*)
1120 host_alias
=$ac_optarg ;;
1122 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1124 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1126 htmldir
=$ac_optarg ;;
1128 -includedir |
--includedir |
--includedi |
--included |
--include \
1129 |
--includ |
--inclu |
--incl |
--inc)
1130 ac_prev
=includedir
;;
1131 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1132 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1133 includedir
=$ac_optarg ;;
1135 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1137 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1138 infodir
=$ac_optarg ;;
1140 -libdir |
--libdir |
--libdi |
--libd)
1142 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1143 libdir
=$ac_optarg ;;
1145 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1146 |
--libexe |
--libex |
--libe)
1147 ac_prev
=libexecdir
;;
1148 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1149 |
--libexe=* |
--libex=* |
--libe=*)
1150 libexecdir
=$ac_optarg ;;
1152 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1153 ac_prev
=localedir
;;
1154 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1155 localedir
=$ac_optarg ;;
1157 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1158 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1159 ac_prev
=localstatedir
;;
1160 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1161 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1162 localstatedir
=$ac_optarg ;;
1164 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1166 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1167 mandir
=$ac_optarg ;;
1169 -nfp |
--nfp |
--nf)
1170 # Obsolete; use --without-fp.
1173 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1174 |
--no-cr |
--no-c |
-n)
1177 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1178 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1181 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1182 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1183 |
--oldin |
--oldi |
--old |
--ol |
--o)
1184 ac_prev
=oldincludedir
;;
1185 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1186 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1187 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1188 oldincludedir
=$ac_optarg ;;
1190 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1192 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1193 prefix
=$ac_optarg ;;
1195 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1196 |
--program-pre |
--program-pr |
--program-p)
1197 ac_prev
=program_prefix
;;
1198 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1199 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1200 program_prefix
=$ac_optarg ;;
1202 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1203 |
--program-suf |
--program-su |
--program-s)
1204 ac_prev
=program_suffix
;;
1205 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1206 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1207 program_suffix
=$ac_optarg ;;
1209 -program-transform-name |
--program-transform-name \
1210 |
--program-transform-nam |
--program-transform-na \
1211 |
--program-transform-n |
--program-transform- \
1212 |
--program-transform |
--program-transfor \
1213 |
--program-transfo |
--program-transf \
1214 |
--program-trans |
--program-tran \
1215 |
--progr-tra |
--program-tr |
--program-t)
1216 ac_prev
=program_transform_name
;;
1217 -program-transform-name=* |
--program-transform-name=* \
1218 |
--program-transform-nam=* |
--program-transform-na=* \
1219 |
--program-transform-n=* |
--program-transform-=* \
1220 |
--program-transform=* |
--program-transfor=* \
1221 |
--program-transfo=* |
--program-transf=* \
1222 |
--program-trans=* |
--program-tran=* \
1223 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1224 program_transform_name
=$ac_optarg ;;
1226 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1228 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1229 pdfdir
=$ac_optarg ;;
1231 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1233 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1236 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1237 |
-silent |
--silent |
--silen |
--sile |
--sil)
1240 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1242 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1244 sbindir
=$ac_optarg ;;
1246 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1247 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1248 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1250 ac_prev
=sharedstatedir
;;
1251 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1252 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1253 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1255 sharedstatedir
=$ac_optarg ;;
1257 -site |
--site |
--sit)
1259 -site=* |
--site=* |
--sit=*)
1262 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1264 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1265 srcdir
=$ac_optarg ;;
1267 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1268 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1269 ac_prev
=sysconfdir
;;
1270 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1271 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1272 sysconfdir
=$ac_optarg ;;
1274 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1275 ac_prev
=target_alias
;;
1276 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1277 target_alias
=$ac_optarg ;;
1279 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1282 -version |
--version |
--versio |
--versi |
--vers |
-V)
1283 ac_init_version
=: ;;
1286 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1289 as_fn_error
"invalid package name: $ac_useropt"
1290 ac_useropt_orig
=$ac_useropt
1291 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep
=', ';;
1299 eval with_
$ac_useropt=\
$ac_optarg ;;
1301 -without-* |
--without-*)
1302 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1305 as_fn_error
"invalid package name: $ac_useropt"
1306 ac_useropt_orig
=$ac_useropt
1307 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1312 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep
=', ';;
1315 eval with_
$ac_useropt=no
;;
1318 # Obsolete; use --with-x.
1321 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1322 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1323 ac_prev
=x_includes
;;
1324 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1325 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1326 x_includes
=$ac_optarg ;;
1328 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1329 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1330 ac_prev
=x_libraries
;;
1331 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1332 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1333 x_libraries
=$ac_optarg ;;
1335 -*) as_fn_error
"unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information."
1340 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1344 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1346 eval $ac_envvar=\
$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1360 if test -n "$ac_prev"; then
1361 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error
"missing argument to $ac_option"
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1368 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1373 # Check all directory arguments for consistency.
1374 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1379 eval ac_val
=\$
$ac_var
1380 # Remove trailing slashes.
1383 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\
$ac_val;;
1386 # Be sure to have absolute directory names.
1388 [\\/$
]* | ?
:[\\/]* ) continue;;
1389 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1391 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1399 target
=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x
; then
1403 if test "x$build_alias" = x
; then
1404 cross_compiling
=maybe
1405 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1413 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1415 test "$silent" = yes && exec 6>/dev
/null
1418 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di
=`ls -di .` &&
1420 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error
"working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error
"pwd does not report name of working directory"
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted
=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir
=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1458 ac_srcdir_defaulted
=no
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1462 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1464 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1476 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478 for ac_var
in $ac_precious_vars; do
1479 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1481 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1486 # Report the --help message.
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1492 \`configure' configures this package to adapt to many kinds of systems.
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1499 Defaults for the options are specified in brackets.
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1523 For better control, use the options below.
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1550 --program-prefix=PREFIX prepend PREFIX to installed program names
1551 --program-suffix=SUFFIX append SUFFIX to installed program names
1552 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1555 --build=BUILD configure
for building on BUILD
[guessed
]
1556 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1557 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1561 if test -n "$ac_init_help"; then
1566 --disable-option-checking ignore unrecognized
--enable/--with options
1567 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1568 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1569 --enable-generated-files-in-srcdir
1570 put copies of generated files
in source dir intended
1571 for creating
source tarballs
for users without
1572 texinfo bison or flex
1573 --disable-largefile omit support
for large files
1574 --enable-werror-always enable -Werror despite compiler version
1575 --enable-checking[=LIST
]
1576 enable expensive run-time checks. With LIST
, enable
1577 only specific categories of checks. Categories are
:
1578 yes,no
,all
,none
,release. Flags are
:
1579 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1580 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1581 --enable-coverage[=LEVEL
]
1582 enable compiler
's code coverage collection. Use to
1583 measure compiler performance and locate unused parts
1584 of the compiler. With LEVEL, specify optimization.
1585 Values are opt, noopt, default is noopt
1586 --enable-gather-detailed-mem-stats
1587 enable detailed memory allocation stats gathering
1588 --enable-multilib enable library support for multiple ABIs
1589 --enable-multiarch enable support for multiarch paths
1590 --enable-__cxa_atexit enable __cxa_atexit for C++
1591 --enable-decimal-float={no,yes,bid,dpd}
1592 enable decimal float extension to C. Selecting 'bid
'
1593 or 'dpd
' choses which decimal floating point format
1595 --enable-fixed-point enable fixed-point arithmetic extension to C
1596 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1598 --enable-tls enable or disable generation of tls code overriding
1599 the assembler check for tls support
1600 --enable-objc-gc enable the use of Boehm's garbage collector with the
1601 GNU Objective-C runtime
1602 --enable-upc-link-script
1603 enable UPC
's use of a custom linker script; this
1604 will define the UPC shared section as a no load
1605 section on targets where this feature is supported
1607 --disable-shared don't provide a shared libgcc
1608 --enable-languages=LIST specify
which front-ends to build
1609 --disable-rpath do not hardcode runtime library paths
1610 --enable-sjlj-exceptions
1611 arrange to use setjmp
/longjmp exception handling
1612 --enable-secureplt enable -msecure-plt by default
for PowerPC
1613 --enable-leading-mingw64-underscores
1614 enable leading underscores on
64 bit mingw targets
1615 --enable-cld enable -mcld by default
for 32bit x86
1616 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1618 --disable-win32-registry
1619 disable lookup of installation paths
in the Registry
1621 --enable-win32-registry enable registry lookup
(default
)
1622 --enable-win32-registry=KEY
1623 use KEY instead of GCC version as the last portion
1625 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1626 --enable-static[=PKGS
] build static libraries
[default
=yes]
1627 --enable-fast-install[=PKGS
]
1628 optimize
for fast installation
[default
=yes]
1629 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1630 --enable-gnu-indirect-function
1631 enable the use of the @gnu_indirect_function to
1633 --enable-initfini-array use .init_array
/.fini_array sections
1634 --enable-comdat enable COMDAT group support
1635 --enable-gnu-unique-object
1636 enable the use of the @gnu_unique_object ELF
1637 extension on glibc systems
1638 --enable-linker-build-id
1639 compiler will always pass
--build-id to linker
1640 --enable-maintainer-mode
1641 enable make rules and dependencies not useful
(and
1642 sometimes confusing
) to the casual installer
1643 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1644 thrashing on the build machine
1645 --enable-version-specific-runtime-libs
1646 specify that runtime libraries should be installed
1647 in a compiler-specific directory
1648 --enable-plugin enable plugin support
1649 --disable-libquadmath-support
1650 disable libquadmath support
for Fortran
1653 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1654 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1655 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1656 --with-local-prefix=DIR specifies directory to put
local include
1657 --with-gxx-include-dir=DIR
1658 specifies directory to put g
++ header files
1659 --with-cpp-install-dir=DIR
1660 install the user visible C preprocessor
in DIR
1661 (relative to PREFIX
) as well as PREFIX
/bin
1662 --with-gnu-ld arrange to work with GNU ld
1663 --with-ld arrange to use the specified ld
(full pathname
)
1664 --with-demangler-in-ld try to use demangler
in GNU ld
1665 --with-gnu-as arrange to work with GNU as
1666 --with-as arrange to use the specified as
(full pathname
)
1667 --with-stabs arrange to use stabs instead of
host debug format
1668 --with-upc-pts={struct
,packed
}
1669 choose the representation of a UPC pointer-to-shared
1670 --with-upc-pts-vaddr-order={last
,first
}
1671 choose position of the address field
in UPC
1672 pointer-to-shared representation
1674 --with-upc-pts-packed-bits=phase
,thread
,vaddr
1675 choose bit distribution
in packed UPC
1676 pointer-to-shared representation
1677 --with-dwarf2 force the default debug format to be DWARF
2
1678 --with-native-system-header-dir=dir
1679 use dir as the directory to
look for standard
1680 system header files
in. Defaults to
/usr
/include.
1681 --with-build-sysroot=sysroot
1682 use sysroot as the system root during the build
1683 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1684 --with-specs=SPECS add SPECS to driver command-line processing
1685 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1686 --with-bugurl=URL Direct users to URL to report a bug
1687 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1688 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1689 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1690 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1691 --with-pic try to use only PIC/non-PIC objects [default=use
1693 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1694 --with-plugin-ld=[ARG] specify the plugin linker
1695 --with-long-double-128 use 128-bit long double by default
1696 --with-gc={page,zone} this option is not supported anymore. It used to
1697 choose the garbage collection mechanism to use with
1699 --with-system-zlib use installed libz
1700 --with-linker-hash-style={sysv,gnu,both}
1701 specify the linker hash style
1703 Some influential environment variables:
1704 CC C compiler command
1705 CFLAGS C compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1711 CXX C++ compiler command
1712 CXXFLAGS C++ compiler flags
1714 CXXCPP C++ preprocessor
1715 GMPLIBS How to link GMP
1716 GMPINC How to find GMP include files
1717 ISLLIBS How to link ISL
1718 ISLINC How to find ISL include files
1719 CLOOGLIBS How to link CLOOG
1720 CLOOGINC How to find CLOOG include files
1722 Use these variables to override the choices made by `configure' or to
help
1723 it to
find libraries and programs with nonstandard names
/locations.
1725 Report bugs to the package provider.
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1739 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1741 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1746 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1749 ac_abs_top_builddir
=$ac_pwd
1750 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir
=$ac_top_build_prefix
1755 .
) # We are building in place.
1757 ac_top_srcdir
=$ac_top_builddir_sub
1758 ac_abs_top_srcdir
=$ac_pwd ;;
1759 [\\/]* | ?
:[\\/]* ) # Absolute name.
1760 ac_srcdir
=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir
=$srcdir
1762 ac_abs_top_srcdir
=$srcdir ;;
1764 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1768 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1770 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1781 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1789 generated by GNU Autoconf
2.64
1791 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1792 This configure
script is free software
; the Free Software Foundation
1793 gives unlimited permission to copy
, distribute and modify it.
1798 ## ------------------------ ##
1799 ## Autoconf initialization. ##
1800 ## ------------------------ ##
1802 # ac_fn_c_try_compile LINENO
1803 # --------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_compile
()
1807 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1808 rm -f conftest.
$ac_objext
1809 if { { ac_try
="$ac_compile"
1811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 } # ac_fn_c_try_compile
1840 # ac_fn_cxx_try_compile LINENO
1841 # ----------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1850 *) ac_try_echo
=$ac_try;;
1852 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1856 if test -s conftest.err
; then
1857 grep -v '^ *+' conftest.err
>conftest.er1
1858 cat conftest.er1
>&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.
$ac_objext; then :
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.
$ac_ext >&5
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1876 } # ac_fn_cxx_try_compile
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1884 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } >/dev/null && {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918 # the include files in INCLUDES and setting the cache variable VAR
1920 ac_fn_c_check_header_mongrel ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1933 # Is the header compilable?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935 $as_echo_n "checking $2 usability... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_header_compiler=yes
1944 ac_header_compiler=no
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948 $as_echo "$ac_header_compiler" >&6; }
1950 # Is the header present?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952 $as_echo_n "checking $2 presence... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1957 if ac_fn_c_try_cpp "$LINENO"; then :
1958 ac_header_preproc=yes
1960 ac_header_preproc=no
1962 rm -f conftest.err conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964 $as_echo "$ac_header_preproc" >&6; }
1966 # So? What about this header?
1967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1976 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990 $as_echo_n "(cached) " >&6
1992 eval "$3=\$ac_header_compiler"
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 } # ac_fn_c_check_header_mongrel
2002 # ac_fn_c_try_run LINENO
2003 # ----------------------
2004 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2005 # that executables *can* be run.
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if { { ac_try="$ac_link"
2011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2012 *) ac_try_echo
=$ac_try;;
2014 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>&5
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2020 { { case "(($ac_try" in
2021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_try") 2>&5
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; }; }; then :
2032 $as_echo "$as_me: program exited with status $ac_status" >&5
2033 $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2036 ac_retval=$ac_status
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2045 # -------------------------------------------------------
2046 # Tests whether HEADER exists and can be compiled using the include files in
2047 # INCLUDES, setting the cache variable VAR accordingly.
2048 ac_fn_c_check_header_compile ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054 $as_echo_n "(cached) " >&6
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2061 if ac_fn_c_try_compile "$LINENO"; then :
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 } # ac_fn_c_check_header_compile
2075 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2076 # --------------------------------------------
2077 # Tries to find the compile-time value of EXPR in a program that includes
2078 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2080 ac_fn_c_compute_int ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if test "$cross_compiling" = yes; then
2084 # Depending upon the size, compute the lo and hi bounds.
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2091 static int test_array [1 - 2 * !(($2) >= 0)];
2098 if ac_fn_c_try_compile "$LINENO"; then :
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=$ac_mid; break
2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2118 if test $ac_lo -le $ac_mid; then
2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2133 static int test_array [1 - 2 * !(($2) < 0)];
2140 if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2149 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_lo=$ac_mid; break
2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160 if test $ac_mid -le $ac_hi; then
2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2190 if ac_fn_c_try_compile "$LINENO"; then :
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2205 static long int longval () { return $2; }
2206 static unsigned long int ulongval () { return $2; }
2213 FILE *f = fopen ("conftest.val", "w");
2218 long int i = longval ();
2221 fprintf (f, "%ld", i);
2225 unsigned long int i = ulongval ();
2228 fprintf (f, "%lu", i);
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2238 if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 } # ac_fn_c_compute_int
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2291 if ac_fn_c_try_compile "$LINENO"; then :
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 } # ac_fn_c_check_type
2307 # ac_fn_c_find_intX_t LINENO BITS VAR
2308 # -----------------------------------
2309 # Finds a signed integer type with width BITS, setting cache variable VAR
2311 ac_fn_c_find_intX_t ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2315 $as_echo_n "checking for int$2_t... " >&6; }
2316 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2317 $as_echo_n "(cached) " >&6
2320 for ac_type in int$2_t 'int' 'long int' \
2321 'long long int' 'short int' 'signed char'; do
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 $ac_includes_default
2328 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $ac_includes_default
2342 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2343 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2350 if ac_fn_c_try_compile "$LINENO"; then :
2357 eval "$3=\$ac_type" ;;
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 if test "x$as_val" = x""no; then :
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_c_find_intX_t
2378 # ac_fn_c_try_link LINENO
2379 # -----------------------
2380 # Try to link conftest.$ac_ext, and return whether this succeeded.
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext conftest$ac_exeext
2385 if { { ac_try="$ac_link"
2387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2388 *) ac_try_echo
=$ac_try;;
2390 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_link") 2>conftest.err
2394 if test -s conftest.err
; then
2395 grep -v '^ *+' conftest.err
>conftest.er1
2396 cat conftest.er1
>&5
2397 mv -f conftest.er1 conftest.err
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest
$ac_exeext && {
2404 test "$cross_compiling" = yes ||
2405 $as_test_x conftest
$ac_exeext
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.
$ac_ext >&5
2414 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2415 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2416 # interfere with the next link command; also delete a directory that is
2417 # left behind by Apple's compiler. We do this before executing the actions.
2418 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2422 } # ac_fn_c_try_link
2424 # ac_fn_c_find_uintX_t LINENO BITS VAR
2425 # ------------------------------------
2426 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2428 ac_fn_c_find_uintX_t
()
2430 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2432 $as_echo_n "checking for uint$2_t... " >&6; }
2433 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2437 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2438 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2441 $ac_includes_default
2445 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2452 if ac_fn_c_try_compile
"$LINENO"; then :
2457 eval "$3=\$ac_type" ;;
2460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2462 if test "x$as_val" = x
""no
; then :
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2474 } # ac_fn_c_find_uintX_t
2476 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2477 # ----------------------------------------------
2478 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2479 ac_fn_c_check_header_preproc
()
2481 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2485 $as_echo_n "(cached) " >&6
2487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2491 if ac_fn_c_try_cpp
"$LINENO"; then :
2496 rm -f conftest.err conftest.
$ac_ext
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2503 } # ac_fn_c_check_header_preproc
2505 # ac_fn_cxx_try_cpp LINENO
2506 # ------------------------
2507 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2508 ac_fn_cxx_try_cpp
()
2510 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2511 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2520 if test -s conftest.err; then
2521 grep -v '^ *+' conftest.err >conftest.er1
2522 cat conftest.er1 >&5
2523 mv -f conftest.er1 conftest.err
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } >/dev/null && {
2527 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2528 test ! -s conftest.err
2532 $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540 } # ac_fn_cxx_try_cpp
2542 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2543 # ------------------------------------------------
2544 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2545 ac_fn_cxx_check_header_preproc ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2557 if ac_fn_cxx_try_cpp "$LINENO"; then :
2562 rm -f conftest.err conftest.$ac_ext
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_cxx_check_header_preproc
2571 # ac_fn_c_check_func LINENO FUNC VAR
2572 # ----------------------------------
2573 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2574 ac_fn_c_check_func ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2586 #define $2 innocuous_$2
2588 /* System header to define __stub macros and hopefully few prototypes,
2589 which can conflict with char $2 (); below.
2590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2591 <limits.h> exists even on freestanding compilers. */
2594 # include <limits.h>
2596 # include <assert.h>
2601 /* Override any GCC internal prototype to avoid an error.
2602 Use char because int might match the return type of a GCC
2603 builtin and then its argument prototype would still apply. */
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined __stub_$2 || defined __stub___$2
2623 if ac_fn_c_try_link "$LINENO"; then :
2628 rm -f core conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636 } # ac_fn_c_check_func
2638 # ac_fn_cxx_try_link LINENO
2639 # -------------------------
2640 # Try to link conftest.$ac_ext, and return whether this succeeded.
2641 ac_fn_cxx_try_link ()
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 rm -f conftest.$ac_objext conftest$ac_exeext
2645 if { { ac_try="$ac_link"
2647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2648 *) ac_try_echo
=$ac_try;;
2650 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651 $as_echo "$ac_try_echo"; } >&5
2652 (eval "$ac_link") 2>conftest.err
2654 if test -s conftest.err
; then
2655 grep -v '^ *+' conftest.err
>conftest.er1
2656 cat conftest.er1
>&5
2657 mv -f conftest.er1 conftest.err
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; } && {
2661 test -z "$ac_cxx_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest
$ac_exeext && {
2664 test "$cross_compiling" = yes ||
2665 $as_test_x conftest
$ac_exeext
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.
$ac_ext >&5
2674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2676 # interfere with the next link command; also delete a directory that is
2677 # left behind by Apple's compiler. We do this before executing the actions.
2678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2679 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2682 } # ac_fn_cxx_try_link
2683 cat >config.log
<<_ACEOF
2684 This file contains any messages produced by compilers while
2685 running configure, to aid debugging if configure makes a mistake.
2687 It was created by $as_me, which was
2688 generated by GNU Autoconf 2.64. Invocation command line was
2700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir
=.
2724 $as_echo "PATH: $as_dir"
2740 # Keep a trace of the command line.
2741 # Strip out --no-create and --no-recursion so they do not pile up.
2742 # Strip out --silent because we don't want to record it for future runs.
2743 # Also quote any args containing shell meta-characters.
2744 # Make two passes to allow for proper duplicate-argument suppression.
2748 ac_must_keep_next
=false
2754 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2755 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2756 |
-silent |
--silent |
--silen |
--sile |
--sil)
2759 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2762 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2764 as_fn_append ac_configure_args1
" '$ac_arg'"
2765 if test $ac_must_keep_next = true
; then
2766 ac_must_keep_next
=false
# Got value, back to normal.
2769 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2770 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2771 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2772 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2773 case "$ac_configure_args0 " in
2774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2777 -* ) ac_must_keep_next
=true
;;
2780 as_fn_append ac_configure_args
" '$ac_arg'"
2785 { ac_configure_args0
=; unset ac_configure_args0
;}
2786 { ac_configure_args1
=; unset ac_configure_args1
;}
2788 # When interrupted or exit'd, cleanup temporary files, and complete
2789 # config.log. We remove comments because anyway the quotes in there
2790 # would cause problems or look ugly.
2791 # WARNING: Use '\'' to represent an apostrophe within the trap.
2792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2793 trap 'exit_status=$?
2794 # Save into config.log some information that might help in debugging.
2799 ## ---------------- ##
2800 ## Cache variables. ##
2801 ## ---------------- ##
2804 # The following way of writing the cache mishandles newlines in values,
2806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2807 eval ac_val=\$$ac_var
2811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2815 _ | IFS | as_nl) ;; #(
2816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2817 *) { eval $ac_var=; unset $ac_var;} ;;
2822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2823 *${as_nl}ac_space=\ *)
2825 "s/'\''/'\''\\\\'\'''\''/g;
2826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2837 ## ----------------- ##
2838 ## Output variables. ##
2839 ## ----------------- ##
2842 for ac_var in $ac_subst_vars
2844 eval ac_val=\$$ac_var
2846 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2848 $as_echo "$ac_var='\''$ac_val'\''"
2852 if test -n "$ac_subst_files"; then
2854 ## ------------------- ##
2855 ## File substitutions. ##
2856 ## ------------------- ##
2859 for ac_var
in $ac_subst_files
2861 eval ac_val
=\$
$ac_var
2863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2865 $as_echo "$ac_var='\''$ac_val'\''"
2870 if test -s confdefs.h; then
2880 test "$ac_signal" != 0 &&
2881 $as_echo "$as_me: caught signal $ac_signal"
2882 $as_echo "$as_me: exit $exit_status"
2884 rm -f core *.core core.conftest.* &&
2885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2888 for ac_signal
in 1 2 13 15; do
2889 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2894 rm -f -r conftest
* confdefs.h
2896 $as_echo "/* confdefs.h */" > confdefs.h
2898 # Predefined preprocessor variables.
2900 cat >>confdefs.h
<<_ACEOF
2901 #define PACKAGE_NAME "$PACKAGE_NAME"
2904 cat >>confdefs.h
<<_ACEOF
2905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2908 cat >>confdefs.h
<<_ACEOF
2909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2912 cat >>confdefs.h
<<_ACEOF
2913 #define PACKAGE_STRING "$PACKAGE_STRING"
2916 cat >>confdefs.h
<<_ACEOF
2917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2920 cat >>confdefs.h
<<_ACEOF
2921 #define PACKAGE_URL "$PACKAGE_URL"
2925 # Let the site file select an alternate cache file if it wants to.
2926 # Prefer an explicitly selected file to automatically selected ones.
2929 if test -n "$CONFIG_SITE"; then
2930 ac_site_file1
=$CONFIG_SITE
2931 elif test "x$prefix" != xNONE
; then
2932 ac_site_file1
=$prefix/share
/config.site
2933 ac_site_file2
=$prefix/etc
/config.site
2935 ac_site_file1
=$ac_default_prefix/share
/config.site
2936 ac_site_file2
=$ac_default_prefix/etc
/config.site
2938 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2940 test "x$ac_site_file" = xNONE
&& continue
2941 if test -r "$ac_site_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2943 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2944 sed 's/^/| /' "$ac_site_file" >&5
2949 if test -r "$cache_file"; then
2950 # Some versions of bash will fail to source /dev/null (special
2951 # files actually), so we avoid doing that.
2952 if test -f "$cache_file"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2954 $as_echo "$as_me: loading cache $cache_file" >&6;}
2956 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2957 *) .
"./$cache_file";;
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2962 $as_echo "$as_me: creating cache $cache_file" >&6;}
2966 # Check that the precious variables saved in the cache have kept the same
2968 ac_cache_corrupted
=false
2969 for ac_var
in $ac_precious_vars; do
2970 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2971 eval ac_new_set
=\
$ac_env_${ac_var}_set
2972 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2973 eval ac_new_val
=\
$ac_env_${ac_var}_value
2974 case $ac_old_set,$ac_new_set in
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2978 ac_cache_corrupted
=: ;;
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2982 ac_cache_corrupted
=: ;;
2985 if test "x$ac_old_val" != "x$ac_new_val"; then
2986 # differences in whitespace do not lead to failure.
2987 ac_old_val_w
=`echo x $ac_old_val`
2988 ac_new_val_w
=`echo x $ac_new_val`
2989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2992 ac_cache_corrupted
=:
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2996 eval $ac_var=\
$ac_old_val
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3004 # Pass precious variables to config.status.
3005 if test "$ac_new_set" = set; then
3007 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3008 *) ac_arg
=$ac_var=$ac_new_val ;;
3010 case " $ac_configure_args " in
3011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3012 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3016 if $ac_cache_corrupted; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3021 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3023 ## -------------------- ##
3024 ## Main body of script. ##
3025 ## -------------------- ##
3028 ac_cpp
='$CPP $CPPFLAGS'
3029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3038 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3041 gcc_version
=`cat $srcdir/BASE-VER`
3043 # Determine the host, build, and target systems
3045 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3046 for ac_t
in install-sh
install.sh shtool
; do
3047 if test -f "$ac_dir/$ac_t"; then
3049 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3054 if test -z "$ac_aux_dir"; then
3055 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3058 # These three variables are undocumented and unsupported,
3059 # and are intended to be withdrawn in a future Autoconf release.
3060 # They can cause serious problems if a builder's source tree is in a directory
3061 # whose full name contains unusual characters.
3062 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3063 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3064 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3067 # Make sure we can run config.sub.
3068 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3069 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3072 $as_echo_n "checking build system type... " >&6; }
3073 if test "${ac_cv_build+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3076 ac_build_alias
=$build_alias
3077 test "x$ac_build_alias" = x
&&
3078 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3079 test "x$ac_build_alias" = x
&&
3080 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3081 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3082 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3086 $as_echo "$ac_cv_build" >&6; }
3087 case $ac_cv_build in
3089 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3092 ac_save_IFS
=$IFS; IFS
='-'
3098 # Remember, the first character of IFS is used to create $*,
3099 # except with old shells:
3102 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3106 $as_echo_n "checking host system type... " >&6; }
3107 if test "${ac_cv_host+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3110 if test "x$host_alias" = x
; then
3111 ac_cv_host
=$ac_cv_build
3113 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3114 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3119 $as_echo "$ac_cv_host" >&6; }
3122 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3125 ac_save_IFS
=$IFS; IFS
='-'
3131 # Remember, the first character of IFS is used to create $*,
3132 # except with old shells:
3135 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3139 $as_echo_n "checking target system type... " >&6; }
3140 if test "${ac_cv_target+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3143 if test "x$target_alias" = x
; then
3144 ac_cv_target
=$ac_cv_host
3146 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3147 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3152 $as_echo "$ac_cv_target" >&6; }
3153 case $ac_cv_target in
3155 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3157 target
=$ac_cv_target
3158 ac_save_IFS
=$IFS; IFS
='-'
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3168 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3171 # The aliases save the names the user supplied, while $host etc.
3172 # will get canonicalized.
3173 test -n "$target_alias" &&
3174 test "$program_prefix$program_suffix$program_transform_name" = \
3176 program_prefix
=${target_alias}-
3178 # Determine the noncanonical target name, for directory use.
3179 case ${build_alias} in
3180 "") build_noncanonical
=${build} ;;
3181 *) build_noncanonical
=${build_alias} ;;
3184 case ${host_alias} in
3185 "") host_noncanonical
=${build_noncanonical} ;;
3186 *) host_noncanonical
=${host_alias} ;;
3189 case ${target_alias} in
3190 "") target_noncanonical
=${host_noncanonical} ;;
3191 *) target_noncanonical
=${target_alias} ;;
3197 # Determine the target- and build-specific subdirectories
3199 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3200 # have matching libraries, they should use host libraries: Makefile.tpl
3201 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3202 # However, they still use the build modules, because the corresponding
3203 # host modules (e.g. bison) are only built for the host when bootstrap
3205 # - build_subdir is where we find build modules, and never changes.
3206 # - build_libsubdir is where we find build libraries, and can be overridden.
3208 # Prefix 'build-' so this never conflicts with target_subdir.
3209 build_subdir
="build-${build_noncanonical}"
3211 # Check whether --with-build-libsubdir was given.
3212 if test "${with_build_libsubdir+set}" = set; then :
3213 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3215 build_libsubdir
="$build_subdir"
3218 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3219 if ( test $srcdir = .
&& test -d gcc
) \
3220 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3221 host_subdir
="host-${host_noncanonical}"
3226 target_subdir
=${target_noncanonical}
3229 # Set program_transform_name
3230 test "$program_prefix" != NONE
&&
3231 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3232 # Use a double $ so make ignores it.
3233 test "$program_suffix" != NONE
&&
3234 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3235 # Double any \ or $.
3236 # By default was `s,x,x', remove it if useless.
3237 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3238 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3241 # Check for bogus environment variables.
3242 # Test if LIBRARY_PATH contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # LIBRARY_PATH contains the current directory if one of the following
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3250 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3251 case ${LIBRARY_PATH} in
3252 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3253 library_path_setting
="contains current directory"
3256 library_path_setting
="ok"
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3260 $as_echo "$library_path_setting" >&6; }
3261 if test "$library_path_setting" != "ok"; then
3263 *** LIBRARY_PATH shouldn't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3268 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3269 # since this would lead to problems installing/building glibc.
3270 # GCC_EXEC_PREFIX contains the current directory if one of the following
3272 # - one of the terminals (":" and ";") is the first or last sign
3273 # - two terminals occur directly after each other
3274 # - the path contains an element with a dot in it
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3276 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3277 case ${GCC_EXEC_PREFIX} in
3278 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3279 gcc_exec_prefix_setting
="contains current directory"
3282 gcc_exec_prefix_setting
="ok"
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3286 $as_echo "$gcc_exec_prefix_setting" >&6; }
3287 if test "$gcc_exec_prefix_setting" != "ok"; then
3289 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3290 *** building gcc. Please change the environment variable
3291 *** and run configure again." "$LINENO" 5
3298 # Specify the local prefix
3301 # Check whether --with-local-prefix was given.
3302 if test "${with_local_prefix+set}" = set; then :
3303 withval
=$with_local_prefix; case "${withval}" in
3304 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3306 *) local_prefix
=$with_local_prefix ;;
3311 # Default local prefix if it is empty
3312 if test x
$local_prefix = x
; then
3313 local_prefix
=/usr
/local
3316 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3317 # passed in by the toplevel make and thus we'd get different behavior
3318 # depending on where we built the sources.
3319 gcc_gxx_include_dir
=
3320 # Specify the g++ header file directory
3322 # Check whether --with-gxx-include-dir was given.
3323 if test "${with_gxx_include_dir+set}" = set; then :
3324 withval
=$with_gxx_include_dir; case "${withval}" in
3325 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3327 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3332 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3333 if test x
${gcc_gxx_include_dir} = x
; then
3334 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3335 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3337 libstdcxx_incdir
='include/c++/$(version)'
3338 if test x
$host != x
$target; then
3339 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3341 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3345 gcc_gxx_include_dir_add_sysroot
=0
3346 if test "${with_sysroot+set}" = set; then
3347 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3348 if test "${gcc_gxx_without_sysroot}"; then
3349 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3350 gcc_gxx_include_dir_add_sysroot
=1
3355 # Check whether --with-cpp_install_dir was given.
3356 if test "${with_cpp_install_dir+set}" = set; then :
3357 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3358 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3359 elif test x
$withval != xno
; then
3360 cpp_install_dir
=$withval
3365 # We would like to our source tree to be readonly. However when releases or
3366 # pre-releases are generated, the flex/bison generated files as well as the
3367 # various formats of manuals need to be included along with the rest of the
3368 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3372 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3373 # Check whether --enable-generated-files-in-srcdir was given.
3374 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3375 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3377 generated_files_in_srcdir
=no
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3382 $as_echo "$generated_files_in_srcdir" >&6; }
3384 if test "$generated_files_in_srcdir" = "yes"; then
3391 # -------------------
3392 # Find default linker
3393 # -------------------
3397 # Check whether --with-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then :
3399 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3405 # With pre-defined ld
3407 # Check whether --with-ld was given.
3408 if test "${with_ld+set}" = set; then :
3409 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3412 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3413 if test ! -x "$DEFAULT_LINKER"; then
3414 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3415 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3419 cat >>confdefs.h
<<_ACEOF
3420 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3426 $as_echo_n "checking whether a default linker was specified... " >&6; }
3427 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3428 if test x
"$gnu_ld_flag" = x
"no"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3433 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3440 # With demangler in GNU ld
3442 # Check whether --with-demangler-in-ld was given.
3443 if test "${with_demangler_in_ld+set}" = set; then :
3444 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3450 # ----------------------
3451 # Find default assembler
3452 # ----------------------
3456 # Check whether --with-gnu-as was given.
3457 if test "${with_gnu_as+set}" = set; then :
3458 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3465 # Check whether --with-as was given.
3466 if test "${with_as+set}" = set; then :
3467 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3470 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3471 if test ! -x "$DEFAULT_ASSEMBLER"; then
3472 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3473 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3477 cat >>confdefs.h
<<_ACEOF
3478 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3484 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3485 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3486 if test x
"$gas_flag" = x
"no"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3491 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3502 # If a non-executable a.out is present (e.g. created by GNU as above even if
3503 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3504 # file, even when creating an executable, so an execution test fails.
3505 # Remove possible default executable files to avoid this.
3507 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3508 # Autoconf includes it.
3509 rm -f a.out a.exe b.out
3511 # Find the native compiler
3513 ac_cpp
='$CPP $CPPFLAGS'
3514 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_CC+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC
="$CC" # Let the user override the test.
3528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir
=.
3533 for ac_exec_ext
in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3556 if test -z "$ac_cv_prog_CC"; then
3558 # Extract the first word of "gcc", so it can be a program name with args.
3559 set dummy gcc
; ac_word
=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3565 if test -n "$ac_ct_CC"; then
3566 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3572 test -z "$as_dir" && as_dir
=.
3573 for ac_exec_ext
in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 ac_cv_prog_ac_ct_CC
="gcc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 $as_echo "$ac_ct_CC" >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3594 if test "x$ac_ct_CC" = x
; then
3597 case $cross_compiling:$ac_tool_warned in
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned
=yes ;;
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC
="$CC" # Let the user override the test.
3621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir
=.
3626 for ac_exec_ext
in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3650 if test -z "$CC"; then
3651 # Extract the first word of "cc", so it can be a program name with args.
3652 set dummy cc
; ac_word
=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC
="$CC" # Let the user override the test.
3662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir
=.
3667 for ac_exec_ext
in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670 ac_prog_rejected
=yes
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 if test $ac_prog_rejected = yes; then
3682 # We found a bogon in the path, so make sure we never use it.
3683 set dummy
$ac_cv_prog_CC
3685 if test $# != 0; then
3686 # We chose a different compiler from the bogus one.
3687 # However, it has the same basename, so the bogon will be chosen
3688 # first if we set CC to just the basename; use the full file name.
3690 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 if test -n "$ac_tool_prefix"; then
3708 for ac_prog
in cl.exe
3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if test "${ac_cv_prog_CC+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC
="$CC" # Let the user override the test.
3720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir
=.
3725 for ac_exec_ext
in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 if test -n "$CC"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3747 test -n "$CC" && break
3750 if test -z "$CC"; then
3752 for ac_prog
in cl.exe
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy
$ac_prog; ac_word
=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir
=.
3769 for ac_exec_ext
in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_ac_ct_CC
="$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$ac_ct_CC" && break
3794 if test "x$ac_ct_CC" = x
; then
3797 case $cross_compiling:$ac_tool_warned in
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned
=yes ;;
3810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error
"no acceptable C compiler found in \$PATH
3813 See \`config.log' for more details." "$LINENO" 5; }
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3819 for ac_option
in --version -v -V -qversion; do
3820 { { ac_try
="$ac_compiler $ac_option >&5"
3822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3829 if test -s conftest.err; then
3831 ... rest of stderr output deleted ...
3832 10q' conftest.err >conftest.er1
3833 cat conftest.er1 >&5
3834 rm -f conftest.er1 conftest.err
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3851 ac_clean_files_save=$ac_clean_files
3852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3853 # Try to create an executable without -o first, disregard a.out.
3854 # It will help us diagnose broken compilers, and finding out an intuition
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857 $as_echo_n "checking for C compiler default output file name... " >&6; }
3858 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3860 # The possible output files:
3861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3864 for ac_file in $ac_files
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3873 if { { ac_try="$ac_link_default"
3875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3876 *) ac_try_echo
=$ac_try;;
3878 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link_default") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3889 for ac_file
in $ac_files ''
3891 test -f "$ac_file" ||
continue
3893 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3896 # We found the default executable, but exeext='' is most
3900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3902 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 # We set ac_cv_exeext here because the later test for it is not
3905 # safe: cross compilers may not add the suffix if given an `-o'
3906 # argument, so we may need to know it at that point already.
3907 # Even if this section looks crufty: it has the advantage of
3914 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3920 $as_echo "$ac_file" >&6; }
3921 if test -z "$ac_file"; then :
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.
$ac_ext >&5
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 { as_fn_set_status
77
3928 as_fn_error
"C compiler cannot create executables
3929 See \`config.log' for more details." "$LINENO" 5; }; }
3931 ac_exeext
=$ac_cv_exeext
3933 # Check that the compiler produces executables we can run. If not, either
3934 # the compiler is broken, or we cross compile.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3936 $as_echo_n "checking whether the C compiler works... " >&6; }
3937 # If not cross compiling, check that we can run a simple program.
3938 if test "$cross_compiling" != yes; then
3939 if { ac_try
='./$ac_file'
3940 { { case "(($ac_try" in
3941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_try") 2>&5
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; }; then
3952 if test "$cross_compiling" = maybe; then
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error "cannot run C compiled programs.
3958 If you meant to cross compile
, use \
`--host'.
3959 See \`config.log
' for more details." "$LINENO" 5; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3967 ac_clean_files=$ac_clean_files_save
3968 # Check that the compiler produces executables we can run. If not, either
3969 # the compiler is broken, or we cross compile.
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3971 $as_echo_n "checking whether we are cross compiling... " >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3976 $as_echo_n "checking for suffix of executables... " >&6; }
3977 if { { ac_try="$ac_link"
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }; then :
3988 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3989 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3990 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3992 for ac_file
in conftest.exe conftest conftest.
*; do
3993 test -f "$ac_file" ||
continue
3995 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3996 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4005 See \`config.log' for more details." "$LINENO" 5; }
4007 rm -f conftest
$ac_cv_exeext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4009 $as_echo "$ac_cv_exeext" >&6; }
4011 rm -f conftest.
$ac_ext
4012 EXEEXT
=$ac_cv_exeext
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4015 $as_echo_n "checking for suffix of object files... " >&6; }
4016 if test "${ac_cv_objext+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4030 rm -f conftest.o conftest.obj
4031 if { { ac_try
="$ac_compile"
4033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_compile") 2>&5
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; then :
4042 for ac_file in conftest.o conftest.obj conftest.*; do
4043 test -f "$ac_file" || continue;
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "cannot compute suffix of object files
: cannot compile
4057 See \
`config.log' for more details." "$LINENO" 5; }
4059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4062 $as_echo "$ac_cv_objext" >&6; }
4063 OBJEXT=$ac_cv_objext
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4084 if ac_fn_c_try_compile "$LINENO"; then :
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if test "${ac_cv_prog_cc_g+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4107 ac_save_c_werror_flag=$ac_c_werror_flag
4108 ac_c_werror_flag=yes
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 if ac_fn_c_try_compile "$LINENO"; then :
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4137 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4153 if ac_fn_c_try_compile "$LINENO"; then :
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166 CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168 if test "$GCC" = yes; then
4174 if test "$GCC" = yes; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
4185 ac_cv_prog_cc_c89=no
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4191 #include <sys/types.h>
4192 #include <sys/stat.h>
4193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4194 struct buf { int x; };
4195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4196 static char *e (p, i)
4202 static char *f (char * (*g) (char **, int), char **p, ...)
4207 s = g (p, va_arg (v,int));
4212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4213 function prototypes and stuff, but not '\xHH' hex character constants.
4214 These don't provoke an error unfortunately, instead are silently treated
4215 as 'x'. The following induces an error, until -std is added to get
4216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4217 array size at least. It's necessary to write '\x00'==0 to get something
4218 that's true only with -std. */
4219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4222 inside strings and character constants. */
4224 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4226 int test (int i, double x);
4227 struct s1 {int (*f) (int a);};
4228 struct s2 {int (*f) (double a);};
4229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4240 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243 CC="$ac_save_CC $ac_arg"
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245 ac_cv_prog_cc_c89=$ac_arg
4247 rm -f core conftest.err conftest.$ac_objext
4248 test "x$ac_cv_prog_cc_c89" != "xno" && break
4250 rm -f conftest.$ac_ext
4255 case "x$ac_cv_prog_cc_c89" in
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258 $as_echo "none needed" >&6; } ;;
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4261 $as_echo "unsupported" >&6; } ;;
4263 CC="$CC $ac_cv_prog_cc_c89"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4265 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4267 if test "x$ac_cv_prog_cc_c89" != xno; then :
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 if test "x$CC" != xcc; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4279 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4282 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4284 set dummy $CC; ac_cc=`$as_echo "$2" |
4285 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4286 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4287 $as_echo_n "(cached) " >&6
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4300 # Make sure it works both with $CC and with simple cc.
4301 # We do the test twice because some compilers refuse to overwrite an
4302 # existing .o file with -o, though they will create one.
4303 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4305 if { { case "(($ac_try" in
4306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4307 *) ac_try_echo
=$ac_try;;
4309 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_try") 2>&5
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; } &&
4315 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_try") 2>&5
4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324 test $ac_status = 0; };
4326 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4327 if test "x$CC" != xcc; then
4328 # Test first that cc exists at all.
4329 if { ac_try='cc -c conftest.$ac_ext >&5'
4330 { { case "(($ac_try" in
4331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4332 *) ac_try_echo
=$ac_try;;
4334 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }; }; then
4340 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4342 if { { case "(($ac_try" in
4343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 $as_echo "$ac_try_echo"; } >&5
4348 (eval "$ac_try") 2>&5
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; } &&
4352 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4354 *) ac_try_echo
=$ac_try;;
4356 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357 $as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_try") 2>&5
4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; };
4366 # cc exists but doesn't like -o.
4367 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4372 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4374 rm -f core conftest
*
4377 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379 $as_echo "yes" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4384 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4388 # expand $ac_aux_dir to an absolute path
4389 am_aux_dir
=`cd $ac_aux_dir && pwd`
4391 # FIXME: we rely on the cache variable name because
4392 # there is no other way.
4394 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4395 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4396 if test "$am_t" != yes; then
4397 # Losing compiler, so override with the script.
4398 # FIXME: It is wrong to rewrite CC.
4399 # But if we don't then we get into trouble of one sort or another.
4400 # A longer-term fix would be to have automake use am__CC in this case,
4401 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4402 CC
="$am_aux_dir/compile $CC"
4407 ac_cpp
='$CXXCPP $CPPFLAGS'
4408 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4411 if test -z "$CXX"; then
4412 if test -n "$CCC"; then
4415 if test -n "$ac_tool_prefix"; then
4416 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4419 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if test "${ac_cv_prog_CXX+set}" = set; then :
4423 $as_echo_n "(cached) " >&6
4425 if test -n "$CXX"; then
4426 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir
=.
4433 for ac_exec_ext
in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 if test -n "$CXX"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4448 $as_echo "$CXX" >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4455 test -n "$CXX" && break
4458 if test -z "$CXX"; then
4460 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4462 # Extract the first word of "$ac_prog", so it can be a program name with args.
4463 set dummy
$ac_prog; ac_word
=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4467 $as_echo_n "(cached) " >&6
4469 if test -n "$ac_ct_CXX"; then
4470 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir
=.
4477 for ac_exec_ext
in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4490 if test -n "$ac_ct_CXX"; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4492 $as_echo "$ac_ct_CXX" >&6; }
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 $as_echo "no" >&6; }
4499 test -n "$ac_ct_CXX" && break
4502 if test "x$ac_ct_CXX" = x
; then
4505 case $cross_compiling:$ac_tool_warned in
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4509 ac_tool_warned
=yes ;;
4517 # Provide some information about the compiler.
4518 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4521 for ac_option
in --version -v -V -qversion; do
4522 { { ac_try
="$ac_compiler $ac_option >&5"
4524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4531 if test -s conftest.err; then
4533 ... rest of stderr output deleted ...
4534 10q' conftest.err >conftest.er1
4535 cat conftest.er1 >&5
4536 rm -f conftest.er1 conftest.err
4538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539 test $ac_status = 0; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4543 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4544 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4545 $as_echo_n "(cached) " >&6
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4561 if ac_fn_cxx_try_compile "$LINENO"; then :
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4571 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4572 if test $ac_compiler_gnu = yes; then
4577 ac_test_CXXFLAGS=${CXXFLAGS+set}
4578 ac_save_CXXFLAGS=$CXXFLAGS
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4580 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4581 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4584 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4585 ac_cxx_werror_flag=yes
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4600 ac_cv_prog_cxx_g=yes
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4614 if ac_fn_cxx_try_compile "$LINENO"; then :
4617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4630 if ac_fn_cxx_try_compile "$LINENO"; then :
4631 ac_cv_prog_cxx_g=yes
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4641 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4642 if test "$ac_test_CXXFLAGS" = set; then
4643 CXXFLAGS=$ac_save_CXXFLAGS
4644 elif test $ac_cv_prog_cxx_g = yes; then
4645 if test "$GXX" = yes; then
4651 if test "$GXX" = yes; then
4658 ac_cpp='$CPP $CPPFLAGS'
4659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666 if test -n "$ac_tool_prefix"; then
4667 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4668 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4674 if test -n "$GNATBIND"; then
4675 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 GNATBIND=$ac_cv_prog_GNATBIND
4695 if test -n "$GNATBIND"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4697 $as_echo "$GNATBIND" >&6; }
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4705 if test -z "$ac_cv_prog_GNATBIND"; then
4706 ac_ct_GNATBIND=$GNATBIND
4707 # Extract the first word of "gnatbind", so it can be a program name with args.
4708 set dummy gnatbind; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4714 if test -n "$ac_ct_GNATBIND"; then
4715 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4735 if test -n "$ac_ct_GNATBIND"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4737 $as_echo "$ac_ct_GNATBIND" >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4743 if test "x$ac_ct_GNATBIND" = x; then
4746 case $cross_compiling:$ac_tool_warned in
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4750 ac_tool_warned=yes ;;
4752 GNATBIND=$ac_ct_GNATBIND
4755 GNATBIND="$ac_cv_prog_GNATBIND"
4758 if test -n "$ac_tool_prefix"; then
4759 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4760 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4766 if test -n "$GNATMAKE"; then
4767 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 GNATMAKE=$ac_cv_prog_GNATMAKE
4787 if test -n "$GNATMAKE"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4789 $as_echo "$GNATMAKE" >&6; }
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4797 if test -z "$ac_cv_prog_GNATMAKE"; then
4798 ac_ct_GNATMAKE=$GNATMAKE
4799 # Extract the first word of "gnatmake", so it can be a program name with args.
4800 set dummy gnatmake; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4806 if test -n "$ac_ct_GNATMAKE"; then
4807 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4827 if test -n "$ac_ct_GNATMAKE"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4829 $as_echo "$ac_ct_GNATMAKE" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4835 if test "x$ac_ct_GNATMAKE" = x; then
4838 case $cross_compiling:$ac_tool_warned in
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4842 ac_tool_warned=yes ;;
4844 GNATMAKE=$ac_ct_GNATMAKE
4847 GNATMAKE="$ac_cv_prog_GNATMAKE"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4851 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4852 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4855 cat >conftest.adb <<EOF
4856 procedure conftest is begin null; end conftest;
4858 acx_cv_cc_gcc_supports_ada=no
4859 # There is a bug in old released versions of GCC which causes the
4860 # driver to exit successfully when the appropriate language module
4861 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4862 # Therefore we must check for the error message as well as an
4863 # unsuccessful exit.
4864 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4865 # given a .adb file, but produce no object file. So we must check
4866 # if an object file was really produced to guard against this.
4867 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4868 if test x"$errors" = x && test -f conftest.$ac_objext; then
4869 acx_cv_cc_gcc_supports_ada=yes
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4874 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4876 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4883 # autoconf is lame and doesn't give us any substitution variable for this.
4884 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4885 NO_MINUS_C_MINUS_O=yes
4887 OUTPUT_OPTION='-o $@'
4892 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4893 # optimizations to be activated explicitly by the toplevel.
4895 */prev-gcc/xgcc*) ;;
4896 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4897 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4902 # Determine PICFLAG for target gnatlib.
4908 # PIC is the default on some targets or must not be used.
4910 # PIC is the default on this platform
4911 # Common symbols not allowed in MH_DYLIB files
4912 PICFLAG_FOR_TARGET=-fno-common
4915 # PIC is the default.
4918 # PIC is the default for 64-bit PA HP-UX.
4920 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4922 i[34567]86-*-mingw* | x86_64-*-mingw*)
4924 i[34567]86-*-interix[3-9]*)
4925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4926 # Instead, we relocate shared libraries at runtime.
4928 i[34567]86-*-nto-qnx*)
4929 # QNX uses GNU C++, but need to define -shared option too, otherwise
4931 PICFLAG_FOR_TARGET='-fPIC -shared'
4933 i[34567]86-pc-msdosdjgpp*)
4934 # DJGPP does not support shared libraries at all.
4937 # On IA64 HP-UX, PIC is the default but the pic flag
4938 # sets the default TLS model and affects inlining.
4939 PICFLAG_FOR_TARGET=-fPIC
4942 # PIC is the default.
4944 rs6000-ibm-aix* | powerpc-ibm-aix*)
4945 # All AIX code is PIC.
4948 # Some targets support both -fPIC and -fpic, but prefer the latter.
4950 i[34567]86-*-* | x86_64-*-*)
4951 PICFLAG_FOR_TARGET=-fpic
4954 PICFLAG_FOR_TARGET=-fpic
4956 # FIXME: Override -fPIC default in libgcc only?
4957 sh-*-linux* | sh[2346lbe]*-*-linux*)
4958 PICFLAG_FOR_TARGET=-fpic
4960 # FIXME: Simplify to sh*-*-netbsd*?
4961 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4962 sh64-*-netbsd* | sh64l*-*-netbsd*)
4963 PICFLAG_FOR_TARGET=-fpic
4965 # Default to -fPIC unless specified otherwise.
4967 PICFLAG_FOR_TARGET=-fPIC
4971 # If the user explicitly uses -fpic/-fPIC, keep that.
4972 case "${CFLAGS_FOR_TARGET}" in
4974 PICFLAG_FOR_TARGET=-fpic
4977 PICFLAG_FOR_TARGET=-fPIC
4983 # -------------------------
4984 # Check C compiler features
4985 # -------------------------
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4994 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4995 # On Suns, sometimes $CPP names a directory.
4996 if test -n "$CPP" && test -d "$CPP"; then
4999 if test -z "$CPP"; then
5000 if test "${ac_cv_prog_CPP+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5003 # Double quotes because CPP needs to be expanded
5004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5007 for ac_c_preproc_warn_flag in '' yes
5009 # Use a header file that comes with gcc, so configuring glibc
5010 # with a fresh cross-compiler works.
5011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5012 # <limits.h> exists even on freestanding compilers.
5013 # On the NeXT, cc -E runs the code through the compiler's parser,
5014 # not just through cpp. "Syntax error" is here to catch this case.
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5018 # include <limits.h>
5020 # include <assert.h>
5024 if ac_fn_c_try_cpp "$LINENO"; then :
5027 # Broken: fails on valid input.
5030 rm -f conftest.err conftest.$ac_ext
5032 # OK, works on sane cases. Now check whether nonexistent headers
5033 # can be detected and how.
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036 #include <ac_nonexistent.h>
5038 if ac_fn_c_try_cpp "$LINENO"; then :
5039 # Broken: success on invalid input.
5042 # Passes both tests.
5046 rm -f conftest.err conftest.$ac_ext
5049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050 rm -f conftest.err conftest.
$ac_ext
5051 if $ac_preproc_ok; then :
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5064 $as_echo "$CPP" >&6; }
5066 for ac_c_preproc_warn_flag
in '' yes
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
5070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
5072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5077 # include <limits.h>
5079 # include <assert.h>
5083 if ac_fn_c_try_cpp
"$LINENO"; then :
5086 # Broken: fails on valid input.
5089 rm -f conftest.err conftest.
$ac_ext
5091 # OK, works on sane cases. Now check whether nonexistent headers
5092 # can be detected and how.
5093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095 #include <ac_nonexistent.h>
5097 if ac_fn_c_try_cpp
"$LINENO"; then :
5098 # Broken: success on invalid input.
5101 # Passes both tests.
5105 rm -f conftest.err conftest.
$ac_ext
5108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5109 rm -f conftest.err conftest.
$ac_ext
5110 if $ac_preproc_ok; then :
5113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5115 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5116 See \`config.log' for more details." "$LINENO" 5; }
5120 ac_cpp
='$CPP $CPPFLAGS'
5121 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5127 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5128 if test "${ac_cv_path_GREP+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5131 if test -z "$GREP"; then
5132 ac_path_GREP_found
=false
5133 # Loop through the user's path and test for each of PROGNAME-LIST
5134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5135 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5138 test -z "$as_dir" && as_dir
=.
5139 for ac_prog
in grep ggrep
; do
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5142 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5143 # Check for GNU ac_path_GREP and select it if it is found.
5144 # Check for GNU $ac_path_GREP
5145 case `"$ac_path_GREP" --version 2>&1` in
5147 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5150 $as_echo_n 0123456789 >"conftest.in"
5153 cat "conftest.in" "conftest.in" >"conftest.tmp"
5154 mv "conftest.tmp" "conftest.in"
5155 cp "conftest.in" "conftest.nl"
5156 $as_echo 'GREP' >> "conftest.nl"
5157 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5158 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5159 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5160 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5161 # Best one so far, save it but keep looking for a better one
5162 ac_cv_path_GREP
="$ac_path_GREP"
5163 ac_path_GREP_max
=$ac_count
5165 # 10*(2^10) chars as input seems more than enough
5166 test $ac_count -gt 10 && break
5168 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5171 $ac_path_GREP_found && break 3
5176 if test -z "$ac_cv_path_GREP"; then
5177 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5180 ac_cv_path_GREP
=$GREP
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5185 $as_echo "$ac_cv_path_GREP" >&6; }
5186 GREP
="$ac_cv_path_GREP"
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5190 $as_echo_n "checking for egrep... " >&6; }
5191 if test "${ac_cv_path_EGREP+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5194 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5195 then ac_cv_path_EGREP
="$GREP -E"
5197 if test -z "$EGREP"; then
5198 ac_path_EGREP_found
=false
5199 # Loop through the user's path and test for each of PROGNAME-LIST
5200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5201 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5204 test -z "$as_dir" && as_dir
=.
5205 for ac_prog
in egrep; do
5206 for ac_exec_ext
in '' $ac_executable_extensions; do
5207 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5208 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5209 # Check for GNU ac_path_EGREP and select it if it is found.
5210 # Check for GNU $ac_path_EGREP
5211 case `"$ac_path_EGREP" --version 2>&1` in
5213 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5216 $as_echo_n 0123456789 >"conftest.in"
5219 cat "conftest.in" "conftest.in" >"conftest.tmp"
5220 mv "conftest.tmp" "conftest.in"
5221 cp "conftest.in" "conftest.nl"
5222 $as_echo 'EGREP' >> "conftest.nl"
5223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5224 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5225 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5227 # Best one so far, save it but keep looking for a better one
5228 ac_cv_path_EGREP
="$ac_path_EGREP"
5229 ac_path_EGREP_max
=$ac_count
5231 # 10*(2^10) chars as input seems more than enough
5232 test $ac_count -gt 10 && break
5234 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5237 $ac_path_EGREP_found && break 3
5242 if test -z "$ac_cv_path_EGREP"; then
5243 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5246 ac_cv_path_EGREP
=$EGREP
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5252 $as_echo "$ac_cv_path_EGREP" >&6; }
5253 EGREP
="$ac_cv_path_EGREP"
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5257 $as_echo_n "checking for ANSI C header files... " >&6; }
5258 if test "${ac_cv_header_stdc+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5276 if ac_fn_c_try_compile
"$LINENO"; then :
5277 ac_cv_header_stdc
=yes
5279 ac_cv_header_stdc
=no
5281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5283 if test $ac_cv_header_stdc = yes; then
5284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291 $EGREP "memchr" >/dev
/null
2>&1; then :
5294 ac_cv_header_stdc
=no
5300 if test $ac_cv_header_stdc = yes; then
5301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5308 $EGREP "free" >/dev
/null
2>&1; then :
5311 ac_cv_header_stdc
=no
5317 if test $ac_cv_header_stdc = yes; then
5318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5319 if test "$cross_compiling" = yes; then :
5322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5326 #if ((' ' & 0x0FF) == 0x020)
5327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5330 # define ISLOWER(c) \
5331 (('a' <= (c) && (c) <= 'i') \
5332 || ('j' <= (c) && (c) <= 'r') \
5333 || ('s' <= (c) && (c) <= 'z'))
5334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5342 for (i = 0; i < 256; i++)
5343 if (XOR (islower (i), ISLOWER (i))
5344 || toupper (i) != TOUPPER (i))
5349 if ac_fn_c_try_run
"$LINENO"; then :
5352 ac_cv_header_stdc
=no
5354 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5355 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5361 $as_echo "$ac_cv_header_stdc" >&6; }
5362 if test $ac_cv_header_stdc = yes; then
5364 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5369 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5370 inttypes.h stdint.h unistd.h
5372 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5375 eval as_val
=\$
$as_ac_Header
5376 if test "x$as_val" = x
""yes; then :
5377 cat >>confdefs.h
<<_ACEOF
5378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5387 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5388 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5395 if test "$MINIX" = yes; then
5397 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5400 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5403 $as_echo "#define _MINIX 1" >>confdefs.h
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5409 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5410 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5416 # define __EXTENSIONS__ 1
5417 $ac_includes_default
5426 if ac_fn_c_try_compile
"$LINENO"; then :
5427 ac_cv_safe_to_define___extensions__
=yes
5429 ac_cv_safe_to_define___extensions__
=no
5431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5434 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5435 test $ac_cv_safe_to_define___extensions__ = yes &&
5436 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5438 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5440 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5442 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5444 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5448 ac_cpp
='$CPP $CPPFLAGS'
5449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5454 # On Suns, sometimes $CPP names a directory.
5455 if test -n "$CPP" && test -d "$CPP"; then
5458 if test -z "$CPP"; then
5459 if test "${ac_cv_prog_CPP+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5462 # Double quotes because CPP needs to be expanded
5463 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5466 for ac_c_preproc_warn_flag
in '' yes
5468 # Use a header file that comes with gcc, so configuring glibc
5469 # with a fresh cross-compiler works.
5470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5471 # <limits.h> exists even on freestanding compilers.
5472 # On the NeXT, cc -E runs the code through the compiler's parser,
5473 # not just through cpp. "Syntax error" is here to catch this case.
5474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5477 # include <limits.h>
5479 # include <assert.h>
5483 if ac_fn_c_try_cpp
"$LINENO"; then :
5486 # Broken: fails on valid input.
5489 rm -f conftest.err conftest.
$ac_ext
5491 # OK, works on sane cases. Now check whether nonexistent headers
5492 # can be detected and how.
5493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #include <ac_nonexistent.h>
5497 if ac_fn_c_try_cpp
"$LINENO"; then :
5498 # Broken: success on invalid input.
5501 # Passes both tests.
5505 rm -f conftest.err conftest.
$ac_ext
5508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5509 rm -f conftest.err conftest.
$ac_ext
5510 if $ac_preproc_ok; then :
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5523 $as_echo "$CPP" >&6; }
5525 for ac_c_preproc_warn_flag
in '' yes
5527 # Use a header file that comes with gcc, so configuring glibc
5528 # with a fresh cross-compiler works.
5529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5530 # <limits.h> exists even on freestanding compilers.
5531 # On the NeXT, cc -E runs the code through the compiler's parser,
5532 # not just through cpp. "Syntax error" is here to catch this case.
5533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5536 # include <limits.h>
5538 # include <assert.h>
5542 if ac_fn_c_try_cpp
"$LINENO"; then :
5545 # Broken: fails on valid input.
5548 rm -f conftest.err conftest.
$ac_ext
5550 # OK, works on sane cases. Now check whether nonexistent headers
5551 # can be detected and how.
5552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 #include <ac_nonexistent.h>
5556 if ac_fn_c_try_cpp
"$LINENO"; then :
5557 # Broken: success on invalid input.
5560 # Passes both tests.
5564 rm -f conftest.err conftest.
$ac_ext
5567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5568 rm -f conftest.err conftest.
$ac_ext
5569 if $ac_preproc_ok; then :
5572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5574 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5575 See \`config.log' for more details." "$LINENO" 5; }
5579 ac_cpp
='$CPP $CPPFLAGS'
5580 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5585 $as_echo_n "checking for inline... " >&6; }
5586 if test "${ac_cv_c_inline+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5590 for ac_kw
in inline __inline__ __inline
; do
5591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5595 static $ac_kw foo_t static_foo () {return 0; }
5596 $ac_kw foo_t foo () {return 0; }
5600 if ac_fn_c_try_compile
"$LINENO"; then :
5601 ac_cv_c_inline
=$ac_kw
5603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5604 test "$ac_cv_c_inline" != no
&& break
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5609 $as_echo "$ac_cv_c_inline" >&6; }
5611 case $ac_cv_c_inline in
5614 case $ac_cv_c_inline in
5616 *) ac_val
=$ac_cv_c_inline;;
5618 cat >>confdefs.h
<<_ACEOF
5620 #define inline $ac_val
5627 # Check whether --enable-largefile was given.
5628 if test "${enable_largefile+set}" = set; then :
5629 enableval
=$enable_largefile;
5632 if test "$enable_largefile" != no
; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5635 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5636 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5637 $as_echo_n "(cached) " >&6
5639 ac_cv_sys_largefile_CC
=no
5640 if test "$GCC" != yes; then
5643 # IRIX 6.2 and later do not support large files by default,
5644 # so use the C compiler's -n32 option if that helps.
5645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 #include <sys/types.h>
5648 /* Check that off_t can represent 2**63 - 1 correctly.
5649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5650 since some C++ compilers masquerading as C compilers
5651 incorrectly reject 9223372036854775807. */
5652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5654 && LARGE_OFF_T % 2147483647 == 1)
5664 if ac_fn_c_try_compile
"$LINENO"; then :
5667 rm -f core conftest.err conftest.
$ac_objext
5669 if ac_fn_c_try_compile
"$LINENO"; then :
5670 ac_cv_sys_largefile_CC
=' -n32'; break
5672 rm -f core conftest.err conftest.
$ac_objext
5676 rm -f conftest.
$ac_ext
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5680 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5681 if test "$ac_cv_sys_largefile_CC" != no
; then
5682 CC
=$CC$ac_cv_sys_largefile_CC
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5686 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5687 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #include <sys/types.h>
5694 /* Check that off_t can represent 2**63 - 1 correctly.
5695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5696 since some C++ compilers masquerading as C compilers
5697 incorrectly reject 9223372036854775807. */
5698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5700 && LARGE_OFF_T % 2147483647 == 1)
5710 if ac_fn_c_try_compile
"$LINENO"; then :
5711 ac_cv_sys_file_offset_bits
=no
; break
5713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 #define _FILE_OFFSET_BITS 64
5717 #include <sys/types.h>
5718 /* Check that off_t can represent 2**63 - 1 correctly.
5719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5720 since some C++ compilers masquerading as C compilers
5721 incorrectly reject 9223372036854775807. */
5722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5724 && LARGE_OFF_T % 2147483647 == 1)
5734 if ac_fn_c_try_compile
"$LINENO"; then :
5735 ac_cv_sys_file_offset_bits
=64; break
5737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5738 ac_cv_sys_file_offset_bits
=unknown
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5743 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5744 case $ac_cv_sys_file_offset_bits in #(
5747 cat >>confdefs.h
<<_ACEOF
5748 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5753 if test $ac_cv_sys_file_offset_bits = unknown
; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5755 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5756 if test "${ac_cv_sys_large_files+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #include <sys/types.h>
5763 /* Check that off_t can represent 2**63 - 1 correctly.
5764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5765 since some C++ compilers masquerading as C compilers
5766 incorrectly reject 9223372036854775807. */
5767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5769 && LARGE_OFF_T % 2147483647 == 1)
5779 if ac_fn_c_try_compile
"$LINENO"; then :
5780 ac_cv_sys_large_files
=no
; break
5782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 #define _LARGE_FILES 1
5786 #include <sys/types.h>
5787 /* Check that off_t can represent 2**63 - 1 correctly.
5788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5789 since some C++ compilers masquerading as C compilers
5790 incorrectly reject 9223372036854775807. */
5791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5793 && LARGE_OFF_T % 2147483647 == 1)
5803 if ac_fn_c_try_compile
"$LINENO"; then :
5804 ac_cv_sys_large_files
=1; break
5806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5807 ac_cv_sys_large_files
=unknown
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5812 $as_echo "$ac_cv_sys_large_files" >&6; }
5813 case $ac_cv_sys_large_files in #(
5816 cat >>confdefs.h
<<_ACEOF
5817 #define _LARGE_FILES $ac_cv_sys_large_files
5826 # sizeof(char) is 1 by definition.
5827 # The cast to long int works around a bug in the HP C Compiler
5828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5830 # This bug is HP SR number 8606223364.
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5832 $as_echo_n "checking size of void *... " >&6; }
5833 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5836 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5839 if test "$ac_cv_type_void_p" = yes; then
5840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5842 { as_fn_set_status
77
5843 as_fn_error
"cannot compute sizeof (void *)
5844 See \`config.log' for more details." "$LINENO" 5; }; }
5846 ac_cv_sizeof_void_p
=0
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5852 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5856 cat >>confdefs.h
<<_ACEOF
5857 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5861 # The cast to long int works around a bug in the HP C Compiler
5862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5864 # This bug is HP SR number 8606223364.
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5866 $as_echo_n "checking size of short... " >&6; }
5867 if test "${ac_cv_sizeof_short+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5870 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5873 if test "$ac_cv_type_short" = yes; then
5874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5876 { as_fn_set_status
77
5877 as_fn_error
"cannot compute sizeof (short)
5878 See \`config.log' for more details." "$LINENO" 5; }; }
5880 ac_cv_sizeof_short
=0
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5886 $as_echo "$ac_cv_sizeof_short" >&6; }
5890 cat >>confdefs.h
<<_ACEOF
5891 #define SIZEOF_SHORT $ac_cv_sizeof_short
5895 # The cast to long int works around a bug in the HP C Compiler
5896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5898 # This bug is HP SR number 8606223364.
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5900 $as_echo_n "checking size of int... " >&6; }
5901 if test "${ac_cv_sizeof_int+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5904 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5907 if test "$ac_cv_type_int" = yes; then
5908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5910 { as_fn_set_status
77
5911 as_fn_error
"cannot compute sizeof (int)
5912 See \`config.log' for more details." "$LINENO" 5; }; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5920 $as_echo "$ac_cv_sizeof_int" >&6; }
5924 cat >>confdefs.h
<<_ACEOF
5925 #define SIZEOF_INT $ac_cv_sizeof_int
5929 # The cast to long int works around a bug in the HP C Compiler
5930 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5931 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5932 # This bug is HP SR number 8606223364.
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5934 $as_echo_n "checking size of long... " >&6; }
5935 if test "${ac_cv_sizeof_long+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5938 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5941 if test "$ac_cv_type_long" = yes; then
5942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5944 { as_fn_set_status
77
5945 as_fn_error
"cannot compute sizeof (long)
5946 See \`config.log' for more details." "$LINENO" 5; }; }
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5954 $as_echo "$ac_cv_sizeof_long" >&6; }
5958 cat >>confdefs.h
<<_ACEOF
5959 #define SIZEOF_LONG $ac_cv_sizeof_long
5963 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5964 if test "x$ac_cv_type_long_long" = x
""yes; then :
5966 cat >>confdefs.h
<<_ACEOF
5967 #define HAVE_LONG_LONG 1
5970 # The cast to long int works around a bug in the HP C Compiler
5971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5973 # This bug is HP SR number 8606223364.
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5975 $as_echo_n "checking size of long long... " >&6; }
5976 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5979 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5982 if test "$ac_cv_type_long_long" = yes; then
5983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5985 { as_fn_set_status
77
5986 as_fn_error
"cannot compute sizeof (long long)
5987 See \`config.log' for more details." "$LINENO" 5; }; }
5989 ac_cv_sizeof_long_long
=0
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5995 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5999 cat >>confdefs.h
<<_ACEOF
6000 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6006 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
6007 if test "x$ac_cv_type___int64" = x
""yes; then :
6009 cat >>confdefs.h
<<_ACEOF
6010 #define HAVE___INT64 1
6013 # The cast to long int works around a bug in the HP C Compiler
6014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6016 # This bug is HP SR number 8606223364.
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6018 $as_echo_n "checking size of __int64... " >&6; }
6019 if test "${ac_cv_sizeof___int64+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6022 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6025 if test "$ac_cv_type___int64" = yes; then
6026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6028 { as_fn_set_status
77
6029 as_fn_error
"cannot compute sizeof (__int64)
6030 See \`config.log' for more details." "$LINENO" 5; }; }
6032 ac_cv_sizeof___int64
=0
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6038 $as_echo "$ac_cv_sizeof___int64" >&6; }
6042 cat >>confdefs.h
<<_ACEOF
6043 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6049 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6050 case $ac_cv_c_int8_t in #(
6054 cat >>confdefs.h
<<_ACEOF
6055 #define int8_t $ac_cv_c_int8_t
6060 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6061 case $ac_cv_c_int16_t in #(
6065 cat >>confdefs.h
<<_ACEOF
6066 #define int16_t $ac_cv_c_int16_t
6071 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6072 case $ac_cv_c_int32_t in #(
6076 cat >>confdefs.h
<<_ACEOF
6077 #define int32_t $ac_cv_c_int32_t
6082 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6083 case $ac_cv_c_int64_t in #(
6087 cat >>confdefs.h
<<_ACEOF
6088 #define int64_t $ac_cv_c_int64_t
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6095 $as_echo_n "checking for long long int... " >&6; }
6096 if test "${ac_cv_type_long_long_int+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6102 /* For now, do not test the preprocessor; as of 2007 there are too many
6103 implementations with broken preprocessors. Perhaps this can
6104 be revisited in 2012. In the meantime, code should not expect
6105 #if to work with literals wider than 32 bits. */
6106 /* Test literals. */
6107 long long int ll = 9223372036854775807ll;
6108 long long int nll = -9223372036854775807LL;
6109 unsigned long long int ull = 18446744073709551615ULL;
6110 /* Test constant expressions. */
6111 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6113 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6119 /* Test availability of runtime routines for shift and division. */
6120 long long int llmax = 9223372036854775807ll;
6121 unsigned long long int ullmax = 18446744073709551615ull;
6122 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6123 | (llmax / ll) | (llmax % ll)
6124 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6125 | (ullmax / ull) | (ullmax % ull));
6131 if ac_fn_c_try_link
"$LINENO"; then :
6132 if test "$cross_compiling" = yes; then :
6133 ac_cv_type_long_long_int
=yes
6135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6140 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6141 # define LLONG_MAX (HALF - 1 + HALF)
6146 long long int n = 1;
6150 long long int m = n << i;
6153 if (LLONG_MAX / 2 < m)
6161 if ac_fn_c_try_run
"$LINENO"; then :
6162 ac_cv_type_long_long_int
=yes
6164 ac_cv_type_long_long_int
=no
6166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6167 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6171 ac_cv_type_long_long_int
=no
6173 rm -f core conftest.err conftest.
$ac_objext \
6174 conftest
$ac_exeext conftest.
$ac_ext
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6177 $as_echo "$ac_cv_type_long_long_int" >&6; }
6178 if test $ac_cv_type_long_long_int = yes; then
6180 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6186 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6189 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6192 test $ac_cv_type_long_long_int = yes \
6193 && ac_type
='long long int' \
6194 || ac_type
='long int'
6196 cat >>confdefs.h
<<_ACEOF
6197 #define intmax_t $ac_type
6204 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6205 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6207 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6210 for ac_type
in 'int' 'long int' 'long long int'; do
6211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 $ac_includes_default
6217 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6224 if ac_fn_c_try_compile
"$LINENO"; then :
6226 cat >>confdefs.h
<<_ACEOF
6227 #define intptr_t $ac_type
6232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6233 test -z "$ac_type" && break
6238 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6239 case $ac_cv_c_uint8_t in #(
6243 $as_echo "#define _UINT8_T 1" >>confdefs.h
6246 cat >>confdefs.h
<<_ACEOF
6247 #define uint8_t $ac_cv_c_uint8_t
6252 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6253 case $ac_cv_c_uint16_t in #(
6258 cat >>confdefs.h
<<_ACEOF
6259 #define uint16_t $ac_cv_c_uint16_t
6264 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6265 case $ac_cv_c_uint32_t in #(
6269 $as_echo "#define _UINT32_T 1" >>confdefs.h
6272 cat >>confdefs.h
<<_ACEOF
6273 #define uint32_t $ac_cv_c_uint32_t
6278 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6279 case $ac_cv_c_uint64_t in #(
6283 $as_echo "#define _UINT64_T 1" >>confdefs.h
6286 cat >>confdefs.h
<<_ACEOF
6287 #define uint64_t $ac_cv_c_uint64_t
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6294 $as_echo_n "checking for unsigned long long int... " >&6; }
6295 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6301 /* For now, do not test the preprocessor; as of 2007 there are too many
6302 implementations with broken preprocessors. Perhaps this can
6303 be revisited in 2012. In the meantime, code should not expect
6304 #if to work with literals wider than 32 bits. */
6305 /* Test literals. */
6306 long long int ll = 9223372036854775807ll;
6307 long long int nll = -9223372036854775807LL;
6308 unsigned long long int ull = 18446744073709551615ULL;
6309 /* Test constant expressions. */
6310 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6312 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6318 /* Test availability of runtime routines for shift and division. */
6319 long long int llmax = 9223372036854775807ll;
6320 unsigned long long int ullmax = 18446744073709551615ull;
6321 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6322 | (llmax / ll) | (llmax % ll)
6323 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6324 | (ullmax / ull) | (ullmax % ull));
6330 if ac_fn_c_try_link
"$LINENO"; then :
6331 ac_cv_type_unsigned_long_long_int
=yes
6333 ac_cv_type_unsigned_long_long_int
=no
6335 rm -f core conftest.err conftest.
$ac_objext \
6336 conftest
$ac_exeext conftest.
$ac_ext
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6339 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6340 if test $ac_cv_type_unsigned_long_long_int = yes; then
6342 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6348 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6349 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6351 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6354 test $ac_cv_type_unsigned_long_long_int = yes \
6355 && ac_type
='unsigned long long int' \
6356 || ac_type
='unsigned long int'
6358 cat >>confdefs.h
<<_ACEOF
6359 #define uintmax_t $ac_type
6366 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6367 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6369 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6372 for ac_type
in 'unsigned int' 'unsigned long int' \
6373 'unsigned long long int'; do
6374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6376 $ac_includes_default
6380 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6387 if ac_fn_c_try_compile
"$LINENO"; then :
6389 cat >>confdefs.h
<<_ACEOF
6390 #define uintptr_t $ac_type
6395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6396 test -z "$ac_type" && break
6414 # ---------------------
6415 # Warnings and checking
6416 # ---------------------
6418 # Check $CC warning features (if it's GCC).
6419 # We want to use -pedantic, but we don't want warnings about
6422 # * overlong strings
6423 # * C++11 narrowing conversions in { }
6424 # So, we only use -pedantic if we can disable those warnings.
6427 save_CFLAGS
="$CFLAGS"
6428 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6429 # Do the check with the no- prefix removed since gcc silently
6430 # accepts any -Wno-* option on purpose
6431 case $real_option in
6432 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6433 *) option
=$real_option ;;
6435 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6438 $as_echo_n "checking whether $CC supports $option... " >&6; }
6439 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6440 $as_echo_n "(cached) " >&6
6443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6454 if ac_fn_c_try_compile
"$LINENO"; then :
6455 eval "$as_acx_Woption=yes"
6457 eval "$as_acx_Woption=no"
6459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6462 eval ac_res
=\$
$as_acx_Woption
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6464 $as_echo "$ac_res" >&6; }
6465 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6466 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6469 CFLAGS
="$save_CFLAGS"
6472 save_CFLAGS
="$CFLAGS"
6473 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6474 # Do the check with the no- prefix removed since gcc silently
6475 # accepts any -Wno-* option on purpose
6476 case $real_option in
6477 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6478 *) option
=$real_option ;;
6480 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6483 $as_echo_n "checking whether $CC supports $option... " >&6; }
6484 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6485 $as_echo_n "(cached) " >&6
6488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6499 if ac_fn_c_try_compile
"$LINENO"; then :
6500 eval "$as_acx_Woption=yes"
6502 eval "$as_acx_Woption=no"
6504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6507 eval ac_res
=\$
$as_acx_Woption
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6509 $as_echo "$ac_res" >&6; }
6510 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6511 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6514 CFLAGS
="$save_CFLAGS"
6517 save_CFLAGS
="$CFLAGS"
6518 for real_option
in -Wmissing-format-attribute; do
6519 # Do the check with the no- prefix removed since gcc silently
6520 # accepts any -Wno-* option on purpose
6521 case $real_option in
6522 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6523 *) option
=$real_option ;;
6525 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6528 $as_echo_n "checking whether $CC supports $option... " >&6; }
6529 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6530 $as_echo_n "(cached) " >&6
6533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6544 if ac_fn_c_try_compile
"$LINENO"; then :
6545 eval "$as_acx_Woption=yes"
6547 eval "$as_acx_Woption=no"
6549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6552 eval ac_res
=\$
$as_acx_Woption
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6554 $as_echo "$ac_res" >&6; }
6555 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6556 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6559 CFLAGS
="$save_CFLAGS"
6562 save_CFLAGS
="$CFLAGS"
6563 for real_option
in -Wold-style-definition -Wc++-compat; do
6564 # Do the check with the no- prefix removed since gcc silently
6565 # accepts any -Wno-* option on purpose
6566 case $real_option in
6567 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6568 *) option
=$real_option ;;
6570 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6573 $as_echo_n "checking whether $CC supports $option... " >&6; }
6574 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6575 $as_echo_n "(cached) " >&6
6578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6589 if ac_fn_c_try_compile
"$LINENO"; then :
6590 eval "$as_acx_Woption=yes"
6592 eval "$as_acx_Woption=no"
6594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6597 eval ac_res
=\$
$as_acx_Woption
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6599 $as_echo "$ac_res" >&6; }
6600 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6601 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6604 CFLAGS
="$save_CFLAGS"
6606 # Do the check with the no- prefix removed from the warning options
6607 # since gcc silently accepts any -Wno-* option on purpose
6608 if test "$GCC" = yes; then :
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6610 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6611 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6614 save_CFLAGS
="$CFLAGS"
6615 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6627 if ac_fn_c_try_compile
"$LINENO"; then :
6628 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6630 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6633 CFLAGS
="$save_CFLAGS"
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6636 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6637 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6638 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6643 # Check whether --enable-werror-always was given.
6644 if test "${enable_werror_always+set}" = set; then :
6645 enableval
=$enable_werror_always;
6647 enable_werror_always
=no
6650 if test $enable_werror_always = yes; then :
6651 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6656 # The above macros do nothing if the compiler is not GCC. However, the
6657 # Makefile has more goo to add other flags, so these variables are used
6658 # to enable warnings only for GCC.
6661 if test "x$GCC" = "xyes"; then
6662 warn_cflags
='$(GCC_WARN_CFLAGS)'
6663 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6668 # Disable exceptions and RTTI if building with g++
6670 save_CFLAGS
="$CFLAGS"
6671 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6672 # Do the check with the no- prefix removed since gcc silently
6673 # accepts any -Wno-* option on purpose
6674 case $real_option in
6675 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6676 *) option
=$real_option ;;
6678 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6681 $as_echo_n "checking whether $CC supports $option... " >&6; }
6682 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6683 $as_echo_n "(cached) " >&6
6686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6697 if ac_fn_c_try_compile
"$LINENO"; then :
6698 eval "$as_acx_Woption=yes"
6700 eval "$as_acx_Woption=no"
6702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6705 eval ac_res
=\$
$as_acx_Woption
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6707 $as_echo "$ac_res" >&6; }
6708 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6709 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6712 CFLAGS
="$save_CFLAGS"
6715 # Enable expensive internal checks
6717 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6721 # Check whether --enable-checking was given.
6722 if test "${enable_checking+set}" = set; then :
6723 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6726 # Determine the default checks.
6727 if test x
$is_release = x
; then
6728 ac_checking_flags
=yes
6730 ac_checking_flags
=release
6734 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6735 for check
in release
$ac_checking_flags
6738 # these set all the flags to specific states
6739 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6740 ac_fold_checking
= ; ac_gc_checking
=1 ;
6741 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6742 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6743 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6744 ac_types_checking
=1 ;;
6745 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6746 ac_fold_checking
= ; ac_gc_checking
= ;
6747 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6748 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6749 ac_tree_checking
= ; ac_valgrind_checking
= ;
6750 ac_types_checking
= ;;
6751 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6752 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6753 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6754 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6755 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6756 ac_types_checking
=1 ;;
6757 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6758 ac_fold_checking
= ; ac_gc_checking
= ;
6759 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6760 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6761 ac_tree_checking
= ; ac_valgrind_checking
= ;
6762 ac_types_checking
= ;;
6763 # these enable particular checks
6764 assert
) ac_assert_checking
=1 ;;
6765 df
) ac_df_checking
=1 ;;
6766 fold) ac_fold_checking
=1 ;;
6767 gc
) ac_gc_checking
=1 ;;
6768 gcac
) ac_gc_always_collect
=1 ;;
6769 gimple
) ac_gimple_checking
=1 ;;
6770 misc
) ac_checking
=1 ;;
6771 rtl
) ac_rtl_checking
=1 ;;
6772 rtlflag
) ac_rtlflag_checking
=1 ;;
6773 runtime
) ac_runtime_checking
=1 ;;
6774 tree
) ac_tree_checking
=1 ;;
6775 types
) ac_types_checking
=1 ;;
6776 valgrind
) ac_valgrind_checking
=1 ;;
6777 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6783 if test x
$ac_checking != x
; then
6785 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6787 nocommon_flag
=-fno-common
6790 if test x
$ac_df_checking != x
; then
6792 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6795 if test x
$ac_assert_checking != x
; then
6797 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6800 if test x
$ac_gimple_checking != x
; then
6802 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6806 if test x
$ac_runtime_checking != x
; then
6808 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6811 if test x
$ac_tree_checking != x
; then
6813 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6815 TREEBROWSER
=tree-browser.o
6818 if test x
$ac_types_checking != x
; then
6820 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6825 if test x
$ac_rtl_checking != x
; then
6827 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6830 if test x
$ac_rtlflag_checking != x
; then
6832 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6835 if test x
$ac_gc_checking != x
; then
6837 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6840 if test x
$ac_gc_always_collect != x
; then
6842 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6845 if test x
$ac_fold_checking != x
; then
6847 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6850 valgrind_path_defines
=
6853 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6854 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6862 if test x
$ac_valgrind_checking != x
; then
6863 # It is certainly possible that there's valgrind but no valgrind.h.
6864 # GCC relies on making annotations so we must have both.
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6866 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 #include <valgrind/memcheck.h>
6870 #ifndef VALGRIND_DISCARD
6871 #error VALGRIND_DISCARD not defined
6874 if ac_fn_c_try_cpp
"$LINENO"; then :
6875 gcc_cv_header_valgrind_memcheck_h
=yes
6877 gcc_cv_header_valgrind_memcheck_h
=no
6879 rm -f conftest.err conftest.
$ac_ext
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6881 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6883 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 #include <memcheck.h>
6887 #ifndef VALGRIND_DISCARD
6888 #error VALGRIND_DISCARD not defined
6891 if ac_fn_c_try_cpp
"$LINENO"; then :
6892 gcc_cv_header_memcheck_h
=yes
6894 gcc_cv_header_memcheck_h
=no
6896 rm -f conftest.err conftest.
$ac_ext
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6898 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6900 # Prepare PATH_SEPARATOR.
6901 # The user is always right.
6902 if test "${PATH_SEPARATOR+set}" != set; then
6903 echo "#! /bin/sh" >conf$$.sh
6904 echo "exit 0" >>conf$$.sh
6906 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6914 # Find out how to test for executable files. Don't use a zero-byte file,
6915 # as systems may use methods other than mode bits to determine executability.
6916 cat >conf$$.
file <<_ASEOF
6920 chmod +x conf$$.
file
6921 if test -x conf$$.
file >/dev
/null
2>&1; then
6922 ac_executable_p
="test -x"
6924 ac_executable_p
="test -f"
6928 # Extract the first word of "valgrind", so it can be a program name with args.
6929 set dummy valgrind
; ac_word
=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6935 case "$valgrind_path" in
6937 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6940 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6941 for ac_dir
in $PATH; do
6943 test -z "$ac_dir" && ac_dir
=.
6944 for ac_exec_ext
in '' $ac_executable_extensions; do
6945 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6946 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6947 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6957 valgrind_path
="$ac_cv_path_valgrind_path"
6958 if test -n "$valgrind_path"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6960 $as_echo "$valgrind_path" >&6; }
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6966 if test "x$valgrind_path" = "x" \
6967 ||
(test $have_valgrind_h = no \
6968 && test $gcc_cv_header_memcheck_h = no \
6969 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6970 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6972 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6973 valgrind_command
="$valgrind_path -q"
6975 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6977 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6979 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6982 if test $gcc_cv_header_memcheck_h = yes; then
6984 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6991 # Enable code coverage collection
6992 # Check whether --enable-coverage was given.
6993 if test "${enable_coverage+set}" = set; then :
6994 enableval
=$enable_coverage; case "${enableval}" in
6996 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6999 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7002 # a.k.a. --disable-coverage
7006 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7015 # Check whether --enable-gather-detailed-mem-stats was given.
7016 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7017 enableval
=$enable_gather_detailed_mem_stats;
7019 enable_gather_detailed_mem_stats
=no
7022 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7024 cat >>confdefs.h
<<_ACEOF
7025 #define GATHER_STATISTICS $gather_stats
7029 # -------------------------------
7030 # Miscenalleous configure options
7031 # -------------------------------
7035 # Check whether --with-stabs was given.
7036 if test "${with_stabs+set}" = set; then :
7037 withval
=$with_stabs; stabs
="$with_stabs"
7043 # Determine whether or not multilibs are enabled.
7044 # Check whether --enable-multilib was given.
7045 if test "${enable_multilib+set}" = set; then :
7046 enableval
=$enable_multilib;
7053 # Determine whether or not multiarch is enabled.
7054 # Check whether --enable-multiarch was given.
7055 if test "${enable_multiarch+set}" = set; then :
7056 enableval
=$enable_multiarch; case "${enableval}" in
7057 yes|no|auto
) enable_multiarch
=$enableval;;
7058 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7061 enable_multiarch
=auto
7064 if test x
${enable_multiarch} = xauto
; then
7065 if test x
${with_native_system_header_dir} != x
; then
7066 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7069 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7070 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7075 $as_echo_n "checking for multiarch configuration... " >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7078 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7080 # needed for setting the multiarch name for soft-float/hard-float ABIs
7084 # Enable __cxa_atexit for C++.
7085 # Check whether --enable-__cxa_atexit was given.
7086 if test "${enable___cxa_atexit+set}" = set; then :
7087 enableval
=$enable___cxa_atexit;
7091 # Enable C extension for decimal float if target supports it.
7093 # Check whether --enable-decimal-float was given.
7094 if test "${enable_decimal_float+set}" = set; then :
7095 enableval
=$enable_decimal_float;
7096 case $enable_decimal_float in
7097 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7098 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7099 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7105 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7107 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7108 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7109 enable_decimal_float
=yes
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7113 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7114 enable_decimal_float
=no
7121 # x86's use BID format instead of DPD
7122 case x
$enable_decimal_float in
7125 i?
86*-*-* | x86_64
*-*-*)
7126 enable_decimal_float
=bid
7129 enable_decimal_float
=dpd
7132 default_decimal_float
=$enable_decimal_float
7135 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7136 # dependency on libdecnumber.
7137 default_decimal_float
=dpd
7144 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7146 cat >>confdefs.h
<<_ACEOF
7147 #define ENABLE_DECIMAL_FLOAT $dfp
7151 # Use default_decimal_float for dependency.
7152 enable_decimal_float
=$default_decimal_float
7154 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7156 cat >>confdefs.h
<<_ACEOF
7157 #define ENABLE_DECIMAL_BID_FORMAT $bid
7161 # Enable C extension for fixed-point arithmetic.
7162 # Check whether --enable-fixed-point was given.
7163 if test "${enable_fixed_point+set}" = set; then :
7164 enableval
=$enable_fixed_point;
7169 enable_fixed_point
=yes
7173 enable_fixed_point
=yes
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7177 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7178 enable_fixed_point
=no
7186 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7188 cat >>confdefs.h
<<_ACEOF
7189 #define ENABLE_FIXED_POINT $fixedpoint
7194 # Pass with no value to take the default
7195 # Pass with a value to specify a thread package
7196 # Check whether --enable-threads was given.
7197 if test "${enable_threads+set}" = set; then :
7198 enableval
=$enable_threads;
7204 # Check whether --enable-tls was given.
7205 if test "${enable_tls+set}" = set; then :
7206 enableval
=$enable_tls;
7209 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7210 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7218 # Check whether --enable-objc-gc was given.
7219 if test "${enable_objc_gc+set}" = set; then :
7220 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7230 case ,${enable_languages}, in
7231 *,upc
,) lang_upc_enabled
="yes" ;;
7236 # Check whether --with-upc-pts was given.
7237 if test "${with_upc_pts+set}" = set; then :
7238 withval
=$with_upc_pts;
7239 if test x
"$lang_upc_enabled" = x
"yes" ; then
7241 packed|struct
) upc_pts_rep
="$withval" ;;
7242 *) as_fn_error
"$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts is allowed only when UPC
7247 support has been enabled" >&5
7248 $as_echo "$as_me: WARNING: --with-upc-pts is allowed only when UPC
7249 support has been enabled" >&2;}
7254 if test x
"$lang_upc_enabled" = x
"yes" ; then
7255 upc_pts_rep
="packed"
7262 # Perl is required for checking pts representation
7263 # Extract the first word of "perl", so it can be a program name with args.
7264 set dummy perl
; ac_word
=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_prog_PERL+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7270 if test -n "$PERL"; then
7271 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir
=.
7278 for ac_exec_ext
in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_prog_PERL
="perl"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 PERL
=$ac_cv_prog_PERL
7291 if test -n "$PERL"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7293 $as_echo "$PERL" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7302 # Check whether --with-upc-pts-vaddr-order was given.
7303 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7304 withval
=$with_upc_pts_vaddr_order;
7305 if test x
"$lang_upc_enabled" = x
"yes" ; then
7306 upc_vaddr_order
="$withval"
7307 case "$upc_vaddr_order" in
7309 *) as_fn_error
"$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7313 support has been enabled" >&5
7314 $as_echo "$as_me: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7315 support has been enabled" >&2;}
7320 if test x
"$lang_upc_enabled" = x
"yes" ; then
7321 # Default UPC PTS vaddr order to "first"
7322 upc_vaddr_order
="first"
7329 # Check whether --with-upc-packed-bits was given.
7330 if test "${with_upc_packed_bits+set}" = set; then :
7331 withval
=$with_upc_packed_bits;
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-packed-bits is deprecated.
7333 Use --with-upc-pts-packed-bits instead." >&5
7334 $as_echo "$as_me: WARNING: --with-upc-packed-bits is deprecated.
7335 Use --with-upc-pts-packed-bits instead." >&2;}
7336 with_upc_pts_packed_bits
="$withval";
7342 # Check whether --with-upc-pts-packed-bits was given.
7343 if test "${with_upc_pts_packed_bits+set}" = set; then :
7344 withval
=$with_upc_pts_packed_bits;
7345 if test x
"$lang_upc_enabled" = x
"yes" ; then
7346 if test x
"$upc_pts_rep" = x
"packed"; then
7347 UPC_PTS_PHASE_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7348 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7349 UPC_PTS_THREAD_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7350 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7351 UPC_PTS_VADDR_SIZE
=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7352 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7353 if test -z "$UPC_PTS_PHASE_SIZE" \
7354 ||
test -z "$UPC_PTS_THREAD_SIZE" \
7355 ||
test -z "$UPC_PTS_VADDR_SIZE" ; then
7356 as_fn_error
"--with-upc-pts-packed-bits=phase,thread,vaddr requires
7357 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7360 as_fn_error
"--with-upc-pts-packed-bits is only supported for
7361 the packed UPC pointer-to-shared representation" "$LINENO" 5
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7365 support has been enabled" >&5
7366 $as_echo "$as_me: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7367 support has been enabled" >&2;}
7372 if test x
"$lang_upc_enabled" = x
"yes" ; then
7373 # GNU UPC packed pointer representation defaults.
7376 UPC_PTS_PHASE_SIZE
=20
7377 UPC_PTS_THREAD_SIZE
=12
7378 UPC_PTS_VADDR_SIZE
=32
7381 UPC_PTS_PHASE_SIZE
=20
7382 UPC_PTS_THREAD_SIZE
=10
7383 UPC_PTS_VADDR_SIZE
=34
7390 # Check whether --enable-upc-link-script was given.
7391 if test "${enable_upc_link_script+set}" = set; then :
7392 enableval
=$enable_upc_link_script;
7393 if test x
"$lang_upc_enabled" = x
"yes" ; then
7397 as_fn_error
"--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-upc-link-script is allowed only when UPC
7401 support has been enabled" >&5
7402 $as_echo "$as_me: WARNING: --enable-upc-link-script is allowed only when UPC
7403 support has been enabled" >&2;}
7408 if test x
"$lang_upc_enabled" = x
"yes" ; then
7409 enable_upc_link_script
=no
7415 if test x
"$lang_upc_enabled" = x
"yes" ; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7417 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7419 $as_echo "$upc_pts_rep" >&6; }
7420 case "$upc_pts_rep" in
7423 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7428 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7433 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7435 $as_echo "$upc_vaddr_order" >&6; }
7436 if test x
"$upc_vaddr_order" = x
"first"; then
7438 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7441 if test x
"$upc_pts_rep" = x
"packed"; then
7443 cat >>confdefs.h
<<_ACEOF
7444 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7448 cat >>confdefs.h
<<_ACEOF
7449 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7453 cat >>confdefs.h
<<_ACEOF
7454 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7458 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7460 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7461 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7462 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7465 $as_echo_n "checking for UPC link script support... " >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7467 $as_echo "$enable_upc_link_script" >&6; }
7468 if test "$enable_upc_link_script" = yes; then
7470 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7476 # Check whether --with-dwarf2 was given.
7477 if test "${with_dwarf2+set}" = set; then :
7478 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7484 # Check whether --enable-shared was given.
7485 if test "${enable_shared+set}" = set; then :
7486 enableval
=$enable_shared;
7487 case $enable_shared in
7491 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7492 for pkg
in $enableval; do
7493 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7508 # Check whether --with-native-system-header-dir was given.
7509 if test "${with_native_system_header_dir+set}" = set; then :
7510 withval
=$with_native_system_header_dir;
7511 case ${with_native_system_header_dir} in
7512 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7513 /* |
[A-Za-z
]:[\\/]*) ;;
7514 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7516 configured_native_system_header_dir
="${withval}"
7519 configured_native_system_header_dir
=
7524 # Check whether --with-build-sysroot was given.
7525 if test "${with_build_sysroot+set}" = set; then :
7526 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7527 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7530 SYSROOT_CFLAGS_FOR_TARGET
=
7535 if test "x$prefix" = xNONE
; then
7536 test_prefix
=/usr
/local
7540 if test "x$exec_prefix" = xNONE
; then
7541 test_exec_prefix
=$test_prefix
7543 test_exec_prefix
=$exec_prefix
7547 # Check whether --with-sysroot was given.
7548 if test "${with_sysroot+set}" = set; then :
7549 withval
=$with_sysroot;
7550 case ${with_sysroot} in
7551 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7552 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7555 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7556 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7558 case ${TARGET_SYSTEM_ROOT} in
7559 "${test_prefix}"|
"${test_prefix}/"*|\
7560 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7561 '${prefix}'|
'${prefix}/'*|\
7562 '${exec_prefix}'|
'${exec_prefix}/'*)
7563 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7564 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7571 TARGET_SYSTEM_ROOT_DEFINE
=
7572 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7581 # Check whether --with-specs was given.
7582 if test "${with_specs+set}" = set; then :
7583 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7593 # Check whether --with-pkgversion was given.
7594 if test "${with_pkgversion+set}" = set; then :
7595 withval
=$with_pkgversion; case "$withval" in
7596 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7598 *) PKGVERSION
="($withval) " ;;
7609 # Check whether --with-bugurl was given.
7610 if test "${with_bugurl+set}" = set; then :
7611 withval
=$with_bugurl; case "$withval" in
7612 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7615 *) BUGURL
="$withval"
7619 BUGURL
="http://gccupc.org/bugs"
7629 REPORT_BUGS_TO
="<$BUGURL>"
7630 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7637 # Sanity check enable_languages in case someone does not run the toplevel
7638 # configure # script.
7639 # Check whether --enable-languages was given.
7640 if test "${enable_languages+set}" = set; then :
7641 enableval
=$enable_languages; case ,${enable_languages}, in
7643 # go safe -- we cannot be much sure without the toplevel
7645 # analysis of which target libs are present and usable
7649 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7654 enable_languages
=c
,${enable_languages}
7663 # Check whether --with-multilib-list was given.
7664 if test "${with_multilib_list+set}" = set; then :
7665 withval
=$with_multilib_list; :
7667 with_multilib_list
=default
7671 # -------------------------
7672 # Checks for other programs
7673 # -------------------------
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7676 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7678 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7679 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7680 $as_echo_n "(cached) " >&6
7682 cat >conftest.
make <<\_ACEOF
7685 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7688 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7690 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7692 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7696 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7698 $as_echo "yes" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 SET_MAKE
="MAKE=${MAKE-make}"
7707 # Find some useful tools
7708 for ac_prog
in gawk mawk nawk
awk
7710 # Extract the first word of "$ac_prog", so it can be a program name with args.
7711 set dummy
$ac_prog; ac_word
=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_AWK+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7717 if test -n "$AWK"; then
7718 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir
=.
7725 for ac_exec_ext
in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_AWK
="$ac_prog"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 if test -n "$AWK"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7740 $as_echo "$AWK" >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7747 test -n "$AWK" && break
7750 # We need awk to create options.c and options.h.
7751 # Bail out if it's missing.
7753 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7757 $as_echo_n "checking whether ln -s works... " >&6; }
7758 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7761 rm -f conftestdata_t
7762 echo >conftestdata_f
7763 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7765 gcc_cv_prog_LN_S
="ln -s"
7767 if ln conftestdata_f conftestdata_t
2>/dev
/null
7771 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7773 gcc_cv_prog_LN_S
="cp -p"
7779 rm -f conftestdata_f conftestdata_t
7782 LN_S
="$gcc_cv_prog_LN_S"
7783 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7785 $as_echo "yes" >&6; }
7787 if test "$gcc_cv_prog_LN_S" = "ln"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7789 $as_echo "no, using ln" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7792 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7797 $as_echo_n "checking whether ln works... " >&6; }
7798 if test "${acx_cv_prog_LN+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7801 rm -f conftestdata_t
7802 echo >conftestdata_f
7803 if ln conftestdata_f conftestdata_t
2>/dev
/null
7809 rm -f conftestdata_f conftestdata_t
7812 if test $acx_cv_prog_LN = no
; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7815 $as_echo "no, using $LN" >&6; }
7817 LN
="$acx_cv_prog_LN"
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7819 $as_echo "yes" >&6; }
7822 if test -n "$ac_tool_prefix"; then
7823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7824 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7830 if test -n "$RANLIB"; then
7831 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7837 test -z "$as_dir" && as_dir
=.
7838 for ac_exec_ext
in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 RANLIB
=$ac_cv_prog_RANLIB
7851 if test -n "$RANLIB"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7853 $as_echo "$RANLIB" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7861 if test -z "$ac_cv_prog_RANLIB"; then
7862 ac_ct_RANLIB
=$RANLIB
7863 # Extract the first word of "ranlib", so it can be a program name with args.
7864 set dummy ranlib
; ac_word
=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7870 if test -n "$ac_ct_RANLIB"; then
7871 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7877 test -z "$as_dir" && as_dir
=.
7878 for ac_exec_ext
in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7891 if test -n "$ac_ct_RANLIB"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7893 $as_echo "$ac_ct_RANLIB" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7899 if test "x$ac_ct_RANLIB" = x
; then
7902 case $cross_compiling:$ac_tool_warned in
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906 ac_tool_warned
=yes ;;
7908 RANLIB
=$ac_ct_RANLIB
7911 RANLIB
="$ac_cv_prog_RANLIB"
7917 # Find a good install program. We prefer a C program (faster),
7918 # so one script is as good as another. But avoid the broken or
7919 # incompatible versions:
7920 # SysV /etc/install, /usr/sbin/install
7921 # SunOS /usr/etc/install
7922 # IRIX /sbin/install
7924 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7925 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7926 # ./install, which can be erroneously created by make from ./install.sh.
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7928 $as_echo_n "checking for a BSD compatible install... " >&6; }
7929 if test -z "$INSTALL"; then
7930 if test "${ac_cv_path_install+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7933 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7934 for ac_dir
in $PATH; do
7935 # Account for people who put trailing slashes in PATH elements.
7937 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7939 # OSF1 and SCO ODT 3.0 have their own names for install.
7940 for ac_prog
in ginstall scoinst
install; do
7941 if test -f $ac_dir/$ac_prog; then
7942 if test $ac_prog = install &&
7943 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7944 # AIX install. It has an incompatible calling convention.
7945 # OSF/1 installbsd also uses dspmsg, but is usable.
7948 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7959 if test "${ac_cv_path_install+set}" = set; then
7960 INSTALL
="$ac_cv_path_install"
7962 # As a last resort, use the slow shell script. We don't cache a
7963 # path for INSTALL within a source directory, because that will
7964 # break other packages using the cache if that directory is
7965 # removed, or if the path is relative.
7966 INSTALL
="$ac_install_sh"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7970 $as_echo "$INSTALL" >&6; }
7972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7973 # It thinks the first close brace ends the variable substitution.
7974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7976 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7979 # See if cmp has --ignore-initial.
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7981 $as_echo_n "checking for cmp's capabilities... " >&6; }
7982 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7987 gcc_cv_prog_cmp_skip
=slowcompare
7988 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7989 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7992 gcc_cv_prog_cmp_skip
=gnucompare
7995 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7996 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7997 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8000 gcc_cv_prog_cmp_skip
=fastcompare
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8008 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8009 make_compare_target
=$gcc_cv_prog_cmp_skip
8013 # See if we have the mktemp command.
8014 # Extract the first word of "mktemp", so it can be a program name with args.
8015 set dummy mktemp
; ac_word
=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8021 if test -n "$have_mktemp_command"; then
8022 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8028 test -z "$as_dir" && as_dir
=.
8029 for ac_exec_ext
in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_prog_have_mktemp_command
="yes"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8042 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8043 if test -n "$have_mktemp_command"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8045 $as_echo "$have_mktemp_command" >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8053 # See if makeinfo has been installed and is modern enough
8054 # that we can use it.
8056 # Extract the first word of "makeinfo", so it can be a program name with args.
8057 set dummy makeinfo
; ac_word
=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8063 if test -n "$MAKEINFO"; then
8064 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir
=.
8071 for ac_exec_ext
in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_prog_MAKEINFO
="makeinfo"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 MAKEINFO
=$ac_cv_prog_MAKEINFO
8084 if test -n "$MAKEINFO"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8086 $as_echo "$MAKEINFO" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8093 if test -n "$MAKEINFO"; then
8094 # Found it, now check the version.
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8096 $as_echo_n "checking for modern makeinfo... " >&6; }
8097 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8100 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8101 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8103 case $ac_prog_version in
8104 '') gcc_cv_prog_makeinfo_modern
=no
;;
8105 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8106 *) gcc_cv_prog_makeinfo_modern
=no
;;
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8111 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8113 gcc_cv_prog_makeinfo_modern
=no
8115 if test $gcc_cv_prog_makeinfo_modern = no
; then
8116 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8119 if test $gcc_cv_prog_makeinfo_modern = no
; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8121 *** Makeinfo is missing or too old.
8122 *** Info documentation will not be built." >&5
8123 $as_echo "$as_me: WARNING:
8124 *** Makeinfo is missing or too old.
8125 *** Info documentation will not be built." >&2;}
8132 # Is pod2man recent enough to regenerate manpages?
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8134 $as_echo_n "checking for recent Pod::Man... " >&6; }
8135 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137 $as_echo "yes" >&6; }
8138 GENERATED_MANPAGES
=generated-manpages
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8146 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8151 # Extract the first word of "$ac_prog", so it can be a program name with args.
8152 set dummy
$ac_prog; ac_word
=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_prog_FLEX+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8158 if test -n "$FLEX"; then
8159 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8165 test -z "$as_dir" && as_dir
=.
8166 for ac_exec_ext
in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_FLEX
="$ac_prog"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 FLEX
=$ac_cv_prog_FLEX
8179 if test -n "$FLEX"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8181 $as_echo "$FLEX" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8188 test -n "$FLEX" && break
8190 test -n "$FLEX" || FLEX
="$MISSING flex"
8194 for ac_prog
in bison
8196 # Extract the first word of "$ac_prog", so it can be a program name with args.
8197 set dummy
$ac_prog; ac_word
=$2
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 $as_echo_n "checking for $ac_word... " >&6; }
8200 if test "${ac_cv_prog_BISON+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
8203 if test -n "$BISON"; then
8204 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8210 test -z "$as_dir" && as_dir
=.
8211 for ac_exec_ext
in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_prog_BISON
="$ac_prog"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 BISON
=$ac_cv_prog_BISON
8224 if test -n "$BISON"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8226 $as_echo "$BISON" >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8233 test -n "$BISON" && break
8235 test -n "$BISON" || BISON
="$MISSING bison"
8238 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8239 # check for build == host before using them.
8242 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8243 && test -d ..
/binutils
; then
8244 NM
='${objdir}/../binutils/nm-new'
8246 # Extract the first word of "nm", so it can be a program name with args.
8247 set dummy nm
; ac_word
=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if test "${ac_cv_prog_NM+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8253 if test -n "$NM"; then
8254 ac_cv_prog_NM
="$NM" # Let the user override the test.
8256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8260 test -z "$as_dir" && as_dir
=.
8261 for ac_exec_ext
in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8275 if test -n "$NM"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8277 $as_echo "$NM" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8287 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8288 && test -d ..
/binutils
; then
8289 AR
='${objdir}/../binutils/ar'
8291 # Extract the first word of "ar", so it can be a program name with args.
8292 set dummy
ar; ac_word
=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_prog_AR+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8298 if test -n "$AR"; then
8299 ac_cv_prog_AR
="$AR" # Let the user override the test.
8301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8305 test -z "$as_dir" && as_dir
=.
8306 for ac_exec_ext
in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8320 if test -n "$AR"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8322 $as_echo "$AR" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8332 # --------------------
8333 # Checks for C headers
8334 # --------------------
8336 # Need to reject headers which give warnings, so that the -Werror bootstrap
8337 # works later. *sigh* This needs to come before all header checks.
8339 ac_c_preproc_warn_flag
=yes
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8342 $as_echo_n "checking for ANSI C header files... " >&6; }
8343 if test "${ac_cv_header_stdc+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8361 if ac_fn_c_try_compile
"$LINENO"; then :
8362 ac_cv_header_stdc
=yes
8364 ac_cv_header_stdc
=no
8366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8368 if test $ac_cv_header_stdc = yes; then
8369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8376 $EGREP "memchr" >/dev
/null
2>&1; then :
8379 ac_cv_header_stdc
=no
8385 if test $ac_cv_header_stdc = yes; then
8386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8393 $EGREP "free" >/dev
/null
2>&1; then :
8396 ac_cv_header_stdc
=no
8402 if test $ac_cv_header_stdc = yes; then
8403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8404 if test "$cross_compiling" = yes; then :
8407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8411 #if ((' ' & 0x0FF) == 0x020)
8412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8415 # define ISLOWER(c) \
8416 (('a' <= (c) && (c) <= 'i') \
8417 || ('j' <= (c) && (c) <= 'r') \
8418 || ('s' <= (c) && (c) <= 'z'))
8419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8427 for (i = 0; i < 256; i++)
8428 if (XOR (islower (i), ISLOWER (i))
8429 || toupper (i) != TOUPPER (i))
8434 if ac_fn_c_try_run
"$LINENO"; then :
8437 ac_cv_header_stdc
=no
8439 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8440 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8446 $as_echo "$ac_cv_header_stdc" >&6; }
8447 if test $ac_cv_header_stdc = yes; then
8449 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8454 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8455 if test "${ac_cv_header_time+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <sys/types.h>
8461 #include <sys/time.h>
8467 if ((struct tm *) 0)
8473 if ac_fn_c_try_compile
"$LINENO"; then :
8474 ac_cv_header_time
=yes
8476 ac_cv_header_time
=no
8478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8481 $as_echo "$ac_cv_header_time" >&6; }
8482 if test $ac_cv_header_time = yes; then
8484 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8489 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8490 if test "${gcc_cv_header_string+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8496 #include <strings.h>
8505 if ac_fn_c_try_compile
"$LINENO"; then :
8506 gcc_cv_header_string
=yes
8508 gcc_cv_header_string
=no
8510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8513 $as_echo "$gcc_cv_header_string" >&6; }
8514 if test $gcc_cv_header_string = yes; then
8516 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8521 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8522 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
8525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 #include <sys/types.h>
8528 #include <sys/wait.h>
8530 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8533 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8541 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8546 if ac_fn_c_try_compile
"$LINENO"; then :
8547 ac_cv_header_sys_wait_h
=yes
8549 ac_cv_header_sys_wait_h
=no
8551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8554 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8555 if test $ac_cv_header_sys_wait_h = yes; then
8557 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8562 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8563 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 #include <sys/types.h>
8569 #include <termios.h>
8575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8576 $EGREP "yes" >/dev
/null
2>&1; then :
8577 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8579 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8585 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8587 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8589 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8590 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8591 $as_echo_n "(cached) " >&6
8593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 #include <sys/types.h>
8596 #include <sys/ioctl.h>
8602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8603 $EGREP "yes" >/dev
/null
2>&1; then :
8604 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8606 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8612 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8614 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8616 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8621 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8622 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8623 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8624 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8626 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8627 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8628 eval as_val
=\$
$as_ac_Header
8629 if test "x$as_val" = x
""yes; then :
8630 cat >>confdefs.h
<<_ACEOF
8631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8638 # Check for thread headers.
8639 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8640 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8646 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8647 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8654 # These tests can't be done till we know if we have limits.h.
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8656 $as_echo_n "checking for CHAR_BIT... " >&6; }
8657 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #ifdef HAVE_LIMITS_H
8669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8670 $EGREP "found" >/dev
/null
2>&1; then :
8671 gcc_cv_decl_char_bit
=yes
8673 gcc_cv_decl_char_bit
=no
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8680 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8681 if test $gcc_cv_decl_char_bit = no
; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8683 $as_echo_n "checking number of bits in a byte... " >&6; }
8684 if test "${gcc_cv_c_nbby+set}" = set; then :
8685 $as_echo_n "(cached) " >&6
8689 while test $i -lt 65; do
8690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8697 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8698 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8704 if ac_fn_c_try_compile
"$LINENO"; then :
8705 gcc_cv_c_nbby
=$i; break
8707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8710 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8714 $as_echo "$gcc_cv_c_nbby" >&6; }
8715 if test $gcc_cv_c_nbby = failed
; then
8716 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8719 cat >>confdefs.h
<<_ACEOF
8720 #define CHAR_BIT $gcc_cv_c_nbby
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8726 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8727 if test "${ac_cv_c_bigendian+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8730 ac_cv_c_bigendian
=unknown
8731 # See if we're dealing with a universal compiler.
8732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8734 #ifndef __APPLE_CC__
8735 not a universal capable compiler
8740 if ac_fn_c_try_compile
"$LINENO"; then :
8742 # Check for potential -arch flags. It is not universal unless
8743 # there are at least two -arch flags with different values.
8746 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8747 if test -n "$ac_prev"; then
8749 i?
86 | x86_64 | ppc | ppc64
)
8750 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8753 ac_cv_c_bigendian
=universal
8759 elif test "x$ac_word" = "x-arch"; then
8764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8765 if test $ac_cv_c_bigendian = unknown
; then
8766 # See if sys/param.h defines the BYTE_ORDER macro.
8767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 #include <sys/types.h>
8770 #include <sys/param.h>
8775 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8776 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8785 if ac_fn_c_try_compile
"$LINENO"; then :
8786 # It does; now see whether it defined to BIG_ENDIAN or not.
8787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <sys/types.h>
8790 #include <sys/param.h>
8795 #if BYTE_ORDER != BIG_ENDIAN
8803 if ac_fn_c_try_compile
"$LINENO"; then :
8804 ac_cv_c_bigendian
=yes
8806 ac_cv_c_bigendian
=no
8808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8812 if test $ac_cv_c_bigendian = unknown
; then
8813 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8821 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8829 if ac_fn_c_try_compile
"$LINENO"; then :
8830 # It does; now see whether it defined to _BIG_ENDIAN or not.
8831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8846 if ac_fn_c_try_compile
"$LINENO"; then :
8847 ac_cv_c_bigendian
=yes
8849 ac_cv_c_bigendian
=no
8851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8855 if test $ac_cv_c_bigendian = unknown
; then
8856 # Compile a test program.
8857 if test "$cross_compiling" = yes; then :
8858 # Try to guess by grepping values from an object file.
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 short int ascii_mm[] =
8862 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8863 short int ascii_ii[] =
8864 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8865 int use_ascii (int i) {
8866 return ascii_mm[i] + ascii_ii[i];
8868 short int ebcdic_ii[] =
8869 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8870 short int ebcdic_mm[] =
8871 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8872 int use_ebcdic (int i) {
8873 return ebcdic_mm[i] + ebcdic_ii[i];
8880 return use_ascii (foo) == use_ebcdic (foo);
8885 if ac_fn_c_try_compile
"$LINENO"; then :
8886 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8887 ac_cv_c_bigendian
=yes
8889 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8890 if test "$ac_cv_c_bigendian" = unknown
; then
8891 ac_cv_c_bigendian
=no
8893 # finding both strings is unlikely to happen, but who knows?
8894 ac_cv_c_bigendian
=unknown
8898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 $ac_includes_default
8907 /* Are we little or big endian? From Harbison&Steele. */
8911 char c[sizeof (long int)];
8914 return u.c[sizeof (long int) - 1] == 1;
8920 if ac_fn_c_try_run
"$LINENO"; then :
8921 ac_cv_c_bigendian
=no
8923 ac_cv_c_bigendian
=yes
8925 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8926 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8932 $as_echo "$ac_cv_c_bigendian" >&6; }
8933 case $ac_cv_c_bigendian in #(
8935 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8941 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8945 as_fn_error
"unknown endianness
8946 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8950 # ----------------------
8951 # Checks for C++ headers
8952 # ----------------------
8955 ac_cpp
='$CXXCPP $CPPFLAGS'
8956 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8960 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8961 if test -z "$CXXCPP"; then
8962 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8965 # Double quotes because CXXCPP needs to be expanded
8966 for CXXCPP
in "$CXX -E" "/lib/cpp"
8969 for ac_cxx_preproc_warn_flag
in '' yes
8971 # Use a header file that comes with gcc, so configuring glibc
8972 # with a fresh cross-compiler works.
8973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8974 # <limits.h> exists even on freestanding compilers.
8975 # On the NeXT, cc -E runs the code through the compiler's parser,
8976 # not just through cpp. "Syntax error" is here to catch this case.
8977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8980 # include <limits.h>
8982 # include <assert.h>
8986 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8989 # Broken: fails on valid input.
8992 rm -f conftest.err conftest.
$ac_ext
8994 # OK, works on sane cases. Now check whether nonexistent headers
8995 # can be detected and how.
8996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 #include <ac_nonexistent.h>
9000 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9001 # Broken: success on invalid input.
9004 # Passes both tests.
9008 rm -f conftest.err conftest.
$ac_ext
9011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9012 rm -f conftest.err conftest.
$ac_ext
9013 if $ac_preproc_ok; then :
9018 ac_cv_prog_CXXCPP
=$CXXCPP
9021 CXXCPP
=$ac_cv_prog_CXXCPP
9023 ac_cv_prog_CXXCPP
=$CXXCPP
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9026 $as_echo "$CXXCPP" >&6; }
9028 for ac_cxx_preproc_warn_flag
in '' yes
9030 # Use a header file that comes with gcc, so configuring glibc
9031 # with a fresh cross-compiler works.
9032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9033 # <limits.h> exists even on freestanding compilers.
9034 # On the NeXT, cc -E runs the code through the compiler's parser,
9035 # not just through cpp. "Syntax error" is here to catch this case.
9036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9039 # include <limits.h>
9041 # include <assert.h>
9045 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9048 # Broken: fails on valid input.
9051 rm -f conftest.err conftest.
$ac_ext
9053 # OK, works on sane cases. Now check whether nonexistent headers
9054 # can be detected and how.
9055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 #include <ac_nonexistent.h>
9059 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9060 # Broken: success on invalid input.
9063 # Passes both tests.
9067 rm -f conftest.err conftest.
$ac_ext
9070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9071 rm -f conftest.err conftest.
$ac_ext
9072 if $ac_preproc_ok; then :
9075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9078 See \`config.log' for more details." >&5
9079 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9080 See \`config.log' for more details." >&2;}; }
9084 ac_cpp
='$CPP $CPPFLAGS'
9085 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9086 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9087 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9091 ac_cpp
='$CXXCPP $CPPFLAGS'
9092 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9099 for ac_header
in unordered_map
9101 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9102 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9103 cat >>confdefs.h
<<_ACEOF
9104 #define HAVE_UNORDERED_MAP 1
9110 for ac_header
in tr1/unordered_map
9112 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9113 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9114 cat >>confdefs.h
<<_ACEOF
9115 #define HAVE_TR1_UNORDERED_MAP 1
9121 for ac_header
in ext
/hash_map
9123 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9124 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9125 cat >>confdefs.h
<<_ACEOF
9126 #define HAVE_EXT_HASH_MAP 1
9134 ac_cpp
='$CPP $CPPFLAGS'
9135 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9136 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9137 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9145 # These libraries may be used by collect2.
9146 # We may need a special search path to get them linked.
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9148 $as_echo_n "checking for collect2 libraries... " >&6; }
9149 if test "${gcc_cv_collect2_libs+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9153 for libs
in '' -lld -lmld \
9154 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9155 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9161 /* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
9176 if ac_fn_c_try_link
"$LINENO"; then :
9177 gcc_cv_collect2_libs
="$libs"; break
9179 rm -f core conftest.err conftest.
$ac_objext \
9180 conftest
$ac_exeext conftest.
$ac_ext
9183 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9186 $as_echo "$gcc_cv_collect2_libs" >&6; }
9187 case $gcc_cv_collect2_libs in
9189 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9193 # When building Ada code on Alpha, we need exc_resume which is usually in
9194 # -lexc. So test for it.
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9198 $as_echo_n "checking for library containing exc_resume... " >&6; }
9199 if test "${ac_cv_search_exc_resume+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9202 ac_func_search_save_LIBS
=$LIBS
9203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9206 /* Override any GCC internal prototype to avoid an error.
9207 Use char because int might match the return type of a GCC
9208 builtin and then its argument prototype would still apply. */
9216 return exc_resume ();
9221 for ac_lib
in '' exc
; do
9222 if test -z "$ac_lib"; then
9223 ac_res
="none required"
9226 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9228 if ac_fn_c_try_link
"$LINENO"; then :
9229 ac_cv_search_exc_resume
=$ac_res
9231 rm -f core conftest.err conftest.
$ac_objext \
9233 if test "${ac_cv_search_exc_resume+set}" = set; then :
9237 if test "${ac_cv_search_exc_resume+set}" = set; then :
9240 ac_cv_search_exc_resume
=no
9243 LIBS
=$ac_func_search_save_LIBS
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9246 $as_echo "$ac_cv_search_exc_resume" >&6; }
9247 ac_res
=$ac_cv_search_exc_resume
9248 if test "$ac_res" != no
; then :
9249 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9257 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9261 $as_echo_n "checking for library containing kstat_open... " >&6; }
9262 if test "${ac_cv_search_kstat_open+set}" = set; then :
9263 $as_echo_n "(cached) " >&6
9265 ac_func_search_save_LIBS
=$LIBS
9266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9269 /* Override any GCC internal prototype to avoid an error.
9270 Use char because int might match the return type of a GCC
9271 builtin and then its argument prototype would still apply. */
9279 return kstat_open ();
9284 for ac_lib
in '' kstat
; do
9285 if test -z "$ac_lib"; then
9286 ac_res
="none required"
9289 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9291 if ac_fn_c_try_link
"$LINENO"; then :
9292 ac_cv_search_kstat_open
=$ac_res
9294 rm -f core conftest.err conftest.
$ac_objext \
9296 if test "${ac_cv_search_kstat_open+set}" = set; then :
9300 if test "${ac_cv_search_kstat_open+set}" = set; then :
9303 ac_cv_search_kstat_open
=no
9306 LIBS
=$ac_func_search_save_LIBS
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9309 $as_echo "$ac_cv_search_kstat_open" >&6; }
9310 ac_res
=$ac_cv_search_kstat_open
9311 if test "$ac_res" != no
; then :
9312 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9316 EXTRA_GCC_LIBS
="$LIBS"
9320 # Some systems put ldexp and frexp in libm instead of libc; assume
9321 # they're both in the same place. jcf-dump needs them.
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9325 $as_echo_n "checking for library containing ldexp... " >&6; }
9326 if test "${ac_cv_search_ldexp+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9329 ac_func_search_save_LIBS
=$LIBS
9330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9333 /* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
9348 for ac_lib
in '' m
; do
9349 if test -z "$ac_lib"; then
9350 ac_res
="none required"
9353 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9355 if ac_fn_c_try_link
"$LINENO"; then :
9356 ac_cv_search_ldexp
=$ac_res
9358 rm -f core conftest.err conftest.
$ac_objext \
9360 if test "${ac_cv_search_ldexp+set}" = set; then :
9364 if test "${ac_cv_search_ldexp+set}" = set; then :
9367 ac_cv_search_ldexp
=no
9370 LIBS
=$ac_func_search_save_LIBS
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9373 $as_echo "$ac_cv_search_ldexp" >&6; }
9374 ac_res
=$ac_cv_search_ldexp
9375 if test "$ac_res" != no
; then :
9376 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9384 # Use <inttypes.h> only if it exists,
9385 # doesn't clash with <sys/types.h>, and declares intmax_t.
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9387 $as_echo_n "checking for inttypes.h... " >&6; }
9388 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9389 $as_echo_n "(cached) " >&6
9391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 #include <sys/types.h>
9394 #include <inttypes.h>
9403 if ac_fn_c_try_compile
"$LINENO"; then :
9404 gcc_cv_header_inttypes_h
=yes
9406 gcc_cv_header_inttypes_h
=no
9408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9412 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9413 if test $gcc_cv_header_inttypes_h = yes; then
9415 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9421 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9422 sysconf strsignal getrusage nl_langinfo \
9423 gettimeofday mbstowcs wcswidth mmap setlocale \
9424 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
9426 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9427 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9428 eval as_val
=\$
$as_ac_var
9429 if test "x$as_val" = x
""yes; then :
9430 cat >>confdefs.h
<<_ACEOF
9431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9438 if test x
$ac_cv_func_mbstowcs = xyes
; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9440 $as_echo_n "checking whether mbstowcs works... " >&6; }
9441 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9444 if test "$cross_compiling" = yes; then :
9445 gcc_cv_func_mbstowcs_works
=yes
9447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9456 if ac_fn_c_try_run
"$LINENO"; then :
9457 gcc_cv_func_mbstowcs_works
=yes
9459 gcc_cv_func_mbstowcs_works
=no
9461 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9462 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9467 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9468 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9470 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9475 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9476 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9480 cat >>confdefs.h
<<_ACEOF
9486 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9487 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9491 cat >>confdefs.h
<<_ACEOF
9492 #define caddr_t char *
9499 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9500 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9501 gcc_header_sys_mman_h
=yes
9503 gcc_header_sys_mman_h
=no
9506 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9507 if test "x$ac_cv_func_mmap" = x
""yes; then :
9513 if test "$gcc_header_sys_mman_h" != yes \
9514 ||
test "$gcc_func_mmap" != yes; then
9515 gcc_cv_func_mmap_file
=no
9516 gcc_cv_func_mmap_dev_zero
=no
9517 gcc_cv_func_mmap_anon
=no
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9520 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9521 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9524 # Add a system to this blacklist if
9525 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9526 # memory area containing the same data that you'd get if you applied
9527 # read() to the same fd. The only system known to have a problem here
9528 # is VMS, where text files have record structure.
9531 gcc_cv_func_mmap_file
=no
;;
9533 gcc_cv_func_mmap_file
=yes;;
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9537 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9539 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9540 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9541 $as_echo_n "(cached) " >&6
9543 # Add a system to this blacklist if it has mmap() but /dev/zero
9544 # does not exist, or if mmapping /dev/zero does not give anonymous
9545 # zeroed pages with both the following properties:
9546 # 1. If you map N consecutive pages in with one call, and then
9547 # unmap any subset of those pages, the pages that were not
9548 # explicitly unmapped remain accessible.
9549 # 2. If you map two adjacent blocks of memory and then unmap them
9550 # both at once, they must both go away.
9551 # Systems known to be in this category are Windows (all variants),
9554 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9555 gcc_cv_func_mmap_dev_zero
=no
;;
9557 gcc_cv_func_mmap_dev_zero
=yes;;
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9561 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9563 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9565 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9566 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 #include <sys/types.h>
9572 #include <sys/mman.h>
9575 #ifndef MAP_ANONYMOUS
9576 #define MAP_ANONYMOUS MAP_ANON
9582 int n = MAP_ANONYMOUS;
9587 if ac_fn_c_try_compile
"$LINENO"; then :
9588 gcc_cv_decl_map_anon
=yes
9590 gcc_cv_decl_map_anon
=no
9592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9595 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9597 if test $gcc_cv_decl_map_anon = no
; then
9598 gcc_cv_func_mmap_anon
=no
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9601 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9602 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9605 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9606 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9607 # doesn't give anonymous zeroed pages with the same properties listed
9608 # above for use of /dev/zero.
9609 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9611 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9612 gcc_cv_func_mmap_anon
=no
;;
9614 gcc_cv_func_mmap_anon
=yes;;
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9618 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9622 if test $gcc_cv_func_mmap_file = yes; then
9624 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9627 if test $gcc_cv_func_mmap_dev_zero = yes; then
9629 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9632 if test $gcc_cv_func_mmap_anon = yes; then
9634 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9641 # Under VMS, vfork works very differently than on Unix. The standard test
9642 # won't work, and it isn't easily adaptable. It makes more sense to
9644 ac_cv_func_vfork_works
=yes
9647 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9648 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9652 cat >>confdefs.h
<<_ACEOF
9658 for ac_header
in vfork.h
9660 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9661 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9662 cat >>confdefs.h
<<_ACEOF
9663 #define HAVE_VFORK_H 1
9669 for ac_func
in fork vfork
9671 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9672 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9673 eval as_val
=\$
$as_ac_var
9674 if test "x$as_val" = x
""yes; then :
9675 cat >>confdefs.h
<<_ACEOF
9676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9682 if test "x$ac_cv_func_fork" = xyes
; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9684 $as_echo_n "checking for working fork... " >&6; }
9685 if test "${ac_cv_func_fork_works+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9688 if test "$cross_compiling" = yes; then :
9689 ac_cv_func_fork_works
=cross
9691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 $ac_includes_default
9698 /* By Ruediger Kuhlmann. */
9705 if ac_fn_c_try_run
"$LINENO"; then :
9706 ac_cv_func_fork_works
=yes
9708 ac_cv_func_fork_works
=no
9710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9716 $as_echo "$ac_cv_func_fork_works" >&6; }
9719 ac_cv_func_fork_works
=$ac_cv_func_fork
9721 if test "x$ac_cv_func_fork_works" = xcross
; then
9723 *-*-amigaos* |
*-*-msdosdjgpp*)
9724 # Override, as these systems have only a dummy fork() stub
9725 ac_cv_func_fork_works
=no
9728 ac_cv_func_fork_works
=yes
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9732 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9734 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9735 if test "x$ac_cv_func_vfork" = xyes
; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9737 $as_echo_n "checking for working vfork... " >&6; }
9738 if test "${ac_cv_func_vfork_works+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9741 if test "$cross_compiling" = yes; then :
9742 ac_cv_func_vfork_works
=cross
9744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 /* Thanks to Paul Eggert for this test. */
9747 $ac_includes_default
9748 #include <sys/wait.h>
9752 /* On some sparc systems, changes by the child to local and incoming
9753 argument registers are propagated back to the parent. The compiler
9754 is told about this with #include <vfork.h>, but some compilers
9755 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9756 static variable whose address is put into a register that is
9757 clobbered by the vfork. */
9760 sparc_address_test (int arg)
9762 sparc_address_test (arg) int arg;
9783 pid_t parent = getpid ();
9786 sparc_address_test (0);
9791 /* Here is another test for sparc vfork register problems. This
9792 test uses lots of local variables, at least as many local
9793 variables as main has allocated so far including compiler
9794 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9795 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9796 reuse the register of parent for one of the local variables,
9797 since it will think that parent can't possibly be used any more
9798 in this routine. Assigning to the local variable will thus
9799 munge parent in the parent process. */
9801 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9802 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9803 /* Convince the compiler that p..p7 are live; otherwise, it might
9804 use the same hardware register for all 8 local variables. */
9805 if (p != p1 || p != p2 || p != p3 || p != p4
9806 || p != p5 || p != p6 || p != p7)
9809 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9810 from child file descriptors. If the child closes a descriptor
9811 before it execs or exits, this munges the parent's descriptor
9812 as well. Test for this by closing stdout in the child. */
9813 _exit(close(fileno(stdout)) != 0);
9818 while (wait(&status) != child)
9821 /* Was there some problem with vforking? */
9824 /* Did the child fail? (This shouldn't happen.) */
9827 /* Did the vfork/compiler bug occur? */
9828 || parent != getpid()
9830 /* Did the file descriptor bug occur? */
9831 || fstat(fileno(stdout), &st) != 0
9836 if ac_fn_c_try_run
"$LINENO"; then :
9837 ac_cv_func_vfork_works
=yes
9839 ac_cv_func_vfork_works
=no
9841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9847 $as_echo "$ac_cv_func_vfork_works" >&6; }
9850 if test "x$ac_cv_func_fork_works" = xcross
; then
9851 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9853 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9856 if test "x$ac_cv_func_vfork_works" = xyes
; then
9858 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9862 $as_echo "#define vfork fork" >>confdefs.h
9865 if test "x$ac_cv_func_fork_works" = xyes
; then
9867 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9872 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9873 # iconv() prototype.
9875 ac_cpp
='$CXXCPP $CPPFLAGS'
9876 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9877 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9878 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9881 if test "X$prefix" = "XNONE"; then
9882 acl_final_prefix
="$ac_default_prefix"
9884 acl_final_prefix
="$prefix"
9886 if test "X$exec_prefix" = "XNONE"; then
9887 acl_final_exec_prefix
='${prefix}'
9889 acl_final_exec_prefix
="$exec_prefix"
9891 acl_save_prefix
="$prefix"
9892 prefix
="$acl_final_prefix"
9893 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9894 prefix
="$acl_save_prefix"
9897 # Check whether --with-gnu-ld was given.
9898 if test "${with_gnu_ld+set}" = set; then :
9899 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9904 # Prepare PATH_SEPARATOR.
9905 # The user is always right.
9906 if test "${PATH_SEPARATOR+set}" != set; then
9907 echo "#! /bin/sh" >conf$$.sh
9908 echo "exit 0" >>conf$$.sh
9910 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9918 if test "$GCC" = yes; then
9919 # Check if gcc -print-prog-name=ld gives a path.
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9921 $as_echo_n "checking for ld used by GCC... " >&6; }
9924 # gcc leaves a trailing carriage return which upsets mingw
9925 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9927 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9930 # Accept absolute paths.
9931 [\\/]* |
[A-Za-z
]:[\\/]*)
9932 re_direlt
='/[^/][^/]*/\.\./'
9933 # Canonicalize the path of ld
9934 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9935 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9936 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9938 test -z "$LD" && LD
="$ac_prog"
9941 # If it fails, then pretend we aren't using GCC.
9945 # If it is relative, then search for the first ld in PATH.
9949 elif test "$with_gnu_ld" = yes; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9951 $as_echo_n "checking for GNU ld... " >&6; }
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9954 $as_echo_n "checking for non-GNU ld... " >&6; }
9956 if test "${acl_cv_path_LD+set}" = set; then :
9957 $as_echo_n "(cached) " >&6
9959 if test -z "$LD"; then
9960 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9961 for ac_dir
in $PATH; do
9962 test -z "$ac_dir" && ac_dir
=.
9963 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9964 acl_cv_path_LD
="$ac_dir/$ac_prog"
9965 # Check to see if the program is GNU ld. I'd rather use --version,
9966 # but apparently some GNU ld's only accept -v.
9967 # Break only if it was the GNU/non-GNU ld that we prefer.
9968 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9969 test "$with_gnu_ld" != no
&& break
9971 test "$with_gnu_ld" != yes && break
9977 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9981 LD
="$acl_cv_path_LD"
9982 if test -n "$LD"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9984 $as_echo "$LD" >&6; }
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9989 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9991 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9992 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9995 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9996 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9997 acl_cv_prog_gnu_ld
=yes
9999 acl_cv_prog_gnu_ld
=no
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10003 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10004 with_gnu_ld
=$acl_cv_prog_gnu_ld
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10009 $as_echo_n "checking for shared library run path origin... " >&6; }
10010 if test "${acl_cv_rpath+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10014 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10015 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10017 rm -f .
/conftest.sh
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10022 $as_echo "$acl_cv_rpath" >&6; }
10024 libext
="$acl_cv_libext"
10025 shlibext
="$acl_cv_shlibext"
10026 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10027 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10028 hardcode_direct
="$acl_cv_hardcode_direct"
10029 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10030 # Check whether --enable-rpath was given.
10031 if test "${enable_rpath+set}" = set; then :
10032 enableval
=$enable_rpath; :
10046 acl_save_prefix
="$prefix"
10047 prefix
="$acl_final_prefix"
10048 acl_save_exec_prefix
="$exec_prefix"
10049 exec_prefix
="$acl_final_exec_prefix"
10051 eval additional_includedir
=\"$includedir\"
10052 eval additional_libdir
=\"$libdir\"
10054 exec_prefix
="$acl_save_exec_prefix"
10055 prefix
="$acl_save_prefix"
10058 # Check whether --with-libiconv-prefix was given.
10059 if test "${with_libiconv_prefix+set}" = set; then :
10060 withval
=$with_libiconv_prefix;
10061 if test "X$withval" = "Xno"; then
10064 if test "X$withval" = "X"; then
10066 acl_save_prefix
="$prefix"
10067 prefix
="$acl_final_prefix"
10068 acl_save_exec_prefix
="$exec_prefix"
10069 exec_prefix
="$acl_final_exec_prefix"
10071 eval additional_includedir
=\"$includedir\"
10072 eval additional_libdir
=\"$libdir\"
10074 exec_prefix
="$acl_save_exec_prefix"
10075 prefix
="$acl_save_prefix"
10078 additional_includedir
="$withval/include"
10079 additional_libdir
="$withval/lib"
10090 names_already_handled
=
10091 names_next_round
='iconv '
10092 while test -n "$names_next_round"; do
10093 names_this_round
="$names_next_round"
10095 for name
in $names_this_round; do
10097 for n
in $names_already_handled; do
10098 if test "$n" = "$name"; then
10099 already_handled
=yes
10103 if test -z "$already_handled"; then
10104 names_already_handled
="$names_already_handled $name"
10105 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10106 eval value
=\"\
$HAVE_LIB$uppername\"
10107 if test -n "$value"; then
10108 if test "$value" = yes; then
10109 eval value
=\"\
$LIB$uppername\"
10110 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10111 eval value
=\"\
$LTLIB$uppername\"
10112 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10121 if test $use_additional = yes; then
10122 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10123 found_dir
="$additional_libdir"
10124 found_so
="$additional_libdir/lib$name.$shlibext"
10125 if test -f "$additional_libdir/lib$name.la"; then
10126 found_la
="$additional_libdir/lib$name.la"
10129 if test -f "$additional_libdir/lib$name.$libext"; then
10130 found_dir
="$additional_libdir"
10131 found_a
="$additional_libdir/lib$name.$libext"
10132 if test -f "$additional_libdir/lib$name.la"; then
10133 found_la
="$additional_libdir/lib$name.la"
10138 if test "X$found_dir" = "X"; then
10139 for x
in $LDFLAGS $LTLIBICONV; do
10141 acl_save_prefix
="$prefix"
10142 prefix
="$acl_final_prefix"
10143 acl_save_exec_prefix
="$exec_prefix"
10144 exec_prefix
="$acl_final_exec_prefix"
10146 exec_prefix
="$acl_save_exec_prefix"
10147 prefix
="$acl_save_prefix"
10151 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10152 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10154 found_so
="$dir/lib$name.$shlibext"
10155 if test -f "$dir/lib$name.la"; then
10156 found_la
="$dir/lib$name.la"
10159 if test -f "$dir/lib$name.$libext"; then
10161 found_a
="$dir/lib$name.$libext"
10162 if test -f "$dir/lib$name.la"; then
10163 found_la
="$dir/lib$name.la"
10169 if test "X$found_dir" != "X"; then
10174 if test "X$found_dir" != "X"; then
10175 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10176 if test "X$found_so" != "X"; then
10177 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10178 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10181 for x
in $ltrpathdirs; do
10182 if test "X$x" = "X$found_dir"; then
10187 if test -z "$haveit"; then
10188 ltrpathdirs
="$ltrpathdirs $found_dir"
10190 if test "$hardcode_direct" = yes; then
10191 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10193 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10194 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10196 for x
in $rpathdirs; do
10197 if test "X$x" = "X$found_dir"; then
10202 if test -z "$haveit"; then
10203 rpathdirs
="$rpathdirs $found_dir"
10207 for x
in $LDFLAGS $LIBICONV; do
10209 acl_save_prefix
="$prefix"
10210 prefix
="$acl_final_prefix"
10211 acl_save_exec_prefix
="$exec_prefix"
10212 exec_prefix
="$acl_final_exec_prefix"
10214 exec_prefix
="$acl_save_exec_prefix"
10215 prefix
="$acl_save_prefix"
10217 if test "X$x" = "X-L$found_dir"; then
10222 if test -z "$haveit"; then
10223 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10225 if test "$hardcode_minus_L" != no
; then
10226 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10228 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10234 if test "X$found_a" != "X"; then
10235 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10237 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10240 additional_includedir
=
10241 case "$found_dir" in
10243 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10244 additional_includedir
="$basedir/include"
10247 if test "X$additional_includedir" != "X"; then
10248 if test "X$additional_includedir" != "X/usr/include"; then
10250 if test "X$additional_includedir" = "X/usr/local/include"; then
10251 if test -n "$GCC"; then
10253 linux
*) haveit
=yes;;
10257 if test -z "$haveit"; then
10258 for x
in $CPPFLAGS $INCICONV; 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-I$additional_includedir"; then
10273 if test -z "$haveit"; then
10274 if test -d "$additional_includedir"; then
10275 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10281 if test -n "$found_la"; then
10282 save_libdir
="$libdir"
10283 case "$found_la" in
10284 */* |
*\\*) .
"$found_la" ;;
10285 *) .
"./$found_la" ;;
10287 libdir
="$save_libdir"
10288 for dep
in $dependency_libs; do
10291 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10292 if test "X$additional_libdir" != "X/usr/lib"; then
10294 if test "X$additional_libdir" = "X/usr/local/lib"; then
10295 if test -n "$GCC"; then
10297 linux
*) haveit
=yes;;
10301 if test -z "$haveit"; then
10303 for x
in $LDFLAGS $LIBICONV; do
10305 acl_save_prefix
="$prefix"
10306 prefix
="$acl_final_prefix"
10307 acl_save_exec_prefix
="$exec_prefix"
10308 exec_prefix
="$acl_final_exec_prefix"
10310 exec_prefix
="$acl_save_exec_prefix"
10311 prefix
="$acl_save_prefix"
10313 if test "X$x" = "X-L$additional_libdir"; then
10318 if test -z "$haveit"; then
10319 if test -d "$additional_libdir"; then
10320 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10324 for x
in $LDFLAGS $LTLIBICONV; do
10326 acl_save_prefix
="$prefix"
10327 prefix
="$acl_final_prefix"
10328 acl_save_exec_prefix
="$exec_prefix"
10329 exec_prefix
="$acl_final_exec_prefix"
10331 exec_prefix
="$acl_save_exec_prefix"
10332 prefix
="$acl_save_prefix"
10334 if test "X$x" = "X-L$additional_libdir"; then
10339 if test -z "$haveit"; then
10340 if test -d "$additional_libdir"; then
10341 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10348 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10349 if test "$enable_rpath" != no
; then
10351 for x
in $rpathdirs; do
10352 if test "X$x" = "X$dir"; then
10357 if test -z "$haveit"; then
10358 rpathdirs
="$rpathdirs $dir"
10361 for x
in $ltrpathdirs; do
10362 if test "X$x" = "X$dir"; then
10367 if test -z "$haveit"; then
10368 ltrpathdirs
="$ltrpathdirs $dir"
10373 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10376 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10379 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10380 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10386 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10387 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10393 if test "X$rpathdirs" != "X"; then
10394 if test -n "$hardcode_libdir_separator"; then
10396 for found_dir
in $rpathdirs; do
10397 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10399 acl_save_libdir
="$libdir"
10401 eval flag
=\"$hardcode_libdir_flag_spec\"
10402 libdir
="$acl_save_libdir"
10403 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10405 for found_dir
in $rpathdirs; do
10406 acl_save_libdir
="$libdir"
10407 libdir
="$found_dir"
10408 eval flag
=\"$hardcode_libdir_flag_spec\"
10409 libdir
="$acl_save_libdir"
10410 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10414 if test "X$ltrpathdirs" != "X"; then
10415 for found_dir
in $ltrpathdirs; do
10416 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10426 am_save_CPPFLAGS
="$CPPFLAGS"
10428 for element
in $INCICONV; do
10430 for x
in $CPPFLAGS; do
10432 acl_save_prefix
="$prefix"
10433 prefix
="$acl_final_prefix"
10434 acl_save_exec_prefix
="$exec_prefix"
10435 exec_prefix
="$acl_final_exec_prefix"
10437 exec_prefix
="$acl_save_exec_prefix"
10438 prefix
="$acl_save_prefix"
10440 if test "X$x" = "X$element"; then
10445 if test -z "$haveit"; then
10446 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10452 $as_echo_n "checking for iconv... " >&6; }
10453 if test "${am_cv_func_iconv+set}" = set; then :
10454 $as_echo_n "(cached) " >&6
10457 am_cv_func_iconv
="no, consider installing GNU libiconv"
10459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 #include <stdlib.h>
10466 iconv_t cd = iconv_open("","");
10467 iconv(cd,NULL,NULL,NULL,NULL);
10473 if ac_fn_cxx_try_link
"$LINENO"; then :
10474 am_cv_func_iconv
=yes
10476 rm -f core conftest.err conftest.
$ac_objext \
10477 conftest
$ac_exeext conftest.
$ac_ext
10478 if test "$am_cv_func_iconv" != yes; then
10479 am_save_LIBS
="$LIBS"
10480 LIBS
="$LIBS $LIBICONV"
10481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 #include <stdlib.h>
10488 iconv_t cd = iconv_open("","");
10489 iconv(cd,NULL,NULL,NULL,NULL);
10495 if ac_fn_cxx_try_link
"$LINENO"; then :
10496 am_cv_lib_iconv
=yes
10497 am_cv_func_iconv
=yes
10499 rm -f core conftest.err conftest.
$ac_objext \
10500 conftest
$ac_exeext conftest.
$ac_ext
10501 LIBS
="$am_save_LIBS"
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10506 $as_echo "$am_cv_func_iconv" >&6; }
10507 if test "$am_cv_func_iconv" = yes; then
10509 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10512 if test "$am_cv_lib_iconv" = yes; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10514 $as_echo_n "checking how to link with libiconv... " >&6; }
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10516 $as_echo "$LIBICONV" >&6; }
10518 CPPFLAGS
="$am_save_CPPFLAGS"
10525 if test "$am_cv_func_iconv" = yes; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10527 $as_echo_n "checking for iconv declaration... " >&6; }
10528 if test "${am_cv_proto_iconv+set}" = set; then :
10529 $as_echo_n "(cached) " >&6
10532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10535 #include <stdlib.h>
10541 #if defined(__STDC__) || defined(__cplusplus)
10542 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10555 if ac_fn_cxx_try_compile
"$LINENO"; then :
10556 am_cv_proto_iconv_arg1
=""
10558 am_cv_proto_iconv_arg1
="const"
10560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10561 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);"
10564 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10566 }$am_cv_proto_iconv" >&5
10568 }$am_cv_proto_iconv" >&6; }
10570 cat >>confdefs.h
<<_ACEOF
10571 #define ICONV_CONST $am_cv_proto_iconv_arg1
10577 ac_cpp
='$CPP $CPPFLAGS'
10578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10583 # Until we have in-tree GNU iconv:
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10589 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10590 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10591 $as_echo_n "(cached) " >&6
10593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10595 #include <locale.h>
10604 if ac_fn_c_try_link
"$LINENO"; then :
10605 am_cv_val_LC_MESSAGES
=yes
10607 am_cv_val_LC_MESSAGES
=no
10609 rm -f core conftest.err conftest.
$ac_objext \
10610 conftest
$ac_exeext conftest.
$ac_ext
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10613 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10614 if test $am_cv_val_LC_MESSAGES = yes; then
10616 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10623 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10624 if test "${am_cv_langinfo_codeset+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 #include <langinfo.h>
10633 char* cs = nl_langinfo(CODESET);
10638 if ac_fn_c_try_link
"$LINENO"; then :
10639 am_cv_langinfo_codeset
=yes
10641 am_cv_langinfo_codeset
=no
10643 rm -f core conftest.err conftest.
$ac_objext \
10644 conftest
$ac_exeext conftest.
$ac_ext
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10648 $as_echo "$am_cv_langinfo_codeset" >&6; }
10649 if test $am_cv_langinfo_codeset = yes; then
10651 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10656 # We will need to find libiberty.h and ansidecl.h
10657 saved_CFLAGS
="$CFLAGS"
10658 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10659 saved_CXXFLAGS
="$CXXFLAGS"
10660 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10661 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10662 strsignal strstr stpcpy strverscmp \
10663 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10664 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
10666 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10668 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10669 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10670 $as_echo_n "(cached) " >&6
10672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 #define $ac_tr_decl 1
10677 #include "ansidecl.h"
10678 #include "system.h"
10684 char *(*pfn) = (char *(*)) $ac_func ;
10690 if ac_fn_c_try_compile
"$LINENO"; then :
10691 eval "gcc_cv_have_decl_$ac_func=yes"
10693 eval "gcc_cv_have_decl_$ac_func=no"
10695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10698 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10701 #define $ac_tr_decl 1
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10707 #define $ac_tr_decl 0
10715 for ac_func
in getrlimit setrlimit getrusage
10717 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10719 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10720 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10721 $as_echo_n "(cached) " >&6
10723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10726 #define $ac_tr_decl 1
10728 #include "ansidecl.h"
10729 #include "system.h"
10730 #ifdef HAVE_SYS_RESOURCE_H
10731 #include <sys/resource.h>
10739 char *(*pfn) = (char *(*)) $ac_func ;
10745 if ac_fn_c_try_compile
"$LINENO"; then :
10746 eval "gcc_cv_have_decl_$ac_func=yes"
10748 eval "gcc_cv_have_decl_$ac_func=no"
10750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10753 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10755 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10756 #define $ac_tr_decl 1
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10762 #define $ac_tr_decl 0
10770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10773 #include "ansidecl.h"
10774 #include "system.h"
10775 #ifdef HAVE_SYS_RESOURCE_H
10776 #include <sys/resource.h>
10787 if ac_fn_c_try_compile
"$LINENO"; then :
10791 $as_echo "#define rlim_t long" >>confdefs.h
10794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10796 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10797 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10798 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10799 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10800 for ac_func
in ldgetname
10802 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10804 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10805 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10806 $as_echo_n "(cached) " >&6
10808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10811 #define $ac_tr_decl 1
10813 #include "ansidecl.h"
10814 #include "system.h"
10815 #ifdef HAVE_LDFCN_H
10826 char *(*pfn) = (char *(*)) $ac_func ;
10832 if ac_fn_c_try_compile
"$LINENO"; then :
10833 eval "gcc_cv_have_decl_$ac_func=yes"
10835 eval "gcc_cv_have_decl_$ac_func=no"
10837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10840 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10843 #define $ac_tr_decl 1
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10849 #define $ac_tr_decl 0
10857 for ac_func
in times
10859 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10861 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10862 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10863 $as_echo_n "(cached) " >&6
10865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10868 #define $ac_tr_decl 1
10870 #include "ansidecl.h"
10871 #include "system.h"
10872 #ifdef HAVE_SYS_TIMES_H
10873 #include <sys/times.h>
10881 char *(*pfn) = (char *(*)) $ac_func ;
10887 if ac_fn_c_try_compile
"$LINENO"; then :
10888 eval "gcc_cv_have_decl_$ac_func=yes"
10890 eval "gcc_cv_have_decl_$ac_func=no"
10892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10895 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10897 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10898 #define $ac_tr_decl 1
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10904 #define $ac_tr_decl 0
10912 for ac_func
in sigaltstack
10914 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10916 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10917 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10918 $as_echo_n "(cached) " >&6
10920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h. */
10923 #define $ac_tr_decl 1
10925 #include "ansidecl.h"
10926 #include "system.h"
10927 #include <signal.h>
10934 char *(*pfn) = (char *(*)) $ac_func ;
10940 if ac_fn_c_try_compile
"$LINENO"; then :
10941 eval "gcc_cv_have_decl_$ac_func=yes"
10943 eval "gcc_cv_have_decl_$ac_func=no"
10945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10948 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10950 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10951 #define $ac_tr_decl 1
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10957 #define $ac_tr_decl 0
10965 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10968 ac_cpp
='$CXXCPP $CPPFLAGS'
10969 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10970 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10971 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10973 for ac_func
in madvise
10975 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10977 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10978 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10979 $as_echo_n "(cached) " >&6
10981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10984 #define $ac_tr_decl 1
10986 #include "ansidecl.h"
10987 #include "system.h"
10994 char *(*pfn) = (char *(*)) $ac_func ;
11000 if ac_fn_cxx_try_compile
"$LINENO"; then :
11001 eval "gcc_cv_have_decl_$ac_func=yes"
11003 eval "gcc_cv_have_decl_$ac_func=no"
11005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11008 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11010 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11011 #define $ac_tr_decl 1
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11017 #define $ac_tr_decl 0
11025 ac_cpp
='$CPP $CPPFLAGS'
11026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11031 # More time-related stuff.
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11033 $as_echo_n "checking for struct tms... " >&6; }
11034 if test "${ac_cv_struct_tms+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11041 #include "ansidecl.h"
11042 #include "system.h"
11043 #ifdef HAVE_SYS_TIMES_H
11044 #include <sys/times.h>
11055 if ac_fn_c_try_compile
"$LINENO"; then :
11056 ac_cv_struct_tms
=yes
11058 ac_cv_struct_tms
=no
11060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11063 $as_echo "$ac_cv_struct_tms" >&6; }
11064 if test $ac_cv_struct_tms = yes; then
11066 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11070 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11071 # revisit after autoconf 2.50.
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11073 $as_echo_n "checking for clock_t... " >&6; }
11074 if test "${gcc_cv_type_clock_t+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11081 #include "ansidecl.h"
11082 #include "system.h"
11092 if ac_fn_c_try_compile
"$LINENO"; then :
11093 gcc_cv_type_clock_t
=yes
11095 gcc_cv_type_clock_t
=no
11097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11100 $as_echo "$gcc_cv_type_clock_t" >&6; }
11101 if test $gcc_cv_type_clock_t = yes; then
11103 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11107 # Check if F_SETLKW is supported by fcntl.
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11109 $as_echo_n "checking for F_SETLKW... " >&6; }
11110 if test "${ac_cv_f_setlkw+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11127 return fcntl (1, F_SETLKW, &fl);
11132 if ac_fn_c_try_compile
"$LINENO"; then :
11137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11140 $as_echo "$ac_cv_f_setlkw" >&6; }
11141 if test $ac_cv_f_setlkw = yes; then
11143 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11147 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11148 CFLAGS
="$saved_CFLAGS"
11149 CXXFLAGS
="$saved_CXXFLAGS"
11151 # mkdir takes a single argument on some systems.
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11153 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11154 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
11157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 #include <sys/types.h>
11161 #ifdef HAVE_SYS_STAT_H
11162 # include <sys/stat.h>
11164 #ifdef HAVE_UNISTD_H
11165 # include <unistd.h>
11167 #ifdef HAVE_DIRECT_H
11168 # include <direct.h>
11178 if ac_fn_c_try_compile
"$LINENO"; then :
11179 gcc_cv_mkdir_takes_one_arg
=no
11181 gcc_cv_mkdir_takes_one_arg
=yes
11183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11186 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11187 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11189 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11200 # With Setjmp/Longjmp based exception handling.
11201 # Check whether --enable-sjlj-exceptions was given.
11202 if test "${enable_sjlj_exceptions+set}" = set; then :
11203 enableval
=$enable_sjlj_exceptions; case $target in
11205 if test $enableval != yes; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11207 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11212 force_sjlj_exceptions
=yes
11216 force_sjlj_exceptions
=yes
11220 force_sjlj_exceptions
=no
11225 if test $force_sjlj_exceptions = yes; then
11226 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11228 cat >>confdefs.h
<<_ACEOF
11229 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11234 # --------------------------------------------------------
11235 # Build, host, and target specific configuration fragments
11236 # --------------------------------------------------------
11238 # Collect build-machine-specific information.
11239 .
${srcdir}/config.build
11241 # Collect host-machine-specific information.
11242 .
${srcdir}/config.
host
11246 # Collect target-machine-specific information.
11247 .
${srcdir}/config.gcc
11249 extra_objs
="${host_extra_objs} ${extra_objs}"
11250 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11252 # Default the target-machine variables that were not explicitly set.
11253 if test x
"$tm_file" = x
11254 then tm_file
=$cpu_type/$cpu_type.h
; fi
11256 if test x
"$extra_headers" = x
11257 then extra_headers
=; fi
11259 if test x
$md_file = x
11260 then md_file
=$cpu_type/$cpu_type.md
; fi
11262 if test x
$out_file = x
11263 then out_file
=$cpu_type/$cpu_type.c
; fi
11265 if test x
"$tmake_file" = x
11266 then tmake_file
=$cpu_type/t-
$cpu_type
11269 # Support --enable-initfini-array.
11270 if test x
$enable_initfini_array != xno
; then
11271 tm_file
="${tm_file} initfini-array.h"
11274 if test x
"$dwarf2" = xyes
11275 then tm_file
="$tm_file tm-dwarf2.h"
11278 # Say what files are being used for the output code and MD file.
11279 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11280 echo "Using \`$srcdir/config/$md_file' as machine description file."
11282 # If any of the xm_file variables contain nonexistent files, warn
11283 # about them and drop them.
11286 for x
in $build_xm_file; do
11287 if test -f $srcdir/config
/$x
11289 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11290 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11293 build_xm_file
="$bx"
11296 for x
in $host_xm_file; do
11297 if test -f $srcdir/config
/$x
11299 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11300 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11306 for x
in $xm_file; do
11307 if test -f $srcdir/config
/$x
11309 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11310 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11316 for f
in $tm_file; do
11319 if test $count = ax
; then
11320 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11322 echo "Using the following target machine macro files:"
11323 for f
in $tm_file; do
11324 echo " $srcdir/config/$f"
11328 if test x
$need_64bit_hwint = xyes
; then
11330 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11334 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11336 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11340 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11342 cat >>confdefs.h
<<_ACEOF
11343 #define HAVE_GNU_LD $gnu_ld_bool
11347 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11349 cat >>confdefs.h
<<_ACEOF
11350 #define HAVE_GNU_AS $gnu_as_bool
11355 for f
in $host_xm_file; do
11358 if test $count = a
; then
11360 elif test $count = ax
; then
11361 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11363 echo "Using the following host machine macro files:"
11364 for f
in $host_xm_file; do
11365 echo " $srcdir/config/$f"
11368 echo "Using ${out_host_hook_obj} for host machine hooks."
11370 if test "$host_xm_file" != "$build_xm_file"; then
11372 for f
in $build_xm_file; do
11375 if test $count = a
; then
11377 elif test $count = ax
; then
11378 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11380 echo "Using the following build machine macro files:"
11381 for f
in $build_xm_file; do
11382 echo " $srcdir/config/$f"
11387 if test -n "$configured_native_system_header_dir"; then
11388 native_system_header_dir
=$configured_native_system_header_dir
11390 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11394 powerpc
*-*-darwin*)
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11396 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11397 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11403 #include <sys/cdefs.h>
11404 #include <sys/signal.h>
11405 #include <ucontext.h>
11406 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11409 if ac_fn_c_try_compile
"$LINENO"; then :
11410 gcc_cv_mcontext_underscores
=no
11412 gcc_cv_mcontext_underscores
=yes
11414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11417 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11418 if test $gcc_cv_mcontext_underscores = yes; then
11420 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11430 # Check if a valid thread package
11431 case ${enable_threads} in
11434 target_thread_file
='single'
11438 target_thread_file
='single'
11440 aix | dce | lynx | mipssde | posix | rtems | \
11441 single | tpf | vxworks | win32
)
11442 target_thread_file
=${enable_threads}
11445 echo "${enable_threads} is an unknown thread package" 1>&2
11450 if test x
${thread_file} = x
; then
11451 # No thread file set by target-specific clauses in config.gcc,
11452 # so use file chosen by default logic above
11453 thread_file
=${target_thread_file}
11461 if test x
$enable___cxa_atexit = xyes || \
11462 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11463 if test x
$host = x
$target; then
11465 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11466 # keyed to flag_use_cxa_atexit
11474 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11475 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11478 echo "__cxa_atexit can't be enabled on this target"
11484 # We can't check for __cxa_atexit when building a cross, so assume
11488 if test x
$use_cxa_atexit = xyes
; then
11490 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11495 # Look for a file containing extra machine modes.
11496 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11497 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11500 cat >>confdefs.h
<<_ACEOF
11501 #define EXTRA_MODES_FILE "config/$extra_modes"
11506 # Convert extra_options into a form suitable for Makefile use.
11509 for f
in $extra_options; do
11510 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11511 all_opt_files
="$all_opt_files $srcdir/config/$f"
11515 # auto-host.h is the file containing items generated by autoconf and is
11516 # the first file included by config.h.
11517 # If host=build, it is correct to have bconfig include auto-host.h
11518 # as well. If host!=build, we are in error and need to do more
11519 # work to find out the build config parameters.
11520 if test x
$host = x
$build
11522 build_auto
=auto-host.h
11524 # We create a subdir, then run autoconf in the subdir.
11525 # To prevent recursion we set host and build for the new
11526 # invocation of configure to the build for this invocation
11533 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11534 *) realsrcdir
=..
/${srcdir};;
11536 saved_CFLAGS
="${CFLAGS}"
11537 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11538 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11539 ${realsrcdir}/configure \
11540 --enable-languages=${enable_languages-all} \
11541 --target=$target_alias --host=$build_alias --build=$build_alias
11542 CFLAGS
="${saved_CFLAGS}"
11544 # We just finished tests for the build machine, so rename
11545 # the file auto-build.h in the gcc directory.
11546 mv auto-host.h ..
/auto-build.h
11549 build_auto
=auto-build.h
11553 tm_file
="${tm_file} defaults.h"
11554 tm_p_file
="${tm_p_file} tm-preds.h"
11555 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11556 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11557 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11558 # put this back in temporarily.
11559 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11565 # Compile in configure arguments.
11566 if test -f configargs.h
; then
11567 # Being re-configured.
11568 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11569 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11571 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11574 # Double all backslashes and backslash all quotes to turn
11575 # gcc_config_arguments into a C string.
11576 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11577 $gcc_config_arguments
11579 gcc_config_arguments_str
=`cat conftest.out`
11582 cat > configargs.h
<<EOF
11583 /* Generated automatically. */
11584 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11585 static const char thread_model[] = "$thread_file";
11587 static const struct {
11588 const char *name, *value;
11589 } configure_default_options[] = $configure_default_options;
11592 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11593 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11594 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11595 if test -f $srcdir/REVISION
; then
11596 gcc_REVISION
=`cat $srcdir/REVISION`
11600 cat > plugin-version.h
<<EOF
11601 #include "configargs.h"
11603 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11604 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11605 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11606 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11608 static char basever[] = "$gcc_BASEVER";
11609 static char datestamp[] = "$gcc_DATESTAMP";
11610 static char devphase[] = "$gcc_DEVPHASE";
11611 static char revision[] = "$gcc_REVISION";
11613 /* FIXME plugins: We should make the version information more precise.
11614 One way to do is to add a checksum. */
11616 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11617 devphase, revision,
11618 configuration_arguments};
11621 # Internationalization
11622 # If we haven't got the data from the intl directory,
11623 # assume NLS is disabled.
11632 if test -f ..
/intl
/config.intl
; then
11633 . ..
/intl
/config.intl
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11636 $as_echo_n "checking whether NLS is requested... " >&6; }
11637 if test x
"$USE_NLS" != xyes
; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11642 $as_echo "yes" >&6; }
11644 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11648 $as_echo_n "checking for catalogs to be installed... " >&6; }
11649 # Look for .po and .gmo files in the source directory.
11652 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11653 # If there aren't any .gmo files the shell will give us the
11654 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11656 case "$cat" in *\
**)
11659 # The quadruple backslash is collapsed to a double backslash
11660 # by the backticks, then collapsed again by the double quotes,
11661 # leaving us with one backslash in the sed expression (right
11662 # before the dot that mustn't act as a wildcard).
11663 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11664 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11665 # The user is allowed to set LINGUAS to a list of languages to
11666 # install catalogs for. If it's empty that means "all of them."
11667 if test "x$LINGUAS" = x
; then
11668 CATALOGS
="$CATALOGS $cat"
11669 XLINGUAS
="$XLINGUAS $lang"
11671 case "$LINGUAS" in *$lang*)
11672 CATALOGS
="$CATALOGS $cat"
11673 XLINGUAS
="$XLINGUAS $lang"
11678 LINGUAS
="$XLINGUAS"
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11680 $as_echo "$LINGUAS" >&6; }
11693 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11694 # -liconv on the link line twice.
11695 case "$LIBINTL" in *$LIBICONV*)
11699 # Check whether --enable-secureplt was given.
11700 if test "${enable_secureplt+set}" = set; then :
11701 enableval
=$enable_secureplt;
11705 # Check whether --enable-leading-mingw64-underscores was given.
11706 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11707 enableval
=$enable_leading_mingw64_underscores;
11710 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11712 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11716 # Check whether --enable-cld was given.
11717 if test "${enable_cld+set}" = set; then :
11718 enableval
=$enable_cld;
11724 # Check whether --enable-frame-pointer was given.
11725 if test "${enable_frame_pointer+set}" = set; then :
11726 enableval
=$enable_frame_pointer;
11730 linux
* | darwin
[8912]*)
11731 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11733 enable_frame_pointer
=no
11736 enable_frame_pointer
=yes
11743 # Windows32 Registry support for specifying GCC installation paths.
11744 # Check whether --enable-win32-registry was given.
11745 if test "${enable_win32_registry+set}" = set; then :
11746 enableval
=$enable_win32_registry;
11751 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11752 if test "x$enable_win32_registry" != xno
; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11754 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11755 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11758 ac_func_search_save_LIBS
=$LIBS
11759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11768 char RegOpenKeyExA ();
11772 return RegOpenKeyExA ();
11777 for ac_lib
in '' advapi32
; do
11778 if test -z "$ac_lib"; then
11779 ac_res
="none required"
11782 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11784 if ac_fn_c_try_link
"$LINENO"; then :
11785 ac_cv_search_RegOpenKeyExA
=$ac_res
11787 rm -f core conftest.err conftest.
$ac_objext \
11789 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11793 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11796 ac_cv_search_RegOpenKeyExA
=no
11798 rm conftest.
$ac_ext
11799 LIBS
=$ac_func_search_save_LIBS
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11802 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11803 ac_res
=$ac_cv_search_RegOpenKeyExA
11804 if test "$ac_res" != no
; then :
11805 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11808 enable_win32_registry
=no
11813 if test "x$enable_win32_registry" != xno
; then
11815 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11818 if test "x$enable_win32_registry" != xyes \
11819 && test "x$enable_win32_registry" != x
; then
11821 cat >>confdefs.h
<<_ACEOF
11822 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11830 # Get an absolute path to the GCC top-level source directory
11831 holddir
=`${PWDCMD-pwd}`
11833 topdir
=`${PWDCMD-pwd}`
11836 # Conditionalize the makefile for this host machine.
11838 for f
in ${host_xmake_file}
11840 if test -f ${srcdir}/config
/$f
11842 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11846 # Conditionalize the makefile for this target machine.
11848 for f
in ${tmake_file}
11850 if test -f ${srcdir}/config
/$f
11852 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11855 tmake_file
="${tmake_file_}"
11857 out_object_file
=`basename $out_file .c`.o
11858 common_out_object_file
=`basename $common_out_file .c`.o
11860 tm_file_list
="options.h"
11861 tm_include_list
="options.h insn-constants.h"
11862 for f
in $tm_file; do
11865 f
=`echo $f | sed 's/^..//'`
11866 tm_file_list
="${tm_file_list} $f"
11867 tm_include_list
="${tm_include_list} $f"
11870 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11871 tm_include_list
="${tm_include_list} $f"
11874 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11875 tm_include_list
="${tm_include_list} config/$f"
11882 for f
in $tm_p_file; do
11885 tm_p_file_list
="${tm_p_file_list} $f"
11886 tm_p_include_list
="${tm_p_include_list} $f"
11889 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11890 tm_p_include_list
="${tm_p_include_list} config/$f"
11896 for f
in $xm_file; do
11899 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11900 xm_include_list
="${xm_include_list} $f"
11903 xm_file_list
="${xm_file_list} $f"
11904 xm_include_list
="${xm_include_list} $f"
11907 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11908 xm_include_list
="${xm_include_list} config/$f"
11914 host_xm_include_list
=
11915 for f
in $host_xm_file; do
11918 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11919 host_xm_include_list
="${host_xm_include_list} $f"
11922 host_xm_file_list
="${host_xm_file_list} $f"
11923 host_xm_include_list
="${host_xm_include_list} $f"
11926 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11927 host_xm_include_list
="${host_xm_include_list} config/$f"
11932 build_xm_file_list
=
11933 for f
in $build_xm_file; do
11936 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11937 build_xm_include_list
="${build_xm_include_list} $f"
11939 auto-build.h | auto-host.h
)
11940 build_xm_file_list
="${build_xm_file_list} $f"
11941 build_xm_include_list
="${build_xm_include_list} $f"
11944 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11945 build_xm_include_list
="${build_xm_include_list} config/$f"
11950 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11951 # cross-compiler which does not use the native headers and libraries.
11952 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11955 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11957 if test "x$with_build_sysroot" != x
; then
11958 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11960 # This value is used, even on a native system, because
11961 # CROSS_SYSTEM_HEADER_DIR is just
11962 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11963 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11966 if test x
$host != x
$target
11968 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11970 SYSTEM_HEADER_DIR
=$build_system_header_dir
11971 case "$host","$target" in
11972 # Darwin crosses can use the host system's libraries and headers,
11973 # because of the fat library support. Of course, it must be the
11974 # same version of Darwin on both sides. Allow the user to
11975 # just say --target=foo-darwin without a version number to mean
11976 # "the version on this system".
11977 *-*-darwin*,*-*-darwin*)
11978 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11979 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11980 if test $hostos = $targetos -o $targetos = darwin
; then
11982 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11987 i?
86-*-*,x86_64-
*-* \
11988 | powerpc
*-*-*,powerpc64
*-*-*)
11989 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11994 if test "x$with_headers" = x
; then
12001 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12002 SYSTEM_HEADER_DIR
=$build_system_header_dir
12005 # If this is a cross-compiler that does not
12006 # have its own set of headers then define
12009 # If this is using newlib, without having the headers available now,
12010 # then define inhibit_libc in LIBGCC2_CFLAGS.
12011 # This prevents libgcc2 from containing any code which requires libc
12013 : ${inhibit_libc=false}
12014 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12015 test x
$with_newlib = xyes
; } &&
12016 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12021 # When building gcc with a cross-compiler, we need to adjust things so
12022 # that the generator programs are still built with the native compiler.
12023 # Also, we cannot run fixincludes.
12025 # These are the normal (build=host) settings:
12026 CC_FOR_BUILD
='$(CC)'
12027 CXX_FOR_BUILD
='$(CXX)'
12028 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12029 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12030 BUILD_LDFLAGS
='$(LDFLAGS)'
12031 STMP_FIXINC
=stmp-fixinc
12033 # And these apply if build != host, or we are generating coverage data
12034 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12036 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12037 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12040 # Expand extra_headers to include complete path.
12041 # This substitutes for lots of t-* files.
12042 extra_headers_list
=
12043 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12044 for file in ${extra_headers} ; do
12045 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12048 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12049 if test x
"$use_gcc_tgmath" = xyes
12050 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12053 # Define collect2 in Makefile.
12054 case $host_can_use_collect2 in
12056 *) collect2
='collect2$(exeext)' ;;
12060 # Add a definition of USE_COLLECT2 if system wants one.
12061 case $use_collect2 in
12062 no
) use_collect2
= ;;
12065 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12066 xm_defines
="${xm_defines} USE_COLLECT2"
12067 case $host_can_use_collect2 in
12069 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12076 cat >>confdefs.h
<<_ACEOF
12077 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12081 # ---------------------------
12082 # Assembler & linker features
12083 # ---------------------------
12085 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12086 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12087 # However when ld-new is first executed from the build tree, libtool will
12088 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12089 # to the build tree. While doing this we need to use the previous-stage
12090 # linker, or we have an infinite loop. The presence of a shell script as
12091 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12092 # the gcc/collect-ld script. So we need to know how libtool works, or
12093 # exec-tool will fail.
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12099 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12104 macro_version
='2.2.7a'
12105 macro_revision
='1.3134'
12119 ltmain
="$ac_aux_dir/ltmain.sh"
12121 # Backslashify metacharacters that are still active within
12122 # double-quoted strings.
12123 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12125 # Same as above, but do not quote variable references.
12126 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12128 # Sed substitution to delay expansion of an escaped shell variable in a
12129 # double_quote_subst'ed string.
12130 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12132 # Sed substitution to delay expansion of an escaped single quote.
12133 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12135 # Sed substitution to avoid accidental globbing in evaled expressions
12136 no_glob_subst
='s/\*/\\\*/g'
12138 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12139 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12140 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12143 $as_echo_n "checking how to print strings... " >&6; }
12144 # Test print first, because it will be a builtin if present.
12145 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12146 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12148 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12151 # Use this function as a fallback that always works.
12152 func_fallback_echo ()
12154 eval 'cat <<_LTECHO_EOF
12158 ECHO='func_fallback_echo
'
12161 # func_echo_all arg...
12162 # Invoke $ECHO with all args, space-separated.
12169 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12170 $as_echo "printf" >&6; } ;;
12171 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12172 $as_echo "print -r" >&6; } ;;
12173 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12174 $as_echo "cat" >&6; } ;;
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12191 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12192 if test "${ac_cv_path_SED+set}" = set; then :
12193 $as_echo_n "(cached) " >&6
12195 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12196 for ac_i in 1 2 3 4 5 6 7; do
12197 ac_script="$ac_script$as_nl$ac_script"
12199 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12200 { ac_script=; unset ac_script;}
12201 if test -z "$SED"; then
12202 ac_path_SED_found=false
12203 # Loop through the user's path and
test for each of PROGNAME-LIST
12204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12205 for as_dir
in $PATH
12208 test -z "$as_dir" && as_dir
=.
12209 for ac_prog
in sed gsed
; do
12210 for ac_exec_ext
in '' $ac_executable_extensions; do
12211 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12212 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12213 # Check for GNU ac_path_SED and select it if it is found.
12214 # Check for GNU $ac_path_SED
12215 case `"$ac_path_SED" --version 2>&1` in
12217 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12220 $as_echo_n 0123456789 >"conftest.in"
12223 cat "conftest.in" "conftest.in" >"conftest.tmp"
12224 mv "conftest.tmp" "conftest.in"
12225 cp "conftest.in" "conftest.nl"
12226 $as_echo '' >> "conftest.nl"
12227 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12228 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12229 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12230 if test $ac_count -gt ${ac_path_SED_max-0}; then
12231 # Best one so far, save it but keep looking for a better one
12232 ac_cv_path_SED
="$ac_path_SED"
12233 ac_path_SED_max
=$ac_count
12235 # 10*(2^10) chars as input seems more than enough
12236 test $ac_count -gt 10 && break
12238 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12241 $ac_path_SED_found && break 3
12246 if test -z "$ac_cv_path_SED"; then
12247 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12250 ac_cv_path_SED
=$SED
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12255 $as_echo "$ac_cv_path_SED" >&6; }
12256 SED
="$ac_cv_path_SED"
12259 test -z "$SED" && SED
=sed
12260 Xsed
="$SED -e 1s/^X//"
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12273 $as_echo_n "checking for fgrep... " >&6; }
12274 if test "${ac_cv_path_FGREP+set}" = set; then :
12275 $as_echo_n "(cached) " >&6
12277 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12278 then ac_cv_path_FGREP
="$GREP -F"
12280 if test -z "$FGREP"; then
12281 ac_path_FGREP_found
=false
12282 # Loop through the user's path and test for each of PROGNAME-LIST
12283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12284 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12287 test -z "$as_dir" && as_dir
=.
12288 for ac_prog
in fgrep
; do
12289 for ac_exec_ext
in '' $ac_executable_extensions; do
12290 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12291 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12292 # Check for GNU ac_path_FGREP and select it if it is found.
12293 # Check for GNU $ac_path_FGREP
12294 case `"$ac_path_FGREP" --version 2>&1` in
12296 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12299 $as_echo_n 0123456789 >"conftest.in"
12302 cat "conftest.in" "conftest.in" >"conftest.tmp"
12303 mv "conftest.tmp" "conftest.in"
12304 cp "conftest.in" "conftest.nl"
12305 $as_echo 'FGREP' >> "conftest.nl"
12306 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12307 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12308 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12309 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12310 # Best one so far, save it but keep looking for a better one
12311 ac_cv_path_FGREP
="$ac_path_FGREP"
12312 ac_path_FGREP_max
=$ac_count
12314 # 10*(2^10) chars as input seems more than enough
12315 test $ac_count -gt 10 && break
12317 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12320 $ac_path_FGREP_found && break 3
12325 if test -z "$ac_cv_path_FGREP"; then
12326 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12329 ac_cv_path_FGREP
=$FGREP
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12335 $as_echo "$ac_cv_path_FGREP" >&6; }
12336 FGREP
="$ac_cv_path_FGREP"
12339 test -z "$GREP" && GREP
=grep
12359 # Check whether --with-gnu-ld was given.
12360 if test "${with_gnu_ld+set}" = set; then :
12361 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12367 if test "$GCC" = yes; then
12368 # Check if gcc -print-prog-name=ld gives a path.
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12370 $as_echo_n "checking for ld used by $CC... " >&6; }
12373 # gcc leaves a trailing carriage return which upsets mingw
12374 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12376 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12379 # Accept absolute paths.
12381 re_direlt
='/[^/][^/]*/\.\./'
12382 # Canonicalize the pathname of ld
12383 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12384 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12385 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12387 test -z "$LD" && LD
="$ac_prog"
12390 # If it fails, then pretend we aren't using GCC.
12394 # If it is relative, then search for the first ld in PATH.
12395 with_gnu_ld
=unknown
12398 elif test "$with_gnu_ld" = yes; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12400 $as_echo_n "checking for GNU ld... " >&6; }
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12403 $as_echo_n "checking for non-GNU ld... " >&6; }
12405 if test "${lt_cv_path_LD+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12408 if test -z "$LD"; then
12409 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12410 for ac_dir
in $PATH; do
12412 test -z "$ac_dir" && ac_dir
=.
12413 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12414 lt_cv_path_LD
="$ac_dir/$ac_prog"
12415 # Check to see if the program is GNU ld. I'd rather use --version,
12416 # but apparently some variants of GNU ld only accept -v.
12417 # Break only if it was the GNU/non-GNU ld that we prefer.
12418 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12419 *GNU
* |
*'with BFD'*)
12420 test "$with_gnu_ld" != no
&& break
12423 test "$with_gnu_ld" != yes && break
12430 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12434 LD
="$lt_cv_path_LD"
12435 if test -n "$LD"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12437 $as_echo "$LD" >&6; }
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12442 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12444 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12445 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12448 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12449 case `$LD -v 2>&1 </dev/null` in
12450 *GNU
* |
*'with BFD'*)
12451 lt_cv_prog_gnu_ld
=yes
12454 lt_cv_prog_gnu_ld
=no
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12459 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12460 with_gnu_ld
=$lt_cv_prog_gnu_ld
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12471 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12472 if test "${lt_cv_path_NM+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12475 if test -n "$NM"; then
12476 # Let the user override the test.
12477 lt_cv_path_NM
="$NM"
12479 lt_nm_to_check
="${ac_tool_prefix}nm"
12480 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12481 lt_nm_to_check
="$lt_nm_to_check nm"
12483 for lt_tmp_nm
in $lt_nm_to_check; do
12484 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12485 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12487 test -z "$ac_dir" && ac_dir
=.
12488 tmp_nm
="$ac_dir/$lt_tmp_nm"
12489 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12490 # Check to see if the nm accepts a BSD-compat flag.
12491 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12492 # nm: unknown option "B" ignored
12493 # Tru64's nm complains that /dev/null is an invalid object file
12494 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12495 */dev
/null
* |
*'Invalid file or object type'*)
12496 lt_cv_path_NM
="$tmp_nm -B"
12500 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12502 lt_cv_path_NM
="$tmp_nm -p"
12506 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12507 continue # so that we can try to find one that supports BSD flags
12516 : ${lt_cv_path_NM=no}
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12520 $as_echo "$lt_cv_path_NM" >&6; }
12521 if test "$lt_cv_path_NM" != "no"; then
12522 NM
="$lt_cv_path_NM"
12524 # Didn't find any BSD compatible name lister, look for dumpbin.
12525 if test -n "$DUMPBIN"; then :
12526 # Let the user override the test.
12528 if test -n "$ac_tool_prefix"; then
12529 for ac_prog
in dumpbin
"link -dump"
12531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12532 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12538 if test -n "$DUMPBIN"; then
12539 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12542 for as_dir
in $PATH
12545 test -z "$as_dir" && as_dir
=.
12546 for ac_exec_ext
in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12548 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558 DUMPBIN
=$ac_cv_prog_DUMPBIN
12559 if test -n "$DUMPBIN"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12561 $as_echo "$DUMPBIN" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12568 test -n "$DUMPBIN" && break
12571 if test -z "$DUMPBIN"; then
12572 ac_ct_DUMPBIN
=$DUMPBIN
12573 for ac_prog
in dumpbin
"link -dump"
12575 # Extract the first word of "$ac_prog", so it can be a program name with args.
12576 set dummy
$ac_prog; ac_word
=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12582 if test -n "$ac_ct_DUMPBIN"; then
12583 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12586 for as_dir
in $PATH
12589 test -z "$as_dir" && as_dir
=.
12590 for ac_exec_ext
in '' $ac_executable_extensions; do
12591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12592 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12603 if test -n "$ac_ct_DUMPBIN"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12605 $as_echo "$ac_ct_DUMPBIN" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12612 test -n "$ac_ct_DUMPBIN" && break
12615 if test "x$ac_ct_DUMPBIN" = x
; then
12618 case $cross_compiling:$ac_tool_warned in
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12622 ac_tool_warned
=yes ;;
12624 DUMPBIN
=$ac_ct_DUMPBIN
12628 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12630 DUMPBIN
="$DUMPBIN -symbols"
12638 if test "$DUMPBIN" != ":"; then
12642 test -z "$NM" && NM
=nm
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12650 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12651 if test "${lt_cv_nm_interface+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12654 lt_cv_nm_interface
="BSD nm"
12655 echo "int some_variable = 0;" > conftest.
$ac_ext
12656 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12657 (eval "$ac_compile" 2>conftest.err
)
12658 cat conftest.err
>&5
12659 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12660 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12661 cat conftest.err
>&5
12662 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12663 cat conftest.out
>&5
12664 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12665 lt_cv_nm_interface
="MS dumpbin"
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12670 $as_echo "$lt_cv_nm_interface" >&6; }
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12673 $as_echo_n "checking whether ln -s works... " >&6; }
12675 if test "$LN_S" = "ln -s"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12677 $as_echo "yes" >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12680 $as_echo "no, using $LN_S" >&6; }
12683 # find the maximum length of command line arguments
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12685 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12686 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
12694 # On DJGPP, this test can blow up pretty badly due to problems in libc
12695 # (any single argument exceeding 2000 bytes causes a buffer overrun
12696 # during glob expansion). Even if it were fixed, the result of this
12697 # check would be larger than it should be.
12698 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12702 # Under GNU Hurd, this test is not required because there is
12703 # no limit to the length of command line arguments.
12704 # Libtool will interpret -1 as no limit whatsoever
12705 lt_cv_sys_max_cmd_len
=-1;
12708 cygwin
* | mingw
* | cegcc
*)
12709 # On Win9x/ME, this test blows up -- it succeeds, but takes
12710 # about 5 minutes as the teststring grows exponentially.
12711 # Worse, since 9x/ME are not pre-emptively multitasking,
12712 # you end up with a "frozen" computer, even though with patience
12713 # the test eventually succeeds (with a max line length of 256k).
12714 # Instead, let's just punt: use the minimum linelength reported by
12715 # all of the supported platforms: 8192 (on NT/2K/XP).
12716 lt_cv_sys_max_cmd_len
=8192;
12720 # On MiNT this can take a long time and run out of memory.
12721 lt_cv_sys_max_cmd_len
=8192;
12725 # On AmigaOS with pdksh, this test takes hours, literally.
12726 # So we just punt and use a minimum line length of 8192.
12727 lt_cv_sys_max_cmd_len
=8192;
12730 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12731 # This has been around since 386BSD, at least. Likely further.
12732 if test -x /sbin
/sysctl
; then
12733 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12734 elif test -x /usr
/sbin
/sysctl
; then
12735 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12737 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12739 # And add a safety zone
12740 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12741 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12745 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12746 lt_cv_sys_max_cmd_len
=196608
12750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12752 # nice to cause kernel panics so lets avoid the loop below.
12753 # First set a reasonable default.
12754 lt_cv_sys_max_cmd_len
=16384
12756 if test -x /sbin
/sysconfig
; then
12757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12758 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12763 lt_cv_sys_max_cmd_len
=102400
12765 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12766 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12767 if test -n "$kargmax"; then
12768 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12770 lt_cv_sys_max_cmd_len
=32768
12774 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12775 if test -n "$lt_cv_sys_max_cmd_len"; then
12776 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12777 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12779 # Make teststring a little bigger before we do anything with it.
12780 # a 1K string should be a reasonable start.
12781 for i
in 1 2 3 4 5 6 7 8 ; do
12782 teststring
=$teststring$teststring
12784 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12785 # If test is not a shell built-in, we'll probably end up computing a
12786 # maximum length that is only half of the actual maximum length, but
12788 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12789 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12790 test $i != 17 # 1/2 MB should be enough
12793 teststring
=$teststring$teststring
12795 # Only check the string length outside the loop.
12796 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12798 # Add a significant safety factor because C++ compilers can tack on
12799 # massive amounts of additional arguments before passing them to the
12800 # linker. It appears as though 1/2 is a usable value.
12801 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12808 if test -n $lt_cv_sys_max_cmd_len ; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12810 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12813 $as_echo "none" >&6; }
12815 max_cmd_len
=$lt_cv_sys_max_cmd_len
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12827 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12828 # Try some XSI features
12830 ( _lt_dummy
="a/b/c"
12831 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12833 && eval 'test $(( 1 + 1 )) -eq 2 \
12834 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12837 $as_echo "$xsi_shell" >&6; }
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12841 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12843 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12845 && lt_shell_append=yes
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12847 $as_echo "$lt_shell_append" >&6; }
12850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12860 # test EBCDIC or ASCII
12861 case `echo X|tr X '\101'` in
12862 A) # ASCII based system
12863 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12864 lt_SP2NL='tr \040 \012'
12865 lt_NL2SP='tr \015\012 \040\040'
12867 *) # EBCDIC based system
12868 lt_SP2NL='tr \100 \n'
12869 lt_NL2SP='tr \r\n \100\100'
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12882 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12883 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12884 $as_echo_n "(cached
) " >&6
12886 lt_cv_ld_reload_flag='-r'
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12889 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12890 reload_flag=$lt_cv_ld_reload_flag
12891 case $reload_flag in
12893 *) reload_flag=" $reload_flag" ;;
12895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12898 if test "$GCC" = yes; then
12899 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12901 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12914 if test -n "$ac_tool_prefix"; then
12915 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12916 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12918 $as_echo_n "checking
for $ac_word...
" >&6; }
12919 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12920 $as_echo_n "(cached
) " >&6
12922 if test -n "$OBJDUMP"; then
12923 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12932 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12942 OBJDUMP=$ac_cv_prog_OBJDUMP
12943 if test -n "$OBJDUMP"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12945 $as_echo "$OBJDUMP" >&6; }
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12948 $as_echo "no
" >&6; }
12953 if test -z "$ac_cv_prog_OBJDUMP"; then
12954 ac_ct_OBJDUMP=$OBJDUMP
12955 # Extract the first word of "objdump
", so it can be a program name with args.
12956 set dummy objdump; ac_word=$2
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12958 $as_echo_n "checking
for $ac_word...
" >&6; }
12959 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12960 $as_echo_n "(cached
) " >&6
12962 if test -n "$ac_ct_OBJDUMP"; then
12963 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12973 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12982 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12983 if test -n "$ac_ct_OBJDUMP"; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12985 $as_echo "$ac_ct_OBJDUMP" >&6; }
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12988 $as_echo "no
" >&6; }
12991 if test "x
$ac_ct_OBJDUMP" = x; then
12994 case $cross_compiling:$ac_tool_warned in
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12997 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12998 ac_tool_warned=yes ;;
13000 OBJDUMP=$ac_ct_OBJDUMP
13003 OBJDUMP="$ac_cv_prog_OBJDUMP"
13006 test -z "$OBJDUMP" && OBJDUMP=objdump
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13017 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13018 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13019 $as_echo_n "(cached
) " >&6
13021 lt_cv_file_magic_cmd='$MAGIC_CMD'
13022 lt_cv_file_magic_test_file=
13023 lt_cv_deplibs_check_method='unknown'
13024 # Need to set the preceding variable on all platforms that support
13025 # interlibrary dependencies.
13026 # 'none' -- dependencies not supported.
13027 # `unknown' -- same as none, but documents that we really don't know.
13028 # 'pass_all' -- all dependencies passed with no checks.
13029 # 'test_compile' -- check by making test program.
13030 # 'file_magic [[regex]]' -- check by looking for files in library path
13031 # which responds to the $file_magic_cmd with a given extended regex.
13032 # If you have `file' or equivalent on your system and you're not sure
13033 # whether `pass_all' will *always* work, you probably want this one.
13037 lt_cv_deplibs_check_method=pass_all
13041 lt_cv_deplibs_check_method=pass_all
13045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13046 lt_cv_file_magic_cmd='/usr/bin/file -L'
13047 lt_cv_file_magic_test_file=/shlib/libc.so
13051 # func_win32_libid is a shell function defined in ltmain.sh
13052 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13053 lt_cv_file_magic_cmd='func_win32_libid'
13057 # Base MSYS/MinGW do not provide the 'file' command needed by
13058 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13059 # unless we find 'file', for example because we are cross-compiling.
13060 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13061 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13063 lt_cv_file_magic_cmd='func_win32_libid'
13065 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13066 lt_cv_file_magic_cmd='$OBJDUMP -f'
13071 # use the weaker test based on 'objdump'. See mingw*.
13072 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13073 lt_cv_file_magic_cmd='$OBJDUMP -f'
13076 darwin* | rhapsody*)
13077 lt_cv_deplibs_check_method=pass_all
13080 freebsd* | dragonfly*)
13081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13084 # Not sure whether the presence of OpenBSD here was a mistake.
13085 # Let's accept both of them until this is cleared up.
13086 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13087 lt_cv_file_magic_cmd=/usr/bin/file
13088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13092 lt_cv_deplibs_check_method=pass_all
13097 lt_cv_deplibs_check_method=pass_all
13101 lt_cv_deplibs_check_method=pass_all
13104 hpux10.20* | hpux11*)
13105 lt_cv_file_magic_cmd=/usr/bin/file
13108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13109 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13112 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]'
13113 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13117 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13123 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13127 irix5* | irix6* | nonstopux*)
13129 *-32|*"-32 ") libmagic=32-bit;;
13130 *-n32|*"-n32 ") libmagic=N32;;
13131 *-64|*"-64 ") libmagic=64-bit;;
13132 *) libmagic=never-match;;
13134 lt_cv_deplibs_check_method=pass_all
13137 # This must be Linux ELF.
13138 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13139 lt_cv_deplibs_check_method=pass_all
13143 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13151 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13152 lt_cv_file_magic_cmd=/usr/bin/file
13153 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13157 lt_cv_deplibs_check_method=pass_all
13161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13168 osf3* | osf4* | osf5*)
13169 lt_cv_deplibs_check_method=pass_all
13173 lt_cv_deplibs_check_method=pass_all
13177 lt_cv_deplibs_check_method=pass_all
13180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13181 lt_cv_deplibs_check_method=pass_all
13185 case $host_vendor in
13187 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]'
13188 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13191 lt_cv_deplibs_check_method=pass_all
13194 lt_cv_file_magic_cmd='/bin/file'
13195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13198 lt_cv_file_magic_cmd='/bin/file'
13199 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13200 lt_cv_file_magic_test_file=/lib/libc.so
13203 lt_cv_deplibs_check_method=pass_all
13206 lt_cv_deplibs_check_method=pass_all
13212 lt_cv_deplibs_check_method=pass_all
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13218 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13219 file_magic_cmd=$lt_cv_file_magic_cmd
13220 deplibs_check_method=$lt_cv_deplibs_check_method
13221 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13234 if test -n "$ac_tool_prefix"; then
13235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13236 set dummy ${ac_tool_prefix}ar; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13238 $as_echo_n "checking
for $ac_word...
" >&6; }
13239 if test "${ac_cv_prog_AR+set}" = set; then :
13240 $as_echo_n "(cached
) " >&6
13242 if test -n "$AR"; then
13243 ac_cv_prog_AR="$AR" # Let the user override the test.
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_prog_AR="${ac_tool_prefix}ar"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13263 if test -n "$AR"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13265 $as_echo "$AR" >&6; }
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13268 $as_echo "no
" >&6; }
13273 if test -z "$ac_cv_prog_AR"; then
13275 # Extract the first word of "ar", so it can be a program name with args.
13276 set dummy ar; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13278 $as_echo_n "checking
for $ac_word...
" >&6; }
13279 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13280 $as_echo_n "(cached
) " >&6
13282 if test -n "$ac_ct_AR"; then
13283 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13292 ac_cv_prog_ac_ct_AR="ar"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13302 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13303 if test -n "$ac_ct_AR"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13305 $as_echo "$ac_ct_AR" >&6; }
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13308 $as_echo "no
" >&6; }
13311 if test "x
$ac_ct_AR" = x; then
13314 case $cross_compiling:$ac_tool_warned in
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13317 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13318 ac_tool_warned=yes ;;
13323 AR="$ac_cv_prog_AR"
13326 test -z "$AR" && AR=ar
13327 test -z "$AR_FLAGS" && AR_FLAGS=cru
13339 if test -n "$ac_tool_prefix"; then
13340 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13341 set dummy ${ac_tool_prefix}strip; ac_word=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13343 $as_echo_n "checking
for $ac_word...
" >&6; }
13344 if test "${ac_cv_prog_STRIP+set}" = set; then :
13345 $as_echo_n "(cached
) " >&6
13347 if test -n "$STRIP"; then
13348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351 for as_dir in $PATH
13354 test -z "$as_dir" && as_dir=.
13355 for ac_exec_ext in '' $ac_executable_extensions; do
13356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13357 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13358 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13367 STRIP=$ac_cv_prog_STRIP
13368 if test -n "$STRIP"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13370 $as_echo "$STRIP" >&6; }
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13373 $as_echo "no
" >&6; }
13378 if test -z "$ac_cv_prog_STRIP"; then
13380 # Extract the first word of "strip
", so it can be a program name with args.
13381 set dummy strip; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13383 $as_echo_n "checking
for $ac_word...
" >&6; }
13384 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13385 $as_echo_n "(cached
) " >&6
13387 if test -n "$ac_ct_STRIP"; then
13388 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13397 ac_cv_prog_ac_ct_STRIP="strip
"
13398 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13407 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13408 if test -n "$ac_ct_STRIP"; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13410 $as_echo "$ac_ct_STRIP" >&6; }
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13413 $as_echo "no
" >&6; }
13416 if test "x
$ac_ct_STRIP" = x; then
13419 case $cross_compiling:$ac_tool_warned in
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13422 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13423 ac_tool_warned=yes ;;
13428 STRIP="$ac_cv_prog_STRIP"
13431 test -z "$STRIP" && STRIP=:
13438 if test -n "$ac_tool_prefix"; then
13439 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13440 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13442 $as_echo_n "checking
for $ac_word...
" >&6; }
13443 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13444 $as_echo_n "(cached
) " >&6
13446 if test -n "$RANLIB"; then
13447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13453 test -z "$as_dir" && as_dir=.
13454 for ac_exec_ext in '' $ac_executable_extensions; do
13455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13457 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13466 RANLIB=$ac_cv_prog_RANLIB
13467 if test -n "$RANLIB"; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13469 $as_echo "$RANLIB" >&6; }
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13472 $as_echo "no
" >&6; }
13477 if test -z "$ac_cv_prog_RANLIB"; then
13478 ac_ct_RANLIB=$RANLIB
13479 # Extract the first word of "ranlib
", so it can be a program name with args.
13480 set dummy ranlib; ac_word=$2
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13482 $as_echo_n "checking
for $ac_word...
" >&6; }
13483 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13484 $as_echo_n "(cached
) " >&6
13486 if test -n "$ac_ct_RANLIB"; then
13487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490 for as_dir in $PATH
13493 test -z "$as_dir" && as_dir=.
13494 for ac_exec_ext in '' $ac_executable_extensions; do
13495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13496 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13497 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13507 if test -n "$ac_ct_RANLIB"; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13509 $as_echo "$ac_ct_RANLIB" >&6; }
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13512 $as_echo "no
" >&6; }
13515 if test "x
$ac_ct_RANLIB" = x; then
13518 case $cross_compiling:$ac_tool_warned in
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13521 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13522 ac_tool_warned=yes ;;
13524 RANLIB=$ac_ct_RANLIB
13527 RANLIB="$ac_cv_prog_RANLIB"
13530 test -z "$RANLIB" && RANLIB=:
13537 # Determine commands to create old-style static archives.
13538 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13539 old_postinstall_cmds='chmod 644 $oldlib'
13540 old_postuninstall_cmds=
13542 if test -n "$RANLIB"; then
13545 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13548 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13551 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13556 lock_old_archive_extraction=yes ;;
13558 lock_old_archive_extraction=no ;;
13599 # If no C compiler was specified, use CC.
13602 # If no C compiler flags were specified, use CFLAGS.
13603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13605 # Allow CC to be a program name with arguments.
13609 # Check for command to grab the raw symbol name followed by C symbol from nm.
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13611 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13612 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13613 $as_echo_n "(cached
) " >&6
13616 # These are sane defaults that work on at least a few old systems.
13617 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13619 # Character class describing NM global symbol codes.
13620 symcode='[BCDEGRST]'
13622 # Regexp to match symbols that can be accessed directly from C.
13623 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13625 # Define system-specific variables.
13630 cygwin* | mingw* | pw32* | cegcc*)
13631 symcode='[ABCDGISTW]'
13634 if test "$host_cpu" = ia64; then
13635 symcode='[ABCDEGRST]'
13638 irix* | nonstopux*)
13639 symcode='[BCDEGRST]'
13642 symcode='[BCDEGQRST]'
13653 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13661 # If we're using GNU nm, then use its standard symbol codes.
13662 case `$NM -V 2>&1` in
13663 *GNU* | *'with BFD'*)
13664 symcode='[ABCDGIRSTW]' ;;
13667 # Transform an extracted symbol line into a proper C declaration.
13668 # Some systems (esp. on ia64) link data and code symbols differently,
13669 # so use this general approach.
13670 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13672 # Transform an extracted symbol line into symbol name and symbol address
13673 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13674 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'"
13676 # Handle CRLF in mingw tool chain
13680 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13684 # Try without a prefix underscore, then with it.
13685 for ac_symprfx in "" "_
"; do
13687 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13688 symxfrm="\\1 $ac_symprfx\\2 \\2"
13690 # Write the raw and C identifiers.
13691 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13692 # Fake it for dumpbin and say T for any non-static function
13693 # and D for any global variable.
13694 # Also find C++ and __fastcall symbols from MSVC++,
13695 # which start with @ or ?.
13696 lt_cv_sys_global_symbol_pipe="$AWK '"\
13697 " {last_section=section; section=\$ 3};"\
13698 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13699 " \$ 0!~/External *\|/{next};"\
13700 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13701 " {if(hide[section]) next};"\
13702 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13703 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13704 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13705 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13706 " ' prfx
=^
$ac_symprfx"
13708 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13711 # Check to see that the pipe works correctly.
13715 cat > conftest.$ac_ext <<_LT_EOF
13720 void nm_test_func(void);
13721 void nm_test_func(void){}
13725 int main(){nm_test_var='a';nm_test_func();return(0);}
13728 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13729 (eval $ac_compile) 2>&5
13731 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13732 test $ac_status = 0; }; then
13733 # Now try to grab the symbols.
13735 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13736 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13738 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13739 test $ac_status = 0; } && test -s "$nlist"; then
13740 # Try sorting and uniquifying the output.
13741 if sort "$nlist" | uniq > "$nlist"T; then
13742 mv -f "$nlist"T "$nlist"
13747 # Make sure that we snagged all the symbols we need.
13748 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13749 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13750 cat <<_LT_EOF > conftest.$ac_ext
13756 # Now generate the symbol file.
13757 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13759 cat <<_LT_EOF >> conftest.$ac_ext
13761 /* The mapping between symbol names and symbols. */
13766 lt__PROGRAM__LTX_preloaded_symbols[] =
13768 { "@PROGRAM@
", (void *) 0 },
13770 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13771 cat <<\_LT_EOF >> conftest.$ac_ext
13775 /* This works around a problem in FreeBSD linker */
13776 #ifdef FREEBSD_WORKAROUND
13777 static const void *lt_preloaded_setup() {
13778 return lt__PROGRAM__LTX_preloaded_symbols;
13786 # Now try linking the two files.
13787 mv conftest.$ac_objext conftstm.$ac_objext
13788 lt_save_LIBS="$LIBS"
13789 lt_save_CFLAGS="$CFLAGS"
13790 LIBS="conftstm.
$ac_objext"
13791 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13792 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13793 (eval $ac_link) 2>&5
13795 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13796 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13799 LIBS="$lt_save_LIBS"
13800 CFLAGS="$lt_save_CFLAGS"
13802 echo "cannot
find nm_test_func
in $nlist" >&5
13805 echo "cannot
find nm_test_var
in $nlist" >&5
13808 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13811 echo "$progname: failed program was
:" >&5
13812 cat conftest.$ac_ext >&5
13814 rm -rf conftest* conftst*
13816 # Do not use the global_symbol_pipe unless it works.
13817 if test "$pipe_works" = yes; then
13820 lt_cv_sys_global_symbol_pipe=
13826 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13827 lt_cv_sys_global_symbol_to_cdecl=
13829 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13831 $as_echo "failed
" >&6; }
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13834 $as_echo "ok
" >&6; }
13858 # Check whether --enable-libtool-lock was given.
13859 if test "${enable_libtool_lock+set}" = set; then :
13860 enableval=$enable_libtool_lock;
13863 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13865 # Some flags need to be propagated to the compiler or linker for good
13869 # Find out which ABI we are using.
13870 echo 'int i;' > conftest.$ac_ext
13871 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13872 (eval $ac_compile) 2>&5
13874 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13875 test $ac_status = 0; }; then
13876 case `/usr/bin/file conftest.$ac_objext` in
13878 HPUX_IA64_MODE="32"
13881 HPUX_IA64_MODE="64"
13888 # Find out which ABI we are using.
13889 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13890 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13891 (eval $ac_compile) 2>&5
13893 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13894 test $ac_status = 0; }; then
13895 if test "$lt_cv_prog_gnu_ld" = yes; then
13896 case `/usr/bin/file conftest.$ac_objext` in
13898 LD="${LD-ld} -melf32bsmip"
13901 LD="${LD-ld} -melf32bmipn32"
13904 LD="${LD-ld} -melf64bmip"
13908 case `/usr/bin/file conftest.$ac_objext` in
13924 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13925 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13926 # Find out which ABI we are using.
13927 echo 'int i;' > conftest.$ac_ext
13928 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13929 (eval $ac_compile) 2>&5
13931 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13932 test $ac_status = 0; }; then
13933 case `/usr/bin/file conftest.o` in
13936 x86_64-*kfreebsd*-gnu)
13937 LD="${LD-ld} -m elf_i386_fbsd
"
13940 case `/usr/bin/file conftest.o` in
13942 LD="${LD-ld} -m elf32_x86_64
"
13945 LD="${LD-ld} -m elf_i386
"
13949 ppc64-*linux*|powerpc64-*linux*)
13950 LD="${LD-ld} -m elf32ppclinux
"
13953 LD="${LD-ld} -m elf_s390
"
13956 LD="${LD-ld} -m elf32_sparc
"
13962 x86_64-*kfreebsd*-gnu)
13963 LD="${LD-ld} -m elf_x86_64_fbsd
"
13966 LD="${LD-ld} -m elf_x86_64
"
13968 ppc*-*linux*|powerpc*-*linux*)
13969 LD="${LD-ld} -m elf64ppc
"
13971 s390*-*linux*|s390*-*tpf*)
13972 LD="${LD-ld} -m elf64_s390
"
13975 LD="${LD-ld} -m elf64_sparc
"
13985 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13986 SAVE_CFLAGS="$CFLAGS"
13987 CFLAGS="$CFLAGS -belf"
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13989 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13990 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13991 $as_echo_n "(cached
) " >&6
13994 ac_cpp='$CPP $CPPFLAGS'
13995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14010 if ac_fn_c_try_link "$LINENO"; then :
14011 lt_cv_cc_needs_belf=yes
14013 lt_cv_cc_needs_belf=no
14015 rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14018 ac_cpp='$CPP $CPPFLAGS'
14019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14025 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14026 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14027 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14028 CFLAGS="$SAVE_CFLAGS"
14032 # Find out which ABI we are using.
14033 echo 'int i;' > conftest.$ac_ext
14034 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14035 (eval $ac_compile) 2>&5
14037 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14038 test $ac_status = 0; }; then
14039 case `/usr/bin/file conftest.o` in
14041 case $lt_cv_prog_gnu_ld in
14042 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14044 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14056 need_locks="$enable_libtool_lock"
14060 rhapsody* | darwin*)
14061 if test -n "$ac_tool_prefix"; then
14062 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14063 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14065 $as_echo_n "checking
for $ac_word...
" >&6; }
14066 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14067 $as_echo_n "(cached
) " >&6
14069 if test -n "$DSYMUTIL"; then
14070 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073 for as_dir in $PATH
14076 test -z "$as_dir" && as_dir=.
14077 for ac_exec_ext in '' $ac_executable_extensions; do
14078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14079 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14080 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14089 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14090 if test -n "$DSYMUTIL"; then
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14092 $as_echo "$DSYMUTIL" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14095 $as_echo "no
" >&6; }
14100 if test -z "$ac_cv_prog_DSYMUTIL"; then
14101 ac_ct_DSYMUTIL=$DSYMUTIL
14102 # Extract the first word of "dsymutil
", so it can be a program name with args.
14103 set dummy dsymutil; ac_word=$2
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14105 $as_echo_n "checking
for $ac_word...
" >&6; }
14106 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14107 $as_echo_n "(cached
) " >&6
14109 if test -n "$ac_ct_DSYMUTIL"; then
14110 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $PATH
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
14118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14119 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14120 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14129 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14130 if test -n "$ac_ct_DSYMUTIL"; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14132 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14135 $as_echo "no
" >&6; }
14138 if test "x
$ac_ct_DSYMUTIL" = x; then
14141 case $cross_compiling:$ac_tool_warned in
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14144 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14145 ac_tool_warned=yes ;;
14147 DSYMUTIL=$ac_ct_DSYMUTIL
14150 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14153 if test -n "$ac_tool_prefix"; then
14154 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14155 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14157 $as_echo_n "checking
for $ac_word...
" >&6; }
14158 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14159 $as_echo_n "(cached
) " >&6
14161 if test -n "$NMEDIT"; then
14162 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165 for as_dir in $PATH
14168 test -z "$as_dir" && as_dir=.
14169 for ac_exec_ext in '' $ac_executable_extensions; do
14170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14171 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14172 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14181 NMEDIT=$ac_cv_prog_NMEDIT
14182 if test -n "$NMEDIT"; then
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14184 $as_echo "$NMEDIT" >&6; }
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14187 $as_echo "no
" >&6; }
14192 if test -z "$ac_cv_prog_NMEDIT"; then
14193 ac_ct_NMEDIT=$NMEDIT
14194 # Extract the first word of "nmedit
", so it can be a program name with args.
14195 set dummy nmedit; ac_word=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14197 $as_echo_n "checking
for $ac_word...
" >&6; }
14198 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14199 $as_echo_n "(cached
) " >&6
14201 if test -n "$ac_ct_NMEDIT"; then
14202 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14208 test -z "$as_dir" && as_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14211 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14212 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14221 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14222 if test -n "$ac_ct_NMEDIT"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14224 $as_echo "$ac_ct_NMEDIT" >&6; }
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14227 $as_echo "no
" >&6; }
14230 if test "x
$ac_ct_NMEDIT" = x; then
14233 case $cross_compiling:$ac_tool_warned in
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14236 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14237 ac_tool_warned=yes ;;
14239 NMEDIT=$ac_ct_NMEDIT
14242 NMEDIT="$ac_cv_prog_NMEDIT"
14245 if test -n "$ac_tool_prefix"; then
14246 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14247 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14249 $as_echo_n "checking
for $ac_word...
" >&6; }
14250 if test "${ac_cv_prog_LIPO+set}" = set; then :
14251 $as_echo_n "(cached
) " >&6
14253 if test -n "$LIPO"; then
14254 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14264 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14273 LIPO=$ac_cv_prog_LIPO
14274 if test -n "$LIPO"; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14276 $as_echo "$LIPO" >&6; }
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14279 $as_echo "no
" >&6; }
14284 if test -z "$ac_cv_prog_LIPO"; then
14286 # Extract the first word of "lipo
", so it can be a program name with args.
14287 set dummy lipo; ac_word=$2
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14289 $as_echo_n "checking
for $ac_word...
" >&6; }
14290 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14291 $as_echo_n "(cached
) " >&6
14293 if test -n "$ac_ct_LIPO"; then
14294 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297 for as_dir in $PATH
14300 test -z "$as_dir" && as_dir=.
14301 for ac_exec_ext in '' $ac_executable_extensions; do
14302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14303 ac_cv_prog_ac_ct_LIPO="lipo
"
14304 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14313 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14314 if test -n "$ac_ct_LIPO"; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14316 $as_echo "$ac_ct_LIPO" >&6; }
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14319 $as_echo "no
" >&6; }
14322 if test "x
$ac_ct_LIPO" = x; then
14325 case $cross_compiling:$ac_tool_warned in
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14328 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14329 ac_tool_warned=yes ;;
14334 LIPO="$ac_cv_prog_LIPO"
14337 if test -n "$ac_tool_prefix"; then
14338 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14339 set dummy ${ac_tool_prefix}otool; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14341 $as_echo_n "checking
for $ac_word...
" >&6; }
14342 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14343 $as_echo_n "(cached
) " >&6
14345 if test -n "$OTOOL"; then
14346 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14355 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14365 OTOOL=$ac_cv_prog_OTOOL
14366 if test -n "$OTOOL"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14368 $as_echo "$OTOOL" >&6; }
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14371 $as_echo "no
" >&6; }
14376 if test -z "$ac_cv_prog_OTOOL"; then
14378 # Extract the first word of "otool
", so it can be a program name with args.
14379 set dummy otool; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14381 $as_echo_n "checking
for $ac_word...
" >&6; }
14382 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14383 $as_echo_n "(cached
) " >&6
14385 if test -n "$ac_ct_OTOOL"; then
14386 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14395 ac_cv_prog_ac_ct_OTOOL="otool
"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14405 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14406 if test -n "$ac_ct_OTOOL"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14408 $as_echo "$ac_ct_OTOOL" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14411 $as_echo "no
" >&6; }
14414 if test "x
$ac_ct_OTOOL" = x; then
14417 case $cross_compiling:$ac_tool_warned in
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14420 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14421 ac_tool_warned=yes ;;
14426 OTOOL="$ac_cv_prog_OTOOL"
14429 if test -n "$ac_tool_prefix"; then
14430 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14431 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14433 $as_echo_n "checking
for $ac_word...
" >&6; }
14434 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14435 $as_echo_n "(cached
) " >&6
14437 if test -n "$OTOOL64"; then
14438 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14447 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14448 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14457 OTOOL64=$ac_cv_prog_OTOOL64
14458 if test -n "$OTOOL64"; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14460 $as_echo "$OTOOL64" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14463 $as_echo "no
" >&6; }
14468 if test -z "$ac_cv_prog_OTOOL64"; then
14469 ac_ct_OTOOL64=$OTOOL64
14470 # Extract the first word of "otool64
", so it can be a program name with args.
14471 set dummy otool64; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14473 $as_echo_n "checking
for $ac_word...
" >&6; }
14474 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14475 $as_echo_n "(cached
) " >&6
14477 if test -n "$ac_ct_OTOOL64"; then
14478 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14487 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14497 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14498 if test -n "$ac_ct_OTOOL64"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14500 $as_echo "$ac_ct_OTOOL64" >&6; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14503 $as_echo "no
" >&6; }
14506 if test "x
$ac_ct_OTOOL64" = x; then
14509 case $cross_compiling:$ac_tool_warned in
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14512 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14513 ac_tool_warned=yes ;;
14515 OTOOL64=$ac_ct_OTOOL64
14518 OTOOL64="$ac_cv_prog_OTOOL64"
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14548 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14549 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14550 $as_echo_n "(cached
) " >&6
14552 lt_cv_apple_cc_single_mod=no
14553 if test -z "${LT_MULTI_MODULE}"; then
14554 # By default we will add the -single_module flag. You can override
14555 # by either setting the environment variable LT_MULTI_MODULE
14556 # non-empty at configure time, or by adding -multi_module to the
14558 rm -rf libconftest.dylib*
14559 echo "int foo
(void
){return 1;}" > conftest.c
14560 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14561 -dynamiclib -Wl,-single_module conftest.c
" >&5
14562 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14563 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14565 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14566 lt_cv_apple_cc_single_mod=yes
14568 cat conftest.err >&5
14570 rm -rf libconftest.dylib*
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14575 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14577 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14578 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14579 $as_echo_n "(cached
) " >&6
14581 lt_cv_ld_exported_symbols_list=no
14582 save_LDFLAGS=$LDFLAGS
14583 echo "_main
" > conftest.sym
14584 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14596 if ac_fn_c_try_link "$LINENO"; then :
14597 lt_cv_ld_exported_symbols_list=yes
14599 lt_cv_ld_exported_symbols_list=no
14601 rm -f core conftest.err conftest.$ac_objext \
14602 conftest$ac_exeext conftest.$ac_ext
14603 LDFLAGS="$save_LDFLAGS"
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14607 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14609 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14610 if test "${lt_cv_ld_force_load+set}" = set; then :
14611 $as_echo_n "(cached
) " >&6
14613 lt_cv_ld_force_load=no
14614 cat > conftest.c << _LT_EOF
14615 int forced_loaded() { return 2;}
14617 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14618 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14619 echo "$AR cru libconftest.a conftest.o
" >&5
14620 $AR cru libconftest.a conftest.o 2>&5
14621 cat > conftest.c << _LT_EOF
14622 int main() { return 0;}
14624 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14625 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14627 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14628 lt_cv_ld_force_load=yes
14630 cat conftest.err >&5
14632 rm -f conftest.err libconftest.a conftest conftest.c
14633 rm -rf conftest.dSYM
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14637 $as_echo "$lt_cv_ld_force_load" >&6; }
14639 rhapsody* | darwin1.[012])
14640 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14642 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14643 darwin*) # darwin 5.x on
14644 # if running on 10.5 or later, the deployment target defaults
14645 # to the OS version, if on x86, and 10.4, the deployment
14646 # target defaults to 10.4. Don't you love it?
14647 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14648 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14649 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14653 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14657 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14658 _lt_dar_single_mod='$single_module'
14660 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14661 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14663 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14665 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14666 _lt_dsymutil='~$DSYMUTIL $lib || :'
14673 for ac_header in dlfcn.h
14675 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14676 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14677 cat >>confdefs.h <<_ACEOF
14678 #define HAVE_DLFCN_H 1
14695 enable_win32_dll=no
14698 # Check whether --enable-shared was given.
14699 if test "${enable_shared+set}" = set; then :
14700 enableval=$enable_shared; p=${PACKAGE-default}
14702 yes) enable_shared=yes ;;
14703 no) enable_shared=no ;;
14706 # Look at the argument we got. We use all the common list separators.
14707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14708 for pkg in $enableval; do
14710 if test "X
$pkg" = "X
$p"; then
14729 # Check whether --enable-static was given.
14730 if test "${enable_static+set}" = set; then :
14731 enableval=$enable_static; p=${PACKAGE-default}
14733 yes) enable_static=yes ;;
14734 no) enable_static=no ;;
14737 # Look at the argument we got. We use all the common list separators.
14738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14739 for pkg in $enableval; do
14741 if test "X
$pkg" = "X
$p"; then
14761 # Check whether --with-pic was given.
14762 if test "${with_pic+set}" = set; then :
14763 withval=$with_pic; pic_mode="$withval"
14769 test -z "$pic_mode" && pic_mode=default
14777 # Check whether --enable-fast-install was given.
14778 if test "${enable_fast_install+set}" = set; then :
14779 enableval=$enable_fast_install; p=${PACKAGE-default}
14781 yes) enable_fast_install=yes ;;
14782 no) enable_fast_install=no ;;
14784 enable_fast_install=no
14785 # Look at the argument we got. We use all the common list separators.
14786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14787 for pkg in $enableval; do
14789 if test "X
$pkg" = "X
$p"; then
14790 enable_fast_install=yes
14797 enable_fast_install=yes
14810 # This can be used to rebuild libtool when needed
14811 LIBTOOL_DEPS="$ltmain"
14813 # Always use our own libtool.
14814 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14841 test -z "$LN_S" && LN_S="ln -s"
14856 if test -n "${ZSH_VERSION+set}" ; then
14857 setopt NO_GLOB_SUBST
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14861 $as_echo_n "checking
for objdir...
" >&6; }
14862 if test "${lt_cv_objdir+set}" = set; then :
14863 $as_echo_n "(cached
) " >&6
14865 rm -f .libs 2>/dev/null
14866 mkdir .libs 2>/dev/null
14867 if test -d .libs; then
14870 # MS-DOS does not allow filenames that begin with a dot.
14873 rmdir .libs 2>/dev/null
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14876 $as_echo "$lt_cv_objdir" >&6; }
14877 objdir=$lt_cv_objdir
14883 cat >>confdefs.h <<_ACEOF
14884 #define LT_OBJDIR "$lt_cv_objdir/"
14892 # AIX sometimes has problems with the GCC collect2 program. For some
14893 # reason, if we set the COLLECT_NAMES environment variable, the problems
14894 # vanish in a puff of smoke.
14895 if test "X
${COLLECT_NAMES+set}" != Xset; then
14897 export COLLECT_NAMES
14902 # Global variables:
14904 can_build_shared=yes
14906 # All known linkers require a `.a' archive for static linking (except MSVC,
14907 # which needs '.lib').
14910 with_gnu_ld="$lt_cv_prog_gnu_ld"
14913 old_CFLAGS="$CFLAGS"
14915 # Set sane defaults for various variables
14916 test -z "$CC" && CC=cc
14917 test -z "$LTCC" && LTCC=$CC
14918 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14919 test -z "$LD" && LD=ld
14920 test -z "$ac_objext" && ac_objext=o
14922 for cc_temp in $compiler""; do
14924 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14925 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14930 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14933 # Only perform the check for file, if the check method requires it
14934 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14935 case $deplibs_check_method in
14937 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14939 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14940 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14941 $as_echo_n "(cached
) " >&6
14945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14948 lt_save_MAGIC_CMD="$MAGIC_CMD"
14949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14950 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14951 for ac_dir in $ac_dummy; do
14953 test -z "$ac_dir" && ac_dir=.
14954 if test -f $ac_dir/${ac_tool_prefix}file; then
14955 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14956 if test -n "$file_magic_test_file"; then
14957 case $deplibs_check_method in
14959 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14961 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14962 $EGREP "$file_magic_regex" > /dev/null; then
14967 *** Warning: the command libtool uses to detect shared libraries,
14968 *** $file_magic_cmd, produces output that libtool cannot recognize.
14969 *** The result is that libtool may fail to recognize shared libraries
14970 *** as such. This will affect the creation of libtool libraries that
14971 *** depend on shared libraries, but programs linked with such libtool
14972 *** libraries will work regardless of this problem. Nevertheless, you
14973 *** may want to report the problem to your system manager and/or to
14974 *** bug-libtool@gnu.org
14984 MAGIC_CMD="$lt_save_MAGIC_CMD"
14989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14990 if test -n "$MAGIC_CMD"; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14992 $as_echo "$MAGIC_CMD" >&6; }
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14995 $as_echo "no
" >&6; }
15002 if test -z "$lt_cv_path_MAGIC_CMD"; then
15003 if test -n "$ac_tool_prefix"; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15005 $as_echo_n "checking
for file...
" >&6; }
15006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15007 $as_echo_n "(cached
) " >&6
15011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15014 lt_save_MAGIC_CMD="$MAGIC_CMD"
15015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15016 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15017 for ac_dir in $ac_dummy; do
15019 test -z "$ac_dir" && ac_dir=.
15020 if test -f $ac_dir/file; then
15021 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15022 if test -n "$file_magic_test_file"; then
15023 case $deplibs_check_method in
15025 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15028 $EGREP "$file_magic_regex" > /dev/null; then
15033 *** Warning: the command libtool uses to detect shared libraries,
15034 *** $file_magic_cmd, produces output that libtool cannot recognize.
15035 *** The result is that libtool may fail to recognize shared libraries
15036 *** as such. This will affect the creation of libtool libraries that
15037 *** depend on shared libraries, but programs linked with such libtool
15038 *** libraries will work regardless of this problem. Nevertheless, you
15039 *** may want to report the problem to your system manager and/or to
15040 *** bug-libtool@gnu.org
15050 MAGIC_CMD="$lt_save_MAGIC_CMD"
15055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15056 if test -n "$MAGIC_CMD"; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15058 $as_echo "$MAGIC_CMD" >&6; }
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15061 $as_echo "no
" >&6; }
15074 # Use C for the default configuration in the libtool script
15078 ac_cpp='$CPP $CPPFLAGS'
15079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15084 # Source file extension for C test sources.
15087 # Object file extension for compiled C test sources.
15091 # Code to be used in simple compile tests
15092 lt_simple_compile_test_code="int some_variable
= 0;"
15094 # Code to be used in simple link tests
15095 lt_simple_link_test_code='int main(){return(0);}'
15103 # If no C compiler was specified, use CC.
15106 # If no C compiler flags were specified, use CFLAGS.
15107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15109 # Allow CC to be a program name with arguments.
15112 # Save the default compiler, since it gets overwritten when the other
15113 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15114 compiler_DEFAULT=$CC
15116 # save warnings/boilerplate of simple test code
15117 ac_outfile=conftest.$ac_objext
15118 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15119 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15120 _lt_compiler_boilerplate=`cat conftest.err`
15123 ac_outfile=conftest.$ac_objext
15124 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15125 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15126 _lt_linker_boilerplate=`cat conftest.err`
15131 ## There is no encapsulation within the following macros, do not change
15132 ## the running order or otherwise move them around unless you know exactly
15133 ## what you are doing...
15134 if test -n "$compiler"; then
15136 lt_prog_compiler_no_builtin_flag=
15138 if test "$GCC" = yes; then
15139 case $cc_basename in
15141 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15143 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15147 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15148 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15149 $as_echo_n "(cached
) " >&6
15151 lt_cv_prog_compiler_rtti_exceptions=no
15152 ac_outfile=conftest.$ac_objext
15153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15154 lt_compiler_flag="-fno-rtti -fno-exceptions"
15155 # Insert the option either (1) after the last *FLAGS variable, or
15156 # (2) before a word containing "conftest.
", or (3) at the end.
15157 # Note that $ac_compile itself does not contain backslashes and begins
15158 # with a dollar sign (not a hyphen), so the echo should work correctly.
15159 # The option is referenced via a variable to avoid confusing sed.
15160 lt_compile=`echo "$ac_compile" | $SED \
15161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15163 -e 's:$: $lt_compiler_flag:'`
15164 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15165 (eval "$lt_compile" 2>conftest.err)
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15169 if (exit $ac_status) && test -s "$ac_outfile"; then
15170 # The compiler can only warn and ignore the option if not recognized
15171 # So say no if there are warnings other than the usual output.
15172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15175 lt_cv_prog_compiler_rtti_exceptions=yes
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15182 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15185 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15197 lt_prog_compiler_wl=
15198 lt_prog_compiler_pic=
15199 lt_prog_compiler_static=
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15202 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15204 if test "$GCC" = yes; then
15205 lt_prog_compiler_wl='-Wl,'
15206 lt_prog_compiler_static='-static'
15210 # All AIX code is PIC.
15211 if test "$host_cpu" = ia64; then
15212 # AIX 5 now supports IA64 processor
15213 lt_prog_compiler_static='-Bstatic'
15215 lt_prog_compiler_pic='-fPIC'
15221 # see comment about AmigaOS4 .so support
15222 lt_prog_compiler_pic='-fPIC'
15225 # FIXME: we need at least 68020 code to build shared libraries, but
15226 # adding the `-m68020' flag to GCC prevents building anything better,
15228 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15233 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15234 # PIC is the default for these OSes.
15237 mingw* | cygwin* | pw32* | os2* | cegcc*)
15238 # This hack is so that the source file can tell whether it is being
15239 # built for inclusion in a dll (and should export symbols for example).
15240 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15241 # (--disable-auto-import) libraries
15242 lt_prog_compiler_pic='-DDLL_EXPORT'
15245 darwin* | rhapsody*)
15246 # PIC is the default on this platform
15247 # Common symbols not allowed in MH_DYLIB files
15248 lt_prog_compiler_pic='-fno-common'
15252 # PIC is the default for Haiku.
15253 # The "-static" flag exists, but is broken.
15254 lt_prog_compiler_static=
15258 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15259 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15260 # sets the default TLS model and affects inlining.
15266 lt_prog_compiler_pic='-fPIC'
15272 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15273 # Instead, we relocate shared libraries at runtime.
15277 # Just because we use GCC doesn't mean we suddenly get shared libraries
15278 # on systems that don't support them.
15279 lt_prog_compiler_can_build_shared=no
15284 # QNX uses GNU C++, but need to define -shared option too, otherwise
15285 # it will coredump.
15286 lt_prog_compiler_pic='-fPIC -shared'
15290 if test -d /usr/nec; then
15291 lt_prog_compiler_pic=-Kconform_pic
15296 lt_prog_compiler_pic='-fPIC'
15300 case $cc_basename in
15301 nvcc*) # Cuda Compiler Driver 2.2
15302 lt_prog_compiler_wl='-Xlinker '
15303 lt_prog_compiler_pic='-Xcompiler -fPIC'
15307 # PORTME Check for flag to pass linker flags through the system compiler.
15310 lt_prog_compiler_wl='-Wl,'
15311 if test "$host_cpu" = ia64; then
15312 # AIX 5 now supports IA64 processor
15313 lt_prog_compiler_static='-Bstatic'
15315 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15319 mingw* | cygwin* | pw32* | os2* | cegcc*)
15320 # This hack is so that the source file can tell whether it is being
15321 # built for inclusion in a dll (and should export symbols for example).
15322 lt_prog_compiler_pic='-DDLL_EXPORT'
15325 hpux9* | hpux10* | hpux11*)
15326 lt_prog_compiler_wl='-Wl,'
15327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15328 # not for PA HP-UX.
15334 lt_prog_compiler_pic='+Z'
15337 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15338 lt_prog_compiler_static='${wl}-a ${wl}archive'
15341 irix5* | irix6* | nonstopux*)
15342 lt_prog_compiler_wl='-Wl,'
15343 # PIC (with -KPIC) is the default.
15344 lt_prog_compiler_static='-non_shared'
15347 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15348 case $cc_basename in
15349 # old Intel for x86_64 which still supported -KPIC.
15351 lt_prog_compiler_wl='-Wl,'
15352 lt_prog_compiler_pic='-KPIC'
15353 lt_prog_compiler_static='-static'
15355 # icc used to be incompatible with GCC.
15356 # ICC 10 doesn't accept -KPIC any more.
15358 lt_prog_compiler_wl='-Wl,'
15359 lt_prog_compiler_pic='-fPIC'
15360 lt_prog_compiler_static='-static'
15362 # Lahey Fortran 8.1.
15364 lt_prog_compiler_wl='-Wl,'
15365 lt_prog_compiler_pic='--shared'
15366 lt_prog_compiler_static='--static'
15368 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15369 # Portland Group compilers (*not* the Pentium gcc compiler,
15370 # which looks to be a dead project)
15371 lt_prog_compiler_wl='-Wl,'
15372 lt_prog_compiler_pic='-fpic'
15373 lt_prog_compiler_static='-Bstatic'
15376 lt_prog_compiler_wl='-Wl,'
15377 # All Alpha code is PIC.
15378 lt_prog_compiler_static='-non_shared'
15380 xl* | bgxl* | bgf* | mpixl*)
15381 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15382 lt_prog_compiler_wl='-Wl,'
15383 lt_prog_compiler_pic='-qpic'
15384 lt_prog_compiler_static='-qstaticlink'
15387 case `$CC -V 2>&1 | sed 5q` in
15388 *Sun\ F* | *Sun*Fortran*)
15389 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15390 lt_prog_compiler_pic='-KPIC'
15391 lt_prog_compiler_static='-Bstatic'
15392 lt_prog_compiler_wl=''
15396 lt_prog_compiler_pic='-KPIC'
15397 lt_prog_compiler_static='-Bstatic'
15398 lt_prog_compiler_wl='-Wl,'
15406 lt_prog_compiler_pic='-KPIC'
15407 lt_prog_compiler_static='-Bstatic'
15411 # QNX uses GNU C++, but need to define -shared option too, otherwise
15412 # it will coredump.
15413 lt_prog_compiler_pic='-fPIC -shared'
15416 osf3* | osf4* | osf5*)
15417 lt_prog_compiler_wl='-Wl,'
15418 # All OSF/1 code is PIC.
15419 lt_prog_compiler_static='-non_shared'
15423 lt_prog_compiler_static='-non_shared'
15427 lt_prog_compiler_pic='-KPIC'
15428 lt_prog_compiler_static='-Bstatic'
15429 case $cc_basename in
15430 f77* | f90* | f95*)
15431 lt_prog_compiler_wl='-Qoption ld ';;
15433 lt_prog_compiler_wl='-Wl,';;
15438 lt_prog_compiler_wl='-Qoption ld '
15439 lt_prog_compiler_pic='-PIC'
15440 lt_prog_compiler_static='-Bstatic'
15443 sysv4 | sysv4.2uw2* | sysv4.3*)
15444 lt_prog_compiler_wl='-Wl,'
15445 lt_prog_compiler_pic='-KPIC'
15446 lt_prog_compiler_static='-Bstatic'
15450 if test -d /usr/nec ;then
15451 lt_prog_compiler_pic='-Kconform_pic'
15452 lt_prog_compiler_static='-Bstatic'
15456 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15457 lt_prog_compiler_wl='-Wl,'
15458 lt_prog_compiler_pic='-KPIC'
15459 lt_prog_compiler_static='-Bstatic'
15463 lt_prog_compiler_wl='-Wl,'
15464 lt_prog_compiler_can_build_shared=no
15468 lt_prog_compiler_pic='-pic'
15469 lt_prog_compiler_static='-Bstatic'
15473 lt_prog_compiler_can_build_shared=no
15479 # For platforms which do not support PIC, -DPIC is meaningless:
15481 lt_prog_compiler_pic=
15484 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15488 $as_echo "$lt_prog_compiler_pic" >&6; }
15496 # Check to make sure the PIC flag actually works.
15498 if test -n "$lt_prog_compiler_pic"; then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15500 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15501 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15502 $as_echo_n "(cached
) " >&6
15504 lt_cv_prog_compiler_pic_works=no
15505 ac_outfile=conftest.$ac_objext
15506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15507 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15508 # Insert the option either (1) after the last *FLAGS variable, or
15509 # (2) before a word containing "conftest.
", or (3) at the end.
15510 # Note that $ac_compile itself does not contain backslashes and begins
15511 # with a dollar sign (not a hyphen), so the echo should work correctly.
15512 # The option is referenced via a variable to avoid confusing sed.
15513 lt_compile=`echo "$ac_compile" | $SED \
15514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15516 -e 's:$: $lt_compiler_flag:'`
15517 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15518 (eval "$lt_compile" 2>conftest.err)
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15522 if (exit $ac_status) && test -s "$ac_outfile"; then
15523 # The compiler can only warn and ignore the option if not recognized
15524 # So say no if there are warnings other than the usual output.
15525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15527 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15528 lt_cv_prog_compiler_pic_works=yes
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15535 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15537 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15538 case $lt_prog_compiler_pic in
15540 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15543 lt_prog_compiler_pic=
15544 lt_prog_compiler_can_build_shared=no
15555 # Check to make sure the static flag actually works.
15557 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15559 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15560 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15561 $as_echo_n "(cached
) " >&6
15563 lt_cv_prog_compiler_static_works=no
15564 save_LDFLAGS="$LDFLAGS"
15565 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15566 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15568 # The linker can only warn and ignore the option if not recognized
15569 # So say no if there are warnings
15570 if test -s conftest.err; then
15571 # Append any errors to the config.log.
15572 cat conftest.err 1>&5
15573 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15575 if diff conftest.exp conftest.er2 >/dev/null; then
15576 lt_cv_prog_compiler_static_works=yes
15579 lt_cv_prog_compiler_static_works=yes
15583 LDFLAGS="$save_LDFLAGS"
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15587 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15589 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15592 lt_prog_compiler_static=
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15602 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15603 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15604 $as_echo_n "(cached
) " >&6
15606 lt_cv_prog_compiler_c_o=no
15607 $RM -r conftest 2>/dev/null
15611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15613 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15614 # Insert the option either (1) after the last *FLAGS variable, or
15615 # (2) before a word containing "conftest.
", or (3) at the end.
15616 # Note that $ac_compile itself does not contain backslashes and begins
15617 # with a dollar sign (not a hyphen), so the echo should work correctly.
15618 lt_compile=`echo "$ac_compile" | $SED \
15619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15621 -e 's:$: $lt_compiler_flag:'`
15622 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15623 (eval "$lt_compile" 2>out/conftest.err)
15625 cat out/conftest.err >&5
15626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15629 # The compiler can only warn and ignore the option if not recognized
15630 # So say no if there are warnings
15631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15634 lt_cv_prog_compiler_c_o=yes
15639 # SGI C++ compiler will create directory out/ii_files/ for
15640 # template instantiation
15641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15642 $RM out/* && rmdir out
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15649 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15657 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15658 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15659 $as_echo_n "(cached
) " >&6
15661 lt_cv_prog_compiler_c_o=no
15662 $RM -r conftest 2>/dev/null
15666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15668 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15669 # Insert the option either (1) after the last *FLAGS variable, or
15670 # (2) before a word containing "conftest.
", or (3) at the end.
15671 # Note that $ac_compile itself does not contain backslashes and begins
15672 # with a dollar sign (not a hyphen), so the echo should work correctly.
15673 lt_compile=`echo "$ac_compile" | $SED \
15674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15676 -e 's:$: $lt_compiler_flag:'`
15677 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15678 (eval "$lt_compile" 2>out/conftest.err)
15680 cat out/conftest.err >&5
15681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15684 # The compiler can only warn and ignore the option if not recognized
15685 # So say no if there are warnings
15686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15689 lt_cv_prog_compiler_c_o=yes
15694 # SGI C++ compiler will create directory out/ii_files/ for
15695 # template instantiation
15696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15697 $RM out/* && rmdir out
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15704 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15709 hard_links="nottested
"
15710 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15711 # do not overwrite the value of need_locks provided by the user
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15713 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15718 ln conftest.a conftest.b 2>&5 || hard_links=no
15719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15721 $as_echo "$hard_links" >&6; }
15722 if test "$hard_links" = no; then
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15724 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15737 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15740 allow_undefined_flag=
15741 always_export_symbols=no
15743 archive_expsym_cmds=
15744 compiler_needs_object=no
15745 enable_shared_with_static_runtimes=no
15746 export_dynamic_flag_spec=
15747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15748 hardcode_automatic=no
15750 hardcode_direct_absolute=no
15751 hardcode_libdir_flag_spec=
15752 hardcode_libdir_flag_spec_ld=
15753 hardcode_libdir_separator=
15754 hardcode_minus_L=no
15755 hardcode_shlibpath_var=unsupported
15757 link_all_deplibs=unknown
15759 module_expsym_cmds=
15760 old_archive_from_new_cmds=
15761 old_archive_from_expsyms_cmds=
15762 thread_safe_flag_spec=
15763 whole_archive_flag_spec=
15764 # include_expsyms should be a list of space-separated symbols to be *always*
15765 # included in the symbol list
15767 # exclude_expsyms can be an extended regexp of symbols to exclude
15768 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15769 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15770 # as well as any symbol that contains `d'.
15771 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15773 # platforms (ab)use it in PIC code, but their linkers get confused if
15774 # the symbol is explicitly referenced. Since portable code cannot
15775 # rely on this symbol name, it's probably fine to never include it in
15776 # preloaded symbol tables.
15777 # Exclude shared library initialization/finalization symbols.
15778 extract_expsyms_cmds=
15781 cygwin* | mingw* | pw32* | cegcc*)
15782 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15783 # When not using gcc, we currently assume that we are using
15784 # Microsoft Visual C++.
15785 if test "$GCC" != yes; then
15790 # we just hope/assume this is gcc and not c89 (= MSVC++)
15800 # On some targets, GNU ld is compatible enough with the native linker
15801 # that we're better off using the native interface for both.
15802 lt_use_gnu_ld_interface=no
15803 if test "$with_gnu_ld" = yes; then
15806 # The AIX port of GNU ld has always aspired to compatibility
15807 # with the native linker. However, as the warning in the GNU ld
15808 # block says, versions before 2.19.5* couldn't really create working
15809 # shared libraries, regardless of the interface used.
15810 case `$LD -v 2>&1` in
15811 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15812 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15813 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15815 lt_use_gnu_ld_interface=yes
15820 lt_use_gnu_ld_interface=yes
15825 if test "$lt_use_gnu_ld_interface" = yes; then
15826 # If archive_cmds runs LD, not CC, wlarc should be empty
15829 # Set some defaults for GNU ld with shared library support. These
15830 # are reset later if shared libraries are not supported. Putting them
15831 # here allows them to be overridden if necessary.
15832 runpath_var=LD_RUN_PATH
15833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15834 export_dynamic_flag_spec='${wl}--export-dynamic'
15835 # ancient GNU ld didn't support --whole-archive et. al.
15836 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15837 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15839 whole_archive_flag_spec=
15841 supports_anon_versioning=no
15842 case `$LD -v 2>&1` in
15843 *GNU\ gold*) supports_anon_versioning=yes ;;
15844 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15847 *\ 2.11.*) ;; # other 2.11 versions
15848 *) supports_anon_versioning=yes ;;
15851 # See if GNU ld supports shared libraries.
15854 # On AIX/PPC, the GNU linker is very broken
15855 if test "$host_cpu" != ia64; then
15859 *** Warning: the GNU linker, at least up to release 2.19, is reported
15860 *** to be unable to reliably create shared libraries on AIX.
15861 *** Therefore, libtool is disabling shared libraries support. If you
15862 *** really care for shared libraries, you may want to install binutils
15863 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15864 *** You will then need to restart the configuration process.
15873 # see comment about AmigaOS4 .so support
15874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15875 archive_expsym_cmds=''
15878 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)'
15879 hardcode_libdir_flag_spec
='-L$libdir'
15880 hardcode_minus_L
=yes
15886 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15887 allow_undefined_flag
=unsupported
15888 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15889 # support --undefined. This deserves some investigation. FIXME
15890 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15896 cygwin
* | mingw
* | pw32
* | cegcc
*)
15897 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15898 # as there is no search path for DLLs.
15899 hardcode_libdir_flag_spec
='-L$libdir'
15900 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15901 allow_undefined_flag
=unsupported
15902 always_export_symbols
=no
15903 enable_shared_with_static_runtimes
=yes
15904 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15906 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15907 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15908 # If the export-symbols file already is a .def file (1st line
15909 # is EXPORTS), use it as is; otherwise, prepend...
15910 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15911 cp $export_symbols $output_objdir/$soname.def;
15913 echo EXPORTS > $output_objdir/$soname.def;
15914 cat $export_symbols >> $output_objdir/$soname.def;
15916 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15923 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15924 link_all_deplibs
=yes
15929 hardcode_shlibpath_var
=no
15930 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15931 export_dynamic_flag_spec
='${wl}-E'
15932 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15933 # Instead, shared libraries are loaded at an image base (0x10000000 by
15934 # default) and relocated if they conflict, which is a slow very memory
15935 # consuming and fragmenting process. To avoid this, we pick a random,
15936 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15937 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15938 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15939 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'
15942 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15944 if test "$host_os" = linux-dietlibc
; then
15945 case $cc_basename in
15946 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15949 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15950 && test "$tmp_diet" = no
15953 tmp_sharedflag
='-shared'
15954 case $cc_basename,$host_cpu in
15955 pgcc
*) # Portland Group C compiler
15956 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'
15957 tmp_addflag
=' $pic_flag'
15959 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15960 # Portland Group f77 and f90 compilers
15961 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'
15962 tmp_addflag
=' $pic_flag -Mnomain' ;;
15963 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15964 tmp_addflag
=' -i_dynamic' ;;
15965 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15966 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15967 ifc
* | ifort
*) # Intel Fortran compiler
15968 tmp_addflag
=' -nofor_main' ;;
15969 lf95
*) # Lahey Fortran 8.1
15970 whole_archive_flag_spec
=
15971 tmp_sharedflag
='--shared' ;;
15972 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15973 tmp_sharedflag
='-qmkshrobj'
15975 nvcc
*) # Cuda Compiler Driver 2.2
15976 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'
15977 compiler_needs_object
=yes
15980 case `$CC -V 2>&1 | sed 5q` in
15981 *Sun\ C
*) # Sun C 5.9
15982 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'
15983 compiler_needs_object
=yes
15984 tmp_sharedflag
='-G' ;;
15985 *Sun\ F
*) # Sun Fortran 8.3
15986 tmp_sharedflag
='-G' ;;
15988 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15990 if test "x$supports_anon_versioning" = xyes
; then
15991 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15993 echo "local: *; };" >> $output_objdir/$libname.ver~
15994 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15997 case $cc_basename in
15998 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15999 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16000 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16001 hardcode_libdir_flag_spec
=
16002 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16003 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16004 if test "x$supports_anon_versioning" = xyes
; then
16005 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16007 echo "local: *; };" >> $output_objdir/$libname.ver~
16008 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16018 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16019 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16022 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16023 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16028 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16032 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16033 *** create shared libraries on Solaris systems. Therefore, libtool
16034 *** is disabling shared libraries support. We urge you to upgrade GNU
16035 *** binutils to release 2.9.1 or newer. Another option is to modify
16036 *** your PATH or compiler configuration so that the native linker is
16037 *** used, and then restart.
16040 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16041 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16048 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16049 case `$LD -v 2>&1` in
16050 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16054 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16055 *** reliably create shared libraries on SCO systems. Therefore, libtool
16056 *** is disabling shared libraries support. We urge you to upgrade GNU
16057 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16058 *** your PATH or compiler configuration so that the native linker is
16059 *** used, and then restart.
16064 # For security reasons, it is highly recommended that you always
16065 # use absolute paths for naming shared libraries, and exclude the
16066 # DT_RUNPATH tag from executables and libraries. But doing so
16067 # requires that you compile everything twice, which is a pain.
16068 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16069 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16070 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16071 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16080 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16082 hardcode_direct
=yes
16083 hardcode_shlibpath_var
=no
16087 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16088 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16089 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16096 if test "$ld_shlibs" = no
; then
16098 hardcode_libdir_flag_spec
=
16099 export_dynamic_flag_spec
=
16100 whole_archive_flag_spec
=
16103 # PORTME fill in a description of your system's linker (not GNU ld)
16106 allow_undefined_flag
=unsupported
16107 always_export_symbols
=yes
16108 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'
16109 # Note: this linker hardcodes the directories in LIBPATH if there
16110 # are no directories specified by -L.
16111 hardcode_minus_L
=yes
16112 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16113 # Neither direct hardcoding nor static linking is supported with a
16115 hardcode_direct
=unsupported
16120 if test "$host_cpu" = ia64
; then
16121 # On IA64, the linker does run time linking by default, so we don't
16122 # have to do anything special.
16123 aix_use_runtimelinking
=no
16124 exp_sym_flag
='-Bexport'
16127 # If we're using GNU nm, then we don't want the "-C" option.
16128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16129 # Also, AIX nm treats weak defined symbols like other global
16130 # defined symbols, whereas GNU nm marks them as "W".
16131 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16132 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'
16134 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'
16136 aix_use_runtimelinking
=no
16138 # Test if we are trying to use run time linking or normal
16139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16140 # need to do runtime linking.
16141 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16142 for ld_flag
in $LDFLAGS; do
16143 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16144 aix_use_runtimelinking
=yes
16151 exp_sym_flag
='-bexport'
16152 no_entry_flag
='-bnoentry'
16155 # When large executables or shared objects are built, AIX ld can
16156 # have problems creating the table of contents. If linking a library
16157 # or program results in "error TOC overflow" add -mminimal-toc to
16158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16162 hardcode_direct
=yes
16163 hardcode_direct_absolute
=yes
16164 hardcode_libdir_separator
=':'
16165 link_all_deplibs
=yes
16166 file_list_spec
='${wl}-f,'
16168 if test "$GCC" = yes; then
16169 case $host_os in aix4.
[012]|aix4.
[012].
*)
16170 # We only want to do this on AIX 4.2 and lower, the check
16171 # below for broken collect2 doesn't work under 4.3+
16172 collect2name
=`${CC} -print-prog-name=collect2`
16173 if test -f "$collect2name" &&
16174 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16176 # We have reworked collect2
16179 # We have old collect2
16180 hardcode_direct
=unsupported
16181 # It fails to find uninstalled libraries when the uninstalled
16182 # path is not listed in the libpath. Setting hardcode_minus_L
16183 # to unsupported forces relinking
16184 hardcode_minus_L
=yes
16185 hardcode_libdir_flag_spec
='-L$libdir'
16186 hardcode_libdir_separator
=
16190 shared_flag
='-shared'
16191 if test "$aix_use_runtimelinking" = yes; then
16192 shared_flag
="$shared_flag "'${wl}-G'
16196 if test "$host_cpu" = ia64
; then
16197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16198 # chokes on -Wl,-G. The following line is correct:
16201 if test "$aix_use_runtimelinking" = yes; then
16202 shared_flag
='${wl}-G'
16204 shared_flag
='${wl}-bM:SRE'
16209 export_dynamic_flag_spec
='${wl}-bexpall'
16210 # It seems that -bexpall does not export symbols beginning with
16211 # underscore (_), so it is better to generate a list of symbols to export.
16212 always_export_symbols
=yes
16213 if test "$aix_use_runtimelinking" = yes; then
16214 # Warning - without using the other runtime loading flags (-brtl),
16215 # -berok will link without error, but may produce a broken library.
16216 allow_undefined_flag
='-berok'
16217 # Determine the default libpath from the value encoded in an
16218 # empty executable.
16219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16230 if ac_fn_c_try_link
"$LINENO"; then :
16232 lt_aix_libpath_sed
='
16233 /Import File Strings/,/^$/ {
16239 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16240 # Check for a 64-bit object if we didn't find anything.
16241 if test -z "$aix_libpath"; then
16242 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16245 rm -f core conftest.err conftest.
$ac_objext \
16246 conftest
$ac_exeext conftest.
$ac_ext
16247 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16249 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16250 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"
16252 if test "$host_cpu" = ia64
; then
16253 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16254 allow_undefined_flag
="-z nodefs"
16255 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"
16257 # Determine the default libpath from the value encoded in an
16258 # empty executable.
16259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16270 if ac_fn_c_try_link
"$LINENO"; then :
16272 lt_aix_libpath_sed
='
16273 /Import File Strings/,/^$/ {
16279 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16280 # Check for a 64-bit object if we didn't find anything.
16281 if test -z "$aix_libpath"; then
16282 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16285 rm -f core conftest.err conftest.
$ac_objext \
16286 conftest
$ac_exeext conftest.
$ac_ext
16287 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16289 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16290 # Warning - without using the other run time loading flags,
16291 # -berok will link without error, but may produce a broken library.
16292 no_undefined_flag
=' ${wl}-bernotok'
16293 allow_undefined_flag
=' ${wl}-berok'
16294 if test "$with_gnu_ld" = yes; then
16295 # We only use this code for GNU lds that support --whole-archive.
16296 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16298 # Exported symbols can be pulled into shared objects from archives
16299 whole_archive_flag_spec
='$convenience'
16301 archive_cmds_need_lc
=yes
16302 # This is similar to how AIX traditionally builds its shared libraries.
16303 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'
16311 # see comment about AmigaOS4 .so support
16312 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16313 archive_expsym_cmds
=''
16316 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)'
16317 hardcode_libdir_flag_spec
='-L$libdir'
16318 hardcode_minus_L
=yes
16324 export_dynamic_flag_spec
=-rdynamic
16327 cygwin
* | mingw
* | pw32
* | cegcc
*)
16328 # When not using gcc, we currently assume that we are using
16329 # Microsoft Visual C++.
16330 # hardcode_libdir_flag_spec is actually meaningless, as there is
16331 # no search path for DLLs.
16332 hardcode_libdir_flag_spec
=' '
16333 allow_undefined_flag
=unsupported
16334 # Tell ltmain to make .lib files, not .a files.
16336 # Tell ltmain to make .dll files, not .so files.
16338 # FIXME: Setting linknames here is a bad hack.
16339 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16340 # The linker will automatically build a .lib file if we build a DLL.
16341 old_archive_from_new_cmds
='true'
16342 # FIXME: Should let the user specify the lib program.
16343 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16344 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16345 enable_shared_with_static_runtimes
=yes
16348 darwin
* | rhapsody
*)
16351 archive_cmds_need_lc
=no
16353 hardcode_automatic
=yes
16354 hardcode_shlibpath_var
=unsupported
16355 if test "$lt_cv_ld_force_load" = "yes"; then
16356 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\"`'
16358 whole_archive_flag_spec
=''
16360 link_all_deplibs
=yes
16361 allow_undefined_flag
="$_lt_dar_allow_undefined"
16362 case $cc_basename in
16363 ifort
*) _lt_dar_can_shared
=yes ;;
16364 *) _lt_dar_can_shared
=$GCC ;;
16366 if test "$_lt_dar_can_shared" = "yes"; then
16367 output_verbose_link_cmd
=func_echo_all
16368 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16369 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16370 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}"
16371 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}"
16380 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16381 hardcode_libdir_flag_spec
='-L$libdir'
16382 hardcode_shlibpath_var
=no
16385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16386 # support. Future versions do this automatically, but an explicit c++rt0.o
16387 # does not break anything, and helps significantly (at the cost of a little
16390 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16391 hardcode_libdir_flag_spec
='-R$libdir'
16392 hardcode_direct
=yes
16393 hardcode_shlibpath_var
=no
16396 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16398 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16399 hardcode_direct
=yes
16400 hardcode_minus_L
=yes
16401 hardcode_shlibpath_var
=no
16404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16405 freebsd
* | dragonfly
*)
16406 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16407 hardcode_libdir_flag_spec
='-R$libdir'
16408 hardcode_direct
=yes
16409 hardcode_shlibpath_var
=no
16413 if test "$GCC" = yes; then
16414 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'
16416 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'
16418 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16419 hardcode_libdir_separator
=:
16420 hardcode_direct
=yes
16422 # hardcode_minus_L: Not really in the search PATH,
16423 # but as the default location of the library.
16424 hardcode_minus_L
=yes
16425 export_dynamic_flag_spec
='${wl}-E'
16429 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16430 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16432 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16434 if test "$with_gnu_ld" = no
; then
16435 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16436 hardcode_libdir_flag_spec_ld
='+b $libdir'
16437 hardcode_libdir_separator
=:
16438 hardcode_direct
=yes
16439 hardcode_direct_absolute
=yes
16440 export_dynamic_flag_spec
='${wl}-E'
16441 # hardcode_minus_L: Not really in the search PATH,
16442 # but as the default location of the library.
16443 hardcode_minus_L
=yes
16448 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16451 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16454 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16457 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16463 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16466 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16470 # Older versions of the 11.00 compiler do not understand -b yet
16471 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16473 $as_echo_n "checking if $CC understands -b... " >&6; }
16474 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16475 $as_echo_n "(cached) " >&6
16477 lt_cv_prog_compiler__b
=no
16478 save_LDFLAGS
="$LDFLAGS"
16479 LDFLAGS
="$LDFLAGS -b"
16480 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16481 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16482 # The linker can only warn and ignore the option if not recognized
16483 # So say no if there are warnings
16484 if test -s conftest.err
; then
16485 # Append any errors to the config.log.
16486 cat conftest.err
1>&5
16487 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16488 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16489 if diff conftest.exp conftest.er2
>/dev
/null
; then
16490 lt_cv_prog_compiler__b
=yes
16493 lt_cv_prog_compiler__b
=yes
16497 LDFLAGS
="$save_LDFLAGS"
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16501 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16503 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16504 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16506 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16512 if test "$with_gnu_ld" = no
; then
16513 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16514 hardcode_libdir_separator
=:
16519 hardcode_shlibpath_var
=no
16522 hardcode_direct
=yes
16523 hardcode_direct_absolute
=yes
16524 export_dynamic_flag_spec
='${wl}-E'
16526 # hardcode_minus_L: Not really in the search PATH,
16527 # but as the default location of the library.
16528 hardcode_minus_L
=yes
16534 irix5
* | irix6
* | nonstopux
*)
16535 if test "$GCC" = yes; then
16536 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'
16537 # Try to use the -exported_symbol ld option, if it does not
16538 # work, assume that -exports_file does not work either and
16539 # implicitly export all symbols.
16540 save_LDFLAGS
="$LDFLAGS"
16541 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16543 /* end confdefs.h. */
16546 if ac_fn_c_try_link
"$LINENO"; then :
16547 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'
16550 rm -f core conftest.err conftest.
$ac_objext \
16551 conftest
$ac_exeext conftest.
$ac_ext
16552 LDFLAGS
="$save_LDFLAGS"
16554 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'
16555 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'
16557 archive_cmds_need_lc
='no'
16558 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16559 hardcode_libdir_separator
=:
16561 link_all_deplibs
=yes
16565 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16566 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16568 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16570 hardcode_libdir_flag_spec
='-R$libdir'
16571 hardcode_direct
=yes
16572 hardcode_shlibpath_var
=no
16576 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16577 hardcode_direct
=yes
16578 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16579 hardcode_libdir_separator
=:
16580 hardcode_shlibpath_var
=no
16587 if test -f /usr
/libexec
/ld.so
; then
16588 hardcode_direct
=yes
16589 hardcode_shlibpath_var
=no
16590 hardcode_direct_absolute
=yes
16591 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16592 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16593 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16594 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16595 export_dynamic_flag_spec
='${wl}-E'
16598 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16599 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16600 hardcode_libdir_flag_spec
='-R$libdir'
16603 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16604 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16614 hardcode_libdir_flag_spec
='-L$libdir'
16615 hardcode_minus_L
=yes
16616 allow_undefined_flag
=unsupported
16617 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'
16618 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16622 if test "$GCC" = yes; then
16623 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16624 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'
16626 allow_undefined_flag
=' -expect_unresolved \*'
16627 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'
16629 archive_cmds_need_lc
='no'
16630 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16631 hardcode_libdir_separator
=:
16634 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16635 if test "$GCC" = yes; then
16636 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16637 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'
16638 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16640 allow_undefined_flag
=' -expect_unresolved \*'
16641 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'
16642 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~
16643 $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'
16645 # Both c and cxx compiler support -rpath directly
16646 hardcode_libdir_flag_spec
='-rpath $libdir'
16648 archive_cmds_need_lc
='no'
16649 hardcode_libdir_separator
=:
16653 no_undefined_flag
=' -z defs'
16654 if test "$GCC" = yes; then
16656 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16657 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16658 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16660 case `$CC -V 2>&1` in
16663 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16665 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16669 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16670 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16671 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16675 hardcode_libdir_flag_spec
='-R$libdir'
16676 hardcode_shlibpath_var
=no
16678 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16680 # The compiler driver will combine and reorder linker options,
16681 # but understands `-z linker_flag'. GCC discards it without `$wl',
16682 # but is careful enough not to reorder.
16683 # Supported since Solaris 2.6 (maybe 2.5.1?)
16684 if test "$GCC" = yes; then
16685 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16687 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16691 link_all_deplibs
=yes
16695 if test "x$host_vendor" = xsequent
; then
16696 # Use $CC to link under sequent, because it throws in some extra .o
16697 # files that make .init and .fini sections work.
16698 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16700 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16702 hardcode_libdir_flag_spec
='-L$libdir'
16703 hardcode_direct
=yes
16704 hardcode_minus_L
=yes
16705 hardcode_shlibpath_var
=no
16709 case $host_vendor in
16711 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16712 hardcode_direct
=yes # is this really true???
16715 ## LD is ld it makes a PLAMLIB
16716 ## CC just makes a GrossModule.
16717 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16718 reload_cmds
='$CC -r -o $output$reload_objs'
16722 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16723 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16726 runpath_var
='LD_RUN_PATH'
16727 hardcode_shlibpath_var
=no
16731 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16732 hardcode_shlibpath_var
=no
16733 export_dynamic_flag_spec
='-Bexport'
16737 if test -d /usr
/nec
; then
16738 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739 hardcode_shlibpath_var
=no
16740 runpath_var
=LD_RUN_PATH
16741 hardcode_runpath_var
=yes
16746 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16747 no_undefined_flag
='${wl}-z,text'
16748 archive_cmds_need_lc
=no
16749 hardcode_shlibpath_var
=no
16750 runpath_var
='LD_RUN_PATH'
16752 if test "$GCC" = yes; then
16753 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16754 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16756 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16757 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16761 sysv5
* | sco3.2v5
* | sco5v6
*)
16762 # Note: We can NOT use -z defs as we might desire, because we do not
16763 # link with -lc, and that would cause any symbols used from libc to
16764 # always be unresolved, which means just about no library would
16765 # ever link correctly. If we're not using GNU ld we use -z text
16766 # though, which does catch some bad symbols but isn't as heavy-handed
16768 no_undefined_flag
='${wl}-z,text'
16769 allow_undefined_flag
='${wl}-z,nodefs'
16770 archive_cmds_need_lc
=no
16771 hardcode_shlibpath_var
=no
16772 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16773 hardcode_libdir_separator
=':'
16774 link_all_deplibs
=yes
16775 export_dynamic_flag_spec
='${wl}-Bexport'
16776 runpath_var
='LD_RUN_PATH'
16778 if test "$GCC" = yes; then
16779 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16780 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16782 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16783 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16788 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789 hardcode_libdir_flag_spec
='-L$libdir'
16790 hardcode_shlibpath_var
=no
16798 if test x
$host_vendor = xsni
; then
16800 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16801 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16808 $as_echo "$ld_shlibs" >&6; }
16809 test "$ld_shlibs" = no
&& can_build_shared
=no
16811 with_gnu_ld
=$with_gnu_ld
16828 # Do we need to explicitly link libc?
16830 case "x$archive_cmds_need_lc" in
16832 # Assume -lc should be added
16833 archive_cmds_need_lc
=yes
16835 if test "$enable_shared" = yes && test "$GCC" = yes; then
16836 case $archive_cmds in
16838 # FIXME: we may have to deal with multi-command sequences.
16841 # Test whether the compiler implicitly links with -lc since on some
16842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16843 # to ld, don't add -lc before -lgcc.
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16845 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16846 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16847 $as_echo_n "(cached) " >&6
16850 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16853 (eval $ac_compile) 2>&5
16855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16856 test $ac_status = 0; } 2>conftest.err
; then
16859 libobjs
=conftest.
$ac_objext
16861 wl
=$lt_prog_compiler_wl
16862 pic_flag
=$lt_prog_compiler_pic
16868 lt_save_allow_undefined_flag
=$allow_undefined_flag
16869 allow_undefined_flag
=
16870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16871 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16874 test $ac_status = 0; }
16876 lt_cv_archive_cmds_need_lc
=no
16878 lt_cv_archive_cmds_need_lc
=yes
16880 allow_undefined_flag
=$lt_save_allow_undefined_flag
16882 cat conftest.err
1>&5
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16888 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16889 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17053 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17055 if test "$GCC" = yes; then
17057 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17058 *) lt_awk_arg
="/^libraries:/" ;;
17061 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17062 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17064 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17065 case $lt_search_path_spec in
17067 # if the path contains ";" then we assume it to be the separator
17068 # otherwise default to the standard path separator (i.e. ":") - it is
17069 # assumed that no part of a normal pathname contains ";" but that should
17070 # okay in the real world where ";" in dirpaths is itself problematic.
17071 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17074 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17077 # Ok, now we have the path, separated by spaces, we can step through it
17078 # and add multilib dir if necessary.
17079 lt_tmp_lt_search_path_spec
=
17080 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17081 for lt_sys_path
in $lt_search_path_spec; do
17082 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17083 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17085 test -d "$lt_sys_path" && \
17086 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17089 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17090 BEGIN {RS=" "; FS="/|\n";} {
17093 for (lt_i = NF; lt_i > 0; lt_i--) {
17094 if ($lt_i != "" && $lt_i != ".") {
17095 if ($lt_i == "..") {
17098 if (lt_count == 0) {
17099 lt_foo="/" $lt_i lt_foo;
17106 if (lt_foo != "") { lt_freq[lt_foo]++; }
17107 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17109 # AWK program above erroneously prepends '/' to C:/dos/paths
17112 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17113 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17115 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17117 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17119 library_names_spec
=
17120 libname_spec
='lib$name'
17124 postuninstall_cmds
=
17128 shlibpath_overrides_runpath
=unknown
17130 dynamic_linker
="$host_os ld.so"
17131 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17132 need_lib_prefix
=unknown
17133 hardcode_into_libs
=no
17135 # when you set need_version to no, make sure it does not cause -set_version
17136 # flags to be left without arguments
17137 need_version
=unknown
17142 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17143 shlibpath_var
=LIBPATH
17145 # AIX 3 has no versioning support, so we append a major version to the name.
17146 soname_spec
='${libname}${release}${shared_ext}$major'
17153 hardcode_into_libs
=yes
17154 if test "$host_cpu" = ia64
; then
17155 # AIX 5 supports IA64
17156 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17157 shlibpath_var
=LD_LIBRARY_PATH
17159 # With GCC up to 2.95.x, collect2 would create an import file
17160 # for dependence libraries. The import file would start with
17161 # the line `#! .'. This would cause the generated library to
17162 # depend on `.', always an invalid library. This was fixed in
17163 # development snapshots of GCC prior to 3.0.
17165 aix4 | aix4.
[01] | aix4.
[01].
*)
17166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17168 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17171 can_build_shared
=no
17175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17176 # soname into executable. Probably we can add versioning support to
17177 # collect2, so additional links can be useful in future.
17178 if test "$aix_use_runtimelinking" = yes; then
17179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17180 # instead of lib<name>.a to let people know that these are not
17181 # typical AIX shared libraries.
17182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 # We preserve .a as extension for shared libraries through AIX4.2
17185 # and later when we are not doing run time linking.
17186 library_names_spec
='${libname}${release}.a $libname.a'
17187 soname_spec
='${libname}${release}${shared_ext}$major'
17189 shlibpath_var
=LIBPATH
17196 # Since July 2007 AmigaOS4 officially supports .so libraries.
17197 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17198 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17201 library_names_spec
='$libname.ixlibrary $libname.a'
17202 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17203 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'
17209 library_names_spec
='${libname}${shared_ext}'
17210 dynamic_linker
="$host_os ld.so"
17211 shlibpath_var
=LIBRARY_PATH
17217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 soname_spec
='${libname}${release}${shared_ext}$major'
17219 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17220 shlibpath_var
=LD_LIBRARY_PATH
17221 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17222 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17223 # the default ld.so.conf also contains /usr/contrib/lib and
17224 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17225 # libtool to hard-code these into programs
17228 cygwin
* | mingw
* | pw32
* | cegcc
*)
17229 version_type
=windows
17234 case $GCC,$host_os in
17235 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17236 library_names_spec
='$libname.dll.a'
17237 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17238 postinstall_cmds
='base_file=`basename \${file}`~
17239 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17240 dldir=$destdir/`dirname \$dlpath`~
17241 test -d \$dldir || mkdir -p \$dldir~
17242 $install_prog $dir/$dlname \$dldir/$dlname~
17243 chmod a+x \$dldir/$dlname~
17244 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17245 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17247 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17248 dlpath=$dir/\$dldll~
17250 shlibpath_overrides_runpath
=yes
17254 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17255 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17257 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17260 # MinGW DLLs use traditional 'lib' prefix
17261 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17264 # pw32 DLLs use 'pw' prefix rather than 'lib'
17265 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17271 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17274 dynamic_linker
='Win32 ld.exe'
17275 # FIXME: first we should search . and the directory the executable is in
17279 darwin
* | rhapsody
*)
17280 dynamic_linker
="$host_os dyld"
17281 version_type
=darwin
17284 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17285 soname_spec
='${libname}${release}${major}$shared_ext'
17286 shlibpath_overrides_runpath
=yes
17287 shlibpath_var
=DYLD_LIBRARY_PATH
17288 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17290 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17291 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17299 soname_spec
='${libname}${release}${shared_ext}$major'
17300 shlibpath_var
=LD_LIBRARY_PATH
17303 freebsd
* | dragonfly
*)
17304 # DragonFly does not have aout. When/if they implement a new
17305 # versioning mechanism, adjust this.
17306 if test -x /usr
/bin
/objformat
; then
17307 objformat
=`/usr/bin/objformat`
17310 freebsd
[23].
*) objformat
=aout
;;
17311 *) objformat
=elf
;;
17314 version_type
=freebsd-
$objformat
17315 case $version_type in
17317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17322 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17326 shlibpath_var
=LD_LIBRARY_PATH
17329 shlibpath_overrides_runpath
=yes
17331 freebsd3.
[01]* | freebsdelf3.
[01]*)
17332 shlibpath_overrides_runpath
=yes
17333 hardcode_into_libs
=yes
17335 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17336 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17337 shlibpath_overrides_runpath
=no
17338 hardcode_into_libs
=yes
17340 *) # from 4.6 on, and DragonFly
17341 shlibpath_overrides_runpath
=yes
17342 hardcode_into_libs
=yes
17351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17352 soname_spec
='${libname}${release}${shared_ext}$major'
17353 shlibpath_var
=LD_LIBRARY_PATH
17354 hardcode_into_libs
=yes
17361 dynamic_linker
="$host_os runtime_loader"
17362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17363 soname_spec
='${libname}${release}${shared_ext}$major'
17364 shlibpath_var
=LIBRARY_PATH
17365 shlibpath_overrides_runpath
=yes
17366 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17367 hardcode_into_libs
=yes
17370 hpux9
* | hpux10
* | hpux11
*)
17371 # Give a soname corresponding to the major version so that dld.sl refuses to
17372 # link against other versions.
17379 hardcode_into_libs
=yes
17380 dynamic_linker
="$host_os dld.so"
17381 shlibpath_var
=LD_LIBRARY_PATH
17382 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 soname_spec
='${libname}${release}${shared_ext}$major'
17385 if test "X$HPUX_IA64_MODE" = X32
; then
17386 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17388 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17390 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17394 hardcode_into_libs
=yes
17395 dynamic_linker
="$host_os dld.sl"
17396 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17397 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17398 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399 soname_spec
='${libname}${release}${shared_ext}$major'
17400 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17401 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17405 dynamic_linker
="$host_os dld.sl"
17406 shlibpath_var
=SHLIB_PATH
17407 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
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'
17412 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17413 postinstall_cmds
='chmod 555 $lib'
17414 # or fails outright, so override atomically:
17415 install_override_mode
=555
17422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17423 soname_spec
='${libname}${release}${shared_ext}$major'
17424 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17425 shlibpath_var
=LD_LIBRARY_PATH
17426 shlibpath_overrides_runpath
=no
17427 hardcode_into_libs
=yes
17430 irix5
* | irix6
* | nonstopux
*)
17432 nonstopux
*) version_type
=nonstopux
;;
17434 if test "$lt_cv_prog_gnu_ld" = yes; then
17442 soname_spec
='${libname}${release}${shared_ext}$major'
17443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17445 irix5
* | nonstopux
*)
17446 libsuff
= shlibsuff
=
17449 case $LD in # libtool.m4 will add one of these switches to LD
17450 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17451 libsuff
= shlibsuff
= libmagic
=32-bit;;
17452 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17453 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17454 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17455 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17456 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17460 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17461 shlibpath_overrides_runpath
=no
17462 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17463 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17464 hardcode_into_libs
=yes
17467 # No shared lib support for Linux oldld, aout, or coff.
17468 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17472 # This must be Linux ELF.
17473 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
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 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17480 shlibpath_var
=LD_LIBRARY_PATH
17481 shlibpath_overrides_runpath
=no
17483 # Some binutils ld are patched to set DT_RUNPATH
17484 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17485 $as_echo_n "(cached) " >&6
17487 lt_cv_shlibpath_overrides_runpath
=no
17488 save_LDFLAGS
=$LDFLAGS
17489 save_libdir
=$libdir
17490 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17491 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h. */
17503 if ac_fn_c_try_link
"$LINENO"; then :
17504 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17505 lt_cv_shlibpath_overrides_runpath
=yes
17508 rm -f core conftest.err conftest.
$ac_objext \
17509 conftest
$ac_exeext conftest.
$ac_ext
17510 LDFLAGS
=$save_LDFLAGS
17511 libdir
=$save_libdir
17515 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17517 # This implies no fast_install, which is unacceptable.
17518 # Some rework will be needed to allow for fast_install
17519 # before this can be enabled.
17520 hardcode_into_libs
=yes
17522 # Append ld.so.conf contents to the search path
17523 if test -f /etc
/ld.so.conf
; then
17524 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' ' '`
17525 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17528 # We used to test for /lib/ld.so.1 and disable shared libraries on
17529 # powerpc, because MkLinux only supported shared libraries with the
17530 # GNU dynamic linker. Since this was broken with cross compilers,
17531 # most powerpc-linux boxes support dynamic linking these days and
17532 # people can always --disable-shared, the test was removed, and we
17533 # assume the GNU/Linux dynamic linker is in use.
17534 dynamic_linker
='GNU/Linux ld.so'
17541 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17543 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17544 dynamic_linker
='NetBSD (a.out) ld.so'
17546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17547 soname_spec
='${libname}${release}${shared_ext}$major'
17548 dynamic_linker
='NetBSD ld.elf_so'
17550 shlibpath_var
=LD_LIBRARY_PATH
17551 shlibpath_overrides_runpath
=yes
17552 hardcode_into_libs
=yes
17557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558 shlibpath_var
=LD_LIBRARY_PATH
17559 shlibpath_overrides_runpath
=yes
17566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567 soname_spec
='${libname}${release}${shared_ext}$major'
17568 shlibpath_var
=LD_LIBRARY_PATH
17569 shlibpath_overrides_runpath
=no
17570 hardcode_into_libs
=yes
17571 dynamic_linker
='ldqnx.so'
17576 sys_lib_dlsearch_path_spec
="/usr/lib"
17578 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17580 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17581 *) need_version
=no
;;
17583 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17584 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17585 shlibpath_var
=LD_LIBRARY_PATH
17586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17588 openbsd2.
[89] | openbsd2.
[89].
*)
17589 shlibpath_overrides_runpath
=no
17592 shlibpath_overrides_runpath
=yes
17596 shlibpath_overrides_runpath
=yes
17601 libname_spec
='$name'
17604 library_names_spec
='$libname${shared_ext} $libname.a'
17605 dynamic_linker
='OS/2 ld.exe'
17606 shlibpath_var
=LIBPATH
17609 osf3
* | osf4
* | osf5
*)
17613 soname_spec
='${libname}${release}${shared_ext}$major'
17614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17615 shlibpath_var
=LD_LIBRARY_PATH
17616 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17617 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629 soname_spec
='${libname}${release}${shared_ext}$major'
17630 shlibpath_var
=LD_LIBRARY_PATH
17631 shlibpath_overrides_runpath
=yes
17632 hardcode_into_libs
=yes
17633 # ldd complains unless libraries are executable
17634 postinstall_cmds
='chmod +x $lib'
17639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17640 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17641 shlibpath_var
=LD_LIBRARY_PATH
17642 shlibpath_overrides_runpath
=yes
17643 if test "$with_gnu_ld" = yes; then
17651 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652 soname_spec
='${libname}${release}${shared_ext}$major'
17653 shlibpath_var
=LD_LIBRARY_PATH
17654 case $host_vendor in
17656 shlibpath_overrides_runpath
=no
17658 runpath_var
=LD_RUN_PATH
17666 shlibpath_overrides_runpath
=no
17667 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17673 if test -d /usr
/nec
;then
17675 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17676 soname_spec
='$libname${shared_ext}.$major'
17677 shlibpath_var
=LD_LIBRARY_PATH
17681 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17682 version_type
=freebsd-elf
17685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17686 soname_spec
='${libname}${release}${shared_ext}$major'
17687 shlibpath_var
=LD_LIBRARY_PATH
17688 shlibpath_overrides_runpath
=yes
17689 hardcode_into_libs
=yes
17690 if test "$with_gnu_ld" = yes; then
17691 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17693 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17696 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17700 sys_lib_dlsearch_path_spec
='/usr/lib'
17704 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17709 shlibpath_var
=LD_LIBRARY_PATH
17710 shlibpath_overrides_runpath
=no
17711 hardcode_into_libs
=yes
17716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17717 soname_spec
='${libname}${release}${shared_ext}$major'
17718 shlibpath_var
=LD_LIBRARY_PATH
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17726 $as_echo "$dynamic_linker" >&6; }
17727 test "$dynamic_linker" = no
&& can_build_shared
=no
17729 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17730 if test "$GCC" = yes; then
17731 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17734 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17735 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17737 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17738 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17833 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17835 if test -n "$hardcode_libdir_flag_spec" ||
17836 test -n "$runpath_var" ||
17837 test "X$hardcode_automatic" = "Xyes" ; then
17839 # We can hardcode non-existent directories.
17840 if test "$hardcode_direct" != no
&&
17841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17842 # have to relink, otherwise we might link with an installed library
17843 # when we should be linking with a yet-to-be-installed one
17844 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17845 test "$hardcode_minus_L" != no
; then
17846 # Linking always hardcodes the temporary library directory.
17847 hardcode_action
=relink
17849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17850 hardcode_action
=immediate
17853 # We cannot hardcode anything, or else we can only hardcode existing
17855 hardcode_action
=unsupported
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17858 $as_echo "$hardcode_action" >&6; }
17860 if test "$hardcode_action" = relink ||
17861 test "$inherit_rpath" = yes; then
17862 # Fast installation is not supported
17863 enable_fast_install
=no
17864 elif test "$shlibpath_overrides_runpath" = yes ||
17865 test "$enable_shared" = no
; then
17866 # Fast installation is not necessary
17867 enable_fast_install
=needless
17875 if test "x$enable_dlopen" != xyes
; then
17876 enable_dlopen
=unknown
17877 enable_dlopen_self
=unknown
17878 enable_dlopen_self_static
=unknown
17885 lt_cv_dlopen
="load_add_on"
17887 lt_cv_dlopen_self
=yes
17890 mingw
* | pw32
* | cegcc
*)
17891 lt_cv_dlopen
="LoadLibrary"
17896 lt_cv_dlopen
="dlopen"
17901 # if libdl is installed we need to link against it
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17905 $as_echo_n "(cached) " >&6
17907 ac_check_lib_save_LIBS
=$LIBS
17909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17912 /* Override any GCC internal prototype to avoid an error.
17913 Use char because int might match the return type of a GCC
17914 builtin and then its argument prototype would still apply. */
17927 if ac_fn_c_try_link
"$LINENO"; then :
17928 ac_cv_lib_dl_dlopen
=yes
17930 ac_cv_lib_dl_dlopen
=no
17932 rm -f core conftest.err conftest.
$ac_objext \
17933 conftest
$ac_exeext conftest.
$ac_ext
17934 LIBS
=$ac_check_lib_save_LIBS
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17937 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17938 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17939 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17942 lt_cv_dlopen
="dyld"
17944 lt_cv_dlopen_self
=yes
17951 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17952 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17953 lt_cv_dlopen
="shl_load"
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17956 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17957 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17958 $as_echo_n "(cached) " >&6
17960 ac_check_lib_save_LIBS
=$LIBS
17962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h. */
17965 /* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17975 return shl_load ();
17980 if ac_fn_c_try_link
"$LINENO"; then :
17981 ac_cv_lib_dld_shl_load
=yes
17983 ac_cv_lib_dld_shl_load
=no
17985 rm -f core conftest.err conftest.
$ac_objext \
17986 conftest
$ac_exeext conftest.
$ac_ext
17987 LIBS
=$ac_check_lib_save_LIBS
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17990 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17991 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17992 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17994 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17995 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17996 lt_cv_dlopen
="dlopen"
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17999 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18001 $as_echo_n "(cached) " >&6
18003 ac_check_lib_save_LIBS
=$LIBS
18005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18006 /* end confdefs.h. */
18008 /* Override any GCC internal prototype to avoid an error.
18009 Use char because int might match the return type of a GCC
18010 builtin and then its argument prototype would still apply. */
18023 if ac_fn_c_try_link
"$LINENO"; then :
18024 ac_cv_lib_dl_dlopen
=yes
18026 ac_cv_lib_dl_dlopen
=no
18028 rm -f core conftest.err conftest.
$ac_objext \
18029 conftest
$ac_exeext conftest.
$ac_ext
18030 LIBS
=$ac_check_lib_save_LIBS
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18033 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18034 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18035 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18038 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18039 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18040 $as_echo_n "(cached) " >&6
18042 ac_check_lib_save_LIBS
=$LIBS
18043 LIBS
="-lsvld $LIBS"
18044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18062 if ac_fn_c_try_link
"$LINENO"; then :
18063 ac_cv_lib_svld_dlopen
=yes
18065 ac_cv_lib_svld_dlopen
=no
18067 rm -f core conftest.err conftest.
$ac_objext \
18068 conftest
$ac_exeext conftest.
$ac_ext
18069 LIBS
=$ac_check_lib_save_LIBS
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18072 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18073 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18074 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18077 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18078 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18079 $as_echo_n "(cached) " >&6
18081 ac_check_lib_save_LIBS
=$LIBS
18083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h. */
18086 /* Override any GCC internal prototype to avoid an error.
18087 Use char because int might match the return type of a GCC
18088 builtin and then its argument prototype would still apply. */
18096 return dld_link ();
18101 if ac_fn_c_try_link
"$LINENO"; then :
18102 ac_cv_lib_dld_dld_link
=yes
18104 ac_cv_lib_dld_dld_link
=no
18106 rm -f core conftest.err conftest.
$ac_objext \
18107 conftest
$ac_exeext conftest.
$ac_ext
18108 LIBS
=$ac_check_lib_save_LIBS
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18111 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18112 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18113 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18134 if test "x$lt_cv_dlopen" != xno
; then
18140 case $lt_cv_dlopen in
18142 save_CPPFLAGS
="$CPPFLAGS"
18143 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18145 save_LDFLAGS
="$LDFLAGS"
18146 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18149 LIBS
="$lt_cv_dlopen_libs $LIBS"
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18152 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18153 if test "${lt_cv_dlopen_self+set}" = set; then :
18154 $as_echo_n "(cached) " >&6
18156 if test "$cross_compiling" = yes; then :
18157 lt_cv_dlopen_self
=cross
18159 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18160 lt_status
=$lt_dlunknown
18161 cat > conftest.
$ac_ext <<_LT_EOF
18162 #line 18162 "configure"
18163 #include "confdefs.h"
18172 # define LT_DLGLOBAL RTLD_GLOBAL
18175 # define LT_DLGLOBAL DL_GLOBAL
18177 # define LT_DLGLOBAL 0
18181 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18182 find out it does not work in some platform. */
18183 #ifndef LT_DLLAZY_OR_NOW
18185 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18188 # define LT_DLLAZY_OR_NOW DL_LAZY
18191 # define LT_DLLAZY_OR_NOW RTLD_NOW
18194 # define LT_DLLAZY_OR_NOW DL_NOW
18196 # define LT_DLLAZY_OR_NOW 0
18203 /* When -fvisbility=hidden is used, assume the code has been annotated
18204 correspondingly for the symbols needed. */
18205 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18206 void fnord () __attribute__((visibility("default")));
18209 void fnord () { int i=42; }
18212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18213 int status = $lt_dlunknown;
18217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18220 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18221 else puts (dlerror ());
18223 /* dlclose (self); */
18231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18232 (eval $ac_link) 2>&5
18234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18235 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18236 (.
/conftest
; exit; ) >&5 2>/dev
/null
18238 case x
$lt_status in
18239 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18240 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18241 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18244 # compilation failed
18245 lt_cv_dlopen_self
=no
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18253 $as_echo "$lt_cv_dlopen_self" >&6; }
18255 if test "x$lt_cv_dlopen_self" = xyes
; then
18256 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18258 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18259 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18260 $as_echo_n "(cached) " >&6
18262 if test "$cross_compiling" = yes; then :
18263 lt_cv_dlopen_self_static
=cross
18265 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18266 lt_status
=$lt_dlunknown
18267 cat > conftest.
$ac_ext <<_LT_EOF
18268 #line 18268 "configure"
18269 #include "confdefs.h"
18278 # define LT_DLGLOBAL RTLD_GLOBAL
18281 # define LT_DLGLOBAL DL_GLOBAL
18283 # define LT_DLGLOBAL 0
18287 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18288 find out it does not work in some platform. */
18289 #ifndef LT_DLLAZY_OR_NOW
18291 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18294 # define LT_DLLAZY_OR_NOW DL_LAZY
18297 # define LT_DLLAZY_OR_NOW RTLD_NOW
18300 # define LT_DLLAZY_OR_NOW DL_NOW
18302 # define LT_DLLAZY_OR_NOW 0
18309 /* When -fvisbility=hidden is used, assume the code has been annotated
18310 correspondingly for the symbols needed. */
18311 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18312 void fnord () __attribute__((visibility("default")));
18315 void fnord () { int i=42; }
18318 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18319 int status = $lt_dlunknown;
18323 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18326 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18327 else puts (dlerror ());
18329 /* dlclose (self); */
18337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18338 (eval $ac_link) 2>&5
18340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18341 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18342 (.
/conftest
; exit; ) >&5 2>/dev
/null
18344 case x
$lt_status in
18345 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18346 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18347 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18350 # compilation failed
18351 lt_cv_dlopen_self_static
=no
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18359 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18362 CPPFLAGS
="$save_CPPFLAGS"
18363 LDFLAGS
="$save_LDFLAGS"
18368 case $lt_cv_dlopen_self in
18369 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18370 *) enable_dlopen_self
=unknown
;;
18373 case $lt_cv_dlopen_self_static in
18374 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18375 *) enable_dlopen_self_static
=unknown
;;
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18398 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18399 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18400 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18401 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18403 $as_echo "yes" >&6; }
18405 # FIXME - insert some real tests, host_os isn't really good enough
18408 if test -n "$STRIP" ; then
18409 striplib
="$STRIP -x"
18410 old_striplib
="$STRIP -S"
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18412 $as_echo "yes" >&6; }
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18420 $as_echo "no" >&6; }
18436 # Report which library types will actually be built
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18438 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18440 $as_echo "$can_build_shared" >&6; }
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18443 $as_echo_n "checking whether to build shared libraries... " >&6; }
18444 test "$can_build_shared" = "no" && enable_shared
=no
18446 # On AIX, shared libraries and static libraries use the same namespace, and
18447 # are all built from PIC.
18450 test "$enable_shared" = yes && enable_static
=no
18451 if test -n "$RANLIB"; then
18452 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18453 postinstall_cmds
='$RANLIB $lib'
18458 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18459 test "$enable_shared" = yes && enable_static
=no
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18464 $as_echo "$enable_shared" >&6; }
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18467 $as_echo_n "checking whether to build static libraries... " >&6; }
18468 # Make sure either enable_shared or enable_static is yes.
18469 test "$enable_shared" = yes || enable_static
=yes
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18471 $as_echo "$enable_static" >&6; }
18478 ac_cpp
='$CPP $CPPFLAGS'
18479 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18485 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18486 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18487 (test "X$CXX" != "Xg++"))) ; then
18489 ac_cpp
='$CXXCPP $CPPFLAGS'
18490 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18491 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18492 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18494 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18495 if test -z "$CXXCPP"; then
18496 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18497 $as_echo_n "(cached) " >&6
18499 # Double quotes because CXXCPP needs to be expanded
18500 for CXXCPP
in "$CXX -E" "/lib/cpp"
18502 ac_preproc_ok
=false
18503 for ac_cxx_preproc_warn_flag
in '' yes
18505 # Use a header file that comes with gcc, so configuring glibc
18506 # with a fresh cross-compiler works.
18507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18508 # <limits.h> exists even on freestanding compilers.
18509 # On the NeXT, cc -E runs the code through the compiler's parser,
18510 # not just through cpp. "Syntax error" is here to catch this case.
18511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18514 # include <limits.h>
18516 # include <assert.h>
18520 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18523 # Broken: fails on valid input.
18526 rm -f conftest.err conftest.
$ac_ext
18528 # OK, works on sane cases. Now check whether nonexistent headers
18529 # can be detected and how.
18530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18531 /* end confdefs.h. */
18532 #include <ac_nonexistent.h>
18534 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18535 # Broken: success on invalid input.
18538 # Passes both tests.
18542 rm -f conftest.err conftest.
$ac_ext
18545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18546 rm -f conftest.err conftest.
$ac_ext
18547 if $ac_preproc_ok; then :
18552 ac_cv_prog_CXXCPP
=$CXXCPP
18555 CXXCPP
=$ac_cv_prog_CXXCPP
18557 ac_cv_prog_CXXCPP
=$CXXCPP
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18560 $as_echo "$CXXCPP" >&6; }
18561 ac_preproc_ok
=false
18562 for ac_cxx_preproc_warn_flag
in '' yes
18564 # Use a header file that comes with gcc, so configuring glibc
18565 # with a fresh cross-compiler works.
18566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18567 # <limits.h> exists even on freestanding compilers.
18568 # On the NeXT, cc -E runs the code through the compiler's parser,
18569 # not just through cpp. "Syntax error" is here to catch this case.
18570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h. */
18573 # include <limits.h>
18575 # include <assert.h>
18579 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18582 # Broken: fails on valid input.
18585 rm -f conftest.err conftest.
$ac_ext
18587 # OK, works on sane cases. Now check whether nonexistent headers
18588 # can be detected and how.
18589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h. */
18591 #include <ac_nonexistent.h>
18593 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18594 # Broken: success on invalid input.
18597 # Passes both tests.
18601 rm -f conftest.err conftest.
$ac_ext
18604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18605 rm -f conftest.err conftest.
$ac_ext
18606 if $ac_preproc_ok; then :
18609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18611 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18612 See \`config.log' for more details." "$LINENO" 5; }
18616 ac_cpp
='$CPP $CPPFLAGS'
18617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18622 _lt_caught_CXX_error
=yes
18626 ac_cpp
='$CXXCPP $CPPFLAGS'
18627 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18628 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18629 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18631 archive_cmds_need_lc_CXX
=no
18632 allow_undefined_flag_CXX
=
18633 always_export_symbols_CXX
=no
18634 archive_expsym_cmds_CXX
=
18635 compiler_needs_object_CXX
=no
18636 export_dynamic_flag_spec_CXX
=
18637 hardcode_direct_CXX
=no
18638 hardcode_direct_absolute_CXX
=no
18639 hardcode_libdir_flag_spec_CXX
=
18640 hardcode_libdir_flag_spec_ld_CXX
=
18641 hardcode_libdir_separator_CXX
=
18642 hardcode_minus_L_CXX
=no
18643 hardcode_shlibpath_var_CXX
=unsupported
18644 hardcode_automatic_CXX
=no
18645 inherit_rpath_CXX
=no
18647 module_expsym_cmds_CXX
=
18648 link_all_deplibs_CXX
=unknown
18649 old_archive_cmds_CXX
=$old_archive_cmds
18650 reload_flag_CXX
=$reload_flag
18651 reload_cmds_CXX
=$reload_cmds
18652 no_undefined_flag_CXX
=
18653 whole_archive_flag_spec_CXX
=
18654 enable_shared_with_static_runtimes_CXX
=no
18656 # Source file extension for C++ test sources.
18659 # Object file extension for compiled C++ test sources.
18663 # No sense in running all these tests if we already determined that
18664 # the CXX compiler isn't working. Some variables (like enable_shared)
18665 # are currently assumed to apply to all compilers on this platform,
18666 # and will be corrupted by setting them based on a non-working compiler.
18667 if test "$_lt_caught_CXX_error" != yes; then
18668 # Code to be used in simple compile tests
18669 lt_simple_compile_test_code
="int some_variable = 0;"
18671 # Code to be used in simple link tests
18672 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18681 # If no C compiler was specified, use CC.
18684 # If no C compiler flags were specified, use CFLAGS.
18685 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18687 # Allow CC to be a program name with arguments.
18691 # save warnings/boilerplate of simple test code
18692 ac_outfile
=conftest.
$ac_objext
18693 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18694 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18695 _lt_compiler_boilerplate
=`cat conftest.err`
18698 ac_outfile
=conftest.
$ac_objext
18699 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18700 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18701 _lt_linker_boilerplate
=`cat conftest.err`
18705 # Allow CC to be a program name with arguments.
18710 lt_save_with_gnu_ld
=$with_gnu_ld
18711 lt_save_path_LD
=$lt_cv_path_LD
18712 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18713 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18715 $as_unset lt_cv_prog_gnu_ld
18717 if test -n "${lt_cv_path_LDCXX+set}"; then
18718 lt_cv_path_LD
=$lt_cv_path_LDCXX
18720 $as_unset lt_cv_path_LD
18722 test -z "${LDCXX+set}" || LD
=$LDCXX
18726 for cc_temp
in $compiler""; do
18728 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18729 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18734 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18737 if test -n "$compiler"; then
18738 # We don't want -fno-exception when compiling C++ code, so set the
18739 # no_builtin_flag separately
18740 if test "$GXX" = yes; then
18741 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18743 lt_prog_compiler_no_builtin_flag_CXX
=
18746 if test "$GXX" = yes; then
18747 # Set up default GNU C++ configuration
18751 # Check whether --with-gnu-ld was given.
18752 if test "${with_gnu_ld+set}" = set; then :
18753 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18759 if test "$GCC" = yes; then
18760 # Check if gcc -print-prog-name=ld gives a path.
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18762 $as_echo_n "checking for ld used by $CC... " >&6; }
18765 # gcc leaves a trailing carriage return which upsets mingw
18766 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18768 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18771 # Accept absolute paths.
18773 re_direlt
='/[^/][^/]*/\.\./'
18774 # Canonicalize the pathname of ld
18775 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18776 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18777 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18779 test -z "$LD" && LD
="$ac_prog"
18782 # If it fails, then pretend we aren't using GCC.
18786 # If it is relative, then search for the first ld in PATH.
18787 with_gnu_ld
=unknown
18790 elif test "$with_gnu_ld" = yes; then
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18792 $as_echo_n "checking for GNU ld... " >&6; }
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18795 $as_echo_n "checking for non-GNU ld... " >&6; }
18797 if test "${lt_cv_path_LD+set}" = set; then :
18798 $as_echo_n "(cached) " >&6
18800 if test -z "$LD"; then
18801 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18802 for ac_dir
in $PATH; do
18804 test -z "$ac_dir" && ac_dir
=.
18805 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18806 lt_cv_path_LD
="$ac_dir/$ac_prog"
18807 # Check to see if the program is GNU ld. I'd rather use --version,
18808 # but apparently some variants of GNU ld only accept -v.
18809 # Break only if it was the GNU/non-GNU ld that we prefer.
18810 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18811 *GNU
* |
*'with BFD'*)
18812 test "$with_gnu_ld" != no
&& break
18815 test "$with_gnu_ld" != yes && break
18822 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18826 LD
="$lt_cv_path_LD"
18827 if test -n "$LD"; then
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18829 $as_echo "$LD" >&6; }
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18832 $as_echo "no" >&6; }
18834 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18836 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18837 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18838 $as_echo_n "(cached) " >&6
18840 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18841 case `$LD -v 2>&1 </dev/null` in
18842 *GNU
* |
*'with BFD'*)
18843 lt_cv_prog_gnu_ld
=yes
18846 lt_cv_prog_gnu_ld
=no
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18851 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18852 with_gnu_ld
=$lt_cv_prog_gnu_ld
18860 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18861 # archiving commands below assume that GNU ld is being used.
18862 if test "$with_gnu_ld" = yes; then
18863 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18864 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'
18866 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18867 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18869 # If archive_cmds runs LD, not CC, wlarc should be empty
18870 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18871 # investigate it a little bit more. (MM)
18874 # ancient GNU ld didn't support --whole-archive et. al.
18875 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18876 $GREP 'no-whole-archive' > /dev
/null
; then
18877 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18879 whole_archive_flag_spec_CXX
=
18885 # A generic and very simple default shared library creation
18886 # command for GNU C++ for the case where it uses the native
18887 # linker, instead of GNU ld. If possible, this setting should
18888 # overridden to take advantage of the native linker features on
18889 # the platform it is being used on.
18890 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18893 # Commands to make compiler produce verbose output that lists
18894 # what "hidden" libraries, object files and flags are used when
18895 # linking a shared library.
18896 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18904 # PORTME: fill in a description of your system's C++ link characteristics
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18906 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18910 # FIXME: insert proper C++ library support
18914 if test "$host_cpu" = ia64
; then
18915 # On IA64, the linker does run time linking by default, so we don't
18916 # have to do anything special.
18917 aix_use_runtimelinking
=no
18918 exp_sym_flag
='-Bexport'
18921 aix_use_runtimelinking
=no
18923 # Test if we are trying to use run time linking or normal
18924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18925 # need to do runtime linking.
18926 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18927 for ld_flag
in $LDFLAGS; do
18930 aix_use_runtimelinking
=yes
18938 exp_sym_flag
='-bexport'
18939 no_entry_flag
='-bnoentry'
18942 # When large executables or shared objects are built, AIX ld can
18943 # have problems creating the table of contents. If linking a library
18944 # or program results in "error TOC overflow" add -mminimal-toc to
18945 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18946 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18948 archive_cmds_CXX
=''
18949 hardcode_direct_CXX
=yes
18950 hardcode_direct_absolute_CXX
=yes
18951 hardcode_libdir_separator_CXX
=':'
18952 link_all_deplibs_CXX
=yes
18953 file_list_spec_CXX
='${wl}-f,'
18955 if test "$GXX" = yes; then
18956 case $host_os in aix4.
[012]|aix4.
[012].
*)
18957 # We only want to do this on AIX 4.2 and lower, the check
18958 # below for broken collect2 doesn't work under 4.3+
18959 collect2name
=`${CC} -print-prog-name=collect2`
18960 if test -f "$collect2name" &&
18961 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18963 # We have reworked collect2
18966 # We have old collect2
18967 hardcode_direct_CXX
=unsupported
18968 # It fails to find uninstalled libraries when the uninstalled
18969 # path is not listed in the libpath. Setting hardcode_minus_L
18970 # to unsupported forces relinking
18971 hardcode_minus_L_CXX
=yes
18972 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18973 hardcode_libdir_separator_CXX
=
18976 shared_flag
='-shared'
18977 if test "$aix_use_runtimelinking" = yes; then
18978 shared_flag
="$shared_flag "'${wl}-G'
18982 if test "$host_cpu" = ia64
; then
18983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18984 # chokes on -Wl,-G. The following line is correct:
18987 if test "$aix_use_runtimelinking" = yes; then
18988 shared_flag
='${wl}-G'
18990 shared_flag
='${wl}-bM:SRE'
18995 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18996 # It seems that -bexpall does not export symbols beginning with
18997 # underscore (_), so it is better to generate a list of symbols to
18999 always_export_symbols_CXX
=yes
19000 if test "$aix_use_runtimelinking" = yes; then
19001 # Warning - without using the other runtime loading flags (-brtl),
19002 # -berok will link without error, but may produce a broken library.
19003 allow_undefined_flag_CXX
='-berok'
19004 # Determine the default libpath from the value encoded in an empty
19006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19007 /* end confdefs.h. */
19017 if ac_fn_cxx_try_link
"$LINENO"; then :
19019 lt_aix_libpath_sed
='
19020 /Import File Strings/,/^$/ {
19026 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19027 # Check for a 64-bit object if we didn't find anything.
19028 if test -z "$aix_libpath"; then
19029 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19032 rm -f core conftest.err conftest.
$ac_objext \
19033 conftest
$ac_exeext conftest.
$ac_ext
19034 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19036 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19038 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"
19040 if test "$host_cpu" = ia64
; then
19041 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19042 allow_undefined_flag_CXX
="-z nodefs"
19043 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"
19045 # Determine the default libpath from the value encoded in an
19046 # empty executable.
19047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19058 if ac_fn_cxx_try_link
"$LINENO"; then :
19060 lt_aix_libpath_sed
='
19061 /Import File Strings/,/^$/ {
19067 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19068 # Check for a 64-bit object if we didn't find anything.
19069 if test -z "$aix_libpath"; then
19070 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19073 rm -f core conftest.err conftest.
$ac_objext \
19074 conftest
$ac_exeext conftest.
$ac_ext
19075 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19077 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19078 # Warning - without using the other run time loading flags,
19079 # -berok will link without error, but may produce a broken library.
19080 no_undefined_flag_CXX
=' ${wl}-bernotok'
19081 allow_undefined_flag_CXX
=' ${wl}-berok'
19082 if test "$with_gnu_ld" = yes; then
19083 # We only use this code for GNU lds that support --whole-archive.
19084 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19086 # Exported symbols can be pulled into shared objects from archives
19087 whole_archive_flag_spec_CXX
='$convenience'
19089 archive_cmds_need_lc_CXX
=yes
19090 # This is similar to how AIX traditionally builds its shared
19092 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'
19098 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19099 allow_undefined_flag_CXX
=unsupported
19100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19101 # support --undefined. This deserves some investigation. FIXME
19102 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19109 case $cc_basename in
19111 # FIXME: insert proper C++ library support
19117 cygwin
* | mingw
* | pw32
* | cegcc
*)
19118 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19119 # as there is no search path for DLLs.
19120 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19121 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19122 allow_undefined_flag_CXX
=unsupported
19123 always_export_symbols_CXX
=no
19124 enable_shared_with_static_runtimes_CXX
=yes
19126 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19127 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'
19128 # If the export-symbols file already is a .def file (1st line
19129 # is EXPORTS), use it as is; otherwise, prepend...
19130 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19131 cp $export_symbols $output_objdir/$soname.def;
19133 echo EXPORTS > $output_objdir/$soname.def;
19134 cat $export_symbols >> $output_objdir/$soname.def;
19136 $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'
19141 darwin
* | rhapsody
*)
19144 archive_cmds_need_lc_CXX
=no
19145 hardcode_direct_CXX
=no
19146 hardcode_automatic_CXX
=yes
19147 hardcode_shlibpath_var_CXX
=unsupported
19148 if test "$lt_cv_ld_force_load" = "yes"; then
19149 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\"`'
19151 whole_archive_flag_spec_CXX
=''
19153 link_all_deplibs_CXX
=yes
19154 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19155 case $cc_basename in
19156 ifort
*) _lt_dar_can_shared
=yes ;;
19157 *) _lt_dar_can_shared
=$GCC ;;
19159 if test "$_lt_dar_can_shared" = "yes"; then
19160 output_verbose_link_cmd
=func_echo_all
19161 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}"
19162 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19163 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}"
19164 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}"
19165 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19166 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}"
19167 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}"
19177 case $cc_basename in
19179 # FIXME: insert proper C++ library support
19183 # Green Hills C++ Compiler
19184 # FIXME: insert proper C++ library support
19188 # FIXME: insert proper C++ library support
19195 # C++ shared libraries reported to be fairly broken before
19201 archive_cmds_need_lc_CXX
=no
19204 freebsd
* | dragonfly
*)
19205 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19214 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19215 link_all_deplibs_CXX
=yes
19219 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19220 hardcode_libdir_separator_CXX
=:
19221 export_dynamic_flag_spec_CXX
='${wl}-E'
19222 hardcode_direct_CXX
=yes
19223 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19224 # but as the default
19225 # location of the library.
19227 case $cc_basename in
19229 # FIXME: insert proper C++ library support
19233 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'
19234 # Commands to make compiler produce verbose output that lists
19235 # what "hidden" libraries, object files and flags are used when
19236 # linking a shared library.
19238 # There doesn't appear to be a way to prevent this compiler from
19239 # explicitly linking system object files so we need to strip them
19240 # from the output so that they don't get included in the library
19242 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"'
19245 if test "$GXX" = yes; then
19246 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'
19248 # FIXME: insert proper C++ library support
19256 if test $with_gnu_ld = no
; then
19257 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19258 hardcode_libdir_separator_CXX
=:
19264 export_dynamic_flag_spec_CXX
='${wl}-E'
19270 hardcode_direct_CXX
=no
19271 hardcode_shlibpath_var_CXX
=no
19274 hardcode_direct_CXX
=yes
19275 hardcode_direct_absolute_CXX
=yes
19276 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19277 # but as the default
19278 # location of the library.
19282 case $cc_basename in
19284 # FIXME: insert proper C++ library support
19290 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19293 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19296 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19299 # Commands to make compiler produce verbose output that lists
19300 # what "hidden" libraries, object files and flags are used when
19301 # linking a shared library.
19303 # There doesn't appear to be a way to prevent this compiler from
19304 # explicitly linking system object files so we need to strip them
19305 # from the output so that they don't get included in the library
19307 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"'
19310 if test "$GXX" = yes; then
19311 if test $with_gnu_ld = no
; then
19314 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19317 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19320 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'
19325 # FIXME: insert proper C++ library support
19333 hardcode_direct_CXX
=no
19334 hardcode_shlibpath_var_CXX
=no
19335 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19336 export_dynamic_flag_spec_CXX
='${wl}-E'
19337 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19338 # Instead, shared libraries are loaded at an image base (0x10000000 by
19339 # default) and relocated if they conflict, which is a slow very memory
19340 # consuming and fragmenting process. To avoid this, we pick a random,
19341 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19342 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19343 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'
19344 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'
19347 case $cc_basename in
19350 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'
19352 # Archives containing C++ object files must be created using
19353 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19354 # necessary to make sure instantiated templates are included
19356 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19359 if test "$GXX" = yes; then
19360 if test "$with_gnu_ld" = no
; then
19361 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'
19363 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'
19366 link_all_deplibs_CXX
=yes
19369 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19370 hardcode_libdir_separator_CXX
=:
19371 inherit_rpath_CXX
=yes
19374 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19375 case $cc_basename in
19377 # Kuck and Associates, Inc. (KAI) C++ Compiler
19379 # KCC will only create a shared library if the output file
19380 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19381 # to its proper name (with version) after linking.
19382 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'
19383 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'
19384 # Commands to make compiler produce verbose output that lists
19385 # what "hidden" libraries, object files and flags are used when
19386 # linking a shared library.
19388 # There doesn't appear to be a way to prevent this compiler from
19389 # explicitly linking system object files so we need to strip them
19390 # from the output so that they don't get included in the library
19392 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"'
19394 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19395 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19397 # Archives containing C++ object files must be created using
19398 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19399 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19404 # version 8.0 and above of icpc choke on multiply defined symbols
19405 # if we add $predep_objects and $postdep_objects, however 7.1 and
19406 # earlier do not add the objects themselves.
19407 case `$CC -V 2>&1` in
19409 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19410 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'
19412 *) # Version 8.0 or newer
19415 ia64
*) tmp_idyn
=' -i_dynamic';;
19417 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19418 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'
19421 archive_cmds_need_lc_CXX
=no
19422 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19423 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19424 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19427 # Portland Group C++ compiler
19429 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19430 prelink_cmds_CXX
='tpldir=Template.dir~
19432 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19433 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19434 old_archive_cmds_CXX
='tpldir=Template.dir~
19436 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19437 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19439 archive_cmds_CXX
='tpldir=Template.dir~
19441 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19442 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19443 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19445 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19446 $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'
19448 *) # Version 6 and above use weak symbols
19449 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19450 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'
19454 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19455 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19456 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'
19460 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19461 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'
19463 runpath_var
=LD_RUN_PATH
19464 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19465 hardcode_libdir_separator_CXX
=:
19467 # Commands to make compiler produce verbose output that lists
19468 # what "hidden" libraries, object files and flags are used when
19469 # linking a shared library.
19471 # There doesn't appear to be a way to prevent this compiler from
19472 # explicitly linking system object files so we need to strip them
19473 # from the output so that they don't get included in the library
19475 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'
19477 xl
* | mpixl
* | bgxl
*)
19478 # IBM XL 8.0 on PPC, with GNU ld
19479 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19480 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19481 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19482 if test "x$supports_anon_versioning" = xyes
; then
19483 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19485 echo "local: *; };" >> $output_objdir/$libname.ver~
19486 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19490 case `$CC -V 2>&1 | sed 5q` in
19493 no_undefined_flag_CXX
=' -zdefs'
19494 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19495 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'
19496 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19497 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'
19498 compiler_needs_object_CXX
=yes
19500 # Not sure whether something based on
19501 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19503 output_verbose_link_cmd
='func_echo_all'
19505 # Archives containing C++ object files must be created using
19506 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19507 # necessary to make sure instantiated templates are included
19509 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19517 # FIXME: insert proper C++ library support
19522 # FIXME: insert proper C++ library support
19527 case $cc_basename in
19529 # FIXME: insert proper C++ library support
19533 # FIXME: insert proper C++ library support
19540 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19541 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19543 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19544 hardcode_direct_CXX
=yes
19545 hardcode_shlibpath_var_CXX
=no
19547 # Workaround some broken pre-1.5 toolchains
19548 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19556 # C++ shared libraries are fairly broken
19561 if test -f /usr
/libexec
/ld.so
; then
19562 hardcode_direct_CXX
=yes
19563 hardcode_shlibpath_var_CXX
=no
19564 hardcode_direct_absolute_CXX
=yes
19565 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19566 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19568 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19569 export_dynamic_flag_spec_CXX
='${wl}-E'
19570 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19572 output_verbose_link_cmd
=func_echo_all
19578 osf3
* | osf4
* | osf5
*)
19579 case $cc_basename in
19581 # Kuck and Associates, Inc. (KAI) C++ Compiler
19583 # KCC will only create a shared library if the output file
19584 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19585 # to its proper name (with version) after linking.
19586 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'
19588 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19589 hardcode_libdir_separator_CXX
=:
19591 # Archives containing C++ object files must be created using
19592 # the KAI C++ compiler.
19594 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19595 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19599 # Rational C++ 2.4.1
19600 # FIXME: insert proper C++ library support
19606 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19607 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'
19608 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19611 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19612 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'
19613 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19614 echo "-hidden">> $lib.exp~
19615 $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~
19617 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19621 hardcode_libdir_separator_CXX
=:
19623 # Commands to make compiler produce verbose output that lists
19624 # what "hidden" libraries, object files and flags are used when
19625 # linking a shared library.
19627 # There doesn't appear to be a way to prevent this compiler from
19628 # explicitly linking system object files so we need to strip them
19629 # from the output so that they don't get included in the library
19631 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"'
19634 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19635 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19638 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'
19641 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'
19645 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19646 hardcode_libdir_separator_CXX
=:
19648 # Commands to make compiler produce verbose output that lists
19649 # what "hidden" libraries, object files and flags are used when
19650 # linking a shared library.
19651 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19654 # FIXME: insert proper C++ library support
19662 # FIXME: insert proper C++ library support
19667 case $cc_basename in
19670 # FIXME: insert proper C++ library support
19675 # FIXME: insert proper C++ library support
19679 # FIXME: insert proper C++ library support
19686 case $cc_basename in
19688 # Sun C++ 4.2, 5.x and Centerline C++
19689 archive_cmds_need_lc_CXX
=yes
19690 no_undefined_flag_CXX
=' -zdefs'
19691 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19692 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19693 $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'
19695 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19696 hardcode_shlibpath_var_CXX
=no
19698 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19700 # The compiler driver will combine and reorder linker options,
19701 # but understands `-z linker_flag'.
19702 # Supported since Solaris 2.6 (maybe 2.5.1?)
19703 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19706 link_all_deplibs_CXX
=yes
19708 output_verbose_link_cmd
='func_echo_all'
19710 # Archives containing C++ object files must be created using
19711 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19712 # necessary to make sure instantiated templates are included
19714 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19717 # Green Hills C++ Compiler
19718 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19720 # The C++ compiler must be used to create the archive.
19721 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19724 # GNU C++ compiler with Solaris linker
19725 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19726 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19727 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19728 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19729 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19730 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19732 # Commands to make compiler produce verbose output that lists
19733 # what "hidden" libraries, object files and flags are used when
19734 # linking a shared library.
19735 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19737 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19739 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19740 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19741 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19743 # Commands to make compiler produce verbose output that lists
19744 # what "hidden" libraries, object files and flags are used when
19745 # linking a shared library.
19746 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19749 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19751 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19753 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19761 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19762 no_undefined_flag_CXX
='${wl}-z,text'
19763 archive_cmds_need_lc_CXX
=no
19764 hardcode_shlibpath_var_CXX
=no
19765 runpath_var
='LD_RUN_PATH'
19767 case $cc_basename in
19769 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19770 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19773 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19774 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19779 sysv5
* | sco3.2v5
* | sco5v6
*)
19780 # Note: We can NOT use -z defs as we might desire, because we do not
19781 # link with -lc, and that would cause any symbols used from libc to
19782 # always be unresolved, which means just about no library would
19783 # ever link correctly. If we're not using GNU ld we use -z text
19784 # though, which does catch some bad symbols but isn't as heavy-handed
19786 no_undefined_flag_CXX
='${wl}-z,text'
19787 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19788 archive_cmds_need_lc_CXX
=no
19789 hardcode_shlibpath_var_CXX
=no
19790 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19791 hardcode_libdir_separator_CXX
=':'
19792 link_all_deplibs_CXX
=yes
19793 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19794 runpath_var
='LD_RUN_PATH'
19796 case $cc_basename in
19798 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19799 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19800 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19801 '"$old_archive_cmds_CXX"
19802 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19803 '"$reload_cmds_CXX"
19806 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19807 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19813 case $cc_basename in
19815 # NonStop-UX NCC 3.20
19816 # FIXME: insert proper C++ library support
19820 # FIXME: insert proper C++ library support
19827 # FIXME: insert proper C++ library support
19832 # FIXME: insert proper C++ library support
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19838 $as_echo "$ld_shlibs_CXX" >&6; }
19839 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19845 ## There is no encapsulation within the following macros, do not change
19846 ## the running order or otherwise move them around unless you know exactly
19847 ## what you are doing...
19848 # Dependencies to place before and after the object being linked:
19849 predep_objects_CXX
=
19850 postdep_objects_CXX
=
19853 compiler_lib_search_path_CXX
=
19855 cat > conftest.
$ac_ext <<_LT_EOF
19859 Foo (void) { a = 0; }
19865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19866 (eval $ac_compile) 2>&5
19868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19869 test $ac_status = 0; }; then
19870 # Parse the compiler output and extract the necessary
19871 # objects, libraries and library flags.
19873 # Sentinel used to keep track of whether or not we are before
19874 # the conftest object file.
19875 pre_test_object_deps_done
=no
19877 for p
in `eval "$output_verbose_link_cmd"`; do
19881 # Some compilers place space between "-{L,R}" and the path.
19882 # Remove the space.
19883 if test $p = "-L" ||
19884 test $p = "-R"; then
19891 if test "$pre_test_object_deps_done" = no
; then
19894 # Internal compiler library paths should come after those
19895 # provided the user. The postdeps already come after the
19896 # user supplied libs so there is no need to process them.
19897 if test -z "$compiler_lib_search_path_CXX"; then
19898 compiler_lib_search_path_CXX
="${prev}${p}"
19900 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19903 # The "-l" case would never come before the object being
19904 # linked, so don't bother handling this case.
19907 if test -z "$postdeps_CXX"; then
19908 postdeps_CXX
="${prev}${p}"
19910 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19916 # This assumes that the test object file only shows up
19917 # once in the compiler output.
19918 if test "$p" = "conftest.$objext"; then
19919 pre_test_object_deps_done
=yes
19923 if test "$pre_test_object_deps_done" = no
; then
19924 if test -z "$predep_objects_CXX"; then
19925 predep_objects_CXX
="$p"
19927 predep_objects_CXX
="$predep_objects_CXX $p"
19930 if test -z "$postdep_objects_CXX"; then
19931 postdep_objects_CXX
="$p"
19933 postdep_objects_CXX
="$postdep_objects_CXX $p"
19938 *) ;; # Ignore the rest.
19946 echo "libtool.m4: error: problem compiling CXX test program"
19949 $RM -f confest.
$objext
19951 # PORTME: override above test on systems where it is broken
19954 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19955 # hack all around it, let's just trust "g++" to DTRT.
19956 predep_objects_CXX
=
19957 postdep_objects_CXX
=
19962 case `$CC -V 2>&1 | sed 5q` in
19966 # The more standards-conforming stlport4 library is
19967 # incompatible with the Cstd library. Avoid specifying
19968 # it if it's in CXXFLAGS. Ignore libCrun as
19969 # -library=stlport4 depends on it.
19970 case " $CXX $CXXFLAGS " in
19971 *" -library=stlport4 "*)
19972 solaris_use_stlport4
=yes
19976 if test "$solaris_use_stlport4" != yes; then
19977 postdeps_CXX
='-library=Cstd -library=Crun'
19984 case $cc_basename in
19986 # The more standards-conforming stlport4 library is
19987 # incompatible with the Cstd library. Avoid specifying
19988 # it if it's in CXXFLAGS. Ignore libCrun as
19989 # -library=stlport4 depends on it.
19990 case " $CXX $CXXFLAGS " in
19991 *" -library=stlport4 "*)
19992 solaris_use_stlport4
=yes
19996 # Adding this requires a known-good setup of shared libraries for
19997 # Sun compiler versions before 5.6, else PIC objects from an old
19998 # archive will be linked into the output, leading to subtle bugs.
19999 if test "$solaris_use_stlport4" != yes; then
20000 postdeps_CXX
='-library=Cstd -library=Crun'
20008 case " $postdeps_CXX " in
20009 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20011 compiler_lib_search_dirs_CXX
=
20012 if test -n "${compiler_lib_search_path_CXX}"; then
20013 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20046 lt_prog_compiler_wl_CXX
=
20047 lt_prog_compiler_pic_CXX
=
20048 lt_prog_compiler_static_CXX
=
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20051 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20053 # C++ specific cases for pic, static, wl, etc.
20054 if test "$GXX" = yes; then
20055 lt_prog_compiler_wl_CXX
='-Wl,'
20056 lt_prog_compiler_static_CXX
='-static'
20060 # All AIX code is PIC.
20061 if test "$host_cpu" = ia64
; then
20062 # AIX 5 now supports IA64 processor
20063 lt_prog_compiler_static_CXX
='-Bstatic'
20065 lt_prog_compiler_pic_CXX
='-fPIC'
20071 # see comment about AmigaOS4 .so support
20072 lt_prog_compiler_pic_CXX
='-fPIC'
20075 # FIXME: we need at least 68020 code to build shared libraries, but
20076 # adding the `-m68020' flag to GCC prevents building anything better,
20078 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20083 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20084 # PIC is the default for these OSes.
20086 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20087 # This hack is so that the source file can tell whether it is being
20088 # built for inclusion in a dll (and should export symbols for example).
20089 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20090 # (--disable-auto-import) libraries
20091 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20093 darwin
* | rhapsody
*)
20094 # PIC is the default on this platform
20095 # Common symbols not allowed in MH_DYLIB files
20096 lt_prog_compiler_pic_CXX
='-fno-common'
20099 # DJGPP does not support shared libraries at all
20100 lt_prog_compiler_pic_CXX
=
20103 # PIC is the default for Haiku.
20104 # The "-static" flag exists, but is broken.
20105 lt_prog_compiler_static_CXX
=
20108 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20109 # Instead, we relocate shared libraries at runtime.
20112 if test -d /usr
/nec
; then
20113 lt_prog_compiler_pic_CXX
=-Kconform_pic
20117 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20118 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20119 # sets the default TLS model and affects inlining.
20124 lt_prog_compiler_pic_CXX
='-fPIC'
20129 # QNX uses GNU C++, but need to define -shared option too, otherwise
20130 # it will coredump.
20131 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20134 lt_prog_compiler_pic_CXX
='-fPIC'
20140 # All AIX code is PIC.
20141 if test "$host_cpu" = ia64
; then
20142 # AIX 5 now supports IA64 processor
20143 lt_prog_compiler_static_CXX
='-Bstatic'
20145 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20149 case $cc_basename in
20151 # Green Hills C++ Compiler
20152 # _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"
20157 case $cc_basename in
20159 lt_prog_compiler_pic_CXX
='-KPIC'
20162 # Green Hills C++ Compiler
20163 lt_prog_compiler_pic_CXX
='-pic'
20169 freebsd
* | dragonfly
*)
20170 # FreeBSD uses GNU C++
20172 hpux9
* | hpux10
* | hpux11
*)
20173 case $cc_basename in
20175 lt_prog_compiler_wl_CXX
='-Wl,'
20176 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20177 if test "$host_cpu" != ia64
; then
20178 lt_prog_compiler_pic_CXX
='+Z'
20182 lt_prog_compiler_wl_CXX
='-Wl,'
20183 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20189 lt_prog_compiler_pic_CXX
='+Z'
20198 # This is c89, which is MS Visual C++ (no shared libs)
20199 # Anyone wants to do a port?
20201 irix5
* | irix6
* | nonstopux
*)
20202 case $cc_basename in
20204 lt_prog_compiler_wl_CXX
='-Wl,'
20205 lt_prog_compiler_static_CXX
='-non_shared'
20206 # CC pic flag -KPIC is the default.
20212 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20213 case $cc_basename in
20216 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20217 lt_prog_compiler_pic_CXX
='-fPIC'
20220 # old Intel C++ for x86_64 which still supported -KPIC.
20221 lt_prog_compiler_wl_CXX
='-Wl,'
20222 lt_prog_compiler_pic_CXX
='-KPIC'
20223 lt_prog_compiler_static_CXX
='-static'
20226 # Intel C++, used to be incompatible with GCC.
20227 # ICC 10 doesn't accept -KPIC any more.
20228 lt_prog_compiler_wl_CXX
='-Wl,'
20229 lt_prog_compiler_pic_CXX
='-fPIC'
20230 lt_prog_compiler_static_CXX
='-static'
20233 # Portland Group C++ compiler
20234 lt_prog_compiler_wl_CXX
='-Wl,'
20235 lt_prog_compiler_pic_CXX
='-fpic'
20236 lt_prog_compiler_static_CXX
='-Bstatic'
20240 # Make sure the PIC flag is empty. It appears that all Alpha
20241 # Linux and Compaq Tru64 Unix objects are PIC.
20242 lt_prog_compiler_pic_CXX
=
20243 lt_prog_compiler_static_CXX
='-non_shared'
20245 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20246 # IBM XL 8.0, 9.0 on PPC and BlueGene
20247 lt_prog_compiler_wl_CXX
='-Wl,'
20248 lt_prog_compiler_pic_CXX
='-qpic'
20249 lt_prog_compiler_static_CXX
='-qstaticlink'
20252 case `$CC -V 2>&1 | sed 5q` in
20255 lt_prog_compiler_pic_CXX
='-KPIC'
20256 lt_prog_compiler_static_CXX
='-Bstatic'
20257 lt_prog_compiler_wl_CXX
='-Qoption ld '
20268 case $cc_basename in
20270 lt_prog_compiler_pic_CXX
='-W c,exportall'
20279 # QNX uses GNU C++, but need to define -shared option too, otherwise
20280 # it will coredump.
20281 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20283 osf3
* | osf4
* | osf5
*)
20284 case $cc_basename in
20286 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20289 # Rational C++ 2.4.1
20290 lt_prog_compiler_pic_CXX
='-pic'
20293 # Digital/Compaq C++
20294 lt_prog_compiler_wl_CXX
='-Wl,'
20295 # Make sure the PIC flag is empty. It appears that all Alpha
20296 # Linux and Compaq Tru64 Unix objects are PIC.
20297 lt_prog_compiler_pic_CXX
=
20298 lt_prog_compiler_static_CXX
='-non_shared'
20307 case $cc_basename in
20309 # Sun C++ 4.2, 5.x and Centerline C++
20310 lt_prog_compiler_pic_CXX
='-KPIC'
20311 lt_prog_compiler_static_CXX
='-Bstatic'
20312 lt_prog_compiler_wl_CXX
='-Qoption ld '
20315 # Green Hills C++ Compiler
20316 lt_prog_compiler_pic_CXX
='-PIC'
20323 case $cc_basename in
20326 lt_prog_compiler_pic_CXX
='-pic'
20327 lt_prog_compiler_static_CXX
='-Bstatic'
20331 lt_prog_compiler_pic_CXX
='-pic'
20337 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20338 case $cc_basename in
20340 lt_prog_compiler_wl_CXX
='-Wl,'
20341 lt_prog_compiler_pic_CXX
='-KPIC'
20342 lt_prog_compiler_static_CXX
='-Bstatic'
20347 case $cc_basename in
20349 # NonStop-UX NCC 3.20
20350 lt_prog_compiler_pic_CXX
='-KPIC'
20359 lt_prog_compiler_can_build_shared_CXX
=no
20365 # For platforms which do not support PIC, -DPIC is meaningless:
20367 lt_prog_compiler_pic_CXX
=
20370 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20374 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20379 # Check to make sure the PIC flag actually works.
20381 if test -n "$lt_prog_compiler_pic_CXX"; then
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20383 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20384 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20385 $as_echo_n "(cached) " >&6
20387 lt_cv_prog_compiler_pic_works_CXX
=no
20388 ac_outfile
=conftest.
$ac_objext
20389 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20390 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20391 # Insert the option either (1) after the last *FLAGS variable, or
20392 # (2) before a word containing "conftest.", or (3) at the end.
20393 # Note that $ac_compile itself does not contain backslashes and begins
20394 # with a dollar sign (not a hyphen), so the echo should work correctly.
20395 # The option is referenced via a variable to avoid confusing sed.
20396 lt_compile
=`echo "$ac_compile" | $SED \
20397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20399 -e 's:$: $lt_compiler_flag:'`
20400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20401 (eval "$lt_compile" 2>conftest.err
)
20403 cat conftest.err
>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 if (exit $ac_status) && test -s "$ac_outfile"; then
20406 # The compiler can only warn and ignore the option if not recognized
20407 # So say no if there are warnings other than the usual output.
20408 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20409 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20410 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20411 lt_cv_prog_compiler_pic_works_CXX
=yes
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20418 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20420 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20421 case $lt_prog_compiler_pic_CXX in
20423 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20426 lt_prog_compiler_pic_CXX
=
20427 lt_prog_compiler_can_build_shared_CXX
=no
20435 # Check to make sure the static flag actually works.
20437 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20439 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20440 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20441 $as_echo_n "(cached) " >&6
20443 lt_cv_prog_compiler_static_works_CXX
=no
20444 save_LDFLAGS
="$LDFLAGS"
20445 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20446 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20447 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20448 # The linker can only warn and ignore the option if not recognized
20449 # So say no if there are warnings
20450 if test -s conftest.err
; then
20451 # Append any errors to the config.log.
20452 cat conftest.err
1>&5
20453 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20454 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20455 if diff conftest.exp conftest.er2
>/dev
/null
; then
20456 lt_cv_prog_compiler_static_works_CXX
=yes
20459 lt_cv_prog_compiler_static_works_CXX
=yes
20463 LDFLAGS
="$save_LDFLAGS"
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20467 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20469 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20472 lt_prog_compiler_static_CXX
=
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20479 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20480 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20481 $as_echo_n "(cached) " >&6
20483 lt_cv_prog_compiler_c_o_CXX
=no
20484 $RM -r conftest
2>/dev
/null
20488 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20490 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20491 # Insert the option either (1) after the last *FLAGS variable, or
20492 # (2) before a word containing "conftest.", or (3) at the end.
20493 # Note that $ac_compile itself does not contain backslashes and begins
20494 # with a dollar sign (not a hyphen), so the echo should work correctly.
20495 lt_compile
=`echo "$ac_compile" | $SED \
20496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20498 -e 's:$: $lt_compiler_flag:'`
20499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20500 (eval "$lt_compile" 2>out
/conftest.err
)
20502 cat out
/conftest.err
>&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20506 # The compiler can only warn and ignore the option if not recognized
20507 # So say no if there are warnings
20508 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20509 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20510 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20511 lt_cv_prog_compiler_c_o_CXX
=yes
20516 # SGI C++ compiler will create directory out/ii_files/ for
20517 # template instantiation
20518 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20519 $RM out
/* && rmdir out
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20526 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20531 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20532 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20533 $as_echo_n "(cached) " >&6
20535 lt_cv_prog_compiler_c_o_CXX
=no
20536 $RM -r conftest
2>/dev
/null
20540 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20542 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20543 # Insert the option either (1) after the last *FLAGS variable, or
20544 # (2) before a word containing "conftest.", or (3) at the end.
20545 # Note that $ac_compile itself does not contain backslashes and begins
20546 # with a dollar sign (not a hyphen), so the echo should work correctly.
20547 lt_compile
=`echo "$ac_compile" | $SED \
20548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20550 -e 's:$: $lt_compiler_flag:'`
20551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20552 (eval "$lt_compile" 2>out
/conftest.err
)
20554 cat out
/conftest.err
>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20558 # The compiler can only warn and ignore the option if not recognized
20559 # So say no if there are warnings
20560 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20561 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20562 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20563 lt_cv_prog_compiler_c_o_CXX
=yes
20568 # SGI C++ compiler will create directory out/ii_files/ for
20569 # template instantiation
20570 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20571 $RM out
/* && rmdir out
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20578 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20583 hard_links
="nottested"
20584 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20585 # do not overwrite the value of need_locks provided by the user
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20587 $as_echo_n "checking if we can lock with hard links... " >&6; }
20590 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20592 ln conftest.a conftest.b
2>&5 || hard_links
=no
20593 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20595 $as_echo "$hard_links" >&6; }
20596 if test "$hard_links" = no
; then
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20598 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20608 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20610 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20613 # If we're using GNU nm, then we don't want the "-C" option.
20614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20615 # Also, AIX nm treats weak defined symbols like other global defined
20616 # symbols, whereas GNU nm marks them as "W".
20617 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20618 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'
20620 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'
20624 export_symbols_cmds_CXX
="$ltdll_cmds"
20626 cygwin
* | mingw
* | cegcc
*)
20627 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'
20630 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20633 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20636 $as_echo "$ld_shlibs_CXX" >&6; }
20637 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20639 with_gnu_ld_CXX
=$with_gnu_ld
20647 # Do we need to explicitly link libc?
20649 case "x$archive_cmds_need_lc_CXX" in
20651 # Assume -lc should be added
20652 archive_cmds_need_lc_CXX
=yes
20654 if test "$enable_shared" = yes && test "$GCC" = yes; then
20655 case $archive_cmds_CXX in
20657 # FIXME: we may have to deal with multi-command sequences.
20660 # Test whether the compiler implicitly links with -lc since on some
20661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20662 # to ld, don't add -lc before -lgcc.
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20664 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20665 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20666 $as_echo_n "(cached) " >&6
20669 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20672 (eval $ac_compile) 2>&5
20674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20675 test $ac_status = 0; } 2>conftest.err
; then
20678 libobjs
=conftest.
$ac_objext
20680 wl
=$lt_prog_compiler_wl_CXX
20681 pic_flag
=$lt_prog_compiler_pic_CXX
20687 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20688 allow_undefined_flag_CXX
=
20689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20690 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20693 test $ac_status = 0; }
20695 lt_cv_archive_cmds_need_lc_CXX
=no
20697 lt_cv_archive_cmds_need_lc_CXX
=yes
20699 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20701 cat conftest.err
1>&5
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20707 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20708 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20779 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20781 library_names_spec
=
20782 libname_spec
='lib$name'
20786 postuninstall_cmds
=
20790 shlibpath_overrides_runpath
=unknown
20792 dynamic_linker
="$host_os ld.so"
20793 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20794 need_lib_prefix
=unknown
20795 hardcode_into_libs
=no
20797 # when you set need_version to no, make sure it does not cause -set_version
20798 # flags to be left without arguments
20799 need_version
=unknown
20804 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20805 shlibpath_var
=LIBPATH
20807 # AIX 3 has no versioning support, so we append a major version to the name.
20808 soname_spec
='${libname}${release}${shared_ext}$major'
20815 hardcode_into_libs
=yes
20816 if test "$host_cpu" = ia64
; then
20817 # AIX 5 supports IA64
20818 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20819 shlibpath_var
=LD_LIBRARY_PATH
20821 # With GCC up to 2.95.x, collect2 would create an import file
20822 # for dependence libraries. The import file would start with
20823 # the line `#! .'. This would cause the generated library to
20824 # depend on `.', always an invalid library. This was fixed in
20825 # development snapshots of GCC prior to 3.0.
20827 aix4 | aix4.
[01] | aix4.
[01].
*)
20828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20830 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20833 can_build_shared
=no
20837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20838 # soname into executable. Probably we can add versioning support to
20839 # collect2, so additional links can be useful in future.
20840 if test "$aix_use_runtimelinking" = yes; then
20841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20842 # instead of lib<name>.a to let people know that these are not
20843 # typical AIX shared libraries.
20844 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20846 # We preserve .a as extension for shared libraries through AIX4.2
20847 # and later when we are not doing run time linking.
20848 library_names_spec
='${libname}${release}.a $libname.a'
20849 soname_spec
='${libname}${release}${shared_ext}$major'
20851 shlibpath_var
=LIBPATH
20858 # Since July 2007 AmigaOS4 officially supports .so libraries.
20859 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20863 library_names_spec
='$libname.ixlibrary $libname.a'
20864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20865 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'
20871 library_names_spec
='${libname}${shared_ext}'
20872 dynamic_linker
="$host_os ld.so"
20873 shlibpath_var
=LIBRARY_PATH
20879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20880 soname_spec
='${libname}${release}${shared_ext}$major'
20881 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20882 shlibpath_var
=LD_LIBRARY_PATH
20883 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20884 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20885 # the default ld.so.conf also contains /usr/contrib/lib and
20886 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20887 # libtool to hard-code these into programs
20890 cygwin
* | mingw
* | pw32
* | cegcc
*)
20891 version_type
=windows
20896 case $GCC,$host_os in
20897 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20898 library_names_spec
='$libname.dll.a'
20899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20900 postinstall_cmds
='base_file=`basename \${file}`~
20901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20902 dldir=$destdir/`dirname \$dlpath`~
20903 test -d \$dldir || mkdir -p \$dldir~
20904 $install_prog $dir/$dlname \$dldir/$dlname~
20905 chmod a+x \$dldir/$dlname~
20906 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20907 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20909 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20910 dlpath=$dir/\$dldll~
20912 shlibpath_overrides_runpath
=yes
20916 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20917 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20921 # MinGW DLLs use traditional 'lib' prefix
20922 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20925 # pw32 DLLs use 'pw' prefix rather than 'lib'
20926 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20932 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20935 dynamic_linker
='Win32 ld.exe'
20936 # FIXME: first we should search . and the directory the executable is in
20940 darwin
* | rhapsody
*)
20941 dynamic_linker
="$host_os dyld"
20942 version_type
=darwin
20945 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20946 soname_spec
='${libname}${release}${major}$shared_ext'
20947 shlibpath_overrides_runpath
=yes
20948 shlibpath_var
=DYLD_LIBRARY_PATH
20949 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20951 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20959 soname_spec
='${libname}${release}${shared_ext}$major'
20960 shlibpath_var
=LD_LIBRARY_PATH
20963 freebsd
* | dragonfly
*)
20964 # DragonFly does not have aout. When/if they implement a new
20965 # versioning mechanism, adjust this.
20966 if test -x /usr
/bin
/objformat
; then
20967 objformat
=`/usr/bin/objformat`
20970 freebsd
[23].
*) objformat
=aout
;;
20971 *) objformat
=elf
;;
20974 version_type
=freebsd-
$objformat
20975 case $version_type in
20977 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20982 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20986 shlibpath_var
=LD_LIBRARY_PATH
20989 shlibpath_overrides_runpath
=yes
20991 freebsd3.
[01]* | freebsdelf3.
[01]*)
20992 shlibpath_overrides_runpath
=yes
20993 hardcode_into_libs
=yes
20995 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20996 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20997 shlibpath_overrides_runpath
=no
20998 hardcode_into_libs
=yes
21000 *) # from 4.6 on, and DragonFly
21001 shlibpath_overrides_runpath
=yes
21002 hardcode_into_libs
=yes
21011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21012 soname_spec
='${libname}${release}${shared_ext}$major'
21013 shlibpath_var
=LD_LIBRARY_PATH
21014 hardcode_into_libs
=yes
21021 dynamic_linker
="$host_os runtime_loader"
21022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21023 soname_spec
='${libname}${release}${shared_ext}$major'
21024 shlibpath_var
=LIBRARY_PATH
21025 shlibpath_overrides_runpath
=yes
21026 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21027 hardcode_into_libs
=yes
21030 hpux9
* | hpux10
* | hpux11
*)
21031 # Give a soname corresponding to the major version so that dld.sl refuses to
21032 # link against other versions.
21039 hardcode_into_libs
=yes
21040 dynamic_linker
="$host_os dld.so"
21041 shlibpath_var
=LD_LIBRARY_PATH
21042 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21043 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21044 soname_spec
='${libname}${release}${shared_ext}$major'
21045 if test "X$HPUX_IA64_MODE" = X32
; then
21046 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21048 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21050 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21054 hardcode_into_libs
=yes
21055 dynamic_linker
="$host_os dld.sl"
21056 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21057 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21059 soname_spec
='${libname}${release}${shared_ext}$major'
21060 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21061 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21065 dynamic_linker
="$host_os dld.sl"
21066 shlibpath_var
=SHLIB_PATH
21067 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
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'
21072 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21073 postinstall_cmds
='chmod 555 $lib'
21074 # or fails outright, so override atomically:
21075 install_override_mode
=555
21082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21083 soname_spec
='${libname}${release}${shared_ext}$major'
21084 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21085 shlibpath_var
=LD_LIBRARY_PATH
21086 shlibpath_overrides_runpath
=no
21087 hardcode_into_libs
=yes
21090 irix5
* | irix6
* | nonstopux
*)
21092 nonstopux
*) version_type
=nonstopux
;;
21094 if test "$lt_cv_prog_gnu_ld" = yes; then
21102 soname_spec
='${libname}${release}${shared_ext}$major'
21103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21105 irix5
* | nonstopux
*)
21106 libsuff
= shlibsuff
=
21109 case $LD in # libtool.m4 will add one of these switches to LD
21110 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21111 libsuff
= shlibsuff
= libmagic
=32-bit;;
21112 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21113 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21114 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21115 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21116 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21120 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21121 shlibpath_overrides_runpath
=no
21122 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21123 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21124 hardcode_into_libs
=yes
21127 # No shared lib support for Linux oldld, aout, or coff.
21128 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21132 # This must be Linux ELF.
21133 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
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 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21140 shlibpath_var
=LD_LIBRARY_PATH
21141 shlibpath_overrides_runpath
=no
21143 # Some binutils ld are patched to set DT_RUNPATH
21144 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21145 $as_echo_n "(cached) " >&6
21147 lt_cv_shlibpath_overrides_runpath
=no
21148 save_LDFLAGS
=$LDFLAGS
21149 save_libdir
=$libdir
21150 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21151 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21163 if ac_fn_cxx_try_link
"$LINENO"; then :
21164 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21165 lt_cv_shlibpath_overrides_runpath
=yes
21168 rm -f core conftest.err conftest.
$ac_objext \
21169 conftest
$ac_exeext conftest.
$ac_ext
21170 LDFLAGS
=$save_LDFLAGS
21171 libdir
=$save_libdir
21175 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21177 # This implies no fast_install, which is unacceptable.
21178 # Some rework will be needed to allow for fast_install
21179 # before this can be enabled.
21180 hardcode_into_libs
=yes
21182 # Append ld.so.conf contents to the search path
21183 if test -f /etc
/ld.so.conf
; then
21184 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' ' '`
21185 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21188 # We used to test for /lib/ld.so.1 and disable shared libraries on
21189 # powerpc, because MkLinux only supported shared libraries with the
21190 # GNU dynamic linker. Since this was broken with cross compilers,
21191 # most powerpc-linux boxes support dynamic linking these days and
21192 # people can always --disable-shared, the test was removed, and we
21193 # assume the GNU/Linux dynamic linker is in use.
21194 dynamic_linker
='GNU/Linux ld.so'
21201 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21203 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21204 dynamic_linker
='NetBSD (a.out) ld.so'
21206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21207 soname_spec
='${libname}${release}${shared_ext}$major'
21208 dynamic_linker
='NetBSD ld.elf_so'
21210 shlibpath_var
=LD_LIBRARY_PATH
21211 shlibpath_overrides_runpath
=yes
21212 hardcode_into_libs
=yes
21217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21218 shlibpath_var
=LD_LIBRARY_PATH
21219 shlibpath_overrides_runpath
=yes
21226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21227 soname_spec
='${libname}${release}${shared_ext}$major'
21228 shlibpath_var
=LD_LIBRARY_PATH
21229 shlibpath_overrides_runpath
=no
21230 hardcode_into_libs
=yes
21231 dynamic_linker
='ldqnx.so'
21236 sys_lib_dlsearch_path_spec
="/usr/lib"
21238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21240 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21241 *) need_version
=no
;;
21243 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21244 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21245 shlibpath_var
=LD_LIBRARY_PATH
21246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21248 openbsd2.
[89] | openbsd2.
[89].
*)
21249 shlibpath_overrides_runpath
=no
21252 shlibpath_overrides_runpath
=yes
21256 shlibpath_overrides_runpath
=yes
21261 libname_spec
='$name'
21264 library_names_spec
='$libname${shared_ext} $libname.a'
21265 dynamic_linker
='OS/2 ld.exe'
21266 shlibpath_var
=LIBPATH
21269 osf3
* | osf4
* | osf5
*)
21273 soname_spec
='${libname}${release}${shared_ext}$major'
21274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21275 shlibpath_var
=LD_LIBRARY_PATH
21276 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21277 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21289 soname_spec
='${libname}${release}${shared_ext}$major'
21290 shlibpath_var
=LD_LIBRARY_PATH
21291 shlibpath_overrides_runpath
=yes
21292 hardcode_into_libs
=yes
21293 # ldd complains unless libraries are executable
21294 postinstall_cmds
='chmod +x $lib'
21299 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21300 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21301 shlibpath_var
=LD_LIBRARY_PATH
21302 shlibpath_overrides_runpath
=yes
21303 if test "$with_gnu_ld" = yes; then
21311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21312 soname_spec
='${libname}${release}${shared_ext}$major'
21313 shlibpath_var
=LD_LIBRARY_PATH
21314 case $host_vendor in
21316 shlibpath_overrides_runpath
=no
21318 runpath_var
=LD_RUN_PATH
21326 shlibpath_overrides_runpath
=no
21327 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21333 if test -d /usr
/nec
;then
21335 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21336 soname_spec
='$libname${shared_ext}.$major'
21337 shlibpath_var
=LD_LIBRARY_PATH
21341 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21342 version_type
=freebsd-elf
21345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21346 soname_spec
='${libname}${release}${shared_ext}$major'
21347 shlibpath_var
=LD_LIBRARY_PATH
21348 shlibpath_overrides_runpath
=yes
21349 hardcode_into_libs
=yes
21350 if test "$with_gnu_ld" = yes; then
21351 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21353 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21356 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21360 sys_lib_dlsearch_path_spec
='/usr/lib'
21364 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21369 shlibpath_var
=LD_LIBRARY_PATH
21370 shlibpath_overrides_runpath
=no
21371 hardcode_into_libs
=yes
21376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21377 soname_spec
='${libname}${release}${shared_ext}$major'
21378 shlibpath_var
=LD_LIBRARY_PATH
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21386 $as_echo "$dynamic_linker" >&6; }
21387 test "$dynamic_linker" = no
&& can_build_shared
=no
21389 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21390 if test "$GCC" = yes; then
21391 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21394 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21395 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21397 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21398 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21439 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21440 hardcode_action_CXX
=
21441 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21442 test -n "$runpath_var_CXX" ||
21443 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21445 # We can hardcode non-existent directories.
21446 if test "$hardcode_direct_CXX" != no
&&
21447 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21448 # have to relink, otherwise we might link with an installed library
21449 # when we should be linking with a yet-to-be-installed one
21450 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21451 test "$hardcode_minus_L_CXX" != no
; then
21452 # Linking always hardcodes the temporary library directory.
21453 hardcode_action_CXX
=relink
21455 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21456 hardcode_action_CXX
=immediate
21459 # We cannot hardcode anything, or else we can only hardcode existing
21461 hardcode_action_CXX
=unsupported
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21464 $as_echo "$hardcode_action_CXX" >&6; }
21466 if test "$hardcode_action_CXX" = relink ||
21467 test "$inherit_rpath_CXX" = yes; then
21468 # Fast installation is not supported
21469 enable_fast_install
=no
21470 elif test "$shlibpath_overrides_runpath" = yes ||
21471 test "$enable_shared" = no
; then
21472 # Fast installation is not necessary
21473 enable_fast_install
=needless
21482 fi # test -n "$compiler"
21488 with_gnu_ld
=$lt_save_with_gnu_ld
21489 lt_cv_path_LDCXX
=$lt_cv_path_LD
21490 lt_cv_path_LD
=$lt_save_path_LD
21491 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21492 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21493 fi # test "$_lt_caught_CXX_error" != yes
21496 ac_cpp
='$CPP $CPPFLAGS'
21497 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21498 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21499 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21516 # Only expand once:
21522 # Identify the assembler which will work hand-in-glove with the newly
21523 # built GCC, so that we can examine its features. This is the assembler
21524 # which will be driven by the driver program.
21526 # If build != host, and we aren't building gas in-tree, we identify a
21527 # build->target assembler and hope that it will have the same features
21528 # as the host->target assembler we'll be using.
21529 gcc_cv_gas_major_version
=
21530 gcc_cv_gas_minor_version
=
21531 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21533 if test "${gcc_cv_as+set}" = set; then :
21537 if test -x "$DEFAULT_ASSEMBLER"; then
21538 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21539 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21540 && test -f ..
/gas
/Makefile \
21541 && test x
$build = x
$host; then
21542 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21543 elif test -x as
$build_exeext; then
21544 # Build using assembler in the current directory.
21545 gcc_cv_as
=.
/as
$build_exeext
21546 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21547 gcc_cv_as
="$AS_FOR_TARGET"
21549 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21550 set dummy
$AS_FOR_TARGET; ac_word
=$2
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21552 $as_echo_n "checking for $ac_word... " >&6; }
21553 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21554 $as_echo_n "(cached) " >&6
21558 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21562 for as_dir
in $PATH
21565 test -z "$as_dir" && as_dir
=.
21566 for ac_exec_ext
in '' $ac_executable_extensions; do
21567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21568 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21579 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21580 if test -n "$gcc_cv_as"; then
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21582 $as_echo "$gcc_cv_as" >&6; }
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21585 $as_echo "no" >&6; }
21592 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21594 case "$ORIGINAL_AS_FOR_TARGET" in
21595 .
/as | .
/as
$build_exeext) ;;
21596 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21601 $as_echo_n "checking what assembler to use... " >&6; }
21602 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21603 # Single tree build which includes gas. We want to prefer it
21604 # over whatever linker top-level may have detected, since
21605 # we'll use what we're building after installation anyway.
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21607 $as_echo "newly built gas" >&6; }
21609 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21610 for f
in $gcc_cv_as_bfd_srcdir/configure \
21611 $gcc_cv_as_gas_srcdir/configure \
21612 $gcc_cv_as_gas_srcdir/configure.
in \
21613 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21614 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21615 if test x
$gcc_cv_gas_version != x
; then
21619 case $gcc_cv_gas_version in
21621 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21623 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21624 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21625 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21626 case $gcc_cv_gas_patch_version in
21627 "") gcc_cv_gas_patch_version
="0" ;;
21629 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21630 + $gcc_cv_gas_minor_version \) \* 1000 \
21631 + $gcc_cv_gas_patch_version`
21633 in_tree_gas_is_elf
=no
21634 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21635 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21636 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21638 in_tree_gas_is_elf
=yes
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21642 $as_echo "$gcc_cv_as" >&6; }
21646 # Identify the linker which will work hand-in-glove with the newly
21647 # built GCC, so that we can examine its features. This is the linker
21648 # which will be driven by the driver program.
21650 # If build != host, and we aren't building gas in-tree, we identify a
21651 # build->target linker and hope that it will have the same features
21652 # as the host->target linker we'll be using.
21653 gcc_cv_gld_major_version
=
21654 gcc_cv_gld_minor_version
=
21655 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21656 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21658 if test "${gcc_cv_ld+set}" = set; then :
21662 if test -x "$DEFAULT_LINKER"; then
21663 gcc_cv_ld
="$DEFAULT_LINKER"
21664 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21665 && test -f ..
/ld
/Makefile \
21666 && test x
$build = x
$host; then
21667 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21668 elif test -x collect-ld
$build_exeext; then
21669 # Build using linker in the current directory.
21670 gcc_cv_ld
=.
/collect-ld
$build_exeext
21671 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21672 gcc_cv_ld
="$LD_FOR_TARGET"
21674 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21675 set dummy
$LD_FOR_TARGET; ac_word
=$2
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21677 $as_echo_n "checking for $ac_word... " >&6; }
21678 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21679 $as_echo_n "(cached) " >&6
21683 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21687 for as_dir
in $PATH
21690 test -z "$as_dir" && as_dir
=.
21691 for ac_exec_ext
in '' $ac_executable_extensions; do
21692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21693 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21704 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21705 if test -n "$gcc_cv_ld"; then
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21707 $as_echo "$gcc_cv_ld" >&6; }
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21710 $as_echo "no" >&6; }
21717 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21718 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21719 # if the PLUGIN_LD is set ld-new, just have it as ld
21720 # as that is the installed named.
21721 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21722 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21723 PLUGIN_LD_SUFFIX
=ld
21726 # Check whether --with-plugin-ld was given.
21727 if test "${with_plugin_ld+set}" = set; then :
21728 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21729 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21730 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21736 cat >>confdefs.h
<<_ACEOF
21737 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21741 # Check to see if we are using gold instead of ld
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21743 $as_echo_n "checking whether we are using gold... " >&6; }
21745 if test x
$gcc_cv_ld != x
; then
21746 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21747 |
grep "GNU gold" > /dev
/null
; then
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21752 $as_echo "$ld_is_gold" >&6; }
21754 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21756 case "$ORIGINAL_LD_FOR_TARGET" in
21757 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21758 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21763 $as_echo_n "checking what linker to use... " >&6; }
21764 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21765 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21766 # Single tree build which includes ld. We want to prefer it
21767 # over whatever linker top-level may have detected, since
21768 # we'll use what we're building after installation anyway.
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21770 $as_echo "newly built ld" >&6; }
21772 in_tree_ld_is_elf
=no
21773 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21774 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21775 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21776 in_tree_ld_is_elf
=yes
21777 elif test "$ld_is_gold" = yes; then
21778 in_tree_ld_is_elf
=yes
21780 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
21782 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21783 if test x
$gcc_cv_gld_version != x
; then
21787 case $gcc_cv_gld_version in
21789 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21791 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21792 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21795 $as_echo "$gcc_cv_ld" >&6; }
21799 # Figure out what nm we will be using.
21800 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21801 if test "${gcc_cv_nm+set}" = set; then :
21805 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21806 && test -f ..
/binutils
/Makefile \
21807 && test x
$build = x
$host; then
21808 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21809 elif test -x nm
$build_exeext; then
21810 gcc_cv_nm
=.
/nm
$build_exeext
21811 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21812 gcc_cv_nm
="$NM_FOR_TARGET"
21814 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21815 set dummy
$NM_FOR_TARGET; ac_word
=$2
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21817 $as_echo_n "checking for $ac_word... " >&6; }
21818 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21819 $as_echo_n "(cached) " >&6
21823 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21827 for as_dir
in $PATH
21830 test -z "$as_dir" && as_dir
=.
21831 for ac_exec_ext
in '' $ac_executable_extensions; do
21832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21833 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21844 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21845 if test -n "$gcc_cv_nm"; then
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21847 $as_echo "$gcc_cv_nm" >&6; }
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21858 $as_echo_n "checking what nm to use... " >&6; }
21859 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21860 # Single tree build which includes binutils.
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21862 $as_echo "newly built nm" >&6; }
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21866 $as_echo "$gcc_cv_nm" >&6; }
21870 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21872 case "$ORIGINAL_NM_FOR_TARGET" in
21873 .
/nm | .
/nm
$build_exeext) ;;
21874 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21879 # Figure out what objdump we will be using.
21880 if test "${gcc_cv_objdump+set}" = set; then :
21884 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21885 && test -f ..
/binutils
/Makefile \
21886 && test x
$build = x
$host; then
21887 # Single tree build which includes binutils.
21888 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21889 elif test -x objdump
$build_exeext; then
21890 gcc_cv_objdump
=.
/objdump
$build_exeext
21891 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21892 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21894 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21895 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21897 $as_echo_n "checking for $ac_word... " >&6; }
21898 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21899 $as_echo_n "(cached) " >&6
21901 case $gcc_cv_objdump in
21903 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21907 for as_dir
in $PATH
21910 test -z "$as_dir" && as_dir
=.
21911 for ac_exec_ext
in '' $ac_executable_extensions; do
21912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21913 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21924 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21925 if test -n "$gcc_cv_objdump"; then
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21927 $as_echo "$gcc_cv_objdump" >&6; }
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930 $as_echo "no" >&6; }
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21938 $as_echo_n "checking what objdump to use... " >&6; }
21939 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21940 # Single tree build which includes binutils.
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21942 $as_echo "newly built objdump" >&6; }
21943 elif test x
$gcc_cv_objdump = x
; then
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21945 $as_echo "not found" >&6; }
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21948 $as_echo "$gcc_cv_objdump" >&6; }
21951 # Figure out what readelf we will be using.
21952 if test "${gcc_cv_readelf+set}" = set; then :
21956 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21957 && test -f ..
/binutils
/Makefile \
21958 && test x
$build = x
$host; then
21959 # Single tree build which includes binutils.
21960 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21961 elif test -x readelf
$build_exeext; then
21962 gcc_cv_readelf
=.
/readelf
$build_exeext
21964 # Extract the first word of "readelf", so it can be a program name with args.
21965 set dummy readelf
; ac_word
=$2
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21967 $as_echo_n "checking for $ac_word... " >&6; }
21968 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21969 $as_echo_n "(cached) " >&6
21971 case $gcc_cv_readelf in
21973 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21977 for as_dir
in $PATH
21980 test -z "$as_dir" && as_dir
=.
21981 for ac_exec_ext
in '' $ac_executable_extensions; do
21982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21983 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21994 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21995 if test -n "$gcc_cv_readelf"; then
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21997 $as_echo "$gcc_cv_readelf" >&6; }
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22000 $as_echo "no" >&6; }
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22008 $as_echo_n "checking what readelf to use... " >&6; }
22009 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22010 # Single tree build which includes binutils.
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22012 $as_echo "newly built readelf" >&6; }
22013 elif test x
$gcc_cv_readelf = x
; then
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22015 $as_echo "not found" >&6; }
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22018 $as_echo "$gcc_cv_readelf" >&6; }
22021 # Figure out what assembler alignment features are present.
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22023 $as_echo_n "checking assembler flags... " >&6; }
22024 if test "${gcc_cv_as_flags+set}" = set; then :
22025 $as_echo_n "(cached) " >&6
22028 i
[34567]86-*-linux*)
22029 gcc_cv_as_flags
="--32"
22031 powerpc
*-*-darwin*)
22032 gcc_cv_as_flags
="-arch ppc"
22035 gcc_cv_as_flags
=" "
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22040 $as_echo "$gcc_cv_as_flags" >&6; }
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22043 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22044 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22045 $as_echo_n "(cached) " >&6
22047 gcc_cv_as_balign_and_p2align
=no
22048 if test $in_tree_gas = yes; then
22049 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22050 then gcc_cv_as_balign_and_p2align
=yes
22052 elif test x
$gcc_cv_as != x
; then
22053 $as_echo '.balign 4
22054 .p2align 2' > conftest.s
22055 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22057 (eval $ac_try) 2>&5
22059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22060 test $ac_status = 0; }; }
22062 gcc_cv_as_balign_and_p2align
=yes
22064 echo "configure: failed program was" >&5
22067 rm -f conftest.o conftest.s
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22071 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22072 if test $gcc_cv_as_balign_and_p2align = yes; then
22074 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22079 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22080 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22081 $as_echo_n "(cached) " >&6
22083 gcc_cv_as_max_skip_p2align
=no
22084 if test $in_tree_gas = yes; then
22085 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22086 then gcc_cv_as_max_skip_p2align
=yes
22088 elif test x
$gcc_cv_as != x
; then
22089 $as_echo '.p2align 4,,7' > conftest.s
22090 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22092 (eval $ac_try) 2>&5
22094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22095 test $ac_status = 0; }; }
22097 gcc_cv_as_max_skip_p2align
=yes
22099 echo "configure: failed program was" >&5
22102 rm -f conftest.o conftest.s
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22106 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22107 if test $gcc_cv_as_max_skip_p2align = yes; then
22109 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22114 $as_echo_n "checking assembler for .literal16... " >&6; }
22115 if test "${gcc_cv_as_literal16+set}" = set; then :
22116 $as_echo_n "(cached) " >&6
22118 gcc_cv_as_literal16
=no
22119 if test $in_tree_gas = yes; then
22120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22121 then gcc_cv_as_literal16
=yes
22123 elif test x
$gcc_cv_as != x
; then
22124 $as_echo '.literal16' > conftest.s
22125 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22127 (eval $ac_try) 2>&5
22129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22130 test $ac_status = 0; }; }
22132 gcc_cv_as_literal16
=yes
22134 echo "configure: failed program was" >&5
22137 rm -f conftest.o conftest.s
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22141 $as_echo "$gcc_cv_as_literal16" >&6; }
22142 if test $gcc_cv_as_literal16 = yes; then
22144 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22149 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22150 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22151 $as_echo_n "(cached) " >&6
22153 gcc_cv_as_subsection_m1
=no
22154 if test $in_tree_gas = yes; then
22155 if test $in_tree_gas_is_elf = yes \
22156 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22157 then gcc_cv_as_subsection_m1
=yes
22159 elif test x
$gcc_cv_as != x
; then
22160 $as_echo 'conftest_label1: .word 0
22162 conftest_label2: .word 0
22163 .previous' > conftest.s
22164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22166 (eval $ac_try) 2>&5
22168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22169 test $ac_status = 0; }; }
22171 if test x
$gcc_cv_nm != x
; then
22172 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22173 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22174 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22176 else gcc_cv_as_subsection_m1
=yes
22178 rm -f conftest.nm1 conftest.nm2
22181 echo "configure: failed program was" >&5
22184 rm -f conftest.o conftest.s
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22188 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22189 if test $gcc_cv_as_subsection_m1 = yes; then
22191 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22196 $as_echo_n "checking assembler for .weak... " >&6; }
22197 if test "${gcc_cv_as_weak+set}" = set; then :
22198 $as_echo_n "(cached) " >&6
22201 if test $in_tree_gas = yes; then
22202 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22203 then gcc_cv_as_weak
=yes
22205 elif test x
$gcc_cv_as != x
; then
22206 $as_echo ' .weak foobar' > conftest.s
22207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22209 (eval $ac_try) 2>&5
22211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22212 test $ac_status = 0; }; }
22216 echo "configure: failed program was" >&5
22219 rm -f conftest.o conftest.s
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22223 $as_echo "$gcc_cv_as_weak" >&6; }
22224 if test $gcc_cv_as_weak = yes; then
22226 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22231 $as_echo_n "checking assembler for .weakref... " >&6; }
22232 if test "${gcc_cv_as_weakref+set}" = set; then :
22233 $as_echo_n "(cached) " >&6
22235 gcc_cv_as_weakref
=no
22236 if test $in_tree_gas = yes; then
22237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22238 then gcc_cv_as_weakref
=yes
22240 elif test x
$gcc_cv_as != x
; then
22241 $as_echo ' .weakref foobar, barfnot' > conftest.s
22242 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22244 (eval $ac_try) 2>&5
22246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22247 test $ac_status = 0; }; }
22249 gcc_cv_as_weakref
=yes
22251 echo "configure: failed program was" >&5
22254 rm -f conftest.o conftest.s
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22258 $as_echo "$gcc_cv_as_weakref" >&6; }
22259 if test $gcc_cv_as_weakref = yes; then
22261 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22266 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22267 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22268 $as_echo_n "(cached) " >&6
22270 gcc_cv_as_nsubspa_comdat
=no
22271 if test $in_tree_gas = yes; then
22272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22273 then gcc_cv_as_nsubspa_comdat
=yes
22275 elif test x
$gcc_cv_as != x
; then
22276 $as_echo ' .SPACE $TEXT$
22277 .NSUBSPA $CODE$,COMDAT' > conftest.s
22278 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22280 (eval $ac_try) 2>&5
22282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22283 test $ac_status = 0; }; }
22285 gcc_cv_as_nsubspa_comdat
=yes
22287 echo "configure: failed program was" >&5
22290 rm -f conftest.o conftest.s
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22294 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22295 if test $gcc_cv_as_nsubspa_comdat = yes; then
22297 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22301 # .hidden needs to be supported in both the assembler and the linker,
22302 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22303 # This is irritatingly difficult to feature test for; we have to check the
22304 # date string after the version number. If we've got an in-tree
22305 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22307 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22309 $as_echo_n "checking assembler for .hidden... " >&6; }
22310 if test "${gcc_cv_as_hidden+set}" = set; then :
22311 $as_echo_n "(cached) " >&6
22313 gcc_cv_as_hidden
=no
22314 if test $in_tree_gas = yes; then
22315 if test $in_tree_gas_is_elf = yes \
22316 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22317 then gcc_cv_as_hidden
=yes
22319 elif test x
$gcc_cv_as != x
; then
22320 $as_echo ' .hidden foobar
22321 foobar:' > conftest.s
22322 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22324 (eval $ac_try) 2>&5
22326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22327 test $ac_status = 0; }; }
22330 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22331 # STV_HIDDEN, so disable .hidden support if so.
22332 case "${target}" in
22333 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22334 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22335 cat > conftest.s
<<EOF
22340 .set default,hidden
22342 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22343 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22344 grep '\.hidden default' > /dev
/null
; then
22345 gcc_cv_as_hidden
=no
22347 gcc_cv_as_hidden
=yes
22350 # Assume bug is present if objdump is missing.
22351 gcc_cv_as_hidden
=no
22355 gcc_cv_as_hidden
=yes
22359 echo "configure: failed program was" >&5
22362 rm -f conftest.o conftest.s
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22366 $as_echo "$gcc_cv_as_hidden" >&6; }
22368 case "${target}" in
22370 # Darwin as has some visibility support, though with a different syntax.
22371 gcc_cv_as_hidden
=yes
22375 # gnu_indirect_function type is an extension proposed at
22376 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22377 # selection of function implementation
22378 # Check whether --enable-gnu-indirect-function was given.
22379 if test "${enable_gnu_indirect_function+set}" = set; then :
22380 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22382 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22383 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22386 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22390 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22392 cat >>confdefs.h
<<_ACEOF
22393 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22398 if test $in_tree_ld != yes ; then
22399 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22400 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22401 if test x
"$ld_is_gold" = xyes
; then
22402 # GNU gold --version looks like this:
22404 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22406 # We extract the binutils version which is more familiar and specific
22407 # than the gold version.
22408 ld_vers
=`echo $ld_ver | sed -n \
22409 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22411 # GNU ld --version looks like this:
22413 # GNU ld (GNU Binutils) 2.21.51.20110225
22414 ld_vers
=`echo $ld_ver | sed -n \
22415 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22417 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'`
22418 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22419 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22420 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22422 case "${target}" in
22424 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22427 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22428 # /usr/ccs/bin/ld has been configured.
22429 ld_ver
=`$gcc_cv_ld -V 2>&1`
22430 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22431 ld_vers
=`echo $ld_ver | sed -n \
22432 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22433 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22434 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22442 $as_echo_n "checking linker for .hidden support... " >&6; }
22443 if test "${gcc_cv_ld_hidden+set}" = set; then :
22444 $as_echo_n "(cached) " >&6
22446 if test $in_tree_ld = yes ; then
22447 gcc_cv_ld_hidden
=no
22448 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 \
22449 && test $in_tree_ld_is_elf = yes; then
22450 gcc_cv_ld_hidden
=yes
22453 gcc_cv_ld_hidden
=yes
22454 if test x
"$ld_is_gold" = xyes
; then
22456 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22457 case "${target}" in
22458 mmix-knuth-mmixware
)
22459 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22460 gcc_cv_ld_hidden
=no
22463 if test 0"$ld_date" -lt 20020404; then
22464 if test -n "$ld_date"; then
22465 # If there was date string, but was earlier than 2002-04-04, fail
22466 gcc_cv_ld_hidden
=no
22467 elif test -z "$ld_vers"; then
22468 # If there was no date string nor ld version number, something is wrong
22469 gcc_cv_ld_hidden
=no
22471 test -z "$ld_vers_patch" && ld_vers_patch
=0
22472 if test "$ld_vers_major" -lt 2; then
22473 gcc_cv_ld_hidden
=no
22474 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22475 gcc_cv_ld_hidden
="no"
22476 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22477 gcc_cv_ld_hidden
=no
22482 case "${target}" in
22484 # Darwin ld has some visibility support.
22485 gcc_cv_ld_hidden
=yes
22487 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22488 gcc_cv_ld_hidden
=yes
22490 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22491 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22492 # .symbolic was only added in Solaris 9 12/02.
22493 gcc_cv_ld_hidden
=yes
22496 gcc_cv_ld_hidden
=no
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22503 $as_echo "$gcc_cv_ld_hidden" >&6; }
22504 libgcc_visibility
=no
22507 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22508 libgcc_visibility
=yes
22510 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22515 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22516 gcc_cv_ld_ro_rw_mix
=unknown
22517 if test $in_tree_ld = yes ; then
22518 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 \
22519 && test $in_tree_ld_is_elf = yes; then
22520 gcc_cv_ld_ro_rw_mix
=read-write
22522 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22523 echo '.section myfoosect, "a"' > conftest1.s
22524 echo '.section myfoosect, "aw"' > conftest2.s
22525 echo '.byte 1' >> conftest2.s
22526 echo '.section myfoosect, "a"' > conftest3.s
22527 echo '.byte 0' >> conftest3.s
22528 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22529 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22530 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22531 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22532 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22533 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22534 | sed -e '/myfoosect/!d' -e N`
22535 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22536 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22537 gcc_cv_ld_ro_rw_mix
=read-only
22539 gcc_cv_ld_ro_rw_mix
=read-write
22543 rm -f conftest.
* conftest
[123].
*
22545 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22547 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22551 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22553 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22554 case "${target}" in
22557 # Solaris 2 ld -V output looks like this for a regular version:
22559 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22561 # but test versions add stuff at the end:
22563 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22565 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22566 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22567 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22568 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22569 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22570 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22576 # Check whether --enable-initfini-array was given.
22577 if test "${enable_initfini_array+set}" = set; then :
22578 enableval
=$enable_initfini_array;
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22582 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22583 if test "${gcc_cv_initfini_array+set}" = set; then :
22584 $as_echo_n "(cached) " >&6
22586 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22587 case "${target}" in
22589 if test "$cross_compiling" = yes; then :
22590 gcc_cv_initfini_array
=no
22592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22593 /* end confdefs.h. */
22596 #error Not an ELF OS
22598 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22599 if it can be used. */
22601 int main (void) { return x; }
22602 int foo (void) { x = 0; }
22603 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22606 if ac_fn_c_try_run
"$LINENO"; then :
22607 gcc_cv_initfini_array
=yes
22609 gcc_cv_initfini_array
=no
22611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22612 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22616 gcc_cv_initfini_array
=no
22617 if test $in_tree_ld = yes ; then
22618 if test "$gcc_cv_gld_major_version" -eq 2 \
22619 -a "$gcc_cv_gld_minor_version" -ge 22 \
22620 -o "$gcc_cv_gld_major_version" -gt 2 \
22621 && test $in_tree_ld_is_elf = yes; then
22622 gcc_cv_initfini_array
=yes
22624 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22625 cat > conftest.s
<<\EOF
22626 .section .dtors
,"a",%progbits
22628 .byte
'A', 'A', 'A', 'A'
22629 .section .ctors
,"a",%progbits
22631 .byte
'B', 'B', 'B', 'B'
22632 .section .fini_array
.65530,"a",%progbits
22634 .byte
'C', 'C', 'C', 'C'
22635 .section .init_array
.65530,"a",%progbits
22637 .byte
'D', 'D', 'D', 'D'
22638 .section .dtors
.64528,"a",%progbits
22640 .byte
'E', 'E', 'E', 'E'
22641 .section .ctors
.64528,"a",%progbits
22643 .byte
'F', 'F', 'F', 'F'
22644 .section .fini_array
.01005,"a",%progbits
22646 .byte
'G', 'G', 'G', 'G'
22647 .section .init_array
.01005,"a",%progbits
22649 .byte
'H', 'H', 'H', 'H'
22654 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22655 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22656 && $gcc_cv_objdump -s -j .init_array conftest \
22657 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22658 && $gcc_cv_objdump -s -j .fini_array conftest \
22659 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22660 gcc_cv_initfini_array
=yes
22662 rm -f conftest conftest.
*
22664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22665 /* end confdefs.h. */
22668 # error Not an ELF OS
22670 #include <stdlib.h>
22671 #if defined __GLIBC_PREREQ
22672 # if __GLIBC_PREREQ (2, 4)
22674 # error GLIBC 2.4 required
22677 # if defined __sun__ && defined __svr4__
22678 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22680 # error The C library not known to support .init_array/.fini_array
22685 if ac_fn_c_try_cpp
"$LINENO"; then :
22688 gcc_cv_initfini_array
=no
22690 rm -f conftest.err conftest.
$ac_ext;;
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22694 $as_echo_n "checking cross compile... guessing... " >&6; }
22695 gcc_cv_initfini_array
=no
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22699 $as_echo "$gcc_cv_initfini_array" >&6; }
22700 enable_initfini_array
=$gcc_cv_initfini_array
22704 if test $enable_initfini_array = yes; then
22706 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22710 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22712 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22713 if test "${gcc_cv_as_leb128+set}" = set; then :
22714 $as_echo_n "(cached) " >&6
22716 gcc_cv_as_leb128
=no
22717 if test $in_tree_gas = yes; then
22718 if test $in_tree_gas_is_elf = yes \
22719 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22720 then gcc_cv_as_leb128
=yes
22722 elif test x
$gcc_cv_as != x
; then
22729 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22731 (eval $ac_try) 2>&5
22733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22734 test $ac_status = 0; }; }
22736 # GAS versions before 2.11 do not support uleb128,
22737 # despite appearing to.
22738 # ??? There exists an elf-specific test that will crash
22739 # the assembler. Perhaps it's better to figure out whether
22740 # arbitrary sections are supported and try the test.
22741 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22742 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22743 as_vers
=`echo $as_ver | sed -n \
22744 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22745 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22746 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22747 if test $as_major -eq 2 && test $as_minor -lt 11
22749 else gcc_cv_as_leb128
=yes
22753 echo "configure: failed program was" >&5
22756 rm -f conftest.o conftest.s
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22760 $as_echo "$gcc_cv_as_leb128" >&6; }
22761 if test $gcc_cv_as_leb128 = yes; then
22763 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22767 # Check if we have assembler support for unwind directives.
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22769 $as_echo_n "checking assembler for cfi directives... " >&6; }
22770 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22773 gcc_cv_as_cfi_directive
=no
22774 if test x
$gcc_cv_as != x
; then
22780 .cfi_escape 1, 2, 3, 4, 5
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; }; }
22791 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22792 # read-only and read-write sections, we need to make sure that the
22793 # assembler used emits read-write .eh_frame sections.
22794 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22795 if test "x$gcc_cv_objdump" != x
; then
22796 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22797 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22798 gcc_cv_as_cfi_directive
=no
22801 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22802 # On Solaris/x86, make sure that GCC and gas agree on using
22803 # read-only .eh_frame sections for 64-bit.
22804 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22805 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22806 sed -e /.eh_frame
/!d
-e N | \
22807 grep READONLY
> /dev
/null
; then
22808 gcc_cv_as_cfi_directive
=yes
22810 gcc_cv_as_cfi_directive
=no
22814 gcc_cv_as_cfi_directive
=yes
22819 # no objdump, err on the side of caution
22820 gcc_cv_as_cfi_directive
=no
22823 gcc_cv_as_cfi_directive
=yes
22827 gcc_cv_as_cfi_directive
=yes
22831 echo "configure: failed program was" >&5
22834 rm -f conftest.o conftest.s
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22838 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22840 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22842 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22843 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22844 $as_echo_n "(cached) " >&6
22846 gcc_cv_as_cfi_advance_working
=no
22847 if test x
$gcc_cv_as != x
; then
22850 .cfi_adjust_cfa_offset 64
22852 .cfi_adjust_cfa_offset 128
22853 .cfi_endproc' > conftest.s
22854 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856 (eval $ac_try) 2>&5
22858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859 test $ac_status = 0; }; }
22862 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22863 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22864 gcc_cv_as_cfi_advance_working
=yes
22868 echo "configure: failed program was" >&5
22871 rm -f conftest.o conftest.s
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22875 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22878 # no objdump, err on the side of caution
22879 gcc_cv_as_cfi_advance_working
=no
22883 cat >>confdefs.h
<<_ACEOF
22884 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22885 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22891 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22892 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22893 $as_echo_n "(cached) " >&6
22895 gcc_cv_as_cfi_personality_directive
=no
22896 if test x
$gcc_cv_as != x
; then
22899 .cfi_personality 0, symbol
22900 .cfi_endproc' > conftest.s
22901 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22903 (eval $ac_try) 2>&5
22905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22906 test $ac_status = 0; }; }
22908 gcc_cv_as_cfi_personality_directive
=yes
22910 echo "configure: failed program was" >&5
22913 rm -f conftest.o conftest.s
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22917 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22920 cat >>confdefs.h
<<_ACEOF
22921 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22922 then echo 1; else echo 0; fi`
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22927 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22928 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22929 $as_echo_n "(cached) " >&6
22931 gcc_cv_as_cfi_sections_directive
=no
22932 if test x
$gcc_cv_as != x
; then
22934 .cfi_sections .debug_frame, .eh_frame
22936 .cfi_endproc' > conftest.s
22937 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22939 (eval $ac_try) 2>&5
22941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22942 test $ac_status = 0; }; }
22945 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22946 # Need to check that we generated the correct relocation for the
22947 # .debug_frame section. This was fixed for binutils 2.21.
22948 gcc_cv_as_cfi_sections_directive
=no
22949 if test "x$gcc_cv_objdump" != x
; then
22950 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22951 grep secrel
> /dev
/null
; then
22952 gcc_cv_as_cfi_sections_directive
=yes
22957 gcc_cv_as_cfi_sections_directive
=yes
22961 echo "configure: failed program was" >&5
22964 rm -f conftest.o conftest.s
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22968 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22972 cat >>confdefs.h
<<_ACEOF
22973 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22974 then echo 1; else echo 0; fi`
22978 # GAS versions up to and including 2.11.0 may mis-optimize
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22981 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22982 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22983 $as_echo_n "(cached) " >&6
22985 gcc_cv_as_eh_frame
=no
22986 if test $in_tree_gas = yes; then
22987 if test $in_tree_gas_is_elf = yes \
22988 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22989 then gcc_cv_as_eh_frame
=yes
22991 elif test x
$gcc_cv_as != x
; then
22998 .section .eh_frame,"aw",@progbits
23000 .4byte .LECIE1-.LSCIE1
23014 .4byte .LEFDE1-.LASFDE1
23016 .4byte .LASFDE1-__FRAME_BEGIN__
23023 .LEFDE1:' > conftest.s
23024 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23026 (eval $ac_try) 2>&5
23028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23029 test $ac_status = 0; }; }
23031 cat > conftest.lit
<<EOF
23032 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23033 0010 01000000 12000000 18000000 00000000 ................
23034 0020 08000000 04080000 0044 .........D
23036 cat > conftest.big
<<EOF
23037 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23038 0010 00000001 00000012 00000018 00000000 ................
23039 0020 00000008 04000000 0844 .........D
23041 # If the assembler didn't choke, and we can objdump,
23042 # and we got the correct data, then succeed.
23043 # The text in the here-document typically retains its unix-style line
23044 # endings, while the output of objdump will use host line endings.
23045 # Therefore, use diff -b for the comparisons.
23046 if test x
$gcc_cv_objdump != x \
23047 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23048 |
tail -3 > conftest.got \
23049 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23050 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23052 gcc_cv_as_eh_frame
=yes
23053 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23055 (eval $ac_try) 2>&5
23057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23058 test $ac_status = 0; }; }; then
23059 gcc_cv_as_eh_frame
=buggy
23061 # Uh oh, what do we do now?
23062 gcc_cv_as_eh_frame
=no
23065 echo "configure: failed program was" >&5
23068 rm -f conftest.o conftest.s
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23072 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23075 if test $gcc_cv_as_eh_frame = buggy
; then
23077 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23082 $as_echo_n "checking assembler for section merging support... " >&6; }
23083 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23084 $as_echo_n "(cached) " >&6
23086 gcc_cv_as_shf_merge
=no
23087 if test $in_tree_gas = yes; then
23088 if test $in_tree_gas_is_elf = yes \
23089 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23090 then gcc_cv_as_shf_merge
=yes
23092 elif test x
$gcc_cv_as != x
; then
23093 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23094 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23096 (eval $ac_try) 2>&5
23098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23099 test $ac_status = 0; }; }
23101 gcc_cv_as_shf_merge
=yes
23103 echo "configure: failed program was" >&5
23106 rm -f conftest.o conftest.s
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23110 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23112 if test $gcc_cv_as_shf_merge = no
; then
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23114 $as_echo_n "checking assembler for section merging support... " >&6; }
23115 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23116 $as_echo_n "(cached) " >&6
23118 gcc_cv_as_shf_merge
=no
23119 if test $in_tree_gas = yes; then
23120 if test $in_tree_gas_is_elf = yes \
23121 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23122 then gcc_cv_as_shf_merge
=yes
23124 elif test x
$gcc_cv_as != x
; then
23125 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23126 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23128 (eval $ac_try) 2>&5
23130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23131 test $ac_status = 0; }; }
23133 gcc_cv_as_shf_merge
=yes
23135 echo "configure: failed program was" >&5
23138 rm -f conftest.o conftest.s
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23142 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23146 cat >>confdefs.h
<<_ACEOF
23147 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23152 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23153 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23154 $as_echo_n "(cached) " >&6
23156 gcc_cv_as_comdat_group
=no
23157 if test $in_tree_gas = yes; then
23158 if test $in_tree_gas_is_elf = yes \
23159 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23160 then gcc_cv_as_comdat_group
=yes
23162 elif test x
$gcc_cv_as != x
; then
23163 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23166 (eval $ac_try) 2>&5
23168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23169 test $ac_status = 0; }; }
23171 gcc_cv_as_comdat_group
=yes
23173 echo "configure: failed program was" >&5
23176 rm -f conftest.o conftest.s
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23180 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23182 if test $gcc_cv_as_comdat_group = yes; then
23183 gcc_cv_as_comdat_group_percent
=no
23184 gcc_cv_as_comdat_group_group
=no
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23187 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23188 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23189 $as_echo_n "(cached) " >&6
23191 gcc_cv_as_comdat_group_percent
=no
23192 if test $in_tree_gas = yes; then
23193 if test $in_tree_gas_is_elf = yes \
23194 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23195 then gcc_cv_as_comdat_group_percent
=yes
23197 elif test x
$gcc_cv_as != x
; then
23198 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23206 gcc_cv_as_comdat_group_percent
=yes
23208 echo "configure: failed program was" >&5
23211 rm -f conftest.o conftest.s
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23215 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23217 if test $gcc_cv_as_comdat_group_percent = yes; then
23218 gcc_cv_as_comdat_group_group
=no
23220 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23221 gcc_cv_as_comdat_group_group
=no
23223 case "${target}" in
23224 # Sun as uses a completely different syntax.
23226 case "${target}" in
23227 sparc
*-*-solaris2*)
23229 .group foo,".text%foo",#comdat
23230 .section ".text%foo", #alloc,#execinstr,#progbits
23235 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23237 .group foo,.text%foo,#comdat
23238 .section .text%foo, "ax", @progbits
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23245 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23246 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23247 $as_echo_n "(cached) " >&6
23249 gcc_cv_as_comdat_group_group
=no
23250 if test x
$gcc_cv_as != x
; then
23251 $as_echo "$conftest_s" > conftest.s
23252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23254 (eval $ac_try) 2>&5
23256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23257 test $ac_status = 0; }; }
23259 gcc_cv_as_comdat_group_group
=yes
23261 echo "configure: failed program was" >&5
23264 rm -f conftest.o conftest.s
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23268 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23274 if test x
"$ld_is_gold" = xyes
; then
23276 elif test $in_tree_ld = yes ; then
23278 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 \
23279 && test $in_tree_ld_is_elf = yes; then
23282 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23284 if test 0"$ld_date" -lt 20050308; then
23285 if test -n "$ld_date"; then
23286 # If there was date string, but was earlier than 2005-03-08, fail
23288 elif test "$ld_vers_major" -lt 2; then
23290 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23295 case "${target}" in
23296 *-*-solaris2.1
[1-9]*)
23298 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23299 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23302 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23303 # least ld version 1.2267.
23304 if test "$ld_vers_major" -gt 1; then
23306 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23308 elif test "$ld_vers_minor" -ge 2267; then
23313 # Assume linkers other than GNU ld don't support COMDAT group.
23318 # Allow overriding the automatic COMDAT group tests above.
23319 # Check whether --enable-comdat was given.
23320 if test "${enable_comdat+set}" = set; then :
23321 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23324 if test $comdat_group = no
; then
23325 gcc_cv_as_comdat_group
=no
23326 gcc_cv_as_comdat_group_percent
=no
23327 gcc_cv_as_comdat_group_group
=no
23330 cat >>confdefs.h
<<_ACEOF
23331 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23332 || test $gcc_cv_as_comdat_group_percent = yes \
23333 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23338 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23339 if test "${gcc_cv_as_discriminator+set}" = set; then :
23340 $as_echo_n "(cached) " >&6
23342 gcc_cv_as_discriminator
=no
23343 if test $in_tree_gas = yes; then
23344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23345 then gcc_cv_as_discriminator
=yes
23347 elif test x
$gcc_cv_as != x
; then
23350 .loc 1 1 0 discriminator 1' > conftest.s
23351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23353 (eval $ac_try) 2>&5
23355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23356 test $ac_status = 0; }; }
23358 gcc_cv_as_discriminator
=yes
23360 echo "configure: failed program was" >&5
23363 rm -f conftest.o conftest.s
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23367 $as_echo "$gcc_cv_as_discriminator" >&6; }
23368 if test $gcc_cv_as_discriminator = yes; then
23370 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23374 # Thread-local storage - the check is heavily parameterized.
23382 .section ".tdata","awT",@progbits
23385 ldq $27,__tls_get_addr($29) !literal!1
23386 lda $16,foo($29) !tlsgd!1
23387 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23388 ldq $27,__tls_get_addr($29) !literal!2
23389 lda $16,foo($29) !tlsldm!2
23390 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23391 ldq $1,foo($29) !gotdtprel
23392 ldah $2,foo($29) !dtprelhi
23393 lda $3,foo($2) !dtprello
23394 lda $4,foo($29) !dtprel
23395 ldq $1,foo($29) !gottprel
23396 ldah $2,foo($29) !tprelhi
23397 lda $3,foo($2) !tprello
23398 lda $4,foo($29) !tprel'
23401 tls_as_opt
=--fatal-warnings
23403 cris-
*-*|crisv32-
*-*)
23405 .section ".tdata","awT",@progbits
23412 tls_as_opt
=--fatal-warnings
23416 .section ".tdata","awT",@progbits
23419 call #gettlsoff(x)'
23428 .section ".tdata","awT",@progbits
23432 addil LT%foo-$tls_gdidx$,gp
23433 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23436 addil LT%foo-$tls_ldidx$,gp
23438 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23439 addil LR%foo-$tls_dtpoff$,%ret0
23440 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23442 addil LT%foo-$tls_ieoff$,gp
23443 ldw RT%foo-$tls_ieoff$(%r1),%t2
23446 addil LR%foo-$tls_leoff$,%t1
23447 ldo RR%foo-$tls_leoff$(%r1),%t2'
23450 tls_as_opt
=--fatal-warnings
23454 .section ".tdata","awT",%progbits
23457 .word foo(gottpoff)
23465 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23467 i
[34567]86-*-solaris2.
*)
23469 tga_func
=___tls_get_addr
23471 x86_64-
*-solaris2.1
[0-9]*)
23473 tga_func
=__tls_get_addr
23479 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23481 .section .tdata,"awt",@progbits'
23485 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23489 .section ".tdata","awT",@progbits'
23492 tls_as_opt
="--fatal-warnings"
23494 conftest_s
="$conftest_s
23498 leal foo@tlsgd(,%ebx,1), %eax
23499 leal foo@tlsldm(%ebx), %eax
23500 leal foo@dtpoff(%eax), %edx
23501 movl foo@gottpoff(%ebx), %eax
23502 subl foo@gottpoff(%ebx), %eax
23503 addl foo@gotntpoff(%ebx), %eax
23504 movl foo@indntpoff, %eax
23505 movl \$foo@tpoff, %eax
23506 subl \$foo@tpoff, %eax
23507 leal foo@ntpoff(%ecx), %eax"
23511 .section ".tdata","awT",@progbits
23515 leaq foo@TLSGD(%rip), %rdi
23516 leaq foo@TLSLD(%rip), %rdi
23517 leaq foo@DTPOFF(%rax), %rdx
23518 movq foo@GOTTPOFF(%rip), %rax
23519 movq $foo@TPOFF, %rax'
23522 tls_as_opt
=--fatal-warnings
23526 .section ".tdata","awT",@progbits
23529 addl r16 = @ltoff(@dtpmod(foo#)), gp
23530 addl r17 = @ltoff(@dtprel(foo#)), gp
23531 addl r18 = @ltoff(@tprel(foo#)), gp
23532 addl r19 = @dtprel(foo#), gp
23533 adds r21 = @dtprel(foo#), r13
23534 movl r23 = @dtprel(foo#)
23535 addl r20 = @tprel(foo#), gp
23536 adds r22 = @tprel(foo#), r13
23537 movl r24 = @tprel(foo#)'
23540 tls_as_opt
=--fatal-warnings
23544 .section .tdata,"awT",@progbits
23548 addik r5,r20,x@TLSGD
23549 addik r5,r20,x@TLSLDM'
23552 tls_as_opt
='--fatal-warnings'
23556 .section .tdata,"awT",@progbits
23560 addiu $4, $28, %tlsgd(x)
23561 addiu $4, $28, %tlsldm(x)
23562 lui $4, %dtprel_hi(x)
23563 addiu $4, $4, %dtprel_lo(x)
23564 lw $4, %gottprel(x)($28)
23565 lui $4, %tprel_hi(x)
23566 addiu $4, $4, %tprel_lo(x)'
23569 tls_as_opt
='-32 --fatal-warnings'
23573 .section .tdata,"awT",@progbits
23578 move.l x@TLSGD(%a5),%a0
23579 move.l x@TLSLDM(%a5),%a0
23580 move.l x@TLSLDO(%a5),%a0
23581 move.l x@TLSIE(%a5),%a0
23582 move.l x@TLSLE(%a5),%a0'
23585 tls_as_opt
='--fatal-warnings'
23589 .section ".tdata","awT",%progbits
23593 add x0, x0, #:tlsgd_lo12:x
23598 tls_as_opt
='--fatal-warnings'
23602 .extern __get_tpointer
23620 .section ".tdata","awT",@progbits
23628 addi 3,2,ld0@got@tlsgd
23634 addi 3,2,x1@got@tlsld
23640 addis 9,3,x2@dtprel@ha
23641 addi 9,9,x2@dtprel@l
23644 ld 9,x3@got@dtprel(2)
23650 tls_as_opt
="-a64 --fatal-warnings"
23654 .section ".tdata","awT",@progbits
23662 addi 3,31,ld0@got@tlsgd
23664 addi 3,31,x1@got@tlsld
23667 addis 9,3,x2@dtprel@ha
23668 addi 9,9,x2@dtprel@l
23669 lwz 9,x3@got@tprel(31)
23672 addis 9,2,x2@tprel@ha
23673 addi 9,9,x2@tprel@l'
23676 tls_as_opt
="-a32 --fatal-warnings"
23680 .section ".tdata","awT",@progbits
23687 .long foo@GOTNTPOFF
23688 .long foo@INDNTPOFF
23689 l %r1,foo@GOTNTPOFF(%r12)
23690 l %r1,0(%r1):tls_load:foo
23691 bas %r14,0(%r1,%r13):tls_gdcall:foo
23692 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23695 tls_as_opt
="-m31 --fatal-warnings"
23699 .section ".tdata","awT",@progbits
23706 .quad foo@GOTNTPOFF
23707 lg %r1,foo@GOTNTPOFF(%r12)
23708 larl %r1,foo@INDNTPOFF
23709 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23710 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23713 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23715 sh-
*-* | sh
[34]-*-*)
23717 .section ".tdata","awT",@progbits
23727 tls_as_opt
=--fatal-warnings
23731 sparc
*-sun-solaris2.
*)
23733 tga_func
=__tls_get_addr
23739 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23741 .section ".tdata",#alloc,#write,#tls'
23746 .section ".tdata","awT",@progbits'
23749 tls_as_opt
="-32 --fatal-warnings"
23751 conftest_s
="$conftest_s
23754 sethi %tgd_hi22(foo), %o0
23755 add %o0, %tgd_lo10(foo), %o1
23756 add %l7, %o1, %o0, %tgd_add(foo)
23757 call __tls_get_addr, %tgd_call(foo)
23758 sethi %tldm_hi22(foo), %l1
23759 add %l1, %tldm_lo10(foo), %l2
23760 add %l7, %l2, %o0, %tldm_add(foo)
23761 call __tls_get_addr, %tldm_call(foo)
23762 sethi %tldo_hix22(foo), %l3
23763 xor %l3, %tldo_lox10(foo), %l4
23764 add %o0, %l4, %l5, %tldo_add(foo)
23765 sethi %tie_hi22(foo), %o3
23766 add %o3, %tie_lo10(foo), %o3
23767 ld [%l7 + %o3], %o2, %tie_ld(foo)
23768 add %g7, %o2, %o4, %tie_add(foo)
23769 sethi %tle_hix22(foo), %l1
23770 xor %l1, %tle_lox10(foo), %o5
23771 ld [%g7 + %o5], %o1"
23775 .section ".tdata","awT",@progbits
23778 addli r0, zero, tls_gd(foo)
23779 auli r0, zero, tls_gd_ha16(foo)
23780 addli r0, r0, tls_gd_lo16(foo)
23782 addli r0, zero, tls_ie(foo)
23783 auli r0, r0, tls_ie_ha16(foo)
23784 addli r0, r0, tls_ie_lo16(foo)'
23787 tls_as_opt
="--fatal-warnings"
23791 .section ".tdata","awT",@progbits
23794 shl16insli r0, zero, hw0_last_tls_gd(foo)
23795 shl16insli r0, zero, hw1_last_tls_gd(foo)
23796 shl16insli r0, r0, hw0_tls_gd(foo)
23798 shl16insli r0, zero, hw1_last_tls_ie(foo)
23799 shl16insli r0, r0, hw0_tls_ie(foo)'
23802 tls_as_opt
="--fatal-warnings"
23806 .section ".tdata","awT",@progbits
23809 movi a8, foo@TLSFUNC
23810 movi a10, foo@TLSARG
23811 callx8.tls a8, foo@TLSCALL'
23817 if test "x$enable_tls" = xno
; then
23818 : # TLS explicitly disabled.
23819 elif test "x$enable_tls" = xyes
; then
23820 set_have_as_tls
=yes # TLS explicitly enabled.
23821 elif test -z "$tls_first_major"; then
23822 : # If we don't have a check, assume no support.
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23825 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23826 if test "${gcc_cv_as_tls+set}" = set; then :
23827 $as_echo_n "(cached) " >&6
23830 if test $in_tree_gas = yes; then
23831 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23832 then gcc_cv_as_tls
=yes
23834 elif test x
$gcc_cv_as != x
; then
23835 $as_echo "$conftest_s" > conftest.s
23836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23838 (eval $ac_try) 2>&5
23840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23841 test $ac_status = 0; }; }
23845 echo "configure: failed program was" >&5
23848 rm -f conftest.o conftest.s
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23852 $as_echo "$gcc_cv_as_tls" >&6; }
23853 if test $gcc_cv_as_tls = yes; then
23854 set_have_as_tls
=yes
23858 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23859 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23860 # Sun style that Sun ld and GCC don't support any longer.
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23863 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23865 # Check ld and ld.so.1 TLS support.
23866 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23867 # Assume all interesting versions of GNU ld have TLS support.
23868 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23872 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23874 min_tls_ld_vers_minor
=374
23876 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23877 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23878 min_tls_ld_vers_minor
=343
23881 if test "$ld_vers_major" -gt 1 || \
23882 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23889 $as_echo "$ld_tls_support" >&6; }
23892 save_LDFLAGS
="$LDFLAGS"
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23897 $as_echo_n "checking library containing $tga_func... " >&6; }
23898 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23899 # (32-bit x86) only lived in libthread, so check for that. Keep
23900 # set_have_as_tls if found, disable if not.
23901 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23903 $as_echo_n "checking for library containing $tga_func... " >&6; }
23904 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23905 $as_echo_n "(cached) " >&6
23907 ac_func_search_save_LIBS
=$LIBS
23908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23909 /* end confdefs.h. */
23911 /* Override any GCC internal prototype to avoid an error.
23912 Use char because int might match the return type of a GCC
23913 builtin and then its argument prototype would still apply. */
23921 return $tga_func ();
23926 for ac_lib
in '' thread
; do
23927 if test -z "$ac_lib"; then
23928 ac_res
="none required"
23931 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23933 if ac_fn_c_try_link
"$LINENO"; then :
23934 eval "$as_ac_Search=\$ac_res"
23936 rm -f core conftest.err conftest.
$ac_objext \
23938 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23942 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23945 eval "$as_ac_Search=no"
23947 rm conftest.
$ac_ext
23948 LIBS
=$ac_func_search_save_LIBS
23950 eval ac_res
=\$
$as_ac_Search
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23952 $as_echo "$ac_res" >&6; }
23953 eval ac_res
=\$
$as_ac_Search
23954 if test "$ac_res" != no
; then :
23955 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23961 # Clear LIBS if we cannot support TLS.
23962 if test $set_have_as_tls = no
; then
23965 # Always define LIB_TLS_SPEC, even without TLS support.
23967 cat >>confdefs.h
<<_ACEOF
23968 #define LIB_TLS_SPEC "$LIBS"
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23972 $as_echo "$LIBS" >&6; }
23975 LDFLAGS
="$save_LDFLAGS"
23978 if test $set_have_as_tls = yes ; then
23980 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23984 # Target-specific assembler checks.
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23987 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23988 gcc_cv_ld_static_dynamic
=no
23989 gcc_cv_ld_static_option
='-Bstatic'
23990 gcc_cv_ld_dynamic_option
='-Bdynamic'
23991 if test $in_tree_ld = yes ; then
23992 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
23993 gcc_cv_ld_static_dynamic
=yes
23995 elif test x
$gcc_cv_ld != x
; then
23996 # Check if linker supports -Bstatic/-Bdynamic option
23997 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23998 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23999 gcc_cv_ld_static_dynamic
=yes
24002 # AIX ld uses -b flags
24003 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24004 gcc_cv_ld_static_dynamic
=yes
24005 gcc_cv_ld_static_option
="-bstatic"
24006 gcc_cv_ld_dynamic_option
="-bdynamic"
24008 # HP-UX ld uses -a flags to select between shared and archive.
24010 if test x
"$gnu_ld" = xno
; then
24011 gcc_cv_ld_static_dynamic
=yes
24012 gcc_cv_ld_static_option
="-aarchive_shared"
24013 gcc_cv_ld_dynamic_option
="-adefault"
24016 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24018 gcc_cv_ld_static_dynamic
=yes
24023 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24025 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24028 cat >>confdefs.h
<<_ACEOF
24029 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24033 cat >>confdefs.h
<<_ACEOF
24034 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24039 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24041 if test x
"$demangler_in_ld" = xyes
; then
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24043 $as_echo_n "checking linker --demangle support... " >&6; }
24044 gcc_cv_ld_demangle
=no
24045 if test $in_tree_ld = yes; then
24046 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 \
24047 gcc_cv_ld_demangle
=yes
24049 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24050 # Check if the GNU linker supports --demangle option
24051 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24052 gcc_cv_ld_demangle
=yes
24055 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24057 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24061 $as_echo "$gcc_cv_ld_demangle" >&6; }
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24065 $as_echo_n "checking linker plugin support... " >&6; }
24066 gcc_cv_lto_plugin
=0
24067 if test -f liblto_plugin.la
; then
24068 save_ld_ver
="$ld_ver"
24069 save_ld_vers_major
="$ld_vers_major"
24070 save_ld_vers_minor
="$ld_vers_minor"
24071 save_ld_is_gold
="$ld_is_gold"
24075 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24077 # FIXME: ld_is_gold?
24078 ld_vers_major
="$gcc_cv_gld_major_version"
24079 ld_vers_minor
="$gcc_cv_gld_minor_version"
24081 # Determine plugin linker version.
24082 # FIXME: Partial duplicate from above, generalize.
24083 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24084 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24085 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24087 ld_vers
=`echo $ld_ver | sed -n \
24088 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24090 ld_vers
=`echo $ld_ver | sed -n \
24091 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24093 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24094 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24098 # Determine plugin support.
24099 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24100 # Require GNU ld or gold 2.21+ for plugin support by default.
24101 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24102 gcc_cv_lto_plugin
=2
24103 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24104 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24105 gcc_cv_lto_plugin
=1
24109 ld_ver
="$save_ld_ver"
24110 ld_vers_major
="$save_ld_vers_major"
24111 ld_vers_minor
="$save_ld_vers_minor"
24112 ld_is_gold
="$save_ld_is_gold"
24115 cat >>confdefs.h
<<_ACEOF
24116 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24120 $as_echo "$gcc_cv_lto_plugin" >&6; }
24123 # All TARGET_ABI_OSF targets.
24124 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24126 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24127 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24128 $as_echo_n "(cached) " >&6
24130 gcc_cv_as_alpha_explicit_relocs
=no
24131 if test $in_tree_gas = yes; then
24132 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24133 then gcc_cv_as_alpha_explicit_relocs
=yes
24135 elif test x
$gcc_cv_as != x
; then
24136 $as_echo ' .set nomacro
24138 extbl $3, $2, $3 !lituse_bytoff!1
24139 ldq $2, a($29) !literal!1
24140 ldq $4, b($29) !literal!2
24141 ldq_u $3, 0($2) !lituse_base!1
24142 ldq $27, f($29) !literal!5
24143 jsr $26, ($27), f !lituse_jsr!5
24144 ldah $29, 0($26) !gpdisp!3
24145 lda $0, c($29) !gprel
24146 ldah $1, d($29) !gprelhigh
24147 lda $1, d($1) !gprellow
24148 lda $29, 0($29) !gpdisp!3' > conftest.s
24149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24151 (eval $ac_try) 2>&5
24153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24154 test $ac_status = 0; }; }
24156 gcc_cv_as_alpha_explicit_relocs
=yes
24158 echo "configure: failed program was" >&5
24161 rm -f conftest.o conftest.s
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24165 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24166 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24168 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24172 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24173 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24174 $as_echo_n "(cached) " >&6
24176 gcc_cv_as_alpha_jsrdirect_relocs
=no
24177 if test $in_tree_gas = yes; then
24178 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24179 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24181 elif test x
$gcc_cv_as != x
; then
24182 $as_echo ' .set nomacro
24184 ldq $27, a($29) !literal!1
24185 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24188 (eval $ac_try) 2>&5
24190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24191 test $ac_status = 0; }; }
24193 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24195 echo "configure: failed program was" >&5
24198 rm -f conftest.o conftest.s
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24202 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24203 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24205 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24212 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24213 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24214 $as_echo_n "(cached) " >&6
24216 gcc_cv_as_cris_no_mul_bug
=no
24217 if test $in_tree_gas = yes; then
24218 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24219 then gcc_cv_as_cris_no_mul_bug
=yes
24221 elif test x
$gcc_cv_as != x
; then
24222 $as_echo '.text' > conftest.s
24223 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24225 (eval $ac_try) 2>&5
24227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24228 test $ac_status = 0; }; }
24230 gcc_cv_as_cris_no_mul_bug
=yes
24232 echo "configure: failed program was" >&5
24235 rm -f conftest.o conftest.s
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24239 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24240 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24242 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24249 $as_echo_n "checking assembler for .register... " >&6; }
24250 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24251 $as_echo_n "(cached) " >&6
24253 gcc_cv_as_sparc_register_op
=no
24254 if test x
$gcc_cv_as != x
; then
24255 $as_echo '.register %g2, #scratch' > conftest.s
24256 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24258 (eval $ac_try) 2>&5
24260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24261 test $ac_status = 0; }; }
24263 gcc_cv_as_sparc_register_op
=yes
24265 echo "configure: failed program was" >&5
24268 rm -f conftest.o conftest.s
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24272 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24273 if test $gcc_cv_as_sparc_register_op = yes; then
24275 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24280 $as_echo_n "checking assembler for #nobits... " >&6; }
24281 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24282 $as_echo_n "(cached) " >&6
24284 gcc_cv_as_sparc_nobits
=no
24285 if test x
$gcc_cv_as != x
; then
24286 $as_echo '.section "nobits",#alloc,#write,#nobits
24287 .section "progbits",#alloc,#write,#progbits' > conftest.s
24288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24290 (eval $ac_try) 2>&5
24292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24293 test $ac_status = 0; }; }
24295 gcc_cv_as_sparc_nobits
=yes
24297 echo "configure: failed program was" >&5
24300 rm -f conftest.o conftest.s
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24304 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24307 cat >>confdefs.h
<<_ACEOF
24308 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24313 $as_echo_n "checking assembler for -relax option... " >&6; }
24314 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24315 $as_echo_n "(cached) " >&6
24317 gcc_cv_as_sparc_relax
=no
24318 if test x
$gcc_cv_as != x
; then
24319 $as_echo '.text' > conftest.s
24320 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24322 (eval $ac_try) 2>&5
24324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24325 test $ac_status = 0; }; }
24327 gcc_cv_as_sparc_relax
=yes
24329 echo "configure: failed program was" >&5
24332 rm -f conftest.o conftest.s
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24336 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24337 if test $gcc_cv_as_sparc_relax = yes; then
24339 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24344 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24345 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24346 $as_echo_n "(cached) " >&6
24348 gcc_cv_as_sparc_gotdata_op
=no
24349 if test x
$gcc_cv_as != x
; then
24355 sethi %gdop_hix22(foo), %g1
24356 xor %g1, %gdop_lox10(foo), %g1
24357 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24358 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24365 if test x
$gcc_cv_ld != x \
24366 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24367 if test x
$gcc_cv_objdump != x
; then
24368 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24369 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24370 gcc_cv_as_sparc_gotdata_op
=no
24372 gcc_cv_as_sparc_gotdata_op
=yes
24378 echo "configure: failed program was" >&5
24381 rm -f conftest.o conftest.s
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24385 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24386 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24388 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24393 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24394 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24395 $as_echo_n "(cached) " >&6
24397 gcc_cv_as_sparc_ua_pcrel
=no
24398 if test x
$gcc_cv_as != x
; then
24405 .uaword %r_disp32(foo)' > conftest.s
24406 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24408 (eval $ac_try) 2>&5
24410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24411 test $ac_status = 0; }; }
24413 if test x
$gcc_cv_ld != x \
24414 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24415 gcc_cv_as_sparc_ua_pcrel
=yes
24419 echo "configure: failed program was" >&5
24422 rm -f conftest.o conftest.s
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24426 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24427 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24429 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24433 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24434 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24435 $as_echo_n "(cached) " >&6
24437 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24438 if test x
$gcc_cv_as != x
; then
24442 .uaword %r_disp32(foo)
24443 .byte 0x32, 0x33, 0x34
24447 .skip 4' > conftest.s
24448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24450 (eval $ac_try) 2>&5
24452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24453 test $ac_status = 0; }; }
24455 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24456 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24457 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24458 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24459 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24460 |
grep 'DISP32' > /dev
/null
2>&1; then
24463 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24468 echo "configure: failed program was" >&5
24471 rm -f conftest.o conftest.s
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24475 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24476 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24478 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24482 fi # unaligned pcrel relocs
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24485 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24486 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24487 $as_echo_n "(cached) " >&6
24489 gcc_cv_as_sparc_offsetable_lo10
=no
24490 if test x
$gcc_cv_as != x
; then
24492 or %g1, %lo(ab) + 12, %g1
24493 or %g1, %lo(ab + 12), %g1' > conftest.s
24494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24496 (eval $ac_try) 2>&5
24498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24499 test $ac_status = 0; }; }
24501 if test x
$gcc_cv_objdump != x \
24502 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24503 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24504 gcc_cv_as_sparc_offsetable_lo10
=yes
24507 echo "configure: failed program was" >&5
24510 rm -f conftest.o conftest.s
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24514 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24515 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24517 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24522 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24523 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24526 gcc_cv_as_sparc_fmaf
=no
24527 if test x
$gcc_cv_as != x
; then
24529 .register %g2, #scratch
24530 .register %g3, #scratch
24532 fmaddd %f0, %f2, %f4, %f6
24533 addxccc %g1, %g2, %g3
24534 fsrl32 %f2, %f4, %f8
24535 fnaddd %f10, %f12, %f14' > conftest.s
24536 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24538 (eval $ac_try) 2>&5
24540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24541 test $ac_status = 0; }; }
24543 gcc_cv_as_sparc_fmaf
=yes
24545 echo "configure: failed program was" >&5
24548 rm -f conftest.o conftest.s
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24552 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24553 if test $gcc_cv_as_sparc_fmaf = yes; then
24555 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24560 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24561 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24562 $as_echo_n "(cached) " >&6
24564 gcc_cv_as_sparc_sparc4
=no
24565 if test x
$gcc_cv_as != x
; then
24567 .register %g2, #scratch
24568 .register %g3, #scratch
24571 1: cwbneg %g2, %g3, 1f
24574 aes_kexpand0 %f4, %f6, %f8
24575 des_round %f38, %f40, %f42, %f44
24576 camellia_f %f54, %f56, %f58, %f60
24577 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24578 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24580 (eval $ac_try) 2>&5
24582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24583 test $ac_status = 0; }; }
24585 gcc_cv_as_sparc_sparc4
=yes
24587 echo "configure: failed program was" >&5
24590 rm -f conftest.o conftest.s
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24594 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24595 if test $gcc_cv_as_sparc_sparc4 = yes; then
24597 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24602 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24603 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24604 $as_echo_n "(cached) " >&6
24606 gcc_cv_as_sparc_leon
=no
24607 if test x
$gcc_cv_as != x
; then
24609 .register %g2, #scratch
24610 .register %g3, #scratch
24614 cas [%g2], %g3, %g1' > conftest.s
24615 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24617 (eval $ac_try) 2>&5
24619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24620 test $ac_status = 0; }; }
24622 gcc_cv_as_sparc_leon
=yes
24624 echo "configure: failed program was" >&5
24627 rm -f conftest.o conftest.s
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24631 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24632 if test $gcc_cv_as_sparc_leon = yes; then
24634 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24639 i
[34567]86-*-* | x86_64-
*-*)
24642 # Full C++ conformance when using a shared libstdc++-v3 requires some
24643 # support from the Cygwin DLL, which in more recent versions exports
24644 # wrappers to aid in interposing and redirecting operators new, delete,
24645 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24646 # are configuring for a version of Cygwin that exports the wrappers.
24647 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24648 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24649 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24650 gcc_ac_cygwin_dll_wrappers
=yes
24652 gcc_ac_cygwin_dll_wrappers
=no
24656 # Can't check presence of libc functions during cross-compile, so
24657 # we just have to assume we're building for an up-to-date target.
24658 gcc_ac_cygwin_dll_wrappers
=yes
24661 cat >>confdefs.h
<<_ACEOF
24662 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24667 cygwin
* | pe | mingw32
* | interix
*)
24668 # Recent binutils allows the three-operand form of ".comm" on PE. This
24669 # definition is used unconditionally to initialise the default state of
24670 # the target option variable that governs usage of the feature.
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24672 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24673 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24676 gcc_cv_as_comm_has_align
=no
24677 if test $in_tree_gas = yes; then
24678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24679 then gcc_cv_as_comm_has_align
=yes
24681 elif test x
$gcc_cv_as != x
; then
24682 $as_echo '.comm foo,1,32' > conftest.s
24683 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24685 (eval $ac_try) 2>&5
24687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24688 test $ac_status = 0; }; }
24690 gcc_cv_as_comm_has_align
=yes
24692 echo "configure: failed program was" >&5
24695 rm -f conftest.o conftest.s
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24699 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24702 cat >>confdefs.h
<<_ACEOF
24703 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24706 # Used for DWARF 2 in PE
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24708 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24709 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24712 gcc_cv_as_ix86_pe_secrel32
=no
24713 if test $in_tree_gas = yes; then
24714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24715 then gcc_cv_as_ix86_pe_secrel32
=yes
24717 elif test x
$gcc_cv_as != x
; then
24721 .secrel32 foo' > conftest.s
24722 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24724 (eval $ac_try) 2>&5
24726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24727 test $ac_status = 0; }; }
24729 if test x
$gcc_cv_ld != x \
24730 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24731 gcc_cv_as_ix86_pe_secrel32
=yes
24735 echo "configure: failed program was" >&5
24738 rm -f conftest.o conftest.s
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24742 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24743 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24745 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24748 # Test if the assembler supports the extended form of the .section
24749 # directive that specifies section alignment. LTO support uses this,
24750 # but normally only after installation, so we warn but don't fail the
24751 # configure if LTO is enabled but the assembler does not support it.
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24753 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24754 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24757 gcc_cv_as_section_has_align
=no
24758 if test $in_tree_gas = yes; then
24759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24760 then gcc_cv_as_section_has_align
=yes
24762 elif test x
$gcc_cv_as != x
; then
24763 $as_echo '.section lto_test,"dr0"' > conftest.s
24764 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24766 (eval $ac_try) 2>&5
24768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24769 test $ac_status = 0; }; }
24771 gcc_cv_as_section_has_align
=yes
24773 echo "configure: failed program was" >&5
24776 rm -f conftest.o conftest.s
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24780 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24782 if test x
$gcc_cv_as_section_has_align != xyes
; then
24783 case ",$enable_languages," in
24785 { $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
24786 $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;}
24790 # Test if the assembler supports the section flag 'e' for specifying
24791 # an excluded section.
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24793 $as_echo_n "checking assembler for .section with e... " >&6; }
24794 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24795 $as_echo_n "(cached) " >&6
24797 gcc_cv_as_section_has_e
=no
24798 if test $in_tree_gas = yes; then
24799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24800 then gcc_cv_as_section_has_e
=yes
24802 elif test x
$gcc_cv_as != x
; then
24803 $as_echo '.section foo1,"e"
24804 .byte 0,0,0,0' > conftest.s
24805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24807 (eval $ac_try) 2>&5
24809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24810 test $ac_status = 0; }; }
24812 gcc_cv_as_section_has_e
=yes
24814 echo "configure: failed program was" >&5
24817 rm -f conftest.o conftest.s
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24821 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24824 cat >>confdefs.h
<<_ACEOF
24825 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24832 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24833 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24834 $as_echo_n "(cached) " >&6
24836 gcc_cv_as_ix86_filds
=no
24837 if test x
$gcc_cv_as != x
; then
24838 $as_echo 'filds mem; fists mem' > conftest.s
24839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24841 (eval $ac_try) 2>&5
24843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24844 test $ac_status = 0; }; }
24846 gcc_cv_as_ix86_filds
=yes
24848 echo "configure: failed program was" >&5
24851 rm -f conftest.o conftest.s
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24855 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24856 if test $gcc_cv_as_ix86_filds = yes; then
24858 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24863 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24864 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24865 $as_echo_n "(cached) " >&6
24867 gcc_cv_as_ix86_fildq
=no
24868 if test x
$gcc_cv_as != x
; then
24869 $as_echo 'fildq mem; fistpq mem' > conftest.s
24870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24872 (eval $ac_try) 2>&5
24874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24875 test $ac_status = 0; }; }
24877 gcc_cv_as_ix86_fildq
=yes
24879 echo "configure: failed program was" >&5
24882 rm -f conftest.o conftest.s
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24886 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24887 if test $gcc_cv_as_ix86_fildq = yes; then
24889 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24894 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24895 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24898 gcc_cv_as_ix86_cmov_sun_syntax
=no
24899 if test x
$gcc_cv_as != x
; then
24900 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24901 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24903 (eval $ac_try) 2>&5
24905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24906 test $ac_status = 0; }; }
24908 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24910 echo "configure: failed program was" >&5
24913 rm -f conftest.o conftest.s
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24917 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24918 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24920 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24925 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24926 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24927 $as_echo_n "(cached) " >&6
24929 gcc_cv_as_ix86_ffreep
=no
24930 if test x
$gcc_cv_as != x
; then
24931 $as_echo 'ffreep %st(1)' > conftest.s
24932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }
24939 gcc_cv_as_ix86_ffreep
=yes
24941 echo "configure: failed program was" >&5
24944 rm -f conftest.o conftest.s
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24948 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24949 if test $gcc_cv_as_ix86_ffreep = yes; then
24951 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24956 $as_echo_n "checking assembler for .quad directive... " >&6; }
24957 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24958 $as_echo_n "(cached) " >&6
24960 gcc_cv_as_ix86_quad
=no
24961 if test x
$gcc_cv_as != x
; then
24962 $as_echo '.quad 0' > conftest.s
24963 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24965 (eval $ac_try) 2>&5
24967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24968 test $ac_status = 0; }; }
24970 gcc_cv_as_ix86_quad
=yes
24972 echo "configure: failed program was" >&5
24975 rm -f conftest.o conftest.s
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24979 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24980 if test $gcc_cv_as_ix86_quad = yes; then
24982 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24987 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24988 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24989 $as_echo_n "(cached) " >&6
24991 gcc_cv_as_ix86_sahf
=no
24992 if test x
$gcc_cv_as != x
; then
24995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; }
25002 gcc_cv_as_ix86_sahf
=yes
25004 echo "configure: failed program was" >&5
25007 rm -f conftest.o conftest.s
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25011 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25012 if test $gcc_cv_as_ix86_sahf = yes; then
25014 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25019 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25020 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25021 $as_echo_n "(cached) " >&6
25023 gcc_cv_as_ix86_interunit_movq
=no
25024 if test x
$gcc_cv_as != x
; then
25027 movq %rax, %xmm0' > conftest.s
25028 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; }
25035 gcc_cv_as_ix86_interunit_movq
=yes
25037 echo "configure: failed program was" >&5
25040 rm -f conftest.o conftest.s
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25044 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25045 if test $gcc_cv_as_ix86_interunit_movq = yes; then
25047 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25052 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25053 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25054 $as_echo_n "(cached) " >&6
25056 gcc_cv_as_ix86_hle
=no
25057 if test x
$gcc_cv_as != x
; then
25058 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; }
25066 gcc_cv_as_ix86_hle
=yes
25068 echo "configure: failed program was" >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25075 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25076 if test $gcc_cv_as_ix86_hle = yes; then
25078 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25083 $as_echo_n "checking assembler for swap suffix... " >&6; }
25084 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25085 $as_echo_n "(cached) " >&6
25087 gcc_cv_as_ix86_swap
=no
25088 if test x
$gcc_cv_as != x
; then
25089 $as_echo 'movl.s %esp, %ebp' > conftest.s
25090 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25092 (eval $ac_try) 2>&5
25094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25095 test $ac_status = 0; }; }
25097 gcc_cv_as_ix86_swap
=yes
25099 echo "configure: failed program was" >&5
25102 rm -f conftest.o conftest.s
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25106 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25107 if test $gcc_cv_as_ix86_swap = yes; then
25109 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25114 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25115 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25118 gcc_cv_as_ix86_diff_sect_delta
=no
25119 if test x
$gcc_cv_as != x
; then
25120 $as_echo '.section .rodata
25126 .L2: nop' > conftest.s
25127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; }
25134 gcc_cv_as_ix86_diff_sect_delta
=yes
25136 echo "configure: failed program was" >&5
25139 rm -f conftest.o conftest.s
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25143 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25144 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25146 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25150 # These two are used unconditionally by i386.[ch]; it is to be defined
25151 # to 1 if the feature is present, 0 otherwise.
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25153 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25154 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25157 gcc_cv_as_ix86_gotoff_in_data
=no
25158 if test $in_tree_gas = yes; then
25159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25160 then gcc_cv_as_ix86_gotoff_in_data
=yes
25162 elif test x
$gcc_cv_as != x
; then
25167 .long .L0@GOTOFF' > conftest.s
25168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25170 (eval $ac_try) 2>&5
25172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173 test $ac_status = 0; }; }
25175 gcc_cv_as_ix86_gotoff_in_data
=yes
25177 echo "configure: failed program was" >&5
25180 rm -f conftest.o conftest.s
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25184 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25187 cat >>confdefs.h
<<_ACEOF
25188 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25193 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25194 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25195 $as_echo_n "(cached) " >&6
25197 gcc_cv_as_ix86_rep_lock_prefix
=no
25198 if test x
$gcc_cv_as != x
; then
25199 $as_echo 'rep movsl
25204 lock addl %edi, (%eax,%esi)
25205 lock orl $0, (%esp)' > 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_ix86_rep_lock_prefix
=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_ix86_rep_lock_prefix" >&5
25222 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25223 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25225 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25230 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25231 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25232 $as_echo_n "(cached) " >&6
25234 gcc_cv_as_ix86_tlsgdplt
=no
25235 if test x
$gcc_cv_as != x
; then
25236 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25237 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25239 (eval $ac_try) 2>&5
25241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25242 test $ac_status = 0; }; }
25244 if test x
$gcc_cv_ld != x \
25245 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25246 gcc_cv_as_ix86_tlsgdplt
=yes
25250 echo "configure: failed program was" >&5
25253 rm -f conftest.o conftest.s
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25257 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25258 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25260 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25265 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25266 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25267 $as_echo_n "(cached) " >&6
25269 gcc_cv_as_ix86_tlsldmplt
=no
25270 if test x
$gcc_cv_as != x
; then
25272 call tls_ld@tlsldmplt' > conftest.s
25273 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }
25280 if test x
$gcc_cv_ld != x \
25281 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25282 gcc_cv_as_ix86_tlsldmplt
=yes
25286 echo "configure: failed program was" >&5
25289 rm -f conftest.o conftest.s
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25293 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25294 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25296 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25304 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25305 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25306 $as_echo_n "(cached) " >&6
25308 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25309 if test $in_tree_gas = yes; then
25310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25311 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25313 elif test x
$gcc_cv_as != x
; then
25315 addl r15 = @ltoffx(x#), gp
25317 ld8.mov r16 = [r15], x#' > conftest.s
25318 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25320 (eval $ac_try) 2>&5
25322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25323 test $ac_status = 0; }; }
25325 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25327 echo "configure: failed program was" >&5
25330 rm -f conftest.o conftest.s
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25334 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25335 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25337 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25345 *-*-aix*) conftest_s
=' .machine "pwr5"
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25350 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25351 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25352 $as_echo_n "(cached) " >&6
25354 gcc_cv_as_machine_directive
=no
25355 if test x
$gcc_cv_as != x
; then
25356 $as_echo ' .machine ppc7400' > conftest.s
25357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25364 gcc_cv_as_machine_directive
=yes
25366 echo "configure: failed program was" >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25373 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25375 if test x
$gcc_cv_as_machine_directive != xyes
; then
25376 echo "*** This target requires an assembler supporting \".machine\"" >&2
25377 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25378 test x
$build = x
$target && exit 1
25382 *) conftest_s
=' .machine power4
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25388 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25389 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25390 $as_echo_n "(cached) " >&6
25392 gcc_cv_as_powerpc_mfcrf
=no
25393 if test $in_tree_gas = yes; then
25394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25395 then gcc_cv_as_powerpc_mfcrf
=yes
25397 elif test x
$gcc_cv_as != x
; then
25398 $as_echo "$conftest_s" > conftest.s
25399 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25401 (eval $ac_try) 2>&5
25403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25404 test $ac_status = 0; }; }
25406 gcc_cv_as_powerpc_mfcrf
=yes
25408 echo "configure: failed program was" >&5
25411 rm -f conftest.o conftest.s
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25415 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25416 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25418 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25423 *-*-aix*) conftest_s
=' .machine "pwr5"
25426 *) conftest_s
=' .machine power5
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25432 $as_echo_n "checking assembler for popcntb support... " >&6; }
25433 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25434 $as_echo_n "(cached) " >&6
25436 gcc_cv_as_powerpc_popcntb
=no
25437 if test $in_tree_gas = yes; then
25438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25439 then gcc_cv_as_powerpc_popcntb
=yes
25441 elif test x
$gcc_cv_as != x
; then
25442 $as_echo "$conftest_s" > conftest.s
25443 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25445 (eval $ac_try) 2>&5
25447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25448 test $ac_status = 0; }; }
25450 gcc_cv_as_powerpc_popcntb
=yes
25452 echo "configure: failed program was" >&5
25455 rm -f conftest.o conftest.s
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25459 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25460 if test $gcc_cv_as_powerpc_popcntb = yes; then
25462 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25467 *-*-aix*) conftest_s
=' .machine "pwr5x"
25470 *) conftest_s
=' .machine power5
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25476 $as_echo_n "checking assembler for fp round support... " >&6; }
25477 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25478 $as_echo_n "(cached) " >&6
25480 gcc_cv_as_powerpc_fprnd
=no
25481 if test $in_tree_gas = yes; then
25482 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25483 then gcc_cv_as_powerpc_fprnd
=yes
25485 elif test x
$gcc_cv_as != x
; then
25486 $as_echo "$conftest_s" > conftest.s
25487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25489 (eval $ac_try) 2>&5
25491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25492 test $ac_status = 0; }; }
25494 gcc_cv_as_powerpc_fprnd
=yes
25496 echo "configure: failed program was" >&5
25499 rm -f conftest.o conftest.s
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25503 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25504 if test $gcc_cv_as_powerpc_fprnd = yes; then
25506 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25511 *-*-aix*) conftest_s
=' .machine "pwr6"
25514 *) conftest_s
=' .machine power6
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25520 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25521 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25522 $as_echo_n "(cached) " >&6
25524 gcc_cv_as_powerpc_mfpgpr
=no
25525 if test $in_tree_gas = yes; then
25526 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25527 then gcc_cv_as_powerpc_mfpgpr
=yes
25529 elif test x
$gcc_cv_as != x
; then
25530 $as_echo "$conftest_s" > conftest.s
25531 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25533 (eval $ac_try) 2>&5
25535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25536 test $ac_status = 0; }; }
25538 gcc_cv_as_powerpc_mfpgpr
=yes
25540 echo "configure: failed program was" >&5
25543 rm -f conftest.o conftest.s
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25547 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25548 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25550 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25555 *-*-aix*) conftest_s
=' .csect .text[PR]
25557 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25561 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25562 *) conftest_s
=' .text
25564 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25568 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25569 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25570 $as_echo_n "(cached) " >&6
25572 gcc_cv_as_powerpc_rel16
=no
25573 if test $in_tree_gas = yes; then
25574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25575 then gcc_cv_as_powerpc_rel16
=yes
25577 elif test x
$gcc_cv_as != x
; then
25578 $as_echo "$conftest_s" > conftest.s
25579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25581 (eval $ac_try) 2>&5
25583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25584 test $ac_status = 0; }; }
25586 gcc_cv_as_powerpc_rel16
=yes
25588 echo "configure: failed program was" >&5
25591 rm -f conftest.o conftest.s
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25595 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25596 if test $gcc_cv_as_powerpc_rel16 = yes; then
25598 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25603 *-*-aix*) conftest_s
=' .machine "pwr6"
25606 *) conftest_s
=' .machine power6
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25612 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25613 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25614 $as_echo_n "(cached) " >&6
25616 gcc_cv_as_powerpc_cmpb
=no
25617 if test $in_tree_gas = yes; then
25618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25619 then gcc_cv_as_powerpc_cmpb
=yes
25621 elif test x
$gcc_cv_as != x
; then
25622 $as_echo "$conftest_s" > conftest.s
25623 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25625 (eval $ac_try) 2>&5
25627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25628 test $ac_status = 0; }; }
25630 gcc_cv_as_powerpc_cmpb
=yes
25632 echo "configure: failed program was" >&5
25635 rm -f conftest.o conftest.s
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25639 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25640 if test $gcc_cv_as_powerpc_cmpb = yes; then
25642 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25647 *-*-aix*) conftest_s
=' .machine "pwr6"
25650 *) conftest_s
=' .machine power6
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25656 $as_echo_n "checking assembler for decimal float support... " >&6; }
25657 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25658 $as_echo_n "(cached) " >&6
25660 gcc_cv_as_powerpc_dfp
=no
25661 if test $in_tree_gas = yes; then
25662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25663 then gcc_cv_as_powerpc_dfp
=yes
25665 elif test x
$gcc_cv_as != x
; then
25666 $as_echo "$conftest_s" > conftest.s
25667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669 (eval $ac_try) 2>&5
25671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672 test $ac_status = 0; }; }
25674 gcc_cv_as_powerpc_dfp
=yes
25676 echo "configure: failed program was" >&5
25679 rm -f conftest.o conftest.s
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25683 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25684 if test $gcc_cv_as_powerpc_dfp = yes; then
25686 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25691 *-*-aix*) conftest_s
=' .machine "pwr7"
25694 *) conftest_s
=' .machine power7
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25700 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25701 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25702 $as_echo_n "(cached) " >&6
25704 gcc_cv_as_powerpc_vsx
=no
25705 if test $in_tree_gas = yes; then
25706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25707 then gcc_cv_as_powerpc_vsx
=yes
25709 elif test x
$gcc_cv_as != x
; then
25710 $as_echo "$conftest_s" > conftest.s
25711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25713 (eval $ac_try) 2>&5
25715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25716 test $ac_status = 0; }; }
25718 gcc_cv_as_powerpc_vsx
=yes
25720 echo "configure: failed program was" >&5
25723 rm -f conftest.o conftest.s
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25727 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25728 if test $gcc_cv_as_powerpc_vsx = yes; then
25730 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25735 *-*-aix*) conftest_s
=' .machine "pwr7"
25738 *) conftest_s
=' .machine power7
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25744 $as_echo_n "checking assembler for popcntd support... " >&6; }
25745 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25746 $as_echo_n "(cached) " >&6
25748 gcc_cv_as_powerpc_popcntd
=no
25749 if test $in_tree_gas = yes; then
25750 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25751 then gcc_cv_as_powerpc_popcntd
=yes
25753 elif test x
$gcc_cv_as != x
; then
25754 $as_echo "$conftest_s" > conftest.s
25755 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25757 (eval $ac_try) 2>&5
25759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25760 test $ac_status = 0; }; }
25762 gcc_cv_as_powerpc_popcntd
=yes
25764 echo "configure: failed program was" >&5
25767 rm -f conftest.o conftest.s
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25771 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25772 if test $gcc_cv_as_powerpc_popcntd = yes; then
25774 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25779 *-*-aix*) conftest_s
=' .machine "pwr8"
25780 .csect .text[PR]';;
25781 *) conftest_s
=' .machine power8
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25786 $as_echo_n "checking assembler for power8 support... " >&6; }
25787 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25790 gcc_cv_as_powerpc_power8
=no
25791 if test $in_tree_gas = yes; then
25792 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25793 then gcc_cv_as_powerpc_power8
=yes
25795 elif test x
$gcc_cv_as != x
; then
25796 $as_echo "$conftest_s" > conftest.s
25797 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25799 (eval $ac_try) 2>&5
25801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25802 test $ac_status = 0; }; }
25804 gcc_cv_as_powerpc_power8
=yes
25806 echo "configure: failed program was" >&5
25809 rm -f conftest.o conftest.s
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25813 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25814 if test $gcc_cv_as_powerpc_power8 = yes; then
25816 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25821 *-*-aix*) conftest_s
=' .csect .text[PR]
25823 *) conftest_s
=' .text
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25828 $as_echo_n "checking assembler for lwsync support... " >&6; }
25829 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25832 gcc_cv_as_powerpc_lwsync
=no
25833 if test $in_tree_gas = yes; then
25834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25835 then gcc_cv_as_powerpc_lwsync
=yes
25837 elif test x
$gcc_cv_as != x
; then
25838 $as_echo "$conftest_s" > conftest.s
25839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25841 (eval $ac_try) 2>&5
25843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25844 test $ac_status = 0; }; }
25846 gcc_cv_as_powerpc_lwsync
=yes
25848 echo "configure: failed program was" >&5
25851 rm -f conftest.o conftest.s
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25855 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25856 if test $gcc_cv_as_powerpc_lwsync = yes; then
25858 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25863 *-*-aix*) conftest_s
=' .machine "476"
25866 *) conftest_s
=' .machine "476"
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25872 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25873 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
25876 gcc_cv_as_powerpc_dci
=no
25877 if test $in_tree_gas = yes; then
25878 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25879 then gcc_cv_as_powerpc_dci
=yes
25881 elif test x
$gcc_cv_as != x
; then
25882 $as_echo "$conftest_s" > conftest.s
25883 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25885 (eval $ac_try) 2>&5
25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25888 test $ac_status = 0; }; }
25890 gcc_cv_as_powerpc_dci
=yes
25892 echo "configure: failed program was" >&5
25895 rm -f conftest.o conftest.s
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25899 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25900 if test $gcc_cv_as_powerpc_dci = yes; then
25902 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25907 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25908 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25909 $as_echo_n "(cached) " >&6
25911 gcc_cv_as_powerpc_gnu_attribute
=no
25912 if test $in_tree_gas = yes; then
25913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25914 then gcc_cv_as_powerpc_gnu_attribute
=yes
25916 elif test x
$gcc_cv_as != x
; then
25917 $as_echo '.gnu_attribute 4,1' > conftest.s
25918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25920 (eval $ac_try) 2>&5
25922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25923 test $ac_status = 0; }; }
25925 gcc_cv_as_powerpc_gnu_attribute
=yes
25927 echo "configure: failed program was" >&5
25930 rm -f conftest.o conftest.s
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25934 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25935 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25937 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25942 $as_echo_n "checking assembler for tls marker support... " >&6; }
25943 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25944 $as_echo_n "(cached) " >&6
25946 gcc_cv_as_powerpc_tls_markers
=no
25947 if test $in_tree_gas = yes; then
25948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25949 then gcc_cv_as_powerpc_tls_markers
=yes
25951 elif test x
$gcc_cv_as != x
; then
25952 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25960 gcc_cv_as_powerpc_tls_markers
=yes
25962 echo "configure: failed program was" >&5
25965 rm -f conftest.o conftest.s
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25969 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25970 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25972 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25979 $as_echo_n "checking assembler for .ref support... " >&6; }
25980 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25983 gcc_cv_as_aix_ref
=no
25984 if test $in_tree_gas = yes; then
25985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25986 then gcc_cv_as_aix_ref
=yes
25988 elif test x
$gcc_cv_as != x
; then
25989 $as_echo ' .csect stuff[rw]
25995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25997 (eval $ac_try) 2>&5
25999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26000 test $ac_status = 0; }; }
26002 gcc_cv_as_aix_ref
=yes
26004 echo "configure: failed program was" >&5
26007 rm -f conftest.o conftest.s
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26011 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26012 if test $gcc_cv_as_aix_ref = yes; then
26014 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26023 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26024 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26025 $as_echo_n "(cached) " >&6
26027 gcc_cv_as_mips_explicit_relocs
=no
26028 if test $in_tree_gas = yes; then
26029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26030 then gcc_cv_as_mips_explicit_relocs
=yes
26032 elif test x
$gcc_cv_as != x
; then
26033 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26036 (eval $ac_try) 2>&5
26038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26039 test $ac_status = 0; }; }
26041 gcc_cv_as_mips_explicit_relocs
=yes
26043 echo "configure: failed program was" >&5
26046 rm -f conftest.o conftest.s
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26050 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26051 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26052 if test x
$target_cpu_default = x
26053 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26054 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26058 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26059 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26062 gcc_cv_as_mips_no_shared
=no
26063 if test $in_tree_gas = yes; then
26064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26065 then gcc_cv_as_mips_no_shared
=yes
26067 elif test x
$gcc_cv_as != x
; then
26068 $as_echo 'nop' > conftest.s
26069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071 (eval $ac_try) 2>&5
26073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; }
26076 gcc_cv_as_mips_no_shared
=yes
26078 echo "configure: failed program was" >&5
26081 rm -f conftest.o conftest.s
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26085 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26086 if test $gcc_cv_as_mips_no_shared = yes; then
26088 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26093 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26094 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26095 $as_echo_n "(cached) " >&6
26097 gcc_cv_as_mips_gnu_attribute
=no
26098 if test $in_tree_gas = yes; then
26099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26100 then gcc_cv_as_mips_gnu_attribute
=yes
26102 elif test x
$gcc_cv_as != x
; then
26103 $as_echo '.gnu_attribute 4,1' > conftest.s
26104 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26106 (eval $ac_try) 2>&5
26108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26109 test $ac_status = 0; }; }
26111 gcc_cv_as_mips_gnu_attribute
=yes
26113 echo "configure: failed program was" >&5
26116 rm -f conftest.o conftest.s
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26120 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26121 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26123 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26128 $as_echo_n "checking assembler for .micromips support... " >&6; }
26129 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26130 $as_echo_n "(cached) " >&6
26132 gcc_cv_as_micromips_support
=no
26133 if test x
$gcc_cv_as != x
; then
26134 $as_echo '.set micromips' > conftest.s
26135 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26137 (eval $ac_try) 2>&5
26139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26140 test $ac_status = 0; }; }
26142 gcc_cv_as_micromips_support
=yes
26144 echo "configure: failed program was" >&5
26147 rm -f conftest.o conftest.s
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26151 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26152 if test $gcc_cv_as_micromips_support = yes; then
26154 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26159 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26160 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26161 $as_echo_n "(cached) " >&6
26163 gcc_cv_as_mips_dtprelword
=no
26164 if test $in_tree_gas = yes; then
26165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26166 then gcc_cv_as_mips_dtprelword
=yes
26168 elif test x
$gcc_cv_as != x
; then
26169 $as_echo '.section .tdata,"awT",@progbits
26173 .dtprelword x+0x8000' > conftest.s
26174 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26176 (eval $ac_try) 2>&5
26178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26179 test $ac_status = 0; }; }
26181 gcc_cv_as_mips_dtprelword
=yes
26183 echo "configure: failed program was" >&5
26186 rm -f conftest.o conftest.s
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26190 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26191 if test $gcc_cv_as_mips_dtprelword = yes; then
26193 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26198 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26199 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26200 $as_echo_n "(cached) " >&6
26202 gcc_cv_as_mips_dspr1_mult
=no
26203 if test x
$gcc_cv_as != x
; then
26204 $as_echo ' .set mips32r2
26212 multu $ac3,$4,$5' > conftest.s
26213 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26215 (eval $ac_try) 2>&5
26217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26218 test $ac_status = 0; }; }
26220 gcc_cv_as_mips_dspr1_mult
=yes
26222 echo "configure: failed program was" >&5
26225 rm -f conftest.o conftest.s
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26229 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26230 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26232 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26237 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26238 gcc_cv_as_ld_jalr_reloc
=no
26239 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26240 if test $in_tree_ld = yes ; then
26241 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 \
26242 && test $in_tree_ld_is_elf = yes; then
26243 gcc_cv_as_ld_jalr_reloc
=yes
26245 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26246 echo ' .ent x' > conftest.s
26247 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26248 echo ' ld $25,%call16(y)($28)' >> conftest.s
26249 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26250 echo '1: jalr $25' >> conftest.s
26251 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26252 echo '1: jalr $25' >> conftest.s
26253 echo ' .end x' >> conftest.s
26254 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26255 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26256 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26257 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26258 gcc_cv_as_ld_jalr_reloc
=yes
26264 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26265 if test x
$target_cpu_default = x
; then
26266 target_cpu_default
=MASK_RELAX_PIC_CALLS
26268 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26272 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26275 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26276 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26277 $as_echo_n "(cached) " >&6
26279 gcc_cv_ld_mips_personality_relaxation
=no
26280 if test $in_tree_ld = yes ; then
26281 if test "$gcc_cv_gld_major_version" -eq 2 \
26282 -a "$gcc_cv_gld_minor_version" -ge 21 \
26283 -o "$gcc_cv_gld_major_version" -gt 2; then
26284 gcc_cv_ld_mips_personality_relaxation
=yes
26286 elif test x
$gcc_cv_as != x \
26287 -a x
$gcc_cv_ld != x \
26288 -a x
$gcc_cv_readelf != x
; then
26289 cat > conftest.s
<<EOF
26291 .cfi_personality 0x80,indirect_ptr
26298 .section .data,"aw",@progbits
26302 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26303 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26304 if $gcc_cv_readelf -d conftest
2>&1 \
26305 |
grep TEXTREL
> /dev
/null
2>&1; then
26307 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26308 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26311 gcc_cv_ld_mips_personality_relaxation
=yes
26315 rm -f conftest.s conftest.o conftest
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26318 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26319 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26321 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26326 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26327 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26328 $as_echo_n "(cached) " >&6
26330 gcc_cv_as_mips_nan
=no
26331 if test x
$gcc_cv_as != x
; then
26332 $as_echo '' > conftest.s
26333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26335 (eval $ac_try) 2>&5
26337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26338 test $ac_status = 0; }; }
26340 gcc_cv_as_mips_nan
=yes
26342 echo "configure: failed program was" >&5
26345 rm -f conftest.o conftest.s
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26349 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26350 if test $gcc_cv_as_mips_nan = yes; then
26352 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26355 if test x
$gcc_cv_as_mips_nan = xno \
26356 && test x
$with_nan != x
; then
26357 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26362 # Mips and HP-UX need the GNU assembler.
26363 # Linux on IA64 might be able to use the Intel assembler.
26366 mips
*-*-* |
*-*-hpux* )
26367 if test x
$gas_flag = xyes \
26368 ||
test x
"$host" != x
"$build" \
26369 ||
test ! -x "$gcc_cv_as" \
26370 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26373 echo "*** This configuration requires the GNU assembler" >&2
26379 # ??? Not all targets support dwarf2 debug_line, even within a version
26380 # of gas. Moreover, we need to emit a valid instruction to trigger any
26381 # info to the output file. So, as supported targets are added to gas 2.11,
26382 # add some instruction here to (also) show we expect this might work.
26383 # ??? Once 2.11 is released, probably need to add first known working
26384 # version to the per-target configury.
26385 case "$cpu_type" in
26386 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26387 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26398 if test x
"$insn" != x
; then
26400 .file 1 \"conftest.s\"
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26404 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26405 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26406 $as_echo_n "(cached) " >&6
26408 gcc_cv_as_dwarf2_debug_line
=no
26409 if test $in_tree_gas = yes; then
26410 if test $in_tree_gas_is_elf = yes \
26411 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26412 then gcc_cv_as_dwarf2_debug_line
=yes
26414 elif test x
$gcc_cv_as != x
; then
26415 $as_echo "$conftest_s" > conftest.s
26416 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26418 (eval $ac_try) 2>&5
26420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26421 test $ac_status = 0; }; }
26423 if test x
$gcc_cv_objdump != x \
26424 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26425 |
grep debug_line
> /dev
/null
2>&1; then
26426 gcc_cv_as_dwarf2_debug_line
=yes
26429 echo "configure: failed program was" >&5
26432 rm -f conftest.o conftest.s
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26436 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26439 # The .debug_line file table must be in the exact order that
26440 # we specified the files, since these indices are also used
26441 # by DW_AT_decl_file. Approximate this test by testing if
26442 # the assembler bitches if the same index is assigned twice.
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26444 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26445 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26446 $as_echo_n "(cached) " >&6
26448 gcc_cv_as_dwarf2_file_buggy
=no
26449 if test x
$gcc_cv_as != x
; then
26450 $as_echo ' .file 1 "foo.s"
26451 .file 1 "bar.s"' > conftest.s
26452 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26454 (eval $ac_try) 2>&5
26456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26457 test $ac_status = 0; }; }
26459 gcc_cv_as_dwarf2_file_buggy
=yes
26461 echo "configure: failed program was" >&5
26464 rm -f conftest.o conftest.s
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26468 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26471 if test $gcc_cv_as_dwarf2_debug_line = yes \
26472 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26474 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26479 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26480 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26481 $as_echo_n "(cached) " >&6
26483 gcc_cv_as_gdwarf2_flag
=no
26484 if test $in_tree_gas = yes; then
26485 if test $in_tree_gas_is_elf = yes \
26486 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26487 then gcc_cv_as_gdwarf2_flag
=yes
26489 elif test x
$gcc_cv_as != x
; then
26490 $as_echo "$insn" > conftest.s
26491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26493 (eval $ac_try) 2>&5
26495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26496 test $ac_status = 0; }; }
26498 gcc_cv_as_gdwarf2_flag
=yes
26500 echo "configure: failed program was" >&5
26503 rm -f conftest.o conftest.s
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26507 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26508 if test $gcc_cv_as_gdwarf2_flag = yes; then
26510 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26515 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26516 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26517 $as_echo_n "(cached) " >&6
26519 gcc_cv_as_gstabs_flag
=no
26520 if test $in_tree_gas = yes; then
26521 if test $in_tree_gas_is_elf = yes \
26522 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26523 then gcc_cv_as_gstabs_flag
=yes
26525 elif test x
$gcc_cv_as != x
; then
26526 $as_echo "$insn" > conftest.s
26527 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26529 (eval $ac_try) 2>&5
26531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26532 test $ac_status = 0; }; }
26534 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26535 # and warns about it, but still exits successfully. So check for
26537 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26539 (eval $ac_try) 2>&5
26541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26542 test $ac_status = 0; }; }
26544 else gcc_cv_as_gstabs_flag
=yes
26547 echo "configure: failed program was" >&5
26550 rm -f conftest.o conftest.s
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26554 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26555 if test $gcc_cv_as_gstabs_flag = yes; then
26557 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26562 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26563 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26564 $as_echo_n "(cached) " >&6
26566 gcc_cv_as_debug_prefix_map_flag
=no
26567 if test $in_tree_gas = yes; then
26568 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26569 then gcc_cv_as_debug_prefix_map_flag
=yes
26571 elif test x
$gcc_cv_as != x
; then
26572 $as_echo "$insn" > conftest.s
26573 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26575 (eval $ac_try) 2>&5
26577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26578 test $ac_status = 0; }; }
26580 gcc_cv_as_debug_prefix_map_flag
=yes
26582 echo "configure: failed program was" >&5
26585 rm -f conftest.o conftest.s
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26589 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26590 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26592 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26598 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26599 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26600 $as_echo_n "(cached) " >&6
26602 gcc_cv_as_lcomm_with_alignment
=no
26603 if test x
$gcc_cv_as != x
; then
26604 $as_echo '.lcomm bar,4,16' > conftest.s
26605 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26607 (eval $ac_try) 2>&5
26609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26610 test $ac_status = 0; }; }
26612 gcc_cv_as_lcomm_with_alignment
=yes
26614 echo "configure: failed program was" >&5
26617 rm -f conftest.o conftest.s
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26621 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26622 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26624 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26628 # Check whether --enable-gnu-unique-object was given.
26629 if test "${enable_gnu_unique_object+set}" = set; then :
26630 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26632 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26633 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26637 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26638 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26639 $as_echo_n "(cached) " >&6
26641 gcc_cv_as_gnu_unique_object
=no
26642 if test $in_tree_gas = yes; then
26643 if test $in_tree_gas_is_elf = yes \
26644 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26645 then gcc_cv_as_gnu_unique_object
=yes
26647 elif test x
$gcc_cv_as != x
; then
26648 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26649 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26651 (eval $ac_try) 2>&5
26653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26654 test $ac_status = 0; }; }
26656 gcc_cv_as_gnu_unique_object
=yes
26658 echo "configure: failed program was" >&5
26661 rm -f conftest.o conftest.s
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26665 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26666 if test $gcc_cv_as_gnu_unique_object = yes; then
26667 # We need to unquote above to to use the definition from config.gcc.
26668 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26669 if test x
$host = x
$build -a x
$host = x
$target &&
26670 ldd
--version 2>/dev
/null
&&
26671 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26672 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26673 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26674 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26675 if test "$glibcnum" -ge 2011 ; then
26676 enable_gnu_unique_object
=yes
26682 if test x
$enable_gnu_unique_object = xyes
; then
26684 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26689 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26690 if test "${gcc_cv_as_line_zero+set}" = set; then :
26691 $as_echo_n "(cached) " >&6
26693 gcc_cv_as_line_zero
=no
26694 if test $in_tree_gas = yes; then
26695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26696 then gcc_cv_as_line_zero
=yes
26698 elif test "x$gcc_cv_as" != x
; then
26699 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26700 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26702 (eval $ac_try) 2>&5
26704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26705 test $ac_status = 0; }; } &&
26706 test "x`cat conftest.out`" = x
26708 gcc_cv_as_line_zero
=yes
26710 echo "configure: failed program was" >&5
26712 echo "configure: error output was" >&5
26713 cat conftest.out
>&5
26715 rm -f conftest.o conftest.s conftest.out
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26719 $as_echo "$gcc_cv_as_line_zero" >&6; }
26720 if test "x$gcc_cv_as_line_zero" = xyes
; then
26722 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26727 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26728 gcc_cv_ld_eh_frame_hdr
=no
26729 if test $in_tree_ld = yes ; then
26730 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 \
26731 && test $in_tree_ld_is_elf = yes; then
26732 gcc_cv_ld_eh_frame_hdr
=yes
26734 elif test x
$gcc_cv_ld != x
; then
26735 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26736 # Check if linker supports --eh-frame-hdr option
26737 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26738 gcc_cv_ld_eh_frame_hdr
=yes
26743 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26744 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26745 gcc_cv_ld_eh_frame_hdr
=yes
26752 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26754 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26758 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26761 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26762 gcc_cv_ld_eh_frame_ciev3
=no
26763 if test $in_tree_ld = yes ; then
26764 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 \
26765 && test $in_tree_ld_is_elf = yes; then
26766 gcc_cv_ld_eh_frame_ciev3
=yes
26768 elif test x
$gcc_cv_ld != x
; then
26769 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26770 gcc_cv_ld_eh_frame_ciev3
=yes
26771 if test 0"$ld_date" -lt 20040513; then
26772 if test -n "$ld_date"; then
26773 # If there was date string, but was earlier than 2004-05-13, fail
26774 gcc_cv_ld_eh_frame_ciev3
=no
26775 elif test "$ld_vers_major" -lt 2; then
26776 gcc_cv_ld_eh_frame_ciev3
=no
26777 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26778 gcc_cv_ld_eh_frame_ciev3
=no
26784 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26785 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26786 gcc_cv_ld_eh_frame_ciev3
=yes
26793 cat >>confdefs.h
<<_ACEOF
26794 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26798 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26801 $as_echo_n "checking linker position independent executable support... " >&6; }
26803 if test $in_tree_ld = yes ; then
26804 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26805 && test $in_tree_ld_is_elf = yes; then
26808 elif test x
$gcc_cv_ld != x
; then
26809 # Check if linker supports -pie option
26810 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26814 if test x
"$gcc_cv_ld_pie" = xyes
; then
26816 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26820 $as_echo "$gcc_cv_ld_pie" >&6; }
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26823 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26824 gcc_cv_ld_eh_gc_sections
=no
26825 if test $in_tree_ld = yes ; then
26826 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 \
26827 && test $in_tree_ld_is_elf = yes; then
26828 gcc_cv_ld_eh_gc_sections
=yes
26830 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26831 cat > conftest.s
<<EOF
26834 .type _start, @function
26837 .size _start, .-_start
26838 .section .text.foo,"ax",@progbits
26839 .type foo, @function
26843 .section .gcc_except_table.foo,"a",@progbits
26846 .section .eh_frame,"a",@progbits
26849 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26850 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26851 |
grep "gc-sections option ignored" > /dev
/null
; then
26852 gcc_cv_ld_eh_gc_sections
=no
26853 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26854 |
grep gcc_except_table
> /dev
/null
; then
26855 gcc_cv_ld_eh_gc_sections
=yes
26856 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26857 if test x
$gcc_cv_as_comdat_group != xyes
; then
26858 gcc_cv_ld_eh_gc_sections
=no
26859 cat > conftest.s
<<EOF
26862 .type _start, @function
26865 .size _start, .-_start
26866 .section .gnu.linkonce.t.foo,"ax",@progbits
26867 .type foo, @function
26871 .section .gcc_except_table.foo,"a",@progbits
26874 .section .eh_frame,"a",@progbits
26877 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26878 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26879 |
grep "gc-sections option ignored" > /dev
/null
; then
26880 gcc_cv_ld_eh_gc_sections
=no
26881 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26882 |
grep gcc_except_table
> /dev
/null
; then
26883 gcc_cv_ld_eh_gc_sections
=yes
26889 rm -f conftest.s conftest.o conftest
26893 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26894 gcc_cv_ld_eh_gc_sections
=no
26897 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26899 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26903 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26906 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26907 gcc_cv_ld_eh_gc_sections_bug
=no
26908 if test $in_tree_ld = yes ; then
26909 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 \
26910 && test $in_tree_ld_is_elf = yes; then
26911 gcc_cv_ld_eh_gc_sections_bug
=yes
26913 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
26914 gcc_cv_ld_eh_gc_sections_bug
=yes
26915 cat > conftest.s
<<EOF
26918 .type _start, @function
26921 .size _start, .-_start
26922 .section .text.startup.foo,"ax",@progbits
26923 .type foo, @function
26927 .section .gcc_except_table.foo,"a",@progbits
26930 .section .eh_frame,"a",@progbits
26933 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26934 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26935 |
grep "gc-sections option ignored" > /dev
/null
; then
26937 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26938 |
grep gcc_except_table
> /dev
/null
; then
26939 gcc_cv_ld_eh_gc_sections_bug
=no
26942 rm -f conftest.s conftest.o conftest
26944 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26946 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26950 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26957 $as_echo_n "checking linker --as-needed support... " >&6; }
26958 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26959 $as_echo_n "(cached) " >&6
26961 gcc_cv_ld_as_needed
=no
26962 gcc_cv_ld_as_needed_option
='--as-needed'
26963 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
26964 if test $in_tree_ld = yes ; then
26965 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 \
26966 && test $in_tree_ld_is_elf = yes; then
26967 gcc_cv_ld_as_needed
=yes
26969 elif test x
$gcc_cv_ld != x
; then
26970 # Check if linker supports --as-needed and --no-as-needed options
26971 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26972 gcc_cv_ld_as_needed
=yes
26975 # Solaris 2 ld always supports -z ignore/-z record.
26977 gcc_cv_ld_as_needed
=yes
26978 gcc_cv_ld_as_needed_option
="-z ignore"
26979 gcc_cv_ld_no_as_needed_option
="-z record"
26984 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26985 # dl_iterate_phdr, i.e. since Solaris 11.
26987 *-*-solaris2.1
[1-9]*)
26989 i?
86-*-* | x86_64-
*-*)
26990 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26991 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26992 gcc_cv_ld_as_needed
=no
26998 gcc_cv_ld_as_needed
=no
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27004 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27005 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27007 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27010 cat >>confdefs.h
<<_ACEOF
27011 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27015 cat >>confdefs.h
<<_ACEOF
27016 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27021 case "$target:$tm_file" in
27022 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27025 emul_name
="-melf64lppc"
27028 emul_name
="-melf64ppc"
27031 emul_name
="-melf64ppc_fbsd"
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27035 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27036 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27037 $as_echo_n "(cached) " >&6
27039 gcc_cv_ld_no_dot_syms
=no
27040 if test x
"$ld_is_gold" = xyes
; then
27041 gcc_cv_ld_no_dot_syms
=yes
27042 elif test $in_tree_ld = yes ; then
27043 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
27044 gcc_cv_ld_no_dot_syms
=yes
27046 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27047 cat > conftest1.s
<<EOF
27051 cat > conftest2.s
<<EOF
27052 .section ".opd","aw"
27055 .type foo,@function
27057 .quad .LEfoo,.TOC.@tocbase,0
27063 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27064 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27065 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27066 gcc_cv_ld_no_dot_syms
=yes
27068 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27073 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27074 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27076 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27081 $as_echo_n "checking linker large toc support... " >&6; }
27082 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27083 $as_echo_n "(cached) " >&6
27085 gcc_cv_ld_large_toc
=no
27086 if test x
"$ld_is_gold" = xyes
; then
27087 gcc_cv_ld_large_toc
=yes
27088 elif test $in_tree_ld = yes ; then
27089 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
27090 gcc_cv_ld_large_toc
=yes
27092 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27093 cat > conftest.s
<<EOF
27094 .section ".tbss","awT",@nobits
27100 addis 9,13,ie0@got@tprel@ha
27101 ld 9,ie0@got@tprel@l(9)
27103 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27104 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27105 gcc_cv_ld_large_toc
=yes
27107 rm -f conftest conftest.o conftest.s
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27112 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27113 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27115 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27124 $as_echo_n "checking linker large toc support... " >&6; }
27125 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27126 $as_echo_n "(cached) " >&6
27128 gcc_cv_ld_large_toc
=no
27129 if test x
$gcc_cv_as != x
; then
27130 cat > conftest.s
<<EOF
27140 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27141 gcc_cv_ld_large_toc
=yes
27143 rm -f conftest conftest.o conftest.s
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27148 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27149 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27151 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27158 $as_echo_n "checking linker --build-id support... " >&6; }
27159 if test "${gcc_cv_ld_buildid+set}" = set; then :
27160 $as_echo_n "(cached) " >&6
27162 gcc_cv_ld_buildid
=no
27163 if test $in_tree_ld = yes ; then
27164 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27165 "$gcc_cv_gld_minor_version" -ge 18 -o \
27166 "$gcc_cv_gld_major_version" -gt 2 \
27167 && test $in_tree_ld_is_elf = yes; then
27168 gcc_cv_ld_buildid
=yes
27170 elif test x
$gcc_cv_ld != x
; then
27171 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27172 gcc_cv_ld_buildid
=yes
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27177 $as_echo "$gcc_cv_ld_buildid" >&6; }
27178 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27180 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27184 # Check whether --enable-linker-build-id was given.
27185 if test "${enable_linker_build_id+set}" = set; then :
27186 enableval
=$enable_linker_build_id;
27188 enable_linker_build_id
=no
27192 if test x
"$enable_linker_build_id" = xyes
; then
27193 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27195 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27199 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27203 # In binutils 2.21, GNU ld gained support for new emulations fully
27204 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27206 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27207 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27208 $as_echo_n "(cached) " >&6
27210 gcc_cv_ld_sol2_emulation
=no
27211 if test $in_tree_ld = yes ; then
27212 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27213 "$gcc_cv_gld_minor_version" -ge 21 -o \
27214 "$gcc_cv_gld_major_version" -gt 2 \
27215 && test $in_tree_ld_is_elf = yes; then
27216 gcc_cv_ld_sol2_emulation
=yes
27218 elif test x
$gcc_cv_ld != x
; then
27219 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27220 grep _sol2
> /dev
/null
; then
27221 gcc_cv_ld_sol2_emulation
=yes
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27226 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27227 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27229 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27234 $as_echo_n "checking linker --sysroot support... " >&6; }
27235 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27236 $as_echo_n "(cached) " >&6
27238 gcc_cv_ld_sysroot
=no
27239 if test $in_tree_ld = yes ; then
27240 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
27241 gcc_cv_ld_sysroot
=yes
27243 elif test x
$gcc_cv_ld != x
; then
27244 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27245 gcc_cv_ld_sysroot
=yes
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27250 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27251 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27253 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27257 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27258 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27259 && test "$prefix" != "NONE"; then
27261 cat >>confdefs.h
<<_ACEOF
27262 #define PREFIX_INCLUDE_DIR "$prefix/include"
27267 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
27268 if test "x$with_headers" != x
; then
27269 target_header_dir
=$with_headers
27270 elif test "x$with_sysroot" = x
; then
27271 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
27272 elif test "x$with_build_sysroot" != "x"; then
27273 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
27274 elif test "x$with_sysroot" = xyes
; then
27275 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27277 target_header_dir
="${with_sysroot}${native_system_header_dir}"
27280 target_header_dir
=${native_system_header_dir}
27283 # Test for stack protector support in target C library.
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27285 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27286 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27287 $as_echo_n "(cached) " >&6
27289 gcc_cv_libc_provides_ssp
=no
27291 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27292 # glibc 2.4 and later provides __stack_chk_fail and
27293 # either __stack_chk_guard, or TLS access to stack guard canary.
27294 if test -f $target_header_dir/features.h \
27295 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27296 $target_header_dir/features.h
> /dev
/null
; then
27297 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27298 $target_header_dir/features.h
> /dev
/null
; then
27299 gcc_cv_libc_provides_ssp
=yes
27300 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27301 $target_header_dir/features.h
> /dev
/null \
27302 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27303 $target_header_dir/features.h
> /dev
/null
; then
27304 gcc_cv_libc_provides_ssp
=yes
27305 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27306 $target_header_dir/features.h
> /dev
/null
&& \
27307 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27308 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27309 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27310 gcc_cv_libc_provides_ssp
=yes
27312 # all versions of Bionic support stack protector
27313 elif test -f $target_header_dir/sys
/cdefs.h \
27314 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27315 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27316 gcc_cv_libc_provides_ssp
=yes
27320 # Avoid complicated tests (see
27321 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27322 # simply assert that glibc does provide this, which is true for all
27323 # realistically usable GNU/Hurd configurations.
27324 gcc_cv_libc_provides_ssp
=yes;;
27325 *-*-darwin* |
*-*-freebsd*)
27326 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27327 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27328 gcc_cv_libc_provides_ssp
=yes
27330 echo "no __stack_chk_fail on this target"
27334 *) gcc_cv_libc_provides_ssp
=no
;;
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27338 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27340 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27342 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27346 # Test for <sys/sdt.h> on the target.
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27349 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27351 if test -f $target_header_dir/sys
/sdt.h
; then
27354 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27358 $as_echo "$have_sys_sdt_h" >&6; }
27360 # Check if TFmode long double should be used by default or not.
27361 # Some glibc targets used DFmode long double, but with glibc 2.4
27362 # and later they can use TFmode.
27364 powerpc
*-*-linux* | \
27365 sparc
*-*-linux* | \
27369 # Check whether --with-long-double-128 was given.
27370 if test "${with_long_double_128+set}" = set; then :
27371 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27373 gcc_cv_target_ldbl128
=no
27374 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27375 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27376 && gcc_cv_target_ldbl128
=yes
27382 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27384 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27389 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27390 gcc_cv_target_dl_iterate_phdr
=unknown
27392 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27393 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27394 # libdl there, both complicating its use and breaking compatibility
27395 # between Solaris 10 updates.
27396 *-*-solaris2.1
[1-9]*)
27397 # <link.h> needs both a dl_iterate_phdr declaration and support for
27398 # compilation with largefile support.
27399 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27400 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27401 gcc_cv_target_dl_iterate_phdr
=yes
27403 gcc_cv_target_dl_iterate_phdr
=no
27408 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27410 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27414 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27416 # We no longer support different GC mechanisms. Emit an error if
27417 # the user configures with --with-gc.
27419 # Check whether --with-gc was given.
27420 if test "${with_gc+set}" = set; then :
27421 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27425 # Libraries to use on the host. This will normally be set by the top
27426 # level Makefile. Here we simply capture the value for our Makefile.
27427 if test -z "${HOST_LIBS+set}"; then
27432 # Use the system's zlib library.
27434 zlibinc
="-I\$(srcdir)/../zlib"
27436 # Check whether --with-system-zlib was given.
27437 if test "${with_system_zlib+set}" = set; then :
27438 withval
=$with_system_zlib; zlibdir
=
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27448 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27449 # Check whether --enable-maintainer-mode was given.
27450 if test "${enable_maintainer_mode+set}" = set; then :
27451 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27458 $as_echo "$maintainer_mode" >&6; }
27460 if test "$maintainer_mode" = "yes"; then
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27468 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27469 # Check whether --enable-link-mutex was given.
27470 if test "${enable_link_mutex+set}" = set; then :
27471 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27477 $as_echo "$do_link_mutex" >&6; }
27479 if test "$do_link_mutex" = "yes"; then
27482 DO_LINK_MUTEX
=false
27490 # Make empty files to contain the specs and options for each language.
27491 # Then add #include lines to for a compiler that has specs and/or options.
27497 # These (without "all_") are set in each config-lang.in.
27498 # `language' must be a single word so is spelled singularly.
27501 all_outputs
='Makefile'
27502 # List of language makefile fragments.
27503 all_lang_makefrags
=
27504 # Additional files for gengtype
27505 all_gtfiles
="$target_gtfiles"
27507 # These are the languages that are set in --enable-languages,
27508 # and are available in the GCC tree.
27509 all_selected_languages
=
27511 # Add the language fragments.
27512 # Languages are added via two mechanisms. Some information must be
27513 # recorded in makefile variables, these are defined in config-lang.in.
27514 # We accumulate them and plug them into the main Makefile.
27515 # The other mechanism is a set of hooks for each of the main targets
27516 # like `clean', `install', etc.
27518 language_hooks
="Make-hooks"
27520 for lang
in ${srcdir}/*/config-lang.
in
27522 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27524 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27525 if test "x$lang_alias" = x
27527 echo "$lang doesn't set \$language." 1>&2
27530 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27531 subdirs
="$subdirs $subdir"
27533 # $gcc_subdir is where the gcc integration files are to be found
27534 # for a language, both for internal compiler purposes (compiler
27535 # sources implementing front-end to GCC tree converters), and for
27536 # build infrastructure purposes (Make-lang.in, etc.)
27538 # This will be <subdir> (relative to $srcdir) if a line like
27539 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27540 # is found in <langdir>/config-lang.in, and will remain <langdir>
27543 # Except for the language alias (fetched above), the regular
27544 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27545 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27546 # only this and the language alias.
27548 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27549 if [ "$gcc_subdir" = "" ]; then
27550 gcc_subdir
="$subdir"
27553 case ",$enable_languages," in
27555 all_selected_languages
="$all_selected_languages $lang_alias"
27556 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27557 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27568 .
${srcdir}/$gcc_subdir/config-lang.
in
27569 if test "x$language" = x
27571 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27576 case ",$enable_languages," in
27577 *,$lang_alias,*) ;;
27579 for i
in $subdir_requires; do
27580 test -f "${srcdir}/$i/config-lang.in" && continue
27588 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27589 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27590 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27591 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27593 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27594 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27596 all_languages
="$all_languages $language"
27597 all_compilers
="$all_compilers $compilers"
27598 all_outputs
="$all_outputs $outputs"
27599 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27600 case ",$enable_languages," in
27603 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27613 for language
in $all_selected_languages
27615 check_languages
="$check_languages check-$language"
27618 # We link each language in with a set of hooks, reached indirectly via
27619 # lang.${target}. Only do so for selected languages.
27623 target_list
="all.cross start.encap rest.encap tags \
27624 install-common install-man install-info install-pdf install-html dvi \
27625 pdf html uninstall info man srcextra srcman srcinfo \
27626 mostlyclean clean distclean maintainer-clean install-plugin"
27628 for t
in $target_list
27631 for lang
in $all_selected_languages
27635 echo "lang.$t: $x" >> Make-hooks
27639 # Option include files
27642 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27643 option_includes
="option-includes.mk"
27652 echo "dir ." > .gdbinit
27653 echo "dir ${srcdir}" >> .gdbinit
27654 if test x
$gdb_needs_out_file_path = xyes
27656 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27658 if test "x$subdirs" != x
; then
27661 echo "dir ${srcdir}/$s" >> .gdbinit
27664 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27666 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27670 # Find a directory in which to install a shared libgcc.
27672 # Check whether --enable-version-specific-runtime-libs was given.
27673 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27674 enableval
=$enable_version_specific_runtime_libs;
27678 # Substitute configuration variables
27742 if test x
${build} = x
${host} ; then
27743 if test x
${host} = x
${target} ; then
27744 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27746 echo "Links are now set up to build a cross-compiler" 1>&2
27747 echo " from ${host} to ${target}." 1>&2
27750 if test x
${host} = x
${target} ; then
27751 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27752 echo " for ${target}." 1>&2
27754 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27755 echo " from ${host} to ${target}." 1>&2
27767 if test "x${CLOOGLIBS}" != "x" ; then
27769 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27773 # Check for plugin support
27774 # Check whether --enable-plugin was given.
27775 if test "${enable_plugin+set}" = set; then :
27776 enableval
=$enable_plugin; enable_plugin
=$enableval
27778 enable_plugin
=yes; default_plugin
=yes
27786 if test x
$build = x
$host; then
27787 export_sym_check
="nm${exeext} -g"
27788 elif test x
$host = x
$target; then
27789 export_sym_check
="$gcc_cv_nm -g"
27795 if test x
$build = x
$host; then
27796 export_sym_check
="objdump${exeext} -T"
27797 elif test x
$host = x
$target; then
27798 export_sym_check
="$gcc_cv_objdump -T"
27805 if test x
"$enable_plugin" = x
"yes"; then
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27808 $as_echo_n "checking for exported symbols... " >&6; }
27809 if test "x$export_sym_check" != x
; then
27810 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27811 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27812 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27813 : # No need to use a flag
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27815 $as_echo "yes" >&6; }
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27818 $as_echo "yes" >&6; }
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27820 $as_echo_n "checking for -rdynamic... " >&6; }
27821 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27822 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27823 plugin_rdynamic
=yes
27824 pluginlibs
="-rdynamic"
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27830 $as_echo "$plugin_rdynamic" >&6; }
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27834 $as_echo "unable to check" >&6; }
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27840 $as_echo_n "checking for library containing dlopen... " >&6; }
27841 if test "${ac_cv_search_dlopen+set}" = set; then :
27842 $as_echo_n "(cached) " >&6
27844 ac_func_search_save_LIBS
=$LIBS
27845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27846 /* end confdefs.h. */
27848 /* Override any GCC internal prototype to avoid an error.
27849 Use char because int might match the return type of a GCC
27850 builtin and then its argument prototype would still apply. */
27863 for ac_lib
in '' dl
; do
27864 if test -z "$ac_lib"; then
27865 ac_res
="none required"
27868 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27870 if ac_fn_c_try_link
"$LINENO"; then :
27871 ac_cv_search_dlopen
=$ac_res
27873 rm -f core conftest.err conftest.
$ac_objext \
27875 if test "${ac_cv_search_dlopen+set}" = set; then :
27879 if test "${ac_cv_search_dlopen+set}" = set; then :
27882 ac_cv_search_dlopen
=no
27884 rm conftest.
$ac_ext
27885 LIBS
=$ac_func_search_save_LIBS
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27888 $as_echo "$ac_cv_search_dlopen" >&6; }
27889 ac_res
=$ac_cv_search_dlopen
27890 if test "$ac_res" != no
; then :
27891 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27895 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27896 pluginlibs
="$pluginlibs -ldl"
27900 # Check that we can build shared objects with -fPIC -shared
27901 saved_LDFLAGS
="$LDFLAGS"
27902 saved_CFLAGS
="$CFLAGS"
27905 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27906 CFLAGS
="$CFLAGS -fPIC"
27907 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27910 CFLAGS
="$CFLAGS -fPIC"
27911 LDFLAGS
="$LDFLAGS -fPIC -shared"
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27915 $as_echo_n "checking for -fPIC -shared... " >&6; }
27916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27917 /* end confdefs.h. */
27927 if ac_fn_c_try_link
"$LINENO"; then :
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27929 $as_echo "yes" >&6; }; have_pic_shared
=yes
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27932 $as_echo "no" >&6; }; have_pic_shared
=no
27934 rm -f core conftest.err conftest.
$ac_objext \
27935 conftest
$ac_exeext conftest.
$ac_ext
27936 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27940 LDFLAGS
="$saved_LDFLAGS"
27941 CFLAGS
="$saved_CFLAGS"
27943 # If plugin support had been requested but not available, fail.
27944 if test x
"$enable_plugin" = x
"no" ; then
27945 if test x
"$default_plugin" != x
"yes"; then
27947 Building GCC with plugin support requires a host that supports
27948 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27955 if test x
"$enable_plugin" = x
"yes"; then
27957 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27962 # Check whether --enable-libquadmath-support was given.
27963 if test "${enable_libquadmath_support+set}" = set; then :
27964 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27966 ENABLE_LIBQUADMATH_SUPPORT
=yes
27969 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27971 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27976 # Specify what hash style to use by default.
27978 # Check whether --with-linker-hash-style was given.
27979 if test "${with_linker_hash_style+set}" = set; then :
27980 withval
=$with_linker_hash_style; case x
"$withval" in
27982 LINKER_HASH_STYLE
=sysv
27985 LINKER_HASH_STYLE
=gnu
27988 LINKER_HASH_STYLE
=both
27991 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27995 LINKER_HASH_STYLE
=''
27998 if test x
"${LINKER_HASH_STYLE}" != x
; then
28000 cat >>confdefs.h
<<_ACEOF
28001 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28006 # Configure the subdirectories
28007 # AC_CONFIG_SUBDIRS($subdirs)
28009 # Create the Makefile
28010 # and configure language subdirectories
28011 ac_config_files
="$ac_config_files $all_outputs"
28014 ac_config_commands
="$ac_config_commands default"
28016 cat >confcache
<<\_ACEOF
28017 # This file is a shell script that caches the results of configure
28018 # tests run on this system so they can be shared between configure
28019 # scripts and configure runs, see configure's option --config-cache.
28020 # It is not useful on other systems. If it contains results you don't
28021 # want to keep, you may remove or edit it.
28023 # config.status only pays attention to the cache file if you give it
28024 # the --recheck option to rerun configure.
28026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28028 # following values.
28032 # The following way of writing the cache mishandles newlines in values,
28033 # but we know of no workaround that is simple, portable, and efficient.
28034 # So, we kill variables containing newlines.
28035 # Ultrix sh set writes to stderr and can't be redirected directly,
28036 # and sets the high bit in the cache file unless we assign to the vars.
28038 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28039 eval ac_val
=\$
$ac_var
28043 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28047 _ | IFS | as_nl
) ;; #(
28048 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28049 *) { eval $ac_var=; unset $ac_var;} ;;
28055 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28056 *${as_nl}ac_space
=\
*)
28057 # `set' does not quote correctly, so add quotes: double-quote
28058 # substitution turns \\\\ into \\, and sed turns \\ into \.
28061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28064 # `set' quotes correctly as required by POSIX, so do not add quotes.
28065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28076 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28078 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28079 if test -w "$cache_file"; then
28080 test "x$cache_file" != "x/dev/null" &&
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28082 $as_echo "$as_me: updating cache $cache_file" >&6;}
28083 cat confcache
>$cache_file
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28086 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28091 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28092 # Let make expand exec_prefix.
28093 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28095 DEFS
=-DHAVE_CONFIG_H
28099 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28100 # 1. Remove the extension, and $U if already installed.
28101 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28102 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28103 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28104 # will be set to the directory where LIBOBJS objects are built.
28105 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28106 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28108 LIBOBJS
=$ac_libobjs
28110 LTLIBOBJS
=$ac_ltlibobjs
28115 : ${CONFIG_STATUS=./config.status}
28117 ac_clean_files_save
=$ac_clean_files
28118 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28122 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28124 # Generated by $as_me.
28125 # Run this file to recreate the current configuration.
28126 # Compiler output produced by configure, useful for debugging
28127 # configure, is in config.log if it exists.
28130 ac_cs_recheck=false
28133 SHELL=\${CONFIG_SHELL-$SHELL}
28136 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28137 ## -------------------- ##
28138 ## M4sh Initialization. ##
28139 ## -------------------- ##
28141 # Be more Bourne compatible
28142 DUALCASE
=1; export DUALCASE
# for MKS sh
28143 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28147 # is contrary to our usage. Disable this feature.
28148 alias -g '${1+"$@"}'='"$@"'
28149 setopt NO_GLOB_SUBST
28151 case `(set -o) 2>/dev/null` in #(
28163 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28164 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28167 # Prefer a ksh shell builtin over an external printf program on Solaris,
28168 # but without wasting forks for bash or zsh.
28169 if test -z "$BASH_VERSION$ZSH_VERSION" \
28170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28171 as_echo='print
-r --'
28172 as_echo_n='print
-rn --'
28173 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28174 as_echo='printf %s
\n'
28175 as_echo_n='printf %s
'
28177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28178 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28179 as_echo_n='/usr
/ucb
/echo -n'
28181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28182 as_echo_n_body='eval
28186 expr "X$arg" : "X\\(.*\\)$as_nl";
28187 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28189 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28191 export as_echo_n_body
28192 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28194 export as_echo_body
28195 as_echo='sh
-c $as_echo_body as_echo
'
28198 # The user is always right.
28199 if test "${PATH_SEPARATOR+set}" != set; then
28201 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28202 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28209 # We need space, tab and new line, in precisely that order. Quoting is
28210 # there to prevent editors from complaining about space-tab.
28211 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28212 # splitting by setting IFS to empty value.)
28215 # Find who we are. Look in the path if we contain no directory separator.
28217 *[\\/]* ) as_myself=$0 ;;
28218 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28219 for as_dir in $PATH
28222 test -z "$as_dir" && as_dir=.
28223 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28229 # We did not find ourselves, most probably we were run as `sh COMMAND'
28230 # in which case we are not to be found in the path.
28231 if test "x$as_myself" = x
; then
28234 if test ! -f "$as_myself"; then
28235 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28239 # Unset variables that we do not need and which cause bugs (e.g. in
28240 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28241 # suppresses any "Segmentation fault" message there. '((' could
28242 # trigger a bug in pdksh 5.2.14.
28243 for as_var
in BASH_ENV ENV MAIL MAILPATH
28244 do eval test x\
${$as_var+set} = xset \
28245 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28258 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28261 # as_fn_error ERROR [LINENO LOG_FD]
28262 # ---------------------------------
28263 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28264 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28265 # script with status $?, using 1 if that was 0.
28268 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28270 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28271 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28273 $as_echo "$as_me: error: $1" >&2
28274 as_fn_exit
$as_status
28278 # as_fn_set_status STATUS
28279 # -----------------------
28280 # Set $? to STATUS, without forking.
28281 as_fn_set_status
()
28284 } # as_fn_set_status
28286 # as_fn_exit STATUS
28287 # -----------------
28288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28292 as_fn_set_status
$1
28298 # Portably unset VAR.
28301 { eval $1=; unset $1;}
28303 as_unset
=as_fn_unset
28304 # as_fn_append VAR VALUE
28305 # ----------------------
28306 # Append the text in VALUE to the end of the definition contained in VAR. Take
28307 # advantage of any shell optimizations that allow amortized linear growth over
28308 # repeated appends, instead of the typical quadratic growth present in naive
28310 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28311 eval 'as_fn_append ()
28322 # as_fn_arith ARG...
28323 # ------------------
28324 # Perform arithmetic evaluation on the ARGs, and store the result in the
28325 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28326 # must be portable across $(()) and expr.
28327 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28328 eval 'as_fn_arith ()
28335 as_val
=`expr "$@" || test $? -eq 1`
28340 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28341 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28347 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28348 as_basename
=basename
28353 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28359 as_me
=`$as_basename -- "$0" ||
28360 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28361 X"$0" : 'X\(//\)$' \| \
28362 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28364 sed '/^.*\/\([^/][^/]*\)\/*$/{
28378 # Avoid depending upon Character Ranges.
28379 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28380 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28381 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28382 as_cr_digits
='0123456789'
28383 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28385 ECHO_C
= ECHO_N
= ECHO_T
=
28386 case `echo -n x` in #(((((
28388 case `echo 'xy\c'` in
28389 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28391 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28398 rm -f conf$$ conf$$.exe conf$$.
file
28399 if test -d conf$$.dir
; then
28400 rm -f conf$$.dir
/conf$$.
file
28403 mkdir conf$$.dir
2>/dev
/null
28405 if (echo >conf$$.
file) 2>/dev
/null
; then
28406 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28408 # ... but there are two gotchas:
28409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28411 # In both cases, we have to default to `cp -p'.
28412 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28414 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28422 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28423 rmdir conf$$.dir
2>/dev
/null
28428 # Create "$as_dir" as a directory, including parents if necessary.
28433 -*) as_dir
=.
/$as_dir;;
28435 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28439 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28440 *) as_qdir
=$as_dir;;
28442 as_dirs
="'$as_qdir' $as_dirs"
28443 as_dir
=`$as_dirname -- "$as_dir" ||
28444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28445 X"$as_dir" : 'X\(//\)[^/]' \| \
28446 X"$as_dir" : 'X\(//\)$' \| \
28447 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28448 $as_echo X"$as_dir" |
28449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28453 /^X\(\/\/\)[^/].*/{
28466 test -d "$as_dir" && break
28468 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28469 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28473 if mkdir
-p .
2>/dev
/null
; then
28474 as_mkdir_p
='mkdir -p "$as_dir"'
28476 test -d .
/-p && rmdir .
/-p
28480 if test -x / >/dev
/null
2>&1; then
28481 as_test_x
='test -x'
28483 if ls -dL / >/dev
/null
2>&1; then
28490 if test -d "$1"; then
28496 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28497 ???[sx]*):;;*)false;;esac;fi
28501 as_executable_p
=$as_test_x
28503 # Sed expression to map a string onto a valid CPP name.
28504 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28506 # Sed expression to map a string onto a valid variable name.
28507 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28511 ## ----------------------------------- ##
28512 ## Main body of $CONFIG_STATUS script. ##
28513 ## ----------------------------------- ##
28515 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28518 # Save the log message, to keep $0 and so on meaningful, and to
28519 # report actual input values of CONFIG_FILES etc. instead of their
28520 # values after options handling.
28522 This file was extended by $as_me, which was
28523 generated by GNU Autoconf 2.64. Invocation command line was
28525 CONFIG_FILES = $CONFIG_FILES
28526 CONFIG_HEADERS = $CONFIG_HEADERS
28527 CONFIG_LINKS = $CONFIG_LINKS
28528 CONFIG_COMMANDS = $CONFIG_COMMANDS
28531 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28536 case $ac_config_files in *"
28537 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28540 case $ac_config_headers in *"
28541 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28546 # Files that config.status was made for.
28547 config_files="$ac_config_files"
28548 config_headers="$ac_config_headers"
28549 config_commands="$ac_config_commands"
28553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28555 \`$as_me' instantiates files and other configuration actions
28556 from templates according to the current configuration. Unless the files
28557 and actions are specified as TAGs, all are instantiated by default.
28559 Usage: $0 [OPTION]... [TAG]...
28561 -h, --help print this help, then exit
28562 -V, --version print version number and configuration settings, then exit
28563 -q, --quiet, --silent
28564 do not print progress messages
28565 -d, --debug don't remove temporary files
28566 --recheck update $as_me by reconfiguring in the same conditions
28567 --file=FILE[:TEMPLATE]
28568 instantiate the configuration file FILE
28569 --header=FILE[:TEMPLATE]
28570 instantiate the configuration header FILE
28572 Configuration files:
28575 Configuration headers:
28578 Configuration commands:
28581 Report bugs to the package provider."
28584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28587 configured by $0, generated by GNU Autoconf 2.64,
28588 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28590 Copyright (C) 2009 Free Software Foundation, Inc.
28591 This config.status script is free software; the Free Software Foundation
28592 gives unlimited permission to copy, distribute and modify it."
28597 test -n "\$AWK" || AWK=awk
28600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28601 # The default lists apply if the user does not specify any file.
28607 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28608 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28619 # Handling of the options.
28620 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28622 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28623 $as_echo "$ac_cs_version"; exit ;;
28624 --debug |
--debu |
--deb |
--de |
--d |
-d )
28626 --file |
--fil |
--fi |
--f )
28629 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28631 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28632 ac_need_defaults
=false
;;
28633 --header |
--heade |
--head |
--hea )
28636 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28638 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28639 ac_need_defaults
=false
;;
28641 # Conflict between --help and --header
28642 as_fn_error
"ambiguous option: \`$1'
28643 Try \`$0 --help' for more information.";;
28644 --help |
--hel |
-h )
28645 $as_echo "$ac_cs_usage"; exit ;;
28646 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28647 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28650 # This is an error.
28651 -*) as_fn_error
"unrecognized option: \`$1'
28652 Try \`$0 --help' for more information." ;;
28654 *) as_fn_append ac_config_targets
" $1"
28655 ac_need_defaults
=false
;;
28661 ac_configure_extra_args
=
28663 if $ac_cs_silent; then
28665 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28670 if \$ac_cs_recheck; then
28671 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28673 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28674 CONFIG_SHELL='$SHELL'
28675 export CONFIG_SHELL
28680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28685 ## Running $as_me. ##
28691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28701 # Handling of arguments.
28702 for ac_config_target
in $ac_config_targets
28704 case $ac_config_target in
28705 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28706 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28707 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28708 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28709 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28710 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28712 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28717 # If the user did not use the arguments to specify the items to instantiate,
28718 # then the envvar interface is used. Set only those that are not.
28719 # We use the long form for the default assignment because of an extremely
28720 # bizarre bug on SunOS 4.1.3.
28721 if $ac_need_defaults; then
28722 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28723 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28724 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28727 # Have a temporary directory for convenience. Make it in the build tree
28728 # simply because there is no reason against having it here, and in addition,
28729 # creating and moving files from /tmp can sometimes cause problems.
28730 # Hook for its removal unless debugging.
28731 # Note that there is a small window in which the directory will not be cleaned:
28732 # after its creation but before its name has been assigned to `$tmp'.
28736 trap 'exit_status=$?
28737 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28739 trap 'as_fn_exit 1' 1 2 13 15
28741 # Create a (secure) tmp directory for tmp files.
28744 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28745 test -n "$tmp" && test -d "$tmp"
28748 tmp
=.
/conf$$
-$RANDOM
28749 (umask 077 && mkdir
"$tmp")
28750 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28752 # Set up the scripts for CONFIG_FILES section.
28753 # No need to generate them if there are no CONFIG_FILES.
28754 # This happens for instance with `./config.status config.h'.
28755 if test -n "$CONFIG_FILES"; then
28757 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28758 ac_cs_awk_getline
=:
28759 ac_cs_awk_pipe_init
=
28760 ac_cs_awk_read_file
='
28761 while ((getline aline < (F[key])) > 0)
28764 ac_cs_awk_pipe_fini
=
28766 ac_cs_awk_getline
=false
28767 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28768 ac_cs_awk_read_file
='
28770 print "cat " F[key] " &&"
28771 '$ac_cs_awk_pipe_init
28772 # The final `:' finishes the AND list.
28773 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28775 ac_cr
=`echo X | tr X '\015'`
28776 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28777 # But we know of no other shell where ac_cr would be empty at this
28778 # point, so we can use a bashism as a fallback.
28779 if test "x$ac_cr" = x
; then
28780 eval ac_cr
=\$
\'\\r
\'
28782 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28786 ac_cs_awk_cr
=$ac_cr
28789 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28792 # Create commands to substitute file output variables.
28794 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28795 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28796 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28799 } >conf$
$files.sh
&&
28800 . .
/conf$
$files.sh ||
28801 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28802 rm -f conf$
$files.sh
28805 echo "cat >conf$$subs.awk <<_ACEOF" &&
28806 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28808 } >conf$$subs.sh ||
28809 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28810 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28812 for ac_last_try in false false false false false :; do
28813 . ./conf$$subs.sh ||
28814 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28816 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28817 if test $ac_delim_n = $ac_delim_num; then
28819 elif $ac_last_try; then
28820 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28822 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28825 rm -f conf$$subs.sh
28827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28828 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28832 s/^/S["/; s
/!.
*/"]=/
28842 s/\(.\{148\}\).*/\1/
28844 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28849 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28856 s/\(.\{148\}\).*/\1/
28858 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28862 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28867 ' <conf$$subs.awk | sed '
28872 ' >>$CONFIG_STATUS || ac_write_fail=1
28873 rm -f conf$$subs.awk
28874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28876 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28877 for (key in S) S_is_set[key] = 1
28879 \$ac_cs_awk_pipe_init
28883 nfields = split(line, field, "@
")
28885 len = length(field[1])
28886 for (i = 2; i < nfields; i++) {
28888 keylen = length(key)
28889 if (S_is_set[key]) {
28891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28892 len += length(value) + length(field[++i])
28897 if (nfields == 3 && !substed) {
28899 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28900 \$ac_cs_awk_read_file
28906 \$ac_cs_awk_pipe_fini
28909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28910 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28911 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28914 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28915 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28918 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28919 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28920 # trailing colons and then remove the whole line if VPATH becomes empty
28921 # (actually we leave an empty line to preserve line numbers).
28922 if test "x
$srcdir" = x.; then
28923 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28924 s/:*\$(srcdir):*/:/
28925 s/:*\${srcdir}:*/:/
28927 s/^\([^=]*=[ ]*\):*/\1/
28933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28934 fi # test -n "$CONFIG_FILES"
28936 # Set up the scripts for CONFIG_HEADERS section.
28937 # No need to generate them if there are no CONFIG_HEADERS.
28938 # This happens for instance with `./config.status Makefile'.
28939 if test -n "$CONFIG_HEADERS"; then
28940 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28944 # Transform confdefs.h into an awk script `defines.awk', embedded as
28945 # here-document in config.status, that substitutes the proper values into
28946 # config.h.in to produce config.h.
28948 # Create a delimiter string that does not exist in confdefs.h, to ease
28949 # handling of long lines.
28951 for ac_last_try in false false :; do
28952 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28953 if test -z "$ac_t"; then
28955 elif $ac_last_try; then
28956 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28958 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28962 # For the awk script, D is an array of macro values keyed by name,
28963 # likewise P contains macro parameters if any. Preserve backslash
28964 # newline sequences.
28966 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28968 s/.\{148\}/&'"$ac_delim"'/g
28971 s/^[ ]*#[ ]*define[ ][ ]*/ /
28978 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28980 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28984 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28985 D["\
1"]=" \
3\\\\\\n
"\\/p
28987 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28992 s/.\{148\}/&'"$ac_delim"'/g
28997 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29000 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29002 ' <confdefs.h | sed '
29003 s/'"$ac_delim"'/"\\\
29004 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29007 for (key in D) D_is_set[key] = 1
29010 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29012 split(line, arg, " ")
29013 if (arg[1] == "#") {
29017 defundef
= substr
(arg
[1], 2)
29020 split(mac1
, mac2
, "(") #)
29022 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29023 if (D_is_set
[macro
]) {
29024 # Preserve the white space surrounding the "#".
29025 print prefix
"define", macro P
[macro
] D
[macro
]
29028 # Replace #undef with comments. This is necessary, for example,
29029 # in the case of _POSIX_SOURCE, which is predefined and required
29030 # on some systems where configure will not decide to define it.
29031 if (defundef
== "undef") {
29032 print
"/*", prefix defundef
, macro
, "*/"
29040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29041 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29042 fi # test -n "$CONFIG_HEADERS"
29045 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29050 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29052 case $ac_mode$ac_tag in
29054 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29055 :[FH
]-) ac_tag
=-:-;;
29056 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29073 -) ac_f
="$tmp/stdin";;
29074 *) # Look for the file first in the build tree, then in the source tree
29075 # (if the path is not absolute). The absolute path cannot be DOS-style,
29076 # because $ac_f cannot contain `:'.
29080 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29082 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29084 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29085 as_fn_append ac_file_inputs
" '$ac_f'"
29088 # Let's still pretend it is `configure' which instantiates (i.e., don't
29089 # use $as_me), people would be surprised to read:
29090 # /* config.h. Generated by config.status. */
29091 configure_input
='Generated from '`
29092 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29094 if test x
"$ac_file" != x-
; then
29095 configure_input
="$ac_file. $configure_input"
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29097 $as_echo "$as_me: creating $ac_file" >&6;}
29099 # Neutralize special characters interpreted by sed in replacement strings.
29100 case $configure_input in #(
29101 *\
&* |
*\|
* |
*\\* )
29102 ac_sed_conf_input
=`$as_echo "$configure_input" |
29103 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29104 *) ac_sed_conf_input
=$configure_input;;
29108 *:-:* |
*:-) cat >"$tmp/stdin" \
29109 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29114 ac_dir
=`$as_dirname -- "$ac_file" ||
29115 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29116 X"$ac_file" : 'X\(//\)[^/]' \| \
29117 X"$ac_file" : 'X\(//\)$' \| \
29118 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29119 $as_echo X"$ac_file" |
29120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29124 /^X\(\/\/\)[^/].*/{
29137 as_dir
="$ac_dir"; as_fn_mkdir_p
29141 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29143 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29144 # A ".." for each directory in $ac_dir_suffix.
29145 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29146 case $ac_top_builddir_sub in
29147 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29148 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29151 ac_abs_top_builddir
=$ac_pwd
29152 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29153 # for backward compatibility:
29154 ac_top_builddir
=$ac_top_build_prefix
29157 .
) # We are building in place.
29159 ac_top_srcdir
=$ac_top_builddir_sub
29160 ac_abs_top_srcdir
=$ac_pwd ;;
29161 [\\/]* | ?
:[\\/]* ) # Absolute name.
29162 ac_srcdir
=$srcdir$ac_dir_suffix;
29163 ac_top_srcdir
=$srcdir
29164 ac_abs_top_srcdir
=$srcdir ;;
29165 *) # Relative name.
29166 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29167 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29168 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29170 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29182 # If the template does not know about datarootdir, expand it.
29183 # FIXME: This hack should be removed a few years after 2.60.
29184 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29196 *datarootdir
*) ac_datarootdir_seen
=yes;;
29197 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29202 ac_datarootdir_hack='
29203 s&@datadir@&$datadir&g
29204 s&@docdir@&$docdir&g
29205 s&@infodir@&$infodir&g
29206 s&@localedir@&$localedir&g
29207 s&@mandir@&$mandir&g
29208 s&\\\${datarootdir}&$datarootdir&g' ;;
29212 # Neutralize VPATH when `$srcdir' = `.'.
29213 # Shell code in configure.ac might set extrasub.
29214 # FIXME: do we really want to maintain this feature?
29215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29216 ac_sed_extra="$ac_vpsub
29219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29221 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29222 s|@configure_input@|
$ac_sed_conf_input|
;t t
29223 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29224 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29225 s
&@srcdir@
&$ac_srcdir&;t t
29226 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29227 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29228 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29229 s
&@builddir@
&$ac_builddir&;t t
29230 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29231 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29232 $ac_datarootdir_hack
29234 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29235 if $ac_cs_awk_getline; then
29236 $AWK -f "$tmp/subs.
awk"
29238 $AWK -f "$tmp/subs.
awk" | $SHELL
29240 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29242 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29243 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29244 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29246 which seems to be undefined. Please make sure it is defined." >&5
29247 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29248 which seems to be undefined. Please make sure it is defined." >&2;}
29252 -) cat "$tmp/out" && rm -f "$tmp/out";;
29253 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29255 || as_fn_error "could not create $ac_file" "$LINENO" 5
29261 if test x"$ac_file" != x-; then
29263 $as_echo "/* $configure_input */" \
29264 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29265 } >"$tmp/config.h" \
29266 || as_fn_error "could not create $ac_file" "$LINENO" 5
29267 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29269 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29272 mv "$tmp/config.h" "$ac_file" \
29273 || as_fn_error "could not create $ac_file" "$LINENO" 5
29276 $as_echo "/* $configure_input */" \
29277 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29278 || as_fn_error "could not create -" "$LINENO" 5
29282 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29283 $as_echo "$as_me: executing $ac_file commands" >&6;}
29288 case $ac_file$ac_mode in
29289 "as":F) chmod +x as ;;
29290 "collect-ld":F) chmod +x collect-ld ;;
29291 "nm":F) chmod +x nm ;;
29293 case ${CONFIG_HEADERS} in
29294 *auto-host.h:config.in*)
29297 # Make sure all the subdirs exist.
29298 for d in $subdirs doc build common c-family
29300 test -d $d || mkdir $d
29310 ac_clean_files=$ac_clean_files_save
29312 test $ac_write_fail = 0 ||
29313 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29316 # configure is writing to config.log, and then calls config.status.
29317 # config.status does its own redirection, appending to config.log.
29318 # Unfortunately, on DOS this fails, as config.log is still kept open
29319 # by configure, so config.status won't be able to
write to it
; its
29320 # output is simply discarded. So we exec the FD to /dev/null,
29321 # effectively closing config.log, so it can be properly (re)opened and
29322 # appended to by config.status. When coming back to configure, we
29323 # need to make the FD available again.
29324 if test "$no_create" != yes; then
29326 ac_config_status_args
=
29327 test "$silent" = yes &&
29328 ac_config_status_args
="$ac_config_status_args --quiet"
29330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29333 # would make configure fail if this is the last instruction.
29334 $ac_cs_success || as_fn_exit $?
29336 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29338 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}