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
726 NATIVE_SYSTEM_HEADER_DIR
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
762 SYSROOT_CFLAGS_FOR_TARGET
767 ENABLE_BUILD_WITH_CXX
770 valgrind_path_defines
844 program_transform_name
855 ac_subst_files
='option_includes
858 enable_option_checking
863 enable_generated_files_in_srcdir
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
885 with_native_system_header_dir
895 enable_sjlj_exceptions
897 enable_leading_mingw64_underscores
900 enable_win32_registry
906 enable_gnu_indirect_function
907 enable_initfini_array
909 enable_gnu_unique_object
910 enable_linker_build_id
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
917 enable_libquadmath_support
918 with_linker_hash_style
920 ac_precious_vars
='build_alias
941 # Initialize some variables set by options.
943 ac_init_version
=false
944 ac_unrecognized_opts
=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name
=s
,x
,x
,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir
='${exec_prefix}/bin'
970 sbindir
='${exec_prefix}/sbin'
971 libexecdir
='${exec_prefix}/libexec'
972 datarootdir
='${prefix}/share'
973 datadir
='${datarootdir}'
974 sysconfdir
='${prefix}/etc'
975 sharedstatedir
='${prefix}/com'
976 localstatedir
='${prefix}/var'
977 includedir
='${prefix}/include'
978 oldincludedir
='/usr/include'
979 docdir
='${datarootdir}/doc/${PACKAGE}'
980 infodir
='${datarootdir}/info'
985 libdir
='${exec_prefix}/lib'
986 localedir
='${datarootdir}/locale'
987 mandir
='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\
$ac_option
1001 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1013 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1014 bindir
=$ac_optarg ;;
1016 -build |
--build |
--buil |
--bui |
--bu)
1017 ac_prev
=build_alias
;;
1018 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1019 build_alias
=$ac_optarg ;;
1021 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1022 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1023 ac_prev
=cache_file
;;
1024 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1025 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1026 cache_file
=$ac_optarg ;;
1028 --config-cache |
-C)
1029 cache_file
=config.cache
;;
1031 -datadir |
--datadir |
--datadi |
--datad)
1033 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1034 datadir
=$ac_optarg ;;
1036 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1037 |
--dataroo |
--dataro |
--datar)
1038 ac_prev
=datarootdir
;;
1039 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1040 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1041 datarootdir
=$ac_optarg ;;
1043 -disable-* |
--disable-*)
1044 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1047 as_fn_error
"invalid feature name: $ac_useropt"
1048 ac_useropt_orig
=$ac_useropt
1049 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_
$ac_useropt"
1054 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep
=', ';;
1057 eval enable_
$ac_useropt=no
;;
1059 -docdir |
--docdir |
--docdi |
--doc |
--do)
1061 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1062 docdir
=$ac_optarg ;;
1064 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1066 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1067 dvidir
=$ac_optarg ;;
1069 -enable-* |
--enable-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error
"invalid feature name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_
$ac_useropt"
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval enable_
$ac_useropt=\
$ac_optarg ;;
1085 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1086 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1087 |
--exec |
--exe |
--ex)
1088 ac_prev
=exec_prefix
;;
1089 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1090 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1091 |
--exec=* |
--exe=* |
--ex=*)
1092 exec_prefix
=$ac_optarg ;;
1094 -gas |
--gas |
--ga |
--g)
1095 # Obsolete; use --with-gas.
1098 -help |
--help |
--hel |
--he |
-h)
1099 ac_init_help
=long
;;
1100 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1101 ac_init_help
=recursive
;;
1102 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1103 ac_init_help
=short
;;
1105 -host |
--host |
--hos |
--ho)
1106 ac_prev
=host_alias
;;
1107 -host=* |
--host=* |
--hos=* |
--ho=*)
1108 host_alias
=$ac_optarg ;;
1110 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1112 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1114 htmldir
=$ac_optarg ;;
1116 -includedir |
--includedir |
--includedi |
--included |
--include \
1117 |
--includ |
--inclu |
--incl |
--inc)
1118 ac_prev
=includedir
;;
1119 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1120 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1121 includedir
=$ac_optarg ;;
1123 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1125 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1126 infodir
=$ac_optarg ;;
1128 -libdir |
--libdir |
--libdi |
--libd)
1130 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1131 libdir
=$ac_optarg ;;
1133 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1134 |
--libexe |
--libex |
--libe)
1135 ac_prev
=libexecdir
;;
1136 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1137 |
--libexe=* |
--libex=* |
--libe=*)
1138 libexecdir
=$ac_optarg ;;
1140 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1141 ac_prev
=localedir
;;
1142 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1143 localedir
=$ac_optarg ;;
1145 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1146 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1147 ac_prev
=localstatedir
;;
1148 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1149 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1150 localstatedir
=$ac_optarg ;;
1152 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1154 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1155 mandir
=$ac_optarg ;;
1157 -nfp |
--nfp |
--nf)
1158 # Obsolete; use --without-fp.
1161 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1162 |
--no-cr |
--no-c |
-n)
1165 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1166 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1169 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1170 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1171 |
--oldin |
--oldi |
--old |
--ol |
--o)
1172 ac_prev
=oldincludedir
;;
1173 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1174 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1175 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1176 oldincludedir
=$ac_optarg ;;
1178 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1180 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1181 prefix
=$ac_optarg ;;
1183 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1184 |
--program-pre |
--program-pr |
--program-p)
1185 ac_prev
=program_prefix
;;
1186 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1187 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1188 program_prefix
=$ac_optarg ;;
1190 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1191 |
--program-suf |
--program-su |
--program-s)
1192 ac_prev
=program_suffix
;;
1193 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1194 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1195 program_suffix
=$ac_optarg ;;
1197 -program-transform-name |
--program-transform-name \
1198 |
--program-transform-nam |
--program-transform-na \
1199 |
--program-transform-n |
--program-transform- \
1200 |
--program-transform |
--program-transfor \
1201 |
--program-transfo |
--program-transf \
1202 |
--program-trans |
--program-tran \
1203 |
--progr-tra |
--program-tr |
--program-t)
1204 ac_prev
=program_transform_name
;;
1205 -program-transform-name=* |
--program-transform-name=* \
1206 |
--program-transform-nam=* |
--program-transform-na=* \
1207 |
--program-transform-n=* |
--program-transform-=* \
1208 |
--program-transform=* |
--program-transfor=* \
1209 |
--program-transfo=* |
--program-transf=* \
1210 |
--program-trans=* |
--program-tran=* \
1211 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1212 program_transform_name
=$ac_optarg ;;
1214 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1216 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1217 pdfdir
=$ac_optarg ;;
1219 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1221 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1224 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1225 |
-silent |
--silent |
--silen |
--sile |
--sil)
1228 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1230 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1232 sbindir
=$ac_optarg ;;
1234 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1235 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1236 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1238 ac_prev
=sharedstatedir
;;
1239 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1240 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1241 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1243 sharedstatedir
=$ac_optarg ;;
1245 -site |
--site |
--sit)
1247 -site=* |
--site=* |
--sit=*)
1250 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1252 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1253 srcdir
=$ac_optarg ;;
1255 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1256 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1257 ac_prev
=sysconfdir
;;
1258 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1259 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1260 sysconfdir
=$ac_optarg ;;
1262 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1263 ac_prev
=target_alias
;;
1264 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1265 target_alias
=$ac_optarg ;;
1267 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1270 -version |
--version |
--versio |
--versi |
--vers |
-V)
1271 ac_init_version
=: ;;
1274 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1277 as_fn_error
"invalid package name: $ac_useropt"
1278 ac_useropt_orig
=$ac_useropt
1279 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep
=', ';;
1287 eval with_
$ac_useropt=\
$ac_optarg ;;
1289 -without-* |
--without-*)
1290 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1293 as_fn_error
"invalid package name: $ac_useropt"
1294 ac_useropt_orig
=$ac_useropt
1295 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep
=', ';;
1303 eval with_
$ac_useropt=no
;;
1306 # Obsolete; use --with-x.
1309 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1310 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1311 ac_prev
=x_includes
;;
1312 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1313 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1314 x_includes
=$ac_optarg ;;
1316 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1317 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1318 ac_prev
=x_libraries
;;
1319 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1320 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1321 x_libraries
=$ac_optarg ;;
1323 -*) as_fn_error
"unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1328 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1332 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1334 eval $ac_envvar=\
$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error
"missing argument to $ac_option"
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1356 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 # Check all directory arguments for consistency.
1362 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val
=\$
$ac_var
1368 # Remove trailing slashes.
1371 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\
$ac_val;;
1374 # Be sure to have absolute directory names.
1376 [\\/$
]* | ?
:[\\/]* ) continue;;
1377 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1379 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1387 target
=$target_alias
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x
; then
1391 if test "x$build_alias" = x
; then
1392 cross_compiling
=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1403 test "$silent" = yes && exec 6>/dev
/null
1406 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di
=`ls -di .` &&
1408 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error
"working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error
"pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted
=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir
=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted
=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1450 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var
in $ac_precious_vars; do
1467 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1469 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures this package to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1543 --build=BUILD configure
for building on BUILD
[guessed
]
1544 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1545 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1549 if test -n "$ac_init_help"; then
1554 --disable-option-checking ignore unrecognized
--enable/--with options
1555 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1556 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files
in source dir intended
1559 for creating
source tarballs
for users without
1560 texinfo bison or flex
1561 --disable-largefile omit support
for large files
1562 --enable-werror-always enable -Werror despite compiler version
1563 --enable-checking[=LIST
]
1564 enable expensive run-time checks. With LIST
, enable
1565 only specific categories of checks. Categories are
:
1566 yes,no
,all
,none
,release. Flags are
:
1567 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1568 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1569 --enable-coverage[=LEVEL
]
1570 enable compiler
's code coverage collection. Use to
1571 measure compiler performance and locate unused parts
1572 of the compiler. With LEVEL, specify optimization.
1573 Values are opt, noopt, default is noopt
1574 --enable-gather-detailed-mem-stats
1575 enable detailed memory allocation stats gathering
1576 --enable-build-with-cxx build with C++ compiler instead of C compiler
1577 --enable-multilib enable library support for multiple ABIs
1578 --enable-__cxa_atexit enable __cxa_atexit for C++
1579 --enable-decimal-float={no,yes,bid,dpd}
1580 enable decimal float extension to C. Selecting 'bid
'
1581 or 'dpd
' choses which decimal floating point format
1583 --enable-fixed-point enable fixed-point arithmetic extension to C
1584 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1586 --enable-tls enable or disable generation of tls code overriding
1587 the assembler check for tls support
1588 --enable-objc-gc enable the use of Boehm's garbage collector with the
1589 GNU Objective-C runtime
1590 --disable-shared don
't provide a shared libgcc
1591 --enable-languages=LIST specify which front-ends to build
1592 --disable-rpath do not hardcode runtime library paths
1593 --enable-sjlj-exceptions
1594 arrange to use setjmp/longjmp exception handling
1595 --enable-secureplt enable -msecure-plt by default for PowerPC
1596 --enable-leading-mingw64-underscores
1597 enable leading underscores on 64 bit mingw targets
1598 --enable-cld enable -mcld by default for 32bit x86
1599 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1601 --disable-win32-registry
1602 disable lookup of installation paths in the Registry
1604 --enable-win32-registry enable registry lookup (default)
1605 --enable-win32-registry=KEY
1606 use KEY instead of GCC version as the last portion
1608 --enable-shared[=PKGS] build shared libraries [default=yes]
1609 --enable-static[=PKGS] build static libraries [default=yes]
1610 --enable-fast-install[=PKGS]
1611 optimize for fast installation [default=yes]
1612 --disable-libtool-lock avoid locking (might break parallel builds)
1613 --enable-gnu-indirect-function
1614 enable the use of the @gnu_indirect_function to
1616 --enable-initfini-array use .init_array/.fini_array sections
1617 --enable-comdat enable COMDAT group support
1618 --enable-gnu-unique-object
1619 enable the use of the @gnu_unique_object ELF
1620 extension on glibc systems
1621 --enable-linker-build-id
1622 compiler will always pass --build-id to linker
1623 --enable-maintainer-mode
1624 enable make rules and dependencies not useful (and
1625 sometimes confusing) to the casual installer
1626 --enable-version-specific-runtime-libs
1627 specify that runtime libraries should be installed
1628 in a compiler-specific directory
1629 --enable-plugin enable plugin support
1630 --disable-libquadmath-support
1631 disable libquadmath support for Fortran
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1636 --with-build-libsubdir=DIR Directory where to find libraries for build system
1637 --with-local-prefix=DIR specifies directory to put local include
1638 --with-gxx-include-dir=DIR
1639 specifies directory to put g++ header files
1640 --with-cpp-install-dir=DIR
1641 install the user visible C preprocessor in DIR
1642 (relative to PREFIX) as well as PREFIX/bin
1643 --with-gnu-ld arrange to work with GNU ld
1644 --with-ld arrange to use the specified ld (full pathname)
1645 --with-demangler-in-ld try to use demangler in GNU ld
1646 --with-gnu-as arrange to work with GNU as
1647 --with-as arrange to use the specified as (full pathname)
1648 --with-stabs arrange to use stabs instead of host debug format
1649 --with-dwarf2 force the default debug format to be DWARF 2
1650 --with-native-system-header-dir=dir
1651 use dir as the directory to look for standard
1652 system header files in. Defaults to /usr/include.
1653 --with-build-sysroot=sysroot
1654 use sysroot as the system root during the build
1655 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1656 --with-specs=SPECS add SPECS to driver command-line processing
1657 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1658 --with-bugurl=URL Direct users to URL to report a bug
1659 --with-multilib-list select multilibs (SH and x86-64 only)
1660 --with-gnu-ld assume the C compiler uses GNU ld default=no
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1663 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1665 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1666 --with-plugin-ld=[ARG
] specify the plugin linker
1667 --with-long-double-128 use
128-bit long double by default
1668 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1670 --with-system-zlib use installed libz
1671 --with-linker-hash-style={sysv
,gnu
,both
}
1672 specify the linker
hash style
1674 Some influential environment variables
:
1675 CC C compiler
command
1676 CFLAGS C compiler flags
1677 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1678 nonstandard directory
<lib dir
>
1679 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1680 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1681 you have headers
in a nonstandard directory
<include dir
>
1682 CXX C
++ compiler
command
1683 CXXFLAGS C
++ compiler flags
1685 CXXCPP C
++ preprocessor
1686 GMPLIBS How to link GMP
1687 GMPINC How to
find GMP include files
1688 PPLLIBS How to link PPL
1689 PPLINC How to
find PPL include files
1690 CLOOGLIBS How to link CLOOG
1691 CLOOGINC How to
find CLOOG include files
1693 Use these variables to override the choices made by
`configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1696 Report bugs to the package provider.
1701 if test "$ac_init_help" = "recursive"; then
1702 # If there are subdirs, report their specific --help.
1703 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704 test -d "$ac_dir" ||
1705 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1713 # A ".." for each directory in $ac_dir_suffix.
1714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1715 case $ac_top_builddir_sub in
1716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1726 .) # We are building in place.
1728 ac_top_srcdir=$ac_top_builddir_sub
1729 ac_abs_top_srcdir=$ac_pwd ;;
1730 [\\/]* | ?:[\\/]* ) # Absolute name.
1731 ac_srcdir=$srcdir$ac_dir_suffix;
1732 ac_top_srcdir=$srcdir
1733 ac_abs_top_srcdir=$srcdir ;;
1735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736 ac_top_srcdir=$ac_top_build_prefix$srcdir
1737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741 cd "$ac_dir" || { ac_status=$?; continue; }
1742 # Check for guested configure.
1743 if test -f "$ac_srcdir/configure.gnu"; then
1745 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746 elif test -f "$ac_srcdir/configure"; then
1748 $SHELL "$ac_srcdir/configure" --help=recursive
1750 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 cd "$ac_pwd" || { ac_status=$?; break; }
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1760 generated by GNU Autoconf 2.64
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext
1780 if { { ac_try="$ac_compile"
1782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1783 *) ac_try_echo
=$ac_try;;
1785 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_compile") 2>conftest.err
1789 if test -s conftest.err
; then
1790 grep -v '^ *+' conftest.err
>conftest.er1
1791 cat conftest.er1
>&5
1792 mv -f conftest.er1 conftest.err
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest.
$ac_objext; then :
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.
$ac_ext >&5
1806 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1809 } # ac_fn_c_try_compile
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile
()
1816 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1817 rm -f conftest.
$ac_objext
1818 if { { ac_try
="$ac_compile"
1820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_cxx_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_cxx_try_compile
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1858 *) ac_try_echo
=$ac_try;;
1860 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 if test -s conftest.err
; then
1865 grep -v '^ *+' conftest.err
>conftest.er1
1866 cat conftest.er1
>&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev
/null
&& {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.
$ac_ext >&5
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1891 ac_fn_c_check_header_mongrel
()
1893 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1894 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1912 if ac_fn_c_try_compile
"$LINENO"; then :
1913 ac_header_compiler
=yes
1915 ac_header_compiler
=no
1917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1928 if ac_fn_c_try_cpp
"$LINENO"; then :
1929 ac_header_preproc
=yes
1931 ac_header_preproc
=no
1933 rm -f conftest.err conftest.
$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1963 eval "$3=\$ac_header_compiler"
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1971 } # ac_fn_c_check_header_mongrel
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1979 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1980 if { { ac_try
="$ac_link"
1982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1993 *) ac_try_echo
=$ac_try;;
1995 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.
$ac_ext >&5
2007 ac_retval
=$ac_status
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile
()
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2044 } # ac_fn_c_check_header_compile
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 ac_fn_c_compute_int
()
2053 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2054 if test "$cross_compiling" = yes; then
2055 # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2069 if ac_fn_c_try_compile
"$LINENO"; then :
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2086 ac_hi
=$ac_mid; break
2088 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2089 if test $ac_lo -le $ac_mid; then
2093 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) < 0)];
2111 if ac_fn_c_try_compile
"$LINENO"; then :
2114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2127 if ac_fn_c_try_compile
"$LINENO"; then :
2128 ac_lo
=$ac_mid; break
2130 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2131 if test $ac_mid -le $ac_hi; then
2135 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2164 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2184 FILE *f = fopen ("conftest.val", "w");
2189 long int i = longval ();
2192 fprintf (f, "%ld", i);
2196 unsigned long int i = ulongval ();
2199 fprintf (f, "%lu", i);
2201 /* Do not output a trailing newline, as this causes \r\n confusion
2202 on some platforms. */
2203 return ferror (f) || fclose (f) != 0;
2209 if ac_fn_c_try_run
"$LINENO"; then :
2210 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2214 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2215 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2222 } # ac_fn_c_compute_int
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type
()
2230 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2249 if ac_fn_c_try_compile
"$LINENO"; then :
2250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2262 if ac_fn_c_try_compile
"$LINENO"; then :
2267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2276 } # ac_fn_c_check_type
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 ac_fn_c_find_intX_t
()
2284 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2291 for ac_type
in int
$2_t 'int' 'long int' \
2292 'long long int' 'short int' 'signed char'; do
2293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2306 if ac_fn_c_try_compile
"$LINENO"; then :
2307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2321 if ac_fn_c_try_compile
"$LINENO"; then :
2328 eval "$3=\$ac_type" ;;
2331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2335 if test "x$as_val" = x
""no
; then :
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2347 } # ac_fn_c_find_intX_t
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2354 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2355 rm -f conftest.
$ac_objext conftest
$ac_exeext
2356 if { { ac_try
="$ac_link"
2358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>conftest.err
2365 if test -s conftest.err; then
2366 grep -v '^ *+' conftest.err >conftest.er1
2367 cat conftest.er1 >&5
2368 mv -f conftest.er1 conftest.err
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && {
2372 test -z "$ac_c_werror_flag" ||
2373 test ! -s conftest.err
2374 } && test -s conftest$ac_exeext && {
2375 test "$cross_compiling" = yes ||
2376 $as_test_x conftest$ac_exeext
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387 # interfere with the next link command; also delete a directory that is
2388 # left behind by Apple's compiler. We do this before executing the actions.
2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 } # ac_fn_c_try_link
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 ac_fn_c_find_uintX_t ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2408 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2423 if ac_fn_c_try_compile "$LINENO"; then :
2428 eval "$3=\$ac_type" ;;
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 if test "x$as_val" = x""no; then :
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_find_uintX_t
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2467 rm -f conftest.err conftest.$ac_ext
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_check_header_preproc
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2485 *) ac_try_echo
=$ac_try;;
2487 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491 if test -s conftest.err
; then
2492 grep -v '^ *+' conftest.err
>conftest.er1
2493 cat conftest.er1
>&5
2494 mv -f conftest.er1 conftest.err
2496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; } >/dev
/null
&& {
2498 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499 test ! -s conftest.err
2503 $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.
$ac_ext >&5
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2511 } # ac_fn_cxx_try_cpp
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc
()
2518 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2528 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2533 rm -f conftest.err conftest.
$ac_ext
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2540 } # ac_fn_cxx_check_header_preproc
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func
()
2547 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2557 #define $2 innocuous_$2
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char $2 (); below.
2561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562 <limits.h> exists even on freestanding compilers. */
2565 # include <limits.h>
2567 # include <assert.h>
2572 /* Override any GCC internal prototype to avoid an error.
2573 Use char because int might match the return type of a GCC
2574 builtin and then its argument prototype would still apply. */
2579 /* The GNU C library defines this for functions which it implements
2580 to always fail with ENOSYS. Some functions are actually named
2581 something starting with __ and the normal name is an alias. */
2582 #if defined __stub_$2 || defined __stub___$2
2594 if ac_fn_c_try_link
"$LINENO"; then :
2599 rm -f core conftest.err conftest.
$ac_objext \
2600 conftest
$ac_exeext conftest.
$ac_ext
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2607 } # ac_fn_c_check_func
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link
()
2614 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2615 rm -f conftest.
$ac_objext conftest
$ac_exeext
2616 if { { ac_try
="$ac_link"
2618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623 (eval "$ac_link") 2>conftest.err
2625 if test -s conftest.err; then
2626 grep -v '^ *+' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2628 mv -f conftest.er1 conftest.err
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; } && {
2632 test -z "$ac_cxx_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest$ac_exeext && {
2635 test "$cross_compiling" = yes ||
2636 $as_test_x conftest$ac_exeext
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647 # interfere with the next link command; also delete a directory that is
2648 # left behind by Apple's compiler. We do this before executing the actions.
2649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64. Invocation command line was
2671 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2672 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2673 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2674 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2675 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2677 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2678 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2680 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2681 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2682 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2683 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2684 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2685 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2686 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 $as_echo "PATH: $as_dir"
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2719 ac_must_keep_next=false
2725 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727 | -silent | --silent | --silen | --sile | --sil)
2730 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2733 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735 as_fn_append ac_configure_args1 " '$ac_arg'"
2736 if test $ac_must_keep_next = true; then
2737 ac_must_keep_next=false # Got value, back to normal.
2740 *=* | --config-cache | -C | -disable-* | --disable-* \
2741 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743 | -with-* | --with-* | -without-* | --without-* | --x)
2744 case "$ac_configure_args0 " in
2745 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2748 -* ) ac_must_keep_next=true ;;
2751 as_fn_append ac_configure_args " '$ac_arg'"
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log. We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765 # Save into config.log some information that might help in debugging.
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2775 # The following way of writing the cache mishandles newlines in values,
2777 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2778 eval ac_val=\$$ac_var
2782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2786 _ | IFS | as_nl) ;; #(
2787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788 *) { eval $ac_var=; unset $ac_var;} ;;
2793 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2794 *${as_nl}ac_space=\ *)
2796 "s/'\''/'\''\\\\'\'''\''/g;
2797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2813 for ac_var in $ac_subst_vars
2815 eval ac_val=\$$ac_var
2817 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 $as_echo "$ac_var='\''$ac_val'\''"
2823 if test -n "$ac_subst_files"; then
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2830 for ac_var in $ac_subst_files
2832 eval ac_val=\$$ac_var
2834 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 $as_echo "$ac_var='\''$ac_val'\''"
2841 if test -s confdefs.h; then
2851 test "$ac_signal" != 0 &&
2852 $as_echo "$as_me: caught signal $ac_signal"
2853 $as_echo "$as_me: exit $exit_status"
2855 rm -f core *.core core.conftest.* &&
2856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2859 for ac_signal in 1 2 13 15; do
2860 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2867 $as_echo "/* confdefs.h */" > confdefs.h
2869 # Predefined preprocessor variables.
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2900 if test -n "$CONFIG_SITE"; then
2901 ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903 ac_site_file1=$prefix/share/config.site
2904 ac_site_file2=$prefix/etc/config.site
2906 ac_site_file1=$ac_default_prefix/share/config.site
2907 ac_site_file2=$ac_default_prefix/etc/config.site
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911 test "x$ac_site_file" = xNONE && continue
2912 if test -r "$ac_site_file"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915 sed 's/^/| /' "$ac_site_file" >&5
2920 if test -r "$cache_file"; then
2921 # Some versions of bash will fail to source /dev/null (special
2922 # files actually), so we avoid doing that.
2923 if test -f "$cache_file"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928 *) . "./$cache_file";;
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2937 # Check that the precious variables saved in the cache have kept the same
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2948 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2952 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x
$ac_old_val`
2959 ac_new_val_w=`echo x
$ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2963 ac_cache_corrupted=:
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3012 gcc_version=`cat $srcdir/BASE-VER
`
3014 # Determine the host, build, and target systems
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017 for ac_t in install-sh install.sh shtool; do
3018 if test -f "$ac_dir/$ac_t"; then
3020 ac_install_sh="$ac_aux_dir/$ac_t -c"
3025 if test -z "$ac_aux_dir"; then
3026 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3047 ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3063 ac_save_IFS=$IFS; IFS='-'
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3073 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3081 if test "x$host_alias" = x; then
3082 ac_cv_host=$ac_cv_build
3084 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3096 ac_save_IFS=$IFS; IFS='-'
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3106 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3114 if test "x$target_alias" = x; then
3115 ac_cv_target=$ac_cv_host
3117 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3139 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145 test "$program_prefix$program_suffix$program_transform_name" = \
3147 program_prefix=${target_alias}-
3149 # Determine the noncanonical target name, for directory use.
3150 case ${build_alias} in
3151 "") build_noncanonical=${build} ;;
3152 *) build_noncanonical=${build_alias} ;;
3155 case ${host_alias} in
3156 "") host_noncanonical=${build_noncanonical} ;;
3157 *) host_noncanonical=${host_alias} ;;
3160 case ${target_alias} in
3161 "") target_noncanonical=${host_noncanonical} ;;
3162 *) target_noncanonical=${target_alias} ;;
3168 # Determine the target- and build-specific subdirectories
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184 withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 build_libsubdir="$build_subdir"
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191 || test -d $srcdir/../host-${host_noncanonical}; then
3192 host_subdir="host-${host_noncanonical}"
3197 target_subdir=${target_noncanonical}
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s
,x
,x
', remove it if useless.
3208 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224 library_path_setting="contains current directory"
3227 library_path_setting="ok"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again.
" "$LINENO" 5
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX contains the current directory if one of the following
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 gcc_exec_prefix_setting="contains current directory
"
3253 gcc_exec_prefix_setting="ok
"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok
"; then
3260 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3269 # Specify the local prefix
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274 withval=$with_local_prefix; case "${withval}" in
3275 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 *) local_prefix=$with_local_prefix ;;
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284 local_prefix=/usr/local
3287 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir
=
3291 # Specify the g++ header file directory
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295 withval
=$with_gxx_include_dir; case "${withval}" in
3296 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x
${gcc_gxx_include_dir} = x
; then
3305 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3306 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3308 libstdcxx_incdir
='include/c++/$(version)'
3309 if test x
$host != x
$target; then
3310 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3312 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3316 gcc_gxx_include_dir_add_sysroot
=0
3317 if test "${with_sysroot+set}" = set; then
3318 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3319 if test "${gcc_gxx_without_sysroot}"; then
3320 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3321 gcc_gxx_include_dir_add_sysroot
=1
3326 # Check whether --with-cpp_install_dir was given.
3327 if test "${with_cpp_install_dir+set}" = set; then :
3328 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3329 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3330 elif test x
$withval != xno
; then
3331 cpp_install_dir
=$withval
3336 # We would like to our source tree to be readonly. However when releases or
3337 # pre-releases are generated, the flex/bison generated files as well as the
3338 # various formats of manuals need to be included along with the rest of the
3339 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3343 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3344 # Check whether --enable-generated-files-in-srcdir was given.
3345 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3346 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3348 generated_files_in_srcdir
=no
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3353 $as_echo "$generated_files_in_srcdir" >&6; }
3355 if test "$generated_files_in_srcdir" = "yes"; then
3362 # -------------------
3363 # Find default linker
3364 # -------------------
3368 # Check whether --with-gnu-ld was given.
3369 if test "${with_gnu_ld+set}" = set; then :
3370 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3376 # With pre-defined ld
3378 # Check whether --with-ld was given.
3379 if test "${with_ld+set}" = set; then :
3380 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3383 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3384 if test ! -x "$DEFAULT_LINKER"; then
3385 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3386 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3390 cat >>confdefs.h
<<_ACEOF
3391 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3396 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3398 cat >>confdefs.h
<<_ACEOF
3399 #define HAVE_GNU_LD $gnu_ld
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3404 $as_echo_n "checking whether a default linker was specified... " >&6; }
3405 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3406 if test x
"$gnu_ld_flag" = x
"no"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3408 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3411 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3418 # With demangler in GNU ld
3420 # Check whether --with-demangler-in-ld was given.
3421 if test "${with_demangler_in_ld+set}" = set; then :
3422 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3428 # ----------------------
3429 # Find default assembler
3430 # ----------------------
3434 # Check whether --with-gnu-as was given.
3435 if test "${with_gnu_as+set}" = set; then :
3436 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3443 # Check whether --with-as was given.
3444 if test "${with_as+set}" = set; then :
3445 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3448 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3449 if test ! -x "$DEFAULT_ASSEMBLER"; then
3450 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3451 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3455 cat >>confdefs.h
<<_ACEOF
3456 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3461 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3463 cat >>confdefs.h
<<_ACEOF
3464 #define HAVE_GNU_AS $gnu_as
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3469 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3470 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3471 if test x
"$gas_flag" = x
"no"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3473 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3487 # If a non-executable a.out is present (e.g. created by GNU as above even if
3488 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3489 # file, even when creating an executable, so an execution test fails.
3490 # Remove possible default executable files to avoid this.
3492 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3493 # Autoconf includes it.
3494 rm -f a.out a.exe b.out
3496 # Find the native compiler
3498 ac_cpp
='$CPP $CPPFLAGS'
3499 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC
="$CC" # Let the user override the test.
3513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir
=.
3518 for ac_exec_ext
in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3541 if test -z "$ac_cv_prog_CC"; then
3543 # Extract the first word of "gcc", so it can be a program name with args.
3544 set dummy gcc
; ac_word
=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir
=.
3558 for ac_exec_ext
in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC
="gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3579 if test "x$ac_ct_CC" = x
; then
3582 case $cross_compiling:$ac_tool_warned in
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned
=yes ;;
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3597 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC
="$CC" # Let the user override the test.
3606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3610 test -z "$as_dir" && as_dir
=.
3611 for ac_exec_ext
in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3635 if test -z "$CC"; then
3636 # Extract the first word of "cc", so it can be a program name with args.
3637 set dummy cc
; ac_word
=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC
="$CC" # Let the user override the test.
3647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3651 test -z "$as_dir" && as_dir
=.
3652 for ac_exec_ext
in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected
=yes
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy
$ac_cv_prog_CC
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3675 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog
in cl.exe
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC
="$CC" # Let the user override the test.
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_exec_ext
in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$CC" && break
3735 if test -z "$CC"; then
3737 for ac_prog
in cl.exe
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy
$ac_prog; ac_word
=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3746 if test -n "$ac_ct_CC"; then
3747 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir
=.
3754 for ac_exec_ext
in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_ac_ct_CC
="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 $as_echo "$ac_ct_CC" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3776 test -n "$ac_ct_CC" && break
3779 if test "x$ac_ct_CC" = x
; then
3782 case $cross_compiling:$ac_tool_warned in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned
=yes ;;
3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error
"no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." "$LINENO" 5; }
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3804 for ac_option
in --version -v -V -qversion; do
3805 { { ac_try
="$ac_compiler $ac_option >&5"
3807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3814 if test -s conftest.err; then
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3836 ac_clean_files_save=$ac_clean_files
3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3838 # Try to create an executable without -o first, disregard a.out.
3839 # It will help us diagnose broken compilers, and finding out an intuition
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
3843 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3845 # The possible output files:
3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3849 for ac_file in $ac_files
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3858 if { { ac_try="$ac_link_default"
3860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3861 *) ac_try_echo
=$ac_try;;
3863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link_default") 2>&5
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3872 # so that the user can short-circuit this test for compilers unknown to
3874 for ac_file
in $ac_files ''
3876 test -f "$ac_file" ||
continue
3878 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3881 # We found the default executable, but exeext='' is most
3885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3887 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 # We set ac_cv_exeext here because the later test for it is not
3890 # safe: cross compilers may not add the suffix if given an `-o'
3891 # argument, so we may need to know it at that point already.
3892 # Even if this section looks crufty: it has the advantage of
3899 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905 $as_echo "$ac_file" >&6; }
3906 if test -z "$ac_file"; then :
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.
$ac_ext >&5
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 { as_fn_set_status
77
3913 as_fn_error
"C compiler cannot create executables
3914 See \`config.log' for more details." "$LINENO" 5; }; }
3916 ac_exeext
=$ac_cv_exeext
3918 # Check that the compiler produces executables we can run. If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 # If not cross compiling, check that we can run a simple program.
3923 if test "$cross_compiling" != yes; then
3924 if { ac_try
='./$ac_file'
3925 { { case "(($ac_try" in
3926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3937 if test "$cross_compiling" = maybe; then
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot run C compiled programs.
3943 If you meant to cross compile
, use \
`--host'.
3944 See \`config.log
' for more details." "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3977 for ac_file
in conftest.exe conftest conftest.
*; do
3978 test -f "$ac_file" ||
continue
3980 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3981 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details." "$LINENO" 5; }
3992 rm -f conftest
$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3996 rm -f conftest.
$ac_ext
3997 EXEEXT
=$ac_cv_exeext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if test "${ac_cv_objext+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try
="$ac_compile"
4018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "cannot compute suffix of object files
: cannot compile
4042 See \
`config.log' for more details." "$LINENO" 5; }
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if test "${ac_cv_prog_cc_g+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 if ac_fn_c_try_compile "$LINENO"; then :
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4138 if ac_fn_c_try_compile "$LINENO"; then :
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4159 if test "$GCC" = yes; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4170 ac_cv_prog_cc_c89=no
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4192 s = g (p, va_arg (v,int));
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4235 rm -f conftest.$ac_ext
4240 case "x$ac_cv_prog_cc_c89" in
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 if test "x$CC" != xcc; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4264 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4267 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4269 set dummy $CC; ac_cc=`$as_echo "$2" |
4270 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4271 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4272 $as_echo_n "(cached) " >&6
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4285 # Make sure it works both with $CC and with simple cc.
4286 # We do the test twice because some compilers refuse to overwrite an
4287 # existing .o file with -o, though they will create one.
4288 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4290 if { { case "(($ac_try" in
4291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4292 *) ac_try_echo
=$ac_try;;
4294 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; } &&
4300 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; };
4311 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4312 if test "x$CC" != xcc; then
4313 # Test first that cc exists at all.
4314 if { ac_try='cc -c conftest.$ac_ext >&5'
4315 { { case "(($ac_try" in
4316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4317 *) ac_try_echo
=$ac_try;;
4319 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_try") 2>&5
4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324 test $ac_status = 0; }; }; then
4325 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4327 if { { case "(($ac_try" in
4328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; } &&
4337 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4339 *) ac_try_echo
=$ac_try;;
4341 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 $as_echo "$ac_try_echo"; } >&5
4343 (eval "$ac_try") 2>&5
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; };
4351 # cc exists but doesn't like -o.
4352 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4357 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4359 rm -f core conftest
*
4362 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4364 $as_echo "yes" >&6; }
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4369 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4373 # expand $ac_aux_dir to an absolute path
4374 am_aux_dir
=`cd $ac_aux_dir && pwd`
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4379 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC
="$am_aux_dir/compile $CC"
4392 ac_cpp
='$CXXCPP $CPPFLAGS'
4393 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4396 if test -z "$CXX"; then
4397 if test -n "$CCC"; then
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if test "${ac_cv_prog_CXX+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -n "$CXX"; then
4411 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir
=.
4418 for ac_exec_ext
in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 if test -n "$CXX"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4433 $as_echo "$CXX" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$CXX" && break
4443 if test -z "$CXX"; then
4445 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy
$ac_prog; ac_word
=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -n "$ac_ct_CXX"; then
4455 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir
=.
4462 for ac_exec_ext
in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4475 if test -n "$ac_ct_CXX"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4477 $as_echo "$ac_ct_CXX" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4484 test -n "$ac_ct_CXX" && break
4487 if test "x$ac_ct_CXX" = x
; then
4490 case $cross_compiling:$ac_tool_warned in
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned
=yes ;;
4502 # Provide some information about the compiler.
4503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4506 for ac_option
in --version -v -V -qversion; do
4507 { { ac_try
="$ac_compiler $ac_option >&5"
4509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4516 if test -s conftest.err; then
4518 ... rest of stderr output deleted ...
4519 10q' conftest.err >conftest.er1
4520 cat conftest.er1 >&5
4521 rm -f conftest.er1 conftest.err
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4529 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4557 if test $ac_compiler_gnu = yes; then
4562 ac_test_CXXFLAGS=${CXXFLAGS+set}
4563 ac_save_CXXFLAGS=$CXXFLAGS
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4566 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4570 ac_cxx_werror_flag=yes
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4585 ac_cv_prog_cxx_g=yes
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4615 if ac_fn_cxx_try_compile "$LINENO"; then :
4616 ac_cv_prog_cxx_g=yes
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4627 if test "$ac_test_CXXFLAGS" = set; then
4628 CXXFLAGS=$ac_save_CXXFLAGS
4629 elif test $ac_cv_prog_cxx_g = yes; then
4630 if test "$GXX" = yes; then
4636 if test "$GXX" = yes; then
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4659 if test -n "$GNATBIND"; then
4660 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 GNATBIND=$ac_cv_prog_GNATBIND
4680 if test -n "$GNATBIND"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4682 $as_echo "$GNATBIND" >&6; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4690 if test -z "$ac_cv_prog_GNATBIND"; then
4691 ac_ct_GNATBIND=$GNATBIND
4692 # Extract the first word of "gnatbind", so it can be a program name with args.
4693 set dummy gnatbind; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -n "$ac_ct_GNATBIND"; then
4700 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4720 if test -n "$ac_ct_GNATBIND"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4722 $as_echo "$ac_ct_GNATBIND" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4728 if test "x$ac_ct_GNATBIND" = x; then
4731 case $cross_compiling:$ac_tool_warned in
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4737 GNATBIND=$ac_ct_GNATBIND
4740 GNATBIND="$ac_cv_prog_GNATBIND"
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4751 if test -n "$GNATMAKE"; then
4752 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 GNATMAKE=$ac_cv_prog_GNATMAKE
4772 if test -n "$GNATMAKE"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4774 $as_echo "$GNATMAKE" >&6; }
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4782 if test -z "$ac_cv_prog_GNATMAKE"; then
4783 ac_ct_GNATMAKE=$GNATMAKE
4784 # Extract the first word of "gnatmake", so it can be a program name with args.
4785 set dummy gnatmake; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4791 if test -n "$ac_ct_GNATMAKE"; then
4792 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4812 if test -n "$ac_ct_GNATMAKE"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4814 $as_echo "$ac_ct_GNATMAKE" >&6; }
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4820 if test "x$ac_ct_GNATMAKE" = x; then
4823 case $cross_compiling:$ac_tool_warned in
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4829 GNATMAKE=$ac_ct_GNATMAKE
4832 GNATMAKE="$ac_cv_prog_GNATMAKE"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4836 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4837 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4840 cat >conftest.adb <<EOF
4841 procedure conftest is begin null; end conftest;
4843 acx_cv_cc_gcc_supports_ada=no
4844 # There is a bug in old released versions of GCC which causes the
4845 # driver to exit successfully when the appropriate language module
4846 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4847 # Therefore we must check for the error message as well as an
4848 # unsuccessful exit.
4849 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4850 # given a .adb file, but produce no object file. So we must check
4851 # if an object file was really produced to guard against this.
4852 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4853 if test x"$errors" = x && test -f conftest.$ac_objext; then
4854 acx_cv_cc_gcc_supports_ada=yes
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4859 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4861 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4868 # autoconf is lame and doesn't give us any substitution variable for this.
4869 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4870 NO_MINUS_C_MINUS_O=yes
4872 OUTPUT_OPTION='-o $@'
4877 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4878 # optimizations to be activated explicitly by the toplevel.
4880 */prev-gcc/xgcc*) ;;
4881 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4885 # Determine PICFLAG for target gnatlib.
4891 # PIC is the default on some targets or must not be used.
4893 # PIC is the default on this platform
4894 # Common symbols not allowed in MH_DYLIB files
4895 PICFLAG_FOR_TARGET=-fno-common
4898 # PIC is the default.
4901 # PIC is the default for 64-bit PA HP-UX.
4903 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4905 i[34567]86-*-interix[3-9]*)
4906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4907 # Instead, we relocate shared libraries at runtime.
4909 i[34567]86-*-nto-qnx*)
4910 # QNX uses GNU C++, but need to define -shared option too, otherwise
4912 PICFLAG_FOR_TARGET='-fPIC -shared'
4914 i[34567]86-pc-msdosdjgpp*)
4915 # DJGPP does not support shared libraries at all.
4918 # On IA64 HP-UX, PIC is the default but the pic flag
4919 # sets the default TLS model and affects inlining.
4920 PICFLAG_FOR_TARGET=-fPIC
4923 # PIC is the default.
4925 rs6000-ibm-aix* | powerpc-ibm-aix*)
4926 # All AIX code is PIC.
4929 # Some targets support both -fPIC and -fpic, but prefer the latter.
4931 i[34567]86-*-* | x86_64-*-*)
4932 PICFLAG_FOR_TARGET=-fpic
4935 PICFLAG_FOR_TARGET=-fpic
4937 # FIXME: Override -fPIC default in libgcc only?
4938 sh-*-linux* | sh[2346lbe]*-*-linux*)
4939 PICFLAG_FOR_TARGET=-fpic
4941 # FIXME: Simplify to sh*-*-netbsd*?
4942 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4943 sh64-*-netbsd* | sh64l*-*-netbsd*)
4944 PICFLAG_FOR_TARGET=-fpic
4946 # Default to -fPIC unless specified otherwise.
4948 PICFLAG_FOR_TARGET=-fPIC
4952 # If the user explicitly uses -fpic/-fPIC, keep that.
4953 case "${CFLAGS_FOR_TARGET}" in
4955 PICFLAG_FOR_TARGET=-fpic
4958 PICFLAG_FOR_TARGET=-fPIC
4964 # -------------------------
4965 # Check C compiler features
4966 # -------------------------
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4975 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4976 # On Suns, sometimes $CPP names a directory.
4977 if test -n "$CPP" && test -d "$CPP"; then
4980 if test -z "$CPP"; then
4981 if test "${ac_cv_prog_CPP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4984 # Double quotes because CPP needs to be expanded
4985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4988 for ac_c_preproc_warn_flag in '' yes
4990 # Use a header file that comes with gcc, so configuring glibc
4991 # with a fresh cross-compiler works.
4992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
4994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4999 # include <limits.h>
5001 # include <assert.h>
5005 if ac_fn_c_try_cpp "$LINENO"; then :
5008 # Broken: fails on valid input.
5011 rm -f conftest.err conftest.$ac_ext
5013 # OK, works on sane cases. Now check whether nonexistent headers
5014 # can be detected and how.
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 #include <ac_nonexistent.h>
5019 if ac_fn_c_try_cpp "$LINENO"; then :
5020 # Broken: success on invalid input.
5023 # Passes both tests.
5027 rm -f conftest.err conftest.$ac_ext
5030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031 rm -f conftest.err conftest.
$ac_ext
5032 if $ac_preproc_ok; then :
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5045 $as_echo "$CPP" >&6; }
5047 for ac_c_preproc_warn_flag
in '' yes
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5058 # include <limits.h>
5060 # include <assert.h>
5064 if ac_fn_c_try_cpp
"$LINENO"; then :
5067 # Broken: fails on valid input.
5070 rm -f conftest.err conftest.
$ac_ext
5072 # OK, works on sane cases. Now check whether nonexistent headers
5073 # can be detected and how.
5074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #include <ac_nonexistent.h>
5078 if ac_fn_c_try_cpp
"$LINENO"; then :
5079 # Broken: success on invalid input.
5082 # Passes both tests.
5086 rm -f conftest.err conftest.
$ac_ext
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.
$ac_ext
5091 if $ac_preproc_ok; then :
5094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5096 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5097 See \`config.log' for more details." "$LINENO" 5; }
5101 ac_cpp
='$CPP $CPPFLAGS'
5102 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5109 if test "${ac_cv_path_GREP+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5112 if test -z "$GREP"; then
5113 ac_path_GREP_found
=false
5114 # Loop through the user's path and test for each of PROGNAME-LIST
5115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5116 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5119 test -z "$as_dir" && as_dir
=.
5120 for ac_prog
in grep ggrep
; do
5121 for ac_exec_ext
in '' $ac_executable_extensions; do
5122 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5123 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5124 # Check for GNU ac_path_GREP and select it if it is found.
5125 # Check for GNU $ac_path_GREP
5126 case `"$ac_path_GREP" --version 2>&1` in
5128 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5131 $as_echo_n 0123456789 >"conftest.in"
5134 cat "conftest.in" "conftest.in" >"conftest.tmp"
5135 mv "conftest.tmp" "conftest.in"
5136 cp "conftest.in" "conftest.nl"
5137 $as_echo 'GREP' >> "conftest.nl"
5138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5139 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5140 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5142 # Best one so far, save it but keep looking for a better one
5143 ac_cv_path_GREP
="$ac_path_GREP"
5144 ac_path_GREP_max
=$ac_count
5146 # 10*(2^10) chars as input seems more than enough
5147 test $ac_count -gt 10 && break
5149 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5152 $ac_path_GREP_found && break 3
5157 if test -z "$ac_cv_path_GREP"; then
5158 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5161 ac_cv_path_GREP
=$GREP
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5166 $as_echo "$ac_cv_path_GREP" >&6; }
5167 GREP
="$ac_cv_path_GREP"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5171 $as_echo_n "checking for egrep... " >&6; }
5172 if test "${ac_cv_path_EGREP+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5175 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5176 then ac_cv_path_EGREP
="$GREP -E"
5178 if test -z "$EGREP"; then
5179 ac_path_EGREP_found
=false
5180 # Loop through the user's path and test for each of PROGNAME-LIST
5181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5182 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5185 test -z "$as_dir" && as_dir
=.
5186 for ac_prog
in egrep; do
5187 for ac_exec_ext
in '' $ac_executable_extensions; do
5188 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5189 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5190 # Check for GNU ac_path_EGREP and select it if it is found.
5191 # Check for GNU $ac_path_EGREP
5192 case `"$ac_path_EGREP" --version 2>&1` in
5194 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5197 $as_echo_n 0123456789 >"conftest.in"
5200 cat "conftest.in" "conftest.in" >"conftest.tmp"
5201 mv "conftest.tmp" "conftest.in"
5202 cp "conftest.in" "conftest.nl"
5203 $as_echo 'EGREP' >> "conftest.nl"
5204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5205 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5206 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5208 # Best one so far, save it but keep looking for a better one
5209 ac_cv_path_EGREP
="$ac_path_EGREP"
5210 ac_path_EGREP_max
=$ac_count
5212 # 10*(2^10) chars as input seems more than enough
5213 test $ac_count -gt 10 && break
5215 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5218 $ac_path_EGREP_found && break 3
5223 if test -z "$ac_cv_path_EGREP"; then
5224 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5227 ac_cv_path_EGREP
=$EGREP
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5233 $as_echo "$ac_cv_path_EGREP" >&6; }
5234 EGREP
="$ac_cv_path_EGREP"
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5238 $as_echo_n "checking for ANSI C header files... " >&6; }
5239 if test "${ac_cv_header_stdc+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5257 if ac_fn_c_try_compile
"$LINENO"; then :
5258 ac_cv_header_stdc
=yes
5260 ac_cv_header_stdc
=no
5262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5264 if test $ac_cv_header_stdc = yes; then
5265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5272 $EGREP "memchr" >/dev
/null
2>&1; then :
5275 ac_cv_header_stdc
=no
5281 if test $ac_cv_header_stdc = yes; then
5282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "free" >/dev
/null
2>&1; then :
5292 ac_cv_header_stdc
=no
5298 if test $ac_cv_header_stdc = yes; then
5299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5300 if test "$cross_compiling" = yes; then :
5303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5307 #if ((' ' & 0x0FF) == 0x020)
5308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5311 # define ISLOWER(c) \
5312 (('a' <= (c) && (c) <= 'i') \
5313 || ('j' <= (c) && (c) <= 'r') \
5314 || ('s' <= (c) && (c) <= 'z'))
5315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5323 for (i = 0; i < 256; i++)
5324 if (XOR (islower (i), ISLOWER (i))
5325 || toupper (i) != TOUPPER (i))
5330 if ac_fn_c_try_run
"$LINENO"; then :
5333 ac_cv_header_stdc
=no
5335 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5336 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5342 $as_echo "$ac_cv_header_stdc" >&6; }
5343 if test $ac_cv_header_stdc = yes; then
5345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5350 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5351 inttypes.h stdint.h unistd.h
5353 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5354 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5356 eval as_val
=\$
$as_ac_Header
5357 if test "x$as_val" = x
""yes; then :
5358 cat >>confdefs.h
<<_ACEOF
5359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5369 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5376 if test "$MINIX" = yes; then
5378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5384 $as_echo "#define _MINIX 1" >>confdefs.h
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5397 # define __EXTENSIONS__ 1
5398 $ac_includes_default
5407 if ac_fn_c_try_compile
"$LINENO"; then :
5408 ac_cv_safe_to_define___extensions__
=yes
5410 ac_cv_safe_to_define___extensions__
=no
5412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5416 test $ac_cv_safe_to_define___extensions__ = yes &&
5417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5421 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5423 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5425 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5429 ac_cpp
='$CPP $CPPFLAGS'
5430 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5434 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5435 # On Suns, sometimes $CPP names a directory.
5436 if test -n "$CPP" && test -d "$CPP"; then
5439 if test -z "$CPP"; then
5440 if test "${ac_cv_prog_CPP+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5443 # Double quotes because CPP needs to be expanded
5444 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5447 for ac_c_preproc_warn_flag
in '' yes
5449 # Use a header file that comes with gcc, so configuring glibc
5450 # with a fresh cross-compiler works.
5451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452 # <limits.h> exists even on freestanding compilers.
5453 # On the NeXT, cc -E runs the code through the compiler's parser,
5454 # not just through cpp. "Syntax error" is here to catch this case.
5455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5458 # include <limits.h>
5460 # include <assert.h>
5464 if ac_fn_c_try_cpp
"$LINENO"; then :
5467 # Broken: fails on valid input.
5470 rm -f conftest.err conftest.
$ac_ext
5472 # OK, works on sane cases. Now check whether nonexistent headers
5473 # can be detected and how.
5474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 #include <ac_nonexistent.h>
5478 if ac_fn_c_try_cpp
"$LINENO"; then :
5479 # Broken: success on invalid input.
5482 # Passes both tests.
5486 rm -f conftest.err conftest.
$ac_ext
5489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490 rm -f conftest.err conftest.
$ac_ext
5491 if $ac_preproc_ok; then :
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5504 $as_echo "$CPP" >&6; }
5506 for ac_c_preproc_warn_flag
in '' yes
5508 # Use a header file that comes with gcc, so configuring glibc
5509 # with a fresh cross-compiler works.
5510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511 # <limits.h> exists even on freestanding compilers.
5512 # On the NeXT, cc -E runs the code through the compiler's parser,
5513 # not just through cpp. "Syntax error" is here to catch this case.
5514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5517 # include <limits.h>
5519 # include <assert.h>
5523 if ac_fn_c_try_cpp
"$LINENO"; then :
5526 # Broken: fails on valid input.
5529 rm -f conftest.err conftest.
$ac_ext
5531 # OK, works on sane cases. Now check whether nonexistent headers
5532 # can be detected and how.
5533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include <ac_nonexistent.h>
5537 if ac_fn_c_try_cpp
"$LINENO"; then :
5538 # Broken: success on invalid input.
5541 # Passes both tests.
5545 rm -f conftest.err conftest.
$ac_ext
5548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5549 rm -f conftest.err conftest.
$ac_ext
5550 if $ac_preproc_ok; then :
5553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5555 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." "$LINENO" 5; }
5560 ac_cpp
='$CPP $CPPFLAGS'
5561 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5566 $as_echo_n "checking for inline... " >&6; }
5567 if test "${ac_cv_c_inline+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5571 for ac_kw
in inline __inline__ __inline
; do
5572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5576 static $ac_kw foo_t static_foo () {return 0; }
5577 $ac_kw foo_t foo () {return 0; }
5581 if ac_fn_c_try_compile
"$LINENO"; then :
5582 ac_cv_c_inline
=$ac_kw
5584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5585 test "$ac_cv_c_inline" != no
&& break
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5590 $as_echo "$ac_cv_c_inline" >&6; }
5592 case $ac_cv_c_inline in
5595 case $ac_cv_c_inline in
5597 *) ac_val
=$ac_cv_c_inline;;
5599 cat >>confdefs.h
<<_ACEOF
5601 #define inline $ac_val
5608 # Check whether --enable-largefile was given.
5609 if test "${enable_largefile+set}" = set; then :
5610 enableval
=$enable_largefile;
5613 if test "$enable_largefile" != no
; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5616 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5617 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5620 ac_cv_sys_largefile_CC
=no
5621 if test "$GCC" != yes; then
5624 # IRIX 6.2 and later do not support large files by default,
5625 # so use the C compiler's -n32 option if that helps.
5626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 /* Check that off_t can represent 2**63 - 1 correctly.
5630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5631 since some C++ compilers masquerading as C compilers
5632 incorrectly reject 9223372036854775807. */
5633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5635 && LARGE_OFF_T % 2147483647 == 1)
5645 if ac_fn_c_try_compile
"$LINENO"; then :
5648 rm -f core conftest.err conftest.
$ac_objext
5650 if ac_fn_c_try_compile
"$LINENO"; then :
5651 ac_cv_sys_largefile_CC
=' -n32'; break
5653 rm -f core conftest.err conftest.
$ac_objext
5657 rm -f conftest.
$ac_ext
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5661 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5662 if test "$ac_cv_sys_largefile_CC" != no
; then
5663 CC
=$CC$ac_cv_sys_largefile_CC
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5667 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5668 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <sys/types.h>
5675 /* Check that off_t can represent 2**63 - 1 correctly.
5676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5677 since some C++ compilers masquerading as C compilers
5678 incorrectly reject 9223372036854775807. */
5679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5681 && LARGE_OFF_T % 2147483647 == 1)
5691 if ac_fn_c_try_compile
"$LINENO"; then :
5692 ac_cv_sys_file_offset_bits
=no
; break
5694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #define _FILE_OFFSET_BITS 64
5698 #include <sys/types.h>
5699 /* Check that off_t can represent 2**63 - 1 correctly.
5700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5701 since some C++ compilers masquerading as C compilers
5702 incorrectly reject 9223372036854775807. */
5703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5705 && LARGE_OFF_T % 2147483647 == 1)
5715 if ac_fn_c_try_compile
"$LINENO"; then :
5716 ac_cv_sys_file_offset_bits
=64; break
5718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5719 ac_cv_sys_file_offset_bits
=unknown
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5724 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5725 case $ac_cv_sys_file_offset_bits in #(
5728 cat >>confdefs.h
<<_ACEOF
5729 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5734 if test $ac_cv_sys_file_offset_bits = unknown
; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5736 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5737 if test "${ac_cv_sys_large_files+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <sys/types.h>
5744 /* Check that off_t can represent 2**63 - 1 correctly.
5745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5746 since some C++ compilers masquerading as C compilers
5747 incorrectly reject 9223372036854775807. */
5748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5750 && LARGE_OFF_T % 2147483647 == 1)
5760 if ac_fn_c_try_compile
"$LINENO"; then :
5761 ac_cv_sys_large_files
=no
; break
5763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766 #define _LARGE_FILES 1
5767 #include <sys/types.h>
5768 /* Check that off_t can represent 2**63 - 1 correctly.
5769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5770 since some C++ compilers masquerading as C compilers
5771 incorrectly reject 9223372036854775807. */
5772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5774 && LARGE_OFF_T % 2147483647 == 1)
5784 if ac_fn_c_try_compile
"$LINENO"; then :
5785 ac_cv_sys_large_files
=1; break
5787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5788 ac_cv_sys_large_files
=unknown
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5793 $as_echo "$ac_cv_sys_large_files" >&6; }
5794 case $ac_cv_sys_large_files in #(
5797 cat >>confdefs.h
<<_ACEOF
5798 #define _LARGE_FILES $ac_cv_sys_large_files
5807 # sizeof(char) is 1 by definition.
5808 # The cast to long int works around a bug in the HP C Compiler
5809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5811 # This bug is HP SR number 8606223364.
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5813 $as_echo_n "checking size of void *... " >&6; }
5814 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5817 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5820 if test "$ac_cv_type_void_p" = yes; then
5821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5823 { as_fn_set_status
77
5824 as_fn_error
"cannot compute sizeof (void *)
5825 See \`config.log' for more details." "$LINENO" 5; }; }
5827 ac_cv_sizeof_void_p
=0
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5833 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5837 cat >>confdefs.h
<<_ACEOF
5838 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5842 # The cast to long int works around a bug in the HP C Compiler
5843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5845 # This bug is HP SR number 8606223364.
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5847 $as_echo_n "checking size of short... " >&6; }
5848 if test "${ac_cv_sizeof_short+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5851 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5854 if test "$ac_cv_type_short" = yes; then
5855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5857 { as_fn_set_status
77
5858 as_fn_error
"cannot compute sizeof (short)
5859 See \`config.log' for more details." "$LINENO" 5; }; }
5861 ac_cv_sizeof_short
=0
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5867 $as_echo "$ac_cv_sizeof_short" >&6; }
5871 cat >>confdefs.h
<<_ACEOF
5872 #define SIZEOF_SHORT $ac_cv_sizeof_short
5876 # The cast to long int works around a bug in the HP C Compiler
5877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5879 # This bug is HP SR number 8606223364.
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5881 $as_echo_n "checking size of int... " >&6; }
5882 if test "${ac_cv_sizeof_int+set}" = set; then :
5883 $as_echo_n "(cached) " >&6
5885 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5888 if test "$ac_cv_type_int" = yes; then
5889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5891 { as_fn_set_status
77
5892 as_fn_error
"cannot compute sizeof (int)
5893 See \`config.log' for more details." "$LINENO" 5; }; }
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5901 $as_echo "$ac_cv_sizeof_int" >&6; }
5905 cat >>confdefs.h
<<_ACEOF
5906 #define SIZEOF_INT $ac_cv_sizeof_int
5910 # The cast to long int works around a bug in the HP C Compiler
5911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5913 # This bug is HP SR number 8606223364.
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5915 $as_echo_n "checking size of long... " >&6; }
5916 if test "${ac_cv_sizeof_long+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5919 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5922 if test "$ac_cv_type_long" = yes; then
5923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 { as_fn_set_status
77
5926 as_fn_error
"cannot compute sizeof (long)
5927 See \`config.log' for more details." "$LINENO" 5; }; }
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5935 $as_echo "$ac_cv_sizeof_long" >&6; }
5939 cat >>confdefs.h
<<_ACEOF
5940 #define SIZEOF_LONG $ac_cv_sizeof_long
5944 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5945 if test "x$ac_cv_type_long_long" = x
""yes; then :
5947 cat >>confdefs.h
<<_ACEOF
5948 #define HAVE_LONG_LONG 1
5951 # The cast to long int works around a bug in the HP C Compiler
5952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5954 # This bug is HP SR number 8606223364.
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5956 $as_echo_n "checking size of long long... " >&6; }
5957 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5960 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5963 if test "$ac_cv_type_long_long" = yes; then
5964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5966 { as_fn_set_status
77
5967 as_fn_error
"cannot compute sizeof (long long)
5968 See \`config.log' for more details." "$LINENO" 5; }; }
5970 ac_cv_sizeof_long_long
=0
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5976 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5980 cat >>confdefs.h
<<_ACEOF
5981 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5987 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5988 if test "x$ac_cv_type___int64" = x
""yes; then :
5990 cat >>confdefs.h
<<_ACEOF
5991 #define HAVE___INT64 1
5994 # The cast to long int works around a bug in the HP C Compiler
5995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5997 # This bug is HP SR number 8606223364.
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5999 $as_echo_n "checking size of __int64... " >&6; }
6000 if test "${ac_cv_sizeof___int64+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6003 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6006 if test "$ac_cv_type___int64" = yes; then
6007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6009 { as_fn_set_status
77
6010 as_fn_error
"cannot compute sizeof (__int64)
6011 See \`config.log' for more details." "$LINENO" 5; }; }
6013 ac_cv_sizeof___int64
=0
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6019 $as_echo "$ac_cv_sizeof___int64" >&6; }
6023 cat >>confdefs.h
<<_ACEOF
6024 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6030 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6031 case $ac_cv_c_int8_t in #(
6035 cat >>confdefs.h
<<_ACEOF
6036 #define int8_t $ac_cv_c_int8_t
6041 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6042 case $ac_cv_c_int16_t in #(
6046 cat >>confdefs.h
<<_ACEOF
6047 #define int16_t $ac_cv_c_int16_t
6052 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6053 case $ac_cv_c_int32_t in #(
6057 cat >>confdefs.h
<<_ACEOF
6058 #define int32_t $ac_cv_c_int32_t
6063 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6064 case $ac_cv_c_int64_t in #(
6068 cat >>confdefs.h
<<_ACEOF
6069 #define int64_t $ac_cv_c_int64_t
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6076 $as_echo_n "checking for long long int... " >&6; }
6077 if test "${ac_cv_type_long_long_int+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6083 /* For now, do not test the preprocessor; as of 2007 there are too many
6084 implementations with broken preprocessors. Perhaps this can
6085 be revisited in 2012. In the meantime, code should not expect
6086 #if to work with literals wider than 32 bits. */
6087 /* Test literals. */
6088 long long int ll = 9223372036854775807ll;
6089 long long int nll = -9223372036854775807LL;
6090 unsigned long long int ull = 18446744073709551615ULL;
6091 /* Test constant expressions. */
6092 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6094 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6100 /* Test availability of runtime routines for shift and division. */
6101 long long int llmax = 9223372036854775807ll;
6102 unsigned long long int ullmax = 18446744073709551615ull;
6103 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6104 | (llmax / ll) | (llmax % ll)
6105 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6106 | (ullmax / ull) | (ullmax % ull));
6112 if ac_fn_c_try_link
"$LINENO"; then :
6113 if test "$cross_compiling" = yes; then :
6114 ac_cv_type_long_long_int
=yes
6116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6121 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6122 # define LLONG_MAX (HALF - 1 + HALF)
6127 long long int n = 1;
6131 long long int m = n << i;
6134 if (LLONG_MAX / 2 < m)
6142 if ac_fn_c_try_run
"$LINENO"; then :
6143 ac_cv_type_long_long_int
=yes
6145 ac_cv_type_long_long_int
=no
6147 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6148 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6152 ac_cv_type_long_long_int
=no
6154 rm -f core conftest.err conftest.
$ac_objext \
6155 conftest
$ac_exeext conftest.
$ac_ext
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6158 $as_echo "$ac_cv_type_long_long_int" >&6; }
6159 if test $ac_cv_type_long_long_int = yes; then
6161 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6167 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6168 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6170 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6173 test $ac_cv_type_long_long_int = yes \
6174 && ac_type
='long long int' \
6175 || ac_type
='long int'
6177 cat >>confdefs.h
<<_ACEOF
6178 #define intmax_t $ac_type
6185 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6186 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6188 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6191 for ac_type
in 'int' 'long int' 'long long int'; do
6192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 $ac_includes_default
6198 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6205 if ac_fn_c_try_compile
"$LINENO"; then :
6207 cat >>confdefs.h
<<_ACEOF
6208 #define intptr_t $ac_type
6213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6214 test -z "$ac_type" && break
6219 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6220 case $ac_cv_c_uint8_t in #(
6224 $as_echo "#define _UINT8_T 1" >>confdefs.h
6227 cat >>confdefs.h
<<_ACEOF
6228 #define uint8_t $ac_cv_c_uint8_t
6233 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6234 case $ac_cv_c_uint16_t in #(
6239 cat >>confdefs.h
<<_ACEOF
6240 #define uint16_t $ac_cv_c_uint16_t
6245 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6246 case $ac_cv_c_uint32_t in #(
6250 $as_echo "#define _UINT32_T 1" >>confdefs.h
6253 cat >>confdefs.h
<<_ACEOF
6254 #define uint32_t $ac_cv_c_uint32_t
6259 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6260 case $ac_cv_c_uint64_t in #(
6264 $as_echo "#define _UINT64_T 1" >>confdefs.h
6267 cat >>confdefs.h
<<_ACEOF
6268 #define uint64_t $ac_cv_c_uint64_t
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6275 $as_echo_n "checking for unsigned long long int... " >&6; }
6276 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6282 /* For now, do not test the preprocessor; as of 2007 there are too many
6283 implementations with broken preprocessors. Perhaps this can
6284 be revisited in 2012. In the meantime, code should not expect
6285 #if to work with literals wider than 32 bits. */
6286 /* Test literals. */
6287 long long int ll = 9223372036854775807ll;
6288 long long int nll = -9223372036854775807LL;
6289 unsigned long long int ull = 18446744073709551615ULL;
6290 /* Test constant expressions. */
6291 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6293 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6299 /* Test availability of runtime routines for shift and division. */
6300 long long int llmax = 9223372036854775807ll;
6301 unsigned long long int ullmax = 18446744073709551615ull;
6302 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6303 | (llmax / ll) | (llmax % ll)
6304 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6305 | (ullmax / ull) | (ullmax % ull));
6311 if ac_fn_c_try_link
"$LINENO"; then :
6312 ac_cv_type_unsigned_long_long_int
=yes
6314 ac_cv_type_unsigned_long_long_int
=no
6316 rm -f core conftest.err conftest.
$ac_objext \
6317 conftest
$ac_exeext conftest.
$ac_ext
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6320 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6321 if test $ac_cv_type_unsigned_long_long_int = yes; then
6323 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6329 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6330 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6332 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6335 test $ac_cv_type_unsigned_long_long_int = yes \
6336 && ac_type
='unsigned long long int' \
6337 || ac_type
='unsigned long int'
6339 cat >>confdefs.h
<<_ACEOF
6340 #define uintmax_t $ac_type
6347 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6348 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6350 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6353 for ac_type
in 'unsigned int' 'unsigned long int' \
6354 'unsigned long long int'; do
6355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6357 $ac_includes_default
6361 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6368 if ac_fn_c_try_compile
"$LINENO"; then :
6370 cat >>confdefs.h
<<_ACEOF
6371 #define uintptr_t $ac_type
6376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6377 test -z "$ac_type" && break
6395 # ---------------------
6396 # Warnings and checking
6397 # ---------------------
6399 # Check $CC warning features (if it's GCC).
6400 # We want to use -pedantic, but we don't want warnings about
6403 # * overlong strings
6404 # * C++11 narrowing conversions in { }
6405 # So, we only use -pedantic if we can disable those warnings.
6408 save_CFLAGS
="$CFLAGS"
6409 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6410 # Do the check with the no- prefix removed since gcc silently
6411 # accepts any -Wno-* option on purpose
6412 case $real_option in
6413 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6414 *) option
=$real_option ;;
6416 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6419 $as_echo_n "checking whether $CC supports $option... " >&6; }
6420 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6421 $as_echo_n "(cached) " >&6
6424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6435 if ac_fn_c_try_compile
"$LINENO"; then :
6436 eval "$as_acx_Woption=yes"
6438 eval "$as_acx_Woption=no"
6440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6443 eval ac_res
=\$
$as_acx_Woption
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6445 $as_echo "$ac_res" >&6; }
6446 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6447 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6450 CFLAGS
="$save_CFLAGS"
6453 save_CFLAGS
="$CFLAGS"
6454 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6455 # Do the check with the no- prefix removed since gcc silently
6456 # accepts any -Wno-* option on purpose
6457 case $real_option in
6458 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6459 *) option
=$real_option ;;
6461 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6464 $as_echo_n "checking whether $CC supports $option... " >&6; }
6465 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6466 $as_echo_n "(cached) " >&6
6469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6480 if ac_fn_c_try_compile
"$LINENO"; then :
6481 eval "$as_acx_Woption=yes"
6483 eval "$as_acx_Woption=no"
6485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6488 eval ac_res
=\$
$as_acx_Woption
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6490 $as_echo "$ac_res" >&6; }
6491 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6492 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6495 CFLAGS
="$save_CFLAGS"
6498 save_CFLAGS
="$CFLAGS"
6499 for real_option
in -Wmissing-format-attribute; do
6500 # Do the check with the no- prefix removed since gcc silently
6501 # accepts any -Wno-* option on purpose
6502 case $real_option in
6503 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6504 *) option
=$real_option ;;
6506 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6509 $as_echo_n "checking whether $CC supports $option... " >&6; }
6510 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6511 $as_echo_n "(cached) " >&6
6514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6525 if ac_fn_c_try_compile
"$LINENO"; then :
6526 eval "$as_acx_Woption=yes"
6528 eval "$as_acx_Woption=no"
6530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6533 eval ac_res
=\$
$as_acx_Woption
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6535 $as_echo "$ac_res" >&6; }
6536 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6537 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6540 CFLAGS
="$save_CFLAGS"
6543 save_CFLAGS
="$CFLAGS"
6544 for real_option
in -Wold-style-definition -Wc++-compat; do
6545 # Do the check with the no- prefix removed since gcc silently
6546 # accepts any -Wno-* option on purpose
6547 case $real_option in
6548 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6549 *) option
=$real_option ;;
6551 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6554 $as_echo_n "checking whether $CC supports $option... " >&6; }
6555 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6556 $as_echo_n "(cached) " >&6
6559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6570 if ac_fn_c_try_compile
"$LINENO"; then :
6571 eval "$as_acx_Woption=yes"
6573 eval "$as_acx_Woption=no"
6575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6578 eval ac_res
=\$
$as_acx_Woption
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6580 $as_echo "$ac_res" >&6; }
6581 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6582 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6585 CFLAGS
="$save_CFLAGS"
6587 # Do the check with the no- prefix removed from the warning options
6588 # since gcc silently accepts any -Wno-* option on purpose
6589 if test "$GCC" = yes; then :
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6591 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6592 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6593 $as_echo_n "(cached) " >&6
6595 save_CFLAGS
="$CFLAGS"
6596 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6608 if ac_fn_c_try_compile
"$LINENO"; then :
6609 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6611 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6614 CFLAGS
="$save_CFLAGS"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6617 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6618 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6619 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6624 # Check whether --enable-werror-always was given.
6625 if test "${enable_werror_always+set}" = set; then :
6626 enableval
=$enable_werror_always;
6628 enable_werror_always
=no
6631 if test $enable_werror_always = yes; then :
6632 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6637 # The above macros do nothing if the compiler is not GCC. However, the
6638 # Makefile has more goo to add other flags, so these variables are used
6639 # to enable warnings only for GCC.
6642 if test "x$GCC" = "xyes"; then
6643 warn_cflags
='$(GCC_WARN_CFLAGS)'
6644 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6649 # Disable exceptions and RTTI if building with g++
6651 save_CFLAGS
="$CFLAGS"
6652 for real_option
in -fno-exceptions -fno-rtti; do
6653 # Do the check with the no- prefix removed since gcc silently
6654 # accepts any -Wno-* option on purpose
6655 case $real_option in
6656 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6657 *) option
=$real_option ;;
6659 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6662 $as_echo_n "checking whether $CC supports $option... " >&6; }
6663 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6664 $as_echo_n "(cached) " >&6
6667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6678 if ac_fn_c_try_compile
"$LINENO"; then :
6679 eval "$as_acx_Woption=yes"
6681 eval "$as_acx_Woption=no"
6683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6686 eval ac_res
=\$
$as_acx_Woption
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6688 $as_echo "$ac_res" >&6; }
6689 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6690 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6693 CFLAGS
="$save_CFLAGS"
6696 # Enable expensive internal checks
6698 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6702 # Check whether --enable-checking was given.
6703 if test "${enable_checking+set}" = set; then :
6704 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6707 # Determine the default checks.
6708 if test x
$is_release = x
; then
6709 ac_checking_flags
=yes
6711 ac_checking_flags
=release
6715 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6716 for check
in release
$ac_checking_flags
6719 # these set all the flags to specific states
6720 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6721 ac_fold_checking
= ; ac_gc_checking
=1 ;
6722 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6723 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6724 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6725 ac_types_checking
=1 ;;
6726 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6727 ac_fold_checking
= ; ac_gc_checking
= ;
6728 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6729 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6730 ac_tree_checking
= ; ac_valgrind_checking
= ;
6731 ac_types_checking
= ;;
6732 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6733 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6734 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6735 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6736 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6737 ac_types_checking
=1 ;;
6738 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6739 ac_fold_checking
= ; ac_gc_checking
= ;
6740 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6741 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6742 ac_tree_checking
= ; ac_valgrind_checking
= ;
6743 ac_types_checking
= ;;
6744 # these enable particular checks
6745 assert
) ac_assert_checking
=1 ;;
6746 df
) ac_df_checking
=1 ;;
6747 fold) ac_fold_checking
=1 ;;
6748 gc
) ac_gc_checking
=1 ;;
6749 gcac
) ac_gc_always_collect
=1 ;;
6750 gimple
) ac_gimple_checking
=1 ;;
6751 misc
) ac_checking
=1 ;;
6752 rtl
) ac_rtl_checking
=1 ;;
6753 rtlflag
) ac_rtlflag_checking
=1 ;;
6754 runtime
) ac_runtime_checking
=1 ;;
6755 tree
) ac_tree_checking
=1 ;;
6756 types
) ac_types_checking
=1 ;;
6757 valgrind
) ac_valgrind_checking
=1 ;;
6758 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6764 if test x
$ac_checking != x
; then
6766 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6768 nocommon_flag
=-fno-common
6771 if test x
$ac_df_checking != x
; then
6773 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6776 if test x
$ac_assert_checking != x
; then
6778 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6781 if test x
$ac_gimple_checking != x
; then
6783 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6787 if test x
$ac_runtime_checking != x
; then
6789 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6792 if test x
$ac_tree_checking != x
; then
6794 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6796 TREEBROWSER
=tree-browser.o
6798 if test x
$ac_types_checking != x
; then
6800 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6804 if test x
$ac_rtl_checking != x
; then
6806 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6809 if test x
$ac_rtlflag_checking != x
; then
6811 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6814 if test x
$ac_gc_checking != x
; then
6816 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6819 if test x
$ac_gc_always_collect != x
; then
6821 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6824 if test x
$ac_fold_checking != x
; then
6826 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6829 valgrind_path_defines
=
6832 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6833 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6841 if test x
$ac_valgrind_checking != x
; then
6842 # It is certainly possible that there's valgrind but no valgrind.h.
6843 # GCC relies on making annotations so we must have both.
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6845 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <valgrind/memcheck.h>
6849 #ifndef VALGRIND_DISCARD
6850 #error VALGRIND_DISCARD not defined
6853 if ac_fn_c_try_cpp
"$LINENO"; then :
6854 gcc_cv_header_valgrind_memcheck_h
=yes
6856 gcc_cv_header_valgrind_memcheck_h
=no
6858 rm -f conftest.err conftest.
$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6860 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6862 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <memcheck.h>
6866 #ifndef VALGRIND_DISCARD
6867 #error VALGRIND_DISCARD not defined
6870 if ac_fn_c_try_cpp
"$LINENO"; then :
6871 gcc_cv_header_memcheck_h
=yes
6873 gcc_cv_header_memcheck_h
=no
6875 rm -f conftest.err conftest.
$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6877 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6879 # Prepare PATH_SEPARATOR.
6880 # The user is always right.
6881 if test "${PATH_SEPARATOR+set}" != set; then
6882 echo "#! /bin/sh" >conf$$.sh
6883 echo "exit 0" >>conf$$.sh
6885 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6893 # Find out how to test for executable files. Don't use a zero-byte file,
6894 # as systems may use methods other than mode bits to determine executability.
6895 cat >conf$$.
file <<_ASEOF
6899 chmod +x conf$$.
file
6900 if test -x conf$$.
file >/dev
/null
2>&1; then
6901 ac_executable_p
="test -x"
6903 ac_executable_p
="test -f"
6907 # Extract the first word of "valgrind", so it can be a program name with args.
6908 set dummy valgrind
; ac_word
=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6914 case "$valgrind_path" in
6916 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6919 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6920 for ac_dir
in $PATH; do
6922 test -z "$ac_dir" && ac_dir
=.
6923 for ac_exec_ext
in '' $ac_executable_extensions; do
6924 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6925 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6926 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6936 valgrind_path
="$ac_cv_path_valgrind_path"
6937 if test -n "$valgrind_path"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6939 $as_echo "$valgrind_path" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6945 if test "x$valgrind_path" = "x" \
6946 ||
(test $have_valgrind_h = no \
6947 && test $gcc_cv_header_memcheck_h = no \
6948 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6949 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6951 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6952 valgrind_command
="$valgrind_path -q"
6954 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6956 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6958 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6961 if test $gcc_cv_header_memcheck_h = yes; then
6963 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6970 # Enable code coverage collection
6971 # Check whether --enable-coverage was given.
6972 if test "${enable_coverage+set}" = set; then :
6973 enableval
=$enable_coverage; case "${enableval}" in
6975 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6978 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6981 # a.k.a. --disable-coverage
6985 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6994 # Check whether --enable-gather-detailed-mem-stats was given.
6995 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6996 enableval
=$enable_gather_detailed_mem_stats;
6998 enable_gather_detailed_mem_stats
=no
7001 if test x
$enable_gather_detailed_mem_stats = xyes
; then
7003 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
7007 # -------------------------------
7008 # Miscenalleous configure options
7009 # -------------------------------
7011 # See if we are building gcc with C++.
7012 # Check whether --enable-build-with-cxx was given.
7013 if test "${enable_build_with_cxx+set}" = set; then :
7014 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
7016 ENABLE_BUILD_WITH_CXX
=no
7020 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7022 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7028 # Check whether --with-stabs was given.
7029 if test "${with_stabs+set}" = set; then :
7030 withval
=$with_stabs; stabs
="$with_stabs"
7036 # Determine whether or not multilibs are enabled.
7037 # Check whether --enable-multilib was given.
7038 if test "${enable_multilib+set}" = set; then :
7039 enableval
=$enable_multilib;
7046 # Enable __cxa_atexit for C++.
7047 # Check whether --enable-__cxa_atexit was given.
7048 if test "${enable___cxa_atexit+set}" = set; then :
7049 enableval
=$enable___cxa_atexit;
7053 # Enable C extension for decimal float if target supports it.
7055 # Check whether --enable-decimal-float was given.
7056 if test "${enable_decimal_float+set}" = set; then :
7057 enableval
=$enable_decimal_float;
7058 case $enable_decimal_float in
7059 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7060 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7061 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7067 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7068 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7070 enable_decimal_float
=yes
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7074 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7075 enable_decimal_float
=no
7082 # x86's use BID format instead of DPD
7083 case x
$enable_decimal_float in
7086 i?
86*-*-* | x86_64
*-*-*)
7087 enable_decimal_float
=bid
7090 enable_decimal_float
=dpd
7093 default_decimal_float
=$enable_decimal_float
7096 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7097 # dependency on libdecnumber.
7098 default_decimal_float
=dpd
7105 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7107 cat >>confdefs.h
<<_ACEOF
7108 #define ENABLE_DECIMAL_FLOAT $dfp
7112 # Use default_decimal_float for dependency.
7113 enable_decimal_float
=$default_decimal_float
7115 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7117 cat >>confdefs.h
<<_ACEOF
7118 #define ENABLE_DECIMAL_BID_FORMAT $bid
7122 # Enable C extension for fixed-point arithmetic.
7123 # Check whether --enable-fixed-point was given.
7124 if test "${enable_fixed_point+set}" = set; then :
7125 enableval
=$enable_fixed_point;
7130 enable_fixed_point
=yes
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7137 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7138 enable_fixed_point
=no
7141 enable_fixed_point
=yes
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7147 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7148 enable_fixed_point
=no
7156 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7158 cat >>confdefs.h
<<_ACEOF
7159 #define ENABLE_FIXED_POINT $fixedpoint
7164 # Pass with no value to take the default
7165 # Pass with a value to specify a thread package
7166 # Check whether --enable-threads was given.
7167 if test "${enable_threads+set}" = set; then :
7168 enableval
=$enable_threads;
7174 # Check whether --enable-tls was given.
7175 if test "${enable_tls+set}" = set; then :
7176 enableval
=$enable_tls;
7179 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7180 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7188 # Check whether --enable-objc-gc was given.
7189 if test "${enable_objc_gc+set}" = set; then :
7190 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7201 # Check whether --with-dwarf2 was given.
7202 if test "${with_dwarf2+set}" = set; then :
7203 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7209 # Check whether --enable-shared was given.
7210 if test "${enable_shared+set}" = set; then :
7211 enableval
=$enable_shared;
7212 case $enable_shared in
7216 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7217 for pkg
in $enableval; do
7218 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7233 # Check whether --with-native-system-header-dir was given.
7234 if test "${with_native_system_header_dir+set}" = set; then :
7235 withval
=$with_native_system_header_dir;
7236 case ${with_native_system_header_dir} in
7237 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7238 /* |
[A-Za-z
]:[\\/]*) ;;
7239 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7241 configured_native_system_header_dir
="${withval}"
7244 configured_native_system_header_dir
=
7249 # Check whether --with-build-sysroot was given.
7250 if test "${with_build_sysroot+set}" = set; then :
7251 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7252 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7255 SYSROOT_CFLAGS_FOR_TARGET
=
7261 # Check whether --with-sysroot was given.
7262 if test "${with_sysroot+set}" = set; then :
7263 withval
=$with_sysroot;
7264 case ${with_sysroot} in
7265 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7266 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7269 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7270 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7272 if test "x$prefix" = xNONE
; then
7273 test_prefix
=/usr
/local
7277 if test "x$exec_prefix" = xNONE
; then
7278 test_exec_prefix
=$test_prefix
7280 test_exec_prefix
=$exec_prefix
7282 case ${TARGET_SYSTEM_ROOT} in
7283 "${test_prefix}"|
"${test_prefix}/"*|\
7284 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7285 '${prefix}'|
'${prefix}/'*|\
7286 '${exec_prefix}'|
'${exec_prefix}/'*)
7287 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7288 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7295 TARGET_SYSTEM_ROOT_DEFINE
=
7296 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7305 # Check whether --with-specs was given.
7306 if test "${with_specs+set}" = set; then :
7307 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7317 # Check whether --with-pkgversion was given.
7318 if test "${with_pkgversion+set}" = set; then :
7319 withval
=$with_pkgversion; case "$withval" in
7320 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7322 *) PKGVERSION
="($withval) " ;;
7333 # Check whether --with-bugurl was given.
7334 if test "${with_bugurl+set}" = set; then :
7335 withval
=$with_bugurl; case "$withval" in
7336 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7339 *) BUGURL
="$withval"
7343 BUGURL
="http://gcc.gnu.org/bugs.html"
7353 REPORT_BUGS_TO
="<$BUGURL>"
7354 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7361 # Sanity check enable_languages in case someone does not run the toplevel
7362 # configure # script.
7363 # Check whether --enable-languages was given.
7364 if test "${enable_languages+set}" = set; then :
7365 enableval
=$enable_languages; case ,${enable_languages}, in
7367 # go safe -- we cannot be much sure without the toplevel
7369 # analysis of which target libs are present and usable
7373 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7378 enable_languages
=c
,${enable_languages}
7387 # Check whether --with-multilib-list was given.
7388 if test "${with_multilib_list+set}" = set; then :
7389 withval
=$with_multilib_list; :
7391 with_multilib_list
=default
7395 # -------------------------
7396 # Checks for other programs
7397 # -------------------------
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7402 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7403 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7404 $as_echo_n "(cached) " >&6
7406 cat >conftest.
make <<\_ACEOF
7409 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7411 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7414 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7416 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7420 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7422 $as_echo "yes" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 SET_MAKE
="MAKE=${MAKE-make}"
7431 # Find some useful tools
7432 for ac_prog
in gawk mawk nawk
awk
7434 # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy
$ac_prog; ac_word
=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_prog_AWK+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7441 if test -n "$AWK"; then
7442 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir
=.
7449 for ac_exec_ext
in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_AWK
="$ac_prog"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 if test -n "$AWK"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7464 $as_echo "$AWK" >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7471 test -n "$AWK" && break
7474 # We need awk to create options.c and options.h.
7475 # Bail out if it's missing.
7477 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7481 $as_echo_n "checking whether ln -s works... " >&6; }
7482 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7485 rm -f conftestdata_t
7486 echo >conftestdata_f
7487 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7489 gcc_cv_prog_LN_S
="ln -s"
7491 if ln conftestdata_f conftestdata_t
2>/dev
/null
7495 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7497 gcc_cv_prog_LN_S
="cp -p"
7503 rm -f conftestdata_f conftestdata_t
7506 LN_S
="$gcc_cv_prog_LN_S"
7507 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7509 $as_echo "yes" >&6; }
7511 if test "$gcc_cv_prog_LN_S" = "ln"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7513 $as_echo "no, using ln" >&6; }
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7516 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7521 $as_echo_n "checking whether ln works... " >&6; }
7522 if test "${acx_cv_prog_LN+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7525 rm -f conftestdata_t
7526 echo >conftestdata_f
7527 if ln conftestdata_f conftestdata_t
2>/dev
/null
7533 rm -f conftestdata_f conftestdata_t
7536 if test $acx_cv_prog_LN = no
; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7539 $as_echo "no, using $LN" >&6; }
7541 LN
="$acx_cv_prog_LN"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7543 $as_echo "yes" >&6; }
7546 if test -n "$ac_tool_prefix"; then
7547 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7548 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
7554 if test -n "$RANLIB"; then
7555 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7561 test -z "$as_dir" && as_dir
=.
7562 for ac_exec_ext
in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 RANLIB
=$ac_cv_prog_RANLIB
7575 if test -n "$RANLIB"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7577 $as_echo "$RANLIB" >&6; }
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7585 if test -z "$ac_cv_prog_RANLIB"; then
7586 ac_ct_RANLIB
=$RANLIB
7587 # Extract the first word of "ranlib", so it can be a program name with args.
7588 set dummy ranlib
; ac_word
=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7594 if test -n "$ac_ct_RANLIB"; then
7595 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir
=.
7602 for ac_exec_ext
in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7615 if test -n "$ac_ct_RANLIB"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7617 $as_echo "$ac_ct_RANLIB" >&6; }
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7623 if test "x$ac_ct_RANLIB" = x
; then
7626 case $cross_compiling:$ac_tool_warned in
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7630 ac_tool_warned
=yes ;;
7632 RANLIB
=$ac_ct_RANLIB
7635 RANLIB
="$ac_cv_prog_RANLIB"
7641 # Find a good install program. We prefer a C program (faster),
7642 # so one script is as good as another. But avoid the broken or
7643 # incompatible versions:
7644 # SysV /etc/install, /usr/sbin/install
7645 # SunOS /usr/etc/install
7646 # IRIX /sbin/install
7648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7650 # ./install, which can be erroneously created by make from ./install.sh.
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7652 $as_echo_n "checking for a BSD compatible install... " >&6; }
7653 if test -z "$INSTALL"; then
7654 if test "${ac_cv_path_install+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7657 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7658 for ac_dir
in $PATH; do
7659 # Account for people who put trailing slashes in PATH elements.
7661 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7663 # OSF1 and SCO ODT 3.0 have their own names for install.
7664 for ac_prog
in ginstall scoinst
install; do
7665 if test -f $ac_dir/$ac_prog; then
7666 if test $ac_prog = install &&
7667 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7668 # AIX install. It has an incompatible calling convention.
7669 # OSF/1 installbsd also uses dspmsg, but is usable.
7672 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7683 if test "${ac_cv_path_install+set}" = set; then
7684 INSTALL
="$ac_cv_path_install"
7686 # As a last resort, use the slow shell script. We don't cache a
7687 # path for INSTALL within a source directory, because that will
7688 # break other packages using the cache if that directory is
7689 # removed, or if the path is relative.
7690 INSTALL
="$ac_install_sh"
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7694 $as_echo "$INSTALL" >&6; }
7696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7697 # It thinks the first close brace ends the variable substitution.
7698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7700 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7703 # See if cmp has --ignore-initial.
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7705 $as_echo_n "checking for cmp's capabilities... " >&6; }
7706 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7711 gcc_cv_prog_cmp_skip
=slowcompare
7712 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7713 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7716 gcc_cv_prog_cmp_skip
=gnucompare
7719 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7720 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7721 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7724 gcc_cv_prog_cmp_skip
=fastcompare
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7732 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7733 make_compare_target
=$gcc_cv_prog_cmp_skip
7737 # See if we have the mktemp command.
7738 # Extract the first word of "mktemp", so it can be a program name with args.
7739 set dummy mktemp
; ac_word
=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7745 if test -n "$have_mktemp_command"; then
7746 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7752 test -z "$as_dir" && as_dir
=.
7753 for ac_exec_ext
in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_have_mktemp_command
="yes"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7766 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7767 if test -n "$have_mktemp_command"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7769 $as_echo "$have_mktemp_command" >&6; }
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7777 # See if makeinfo has been installed and is modern enough
7778 # that we can use it.
7780 # Extract the first word of "makeinfo", so it can be a program name with args.
7781 set dummy makeinfo
; ac_word
=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7787 if test -n "$MAKEINFO"; then
7788 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7794 test -z "$as_dir" && as_dir
=.
7795 for ac_exec_ext
in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_prog_MAKEINFO
="makeinfo"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 MAKEINFO
=$ac_cv_prog_MAKEINFO
7808 if test -n "$MAKEINFO"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7810 $as_echo "$MAKEINFO" >&6; }
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7817 if test -n "$MAKEINFO"; then
7818 # Found it, now check the version.
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7820 $as_echo_n "checking for modern makeinfo... " >&6; }
7821 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7824 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7825 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7827 case $ac_prog_version in
7828 '') gcc_cv_prog_makeinfo_modern
=no
;;
7829 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7830 *) gcc_cv_prog_makeinfo_modern
=no
;;
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7835 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7837 gcc_cv_prog_makeinfo_modern
=no
7839 if test $gcc_cv_prog_makeinfo_modern = no
; then
7840 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7843 if test $gcc_cv_prog_makeinfo_modern = no
; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7845 *** Makeinfo is missing or too old.
7846 *** Info documentation will not be built." >&5
7847 $as_echo "$as_me: WARNING:
7848 *** Makeinfo is missing or too old.
7849 *** Info documentation will not be built." >&2;}
7856 # Is pod2man recent enough to regenerate manpages?
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7858 $as_echo_n "checking for recent Pod::Man... " >&6; }
7859 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7861 $as_echo "yes" >&6; }
7862 GENERATED_MANPAGES
=generated-manpages
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7870 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7875 # Extract the first word of "$ac_prog", so it can be a program name with args.
7876 set dummy
$ac_prog; ac_word
=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_prog_FLEX+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7882 if test -n "$FLEX"; then
7883 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7889 test -z "$as_dir" && as_dir
=.
7890 for ac_exec_ext
in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_prog_FLEX
="$ac_prog"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 FLEX
=$ac_cv_prog_FLEX
7903 if test -n "$FLEX"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7905 $as_echo "$FLEX" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7912 test -n "$FLEX" && break
7914 test -n "$FLEX" || FLEX
="$MISSING flex"
7918 for ac_prog
in bison
7920 # Extract the first word of "$ac_prog", so it can be a program name with args.
7921 set dummy
$ac_prog; ac_word
=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if test "${ac_cv_prog_BISON+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7927 if test -n "$BISON"; then
7928 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7934 test -z "$as_dir" && as_dir
=.
7935 for ac_exec_ext
in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7937 ac_cv_prog_BISON
="$ac_prog"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 BISON
=$ac_cv_prog_BISON
7948 if test -n "$BISON"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7950 $as_echo "$BISON" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7957 test -n "$BISON" && break
7959 test -n "$BISON" || BISON
="$MISSING bison"
7962 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7963 # check for build == host before using them.
7966 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7967 && test -d ..
/binutils
; then
7968 NM
='${objdir}/../binutils/nm-new'
7970 # Extract the first word of "nm", so it can be a program name with args.
7971 set dummy nm
; ac_word
=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if test "${ac_cv_prog_NM+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7977 if test -n "$NM"; then
7978 ac_cv_prog_NM
="$NM" # Let the user override the test.
7980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir
=.
7985 for ac_exec_ext
in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7999 if test -n "$NM"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8001 $as_echo "$NM" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8011 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8012 && test -d ..
/binutils
; then
8013 AR
='${objdir}/../binutils/ar'
8015 # Extract the first word of "ar", so it can be a program name with args.
8016 set dummy
ar; ac_word
=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if test "${ac_cv_prog_AR+set}" = set; then :
8020 $as_echo_n "(cached) " >&6
8022 if test -n "$AR"; then
8023 ac_cv_prog_AR
="$AR" # Let the user override the test.
8025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir
=.
8030 for ac_exec_ext
in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8044 if test -n "$AR"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8046 $as_echo "$AR" >&6; }
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8056 # --------------------
8057 # Checks for C headers
8058 # --------------------
8060 # Need to reject headers which give warnings, so that the -Werror bootstrap
8061 # works later. *sigh* This needs to come before all header checks.
8063 ac_c_preproc_warn_flag
=yes
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8066 $as_echo_n "checking for ANSI C header files... " >&6; }
8067 if test "${ac_cv_header_stdc+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8085 if ac_fn_c_try_compile
"$LINENO"; then :
8086 ac_cv_header_stdc
=yes
8088 ac_cv_header_stdc
=no
8090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8092 if test $ac_cv_header_stdc = yes; then
8093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8100 $EGREP "memchr" >/dev
/null
2>&1; then :
8103 ac_cv_header_stdc
=no
8109 if test $ac_cv_header_stdc = yes; then
8110 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8117 $EGREP "free" >/dev
/null
2>&1; then :
8120 ac_cv_header_stdc
=no
8126 if test $ac_cv_header_stdc = yes; then
8127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8128 if test "$cross_compiling" = yes; then :
8131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8135 #if ((' ' & 0x0FF) == 0x020)
8136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8139 # define ISLOWER(c) \
8140 (('a' <= (c) && (c) <= 'i') \
8141 || ('j' <= (c) && (c) <= 'r') \
8142 || ('s' <= (c) && (c) <= 'z'))
8143 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8146 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8151 for (i = 0; i < 256; i++)
8152 if (XOR (islower (i), ISLOWER (i))
8153 || toupper (i) != TOUPPER (i))
8158 if ac_fn_c_try_run
"$LINENO"; then :
8161 ac_cv_header_stdc
=no
8163 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8164 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8170 $as_echo "$ac_cv_header_stdc" >&6; }
8171 if test $ac_cv_header_stdc = yes; then
8173 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8178 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8179 if test "${ac_cv_header_time+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <sys/types.h>
8185 #include <sys/time.h>
8191 if ((struct tm *) 0)
8197 if ac_fn_c_try_compile
"$LINENO"; then :
8198 ac_cv_header_time
=yes
8200 ac_cv_header_time
=no
8202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8205 $as_echo "$ac_cv_header_time" >&6; }
8206 if test $ac_cv_header_time = yes; then
8208 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8213 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8214 if test "${gcc_cv_header_string+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8220 #include <strings.h>
8229 if ac_fn_c_try_compile
"$LINENO"; then :
8230 gcc_cv_header_string
=yes
8232 gcc_cv_header_string
=no
8234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8237 $as_echo "$gcc_cv_header_string" >&6; }
8238 if test $gcc_cv_header_string = yes; then
8240 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8245 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8246 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8251 #include <sys/types.h>
8252 #include <sys/wait.h>
8254 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8257 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8265 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8270 if ac_fn_c_try_compile
"$LINENO"; then :
8271 ac_cv_header_sys_wait_h
=yes
8273 ac_cv_header_sys_wait_h
=no
8275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8278 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8279 if test $ac_cv_header_sys_wait_h = yes; then
8281 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8285 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8286 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8287 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8288 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8290 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8291 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8292 eval as_val
=\$
$as_ac_Header
8293 if test "x$as_val" = x
""yes; then :
8294 cat >>confdefs.h
<<_ACEOF
8295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8302 # Check for thread headers.
8303 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8304 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8310 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8311 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8318 # These tests can't be done till we know if we have limits.h.
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8320 $as_echo_n "checking for CHAR_BIT... " >&6; }
8321 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8326 #ifdef HAVE_LIMITS_H
8333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8334 $EGREP "found" >/dev
/null
2>&1; then :
8335 gcc_cv_decl_char_bit
=yes
8337 gcc_cv_decl_char_bit
=no
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8344 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8345 if test $gcc_cv_decl_char_bit = no
; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8347 $as_echo_n "checking number of bits in a byte... " >&6; }
8348 if test "${gcc_cv_c_nbby+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8353 while test $i -lt 65; do
8354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8361 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8362 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8368 if ac_fn_c_try_compile
"$LINENO"; then :
8369 gcc_cv_c_nbby
=$i; break
8371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8374 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8378 $as_echo "$gcc_cv_c_nbby" >&6; }
8379 if test $gcc_cv_c_nbby = failed
; then
8380 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8383 cat >>confdefs.h
<<_ACEOF
8384 #define CHAR_BIT $gcc_cv_c_nbby
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8390 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8391 if test "${ac_cv_c_bigendian+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
8394 ac_cv_c_bigendian
=unknown
8395 # See if we're dealing with a universal compiler.
8396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 #ifndef __APPLE_CC__
8399 not a universal capable compiler
8404 if ac_fn_c_try_compile
"$LINENO"; then :
8406 # Check for potential -arch flags. It is not universal unless
8407 # there are at least two -arch flags with different values.
8410 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8411 if test -n "$ac_prev"; then
8413 i?
86 | x86_64 | ppc | ppc64
)
8414 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8417 ac_cv_c_bigendian
=universal
8423 elif test "x$ac_word" = "x-arch"; then
8428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8429 if test $ac_cv_c_bigendian = unknown
; then
8430 # See if sys/param.h defines the BYTE_ORDER macro.
8431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 #include <sys/types.h>
8434 #include <sys/param.h>
8439 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8440 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8449 if ac_fn_c_try_compile
"$LINENO"; then :
8450 # It does; now see whether it defined to BIG_ENDIAN or not.
8451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 #include <sys/types.h>
8454 #include <sys/param.h>
8459 #if BYTE_ORDER != BIG_ENDIAN
8467 if ac_fn_c_try_compile
"$LINENO"; then :
8468 ac_cv_c_bigendian
=yes
8470 ac_cv_c_bigendian
=no
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8476 if test $ac_cv_c_bigendian = unknown
; then
8477 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8485 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8493 if ac_fn_c_try_compile
"$LINENO"; then :
8494 # It does; now see whether it defined to _BIG_ENDIAN or not.
8495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8510 if ac_fn_c_try_compile
"$LINENO"; then :
8511 ac_cv_c_bigendian
=yes
8513 ac_cv_c_bigendian
=no
8515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8519 if test $ac_cv_c_bigendian = unknown
; then
8520 # Compile a test program.
8521 if test "$cross_compiling" = yes; then :
8522 # Try to guess by grepping values from an object file.
8523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 short int ascii_mm[] =
8526 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8527 short int ascii_ii[] =
8528 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8529 int use_ascii (int i) {
8530 return ascii_mm[i] + ascii_ii[i];
8532 short int ebcdic_ii[] =
8533 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8534 short int ebcdic_mm[] =
8535 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8536 int use_ebcdic (int i) {
8537 return ebcdic_mm[i] + ebcdic_ii[i];
8544 return use_ascii (foo) == use_ebcdic (foo);
8549 if ac_fn_c_try_compile
"$LINENO"; then :
8550 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8551 ac_cv_c_bigendian
=yes
8553 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8554 if test "$ac_cv_c_bigendian" = unknown
; then
8555 ac_cv_c_bigendian
=no
8557 # finding both strings is unlikely to happen, but who knows?
8558 ac_cv_c_bigendian
=unknown
8562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 $ac_includes_default
8571 /* Are we little or big endian? From Harbison&Steele. */
8575 char c[sizeof (long int)];
8578 return u.c[sizeof (long int) - 1] == 1;
8584 if ac_fn_c_try_run
"$LINENO"; then :
8585 ac_cv_c_bigendian
=no
8587 ac_cv_c_bigendian
=yes
8589 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8590 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8596 $as_echo "$ac_cv_c_bigendian" >&6; }
8597 case $ac_cv_c_bigendian in #(
8599 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8605 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8609 as_fn_error
"unknown endianness
8610 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8614 # ----------------------
8615 # Checks for C++ headers
8616 # ----------------------
8619 ac_cpp
='$CXXCPP $CPPFLAGS'
8620 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8621 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8622 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8624 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8625 if test -z "$CXXCPP"; then
8626 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8629 # Double quotes because CXXCPP needs to be expanded
8630 for CXXCPP
in "$CXX -E" "/lib/cpp"
8633 for ac_cxx_preproc_warn_flag
in '' yes
8635 # Use a header file that comes with gcc, so configuring glibc
8636 # with a fresh cross-compiler works.
8637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8638 # <limits.h> exists even on freestanding compilers.
8639 # On the NeXT, cc -E runs the code through the compiler's parser,
8640 # not just through cpp. "Syntax error" is here to catch this case.
8641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8644 # include <limits.h>
8646 # include <assert.h>
8650 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8653 # Broken: fails on valid input.
8656 rm -f conftest.err conftest.
$ac_ext
8658 # OK, works on sane cases. Now check whether nonexistent headers
8659 # can be detected and how.
8660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #include <ac_nonexistent.h>
8664 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8665 # Broken: success on invalid input.
8668 # Passes both tests.
8672 rm -f conftest.err conftest.
$ac_ext
8675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8676 rm -f conftest.err conftest.
$ac_ext
8677 if $ac_preproc_ok; then :
8682 ac_cv_prog_CXXCPP
=$CXXCPP
8685 CXXCPP
=$ac_cv_prog_CXXCPP
8687 ac_cv_prog_CXXCPP
=$CXXCPP
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8690 $as_echo "$CXXCPP" >&6; }
8692 for ac_cxx_preproc_warn_flag
in '' yes
8694 # Use a header file that comes with gcc, so configuring glibc
8695 # with a fresh cross-compiler works.
8696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8697 # <limits.h> exists even on freestanding compilers.
8698 # On the NeXT, cc -E runs the code through the compiler's parser,
8699 # not just through cpp. "Syntax error" is here to catch this case.
8700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8703 # include <limits.h>
8705 # include <assert.h>
8709 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8712 # Broken: fails on valid input.
8715 rm -f conftest.err conftest.
$ac_ext
8717 # OK, works on sane cases. Now check whether nonexistent headers
8718 # can be detected and how.
8719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721 #include <ac_nonexistent.h>
8723 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8724 # Broken: success on invalid input.
8727 # Passes both tests.
8731 rm -f conftest.err conftest.
$ac_ext
8734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8735 rm -f conftest.err conftest.
$ac_ext
8736 if $ac_preproc_ok; then :
8739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8742 See \`config.log' for more details." >&5
8743 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8744 See \`config.log' for more details." >&2;}; }
8748 ac_cpp
='$CPP $CPPFLAGS'
8749 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8750 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8751 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8755 ac_cpp
='$CXXCPP $CPPFLAGS'
8756 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8763 for ac_header
in unordered_map
8765 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8766 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8767 cat >>confdefs.h
<<_ACEOF
8768 #define HAVE_UNORDERED_MAP 1
8774 for ac_header
in tr1/unordered_map
8776 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8777 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8778 cat >>confdefs.h
<<_ACEOF
8779 #define HAVE_TR1_UNORDERED_MAP 1
8785 for ac_header
in ext
/hash_map
8787 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8788 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8789 cat >>confdefs.h
<<_ACEOF
8790 #define HAVE_EXT_HASH_MAP 1
8798 ac_cpp
='$CPP $CPPFLAGS'
8799 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8800 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8801 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8809 # These libraries may be used by collect2.
8810 # We may need a special search path to get them linked.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8812 $as_echo_n "checking for collect2 libraries... " >&6; }
8813 if test "${gcc_cv_collect2_libs+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8817 for libs
in '' -lld -lmld \
8818 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8819 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8825 /* Override any GCC internal prototype to avoid an error.
8826 Use char because int might match the return type of a GCC
8827 builtin and then its argument prototype would still apply. */
8840 if ac_fn_c_try_link
"$LINENO"; then :
8841 gcc_cv_collect2_libs
="$libs"; break
8843 rm -f core conftest.err conftest.
$ac_objext \
8844 conftest
$ac_exeext conftest.
$ac_ext
8847 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8850 $as_echo "$gcc_cv_collect2_libs" >&6; }
8851 case $gcc_cv_collect2_libs in
8853 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8857 # When building Ada code on Alpha, we need exc_resume which is usually in
8858 # -lexc. So test for it.
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8862 $as_echo_n "checking for library containing exc_resume... " >&6; }
8863 if test "${ac_cv_search_exc_resume+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8866 ac_func_search_save_LIBS
=$LIBS
8867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8870 /* Override any GCC internal prototype to avoid an error.
8871 Use char because int might match the return type of a GCC
8872 builtin and then its argument prototype would still apply. */
8880 return exc_resume ();
8885 for ac_lib
in '' exc
; do
8886 if test -z "$ac_lib"; then
8887 ac_res
="none required"
8890 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8892 if ac_fn_c_try_link
"$LINENO"; then :
8893 ac_cv_search_exc_resume
=$ac_res
8895 rm -f core conftest.err conftest.
$ac_objext \
8897 if test "${ac_cv_search_exc_resume+set}" = set; then :
8901 if test "${ac_cv_search_exc_resume+set}" = set; then :
8904 ac_cv_search_exc_resume
=no
8907 LIBS
=$ac_func_search_save_LIBS
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8910 $as_echo "$ac_cv_search_exc_resume" >&6; }
8911 ac_res
=$ac_cv_search_exc_resume
8912 if test "$ac_res" != no
; then :
8913 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8921 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8925 $as_echo_n "checking for library containing kstat_open... " >&6; }
8926 if test "${ac_cv_search_kstat_open+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
8929 ac_func_search_save_LIBS
=$LIBS
8930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8933 /* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8943 return kstat_open ();
8948 for ac_lib
in '' kstat
; do
8949 if test -z "$ac_lib"; then
8950 ac_res
="none required"
8953 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8955 if ac_fn_c_try_link
"$LINENO"; then :
8956 ac_cv_search_kstat_open
=$ac_res
8958 rm -f core conftest.err conftest.
$ac_objext \
8960 if test "${ac_cv_search_kstat_open+set}" = set; then :
8964 if test "${ac_cv_search_kstat_open+set}" = set; then :
8967 ac_cv_search_kstat_open
=no
8970 LIBS
=$ac_func_search_save_LIBS
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8973 $as_echo "$ac_cv_search_kstat_open" >&6; }
8974 ac_res
=$ac_cv_search_kstat_open
8975 if test "$ac_res" != no
; then :
8976 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8980 EXTRA_GCC_LIBS
="$LIBS"
8984 # Some systems put ldexp and frexp in libm instead of libc; assume
8985 # they're both in the same place. jcf-dump needs them.
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8989 $as_echo_n "checking for library containing ldexp... " >&6; }
8990 if test "${ac_cv_search_ldexp+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8993 ac_func_search_save_LIBS
=$LIBS
8994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8997 /* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9012 for ac_lib
in '' m
; do
9013 if test -z "$ac_lib"; then
9014 ac_res
="none required"
9017 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9019 if ac_fn_c_try_link
"$LINENO"; then :
9020 ac_cv_search_ldexp
=$ac_res
9022 rm -f core conftest.err conftest.
$ac_objext \
9024 if test "${ac_cv_search_ldexp+set}" = set; then :
9028 if test "${ac_cv_search_ldexp+set}" = set; then :
9031 ac_cv_search_ldexp
=no
9034 LIBS
=$ac_func_search_save_LIBS
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9037 $as_echo "$ac_cv_search_ldexp" >&6; }
9038 ac_res
=$ac_cv_search_ldexp
9039 if test "$ac_res" != no
; then :
9040 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9048 # Use <inttypes.h> only if it exists,
9049 # doesn't clash with <sys/types.h>, and declares intmax_t.
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9051 $as_echo_n "checking for inttypes.h... " >&6; }
9052 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9053 $as_echo_n "(cached) " >&6
9055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 #include <sys/types.h>
9058 #include <inttypes.h>
9067 if ac_fn_c_try_compile
"$LINENO"; then :
9068 gcc_cv_header_inttypes_h
=yes
9070 gcc_cv_header_inttypes_h
=no
9072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9076 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9077 if test $gcc_cv_header_inttypes_h = yes; then
9079 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9085 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9086 sysconf strsignal getrusage nl_langinfo \
9087 gettimeofday mbstowcs wcswidth mmap setlocale \
9088 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
9090 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9091 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9092 eval as_val
=\$
$as_ac_var
9093 if test "x$as_val" = x
""yes; then :
9094 cat >>confdefs.h
<<_ACEOF
9095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9102 if test x
$ac_cv_func_mbstowcs = xyes
; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9104 $as_echo_n "checking whether mbstowcs works... " >&6; }
9105 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9108 if test "$cross_compiling" = yes; then :
9109 gcc_cv_func_mbstowcs_works
=yes
9111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9120 if ac_fn_c_try_run
"$LINENO"; then :
9121 gcc_cv_func_mbstowcs_works
=yes
9123 gcc_cv_func_mbstowcs_works
=no
9125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9131 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9132 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9134 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9139 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9140 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9144 cat >>confdefs.h
<<_ACEOF
9150 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9151 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9155 cat >>confdefs.h
<<_ACEOF
9156 #define caddr_t char *
9163 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9164 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9165 gcc_header_sys_mman_h
=yes
9167 gcc_header_sys_mman_h
=no
9170 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9171 if test "x$ac_cv_func_mmap" = x
""yes; then :
9177 if test "$gcc_header_sys_mman_h" != yes \
9178 ||
test "$gcc_func_mmap" != yes; then
9179 gcc_cv_func_mmap_file
=no
9180 gcc_cv_func_mmap_dev_zero
=no
9181 gcc_cv_func_mmap_anon
=no
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9184 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9185 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9186 $as_echo_n "(cached) " >&6
9188 # Add a system to this blacklist if
9189 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9190 # memory area containing the same data that you'd get if you applied
9191 # read() to the same fd. The only system known to have a problem here
9192 # is VMS, where text files have record structure.
9195 gcc_cv_func_mmap_file
=no
;;
9197 gcc_cv_func_mmap_file
=yes;;
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9201 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9203 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9204 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9205 $as_echo_n "(cached) " >&6
9207 # Add a system to this blacklist if it has mmap() but /dev/zero
9208 # does not exist, or if mmapping /dev/zero does not give anonymous
9209 # zeroed pages with both the following properties:
9210 # 1. If you map N consecutive pages in with one call, and then
9211 # unmap any subset of those pages, the pages that were not
9212 # explicitly unmapped remain accessible.
9213 # 2. If you map two adjacent blocks of memory and then unmap them
9214 # both at once, they must both go away.
9215 # Systems known to be in this category are Windows (all variants),
9218 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9219 gcc_cv_func_mmap_dev_zero
=no
;;
9221 gcc_cv_func_mmap_dev_zero
=yes;;
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9225 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9227 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9229 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9230 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9231 $as_echo_n "(cached) " >&6
9233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 #include <sys/types.h>
9236 #include <sys/mman.h>
9239 #ifndef MAP_ANONYMOUS
9240 #define MAP_ANONYMOUS MAP_ANON
9246 int n = MAP_ANONYMOUS;
9251 if ac_fn_c_try_compile
"$LINENO"; then :
9252 gcc_cv_decl_map_anon
=yes
9254 gcc_cv_decl_map_anon
=no
9256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9259 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9261 if test $gcc_cv_decl_map_anon = no
; then
9262 gcc_cv_func_mmap_anon
=no
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9265 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9266 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9269 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9270 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9271 # doesn't give anonymous zeroed pages with the same properties listed
9272 # above for use of /dev/zero.
9273 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9275 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9276 gcc_cv_func_mmap_anon
=no
;;
9278 gcc_cv_func_mmap_anon
=yes;;
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9282 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9286 if test $gcc_cv_func_mmap_file = yes; then
9288 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9291 if test $gcc_cv_func_mmap_dev_zero = yes; then
9293 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9296 if test $gcc_cv_func_mmap_anon = yes; then
9298 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9305 # Under VMS, vfork works very differently than on Unix. The standard test
9306 # won't work, and it isn't easily adaptable. It makes more sense to
9308 ac_cv_func_vfork_works
=yes
9311 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9312 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9316 cat >>confdefs.h
<<_ACEOF
9322 for ac_header
in vfork.h
9324 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9325 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9326 cat >>confdefs.h
<<_ACEOF
9327 #define HAVE_VFORK_H 1
9333 for ac_func
in fork vfork
9335 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9336 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9337 eval as_val
=\$
$as_ac_var
9338 if test "x$as_val" = x
""yes; then :
9339 cat >>confdefs.h
<<_ACEOF
9340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9346 if test "x$ac_cv_func_fork" = xyes
; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9348 $as_echo_n "checking for working fork... " >&6; }
9349 if test "${ac_cv_func_fork_works+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9352 if test "$cross_compiling" = yes; then :
9353 ac_cv_func_fork_works
=cross
9355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 $ac_includes_default
9362 /* By Ruediger Kuhlmann. */
9369 if ac_fn_c_try_run
"$LINENO"; then :
9370 ac_cv_func_fork_works
=yes
9372 ac_cv_func_fork_works
=no
9374 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9375 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9380 $as_echo "$ac_cv_func_fork_works" >&6; }
9383 ac_cv_func_fork_works
=$ac_cv_func_fork
9385 if test "x$ac_cv_func_fork_works" = xcross
; then
9387 *-*-amigaos* |
*-*-msdosdjgpp*)
9388 # Override, as these systems have only a dummy fork() stub
9389 ac_cv_func_fork_works
=no
9392 ac_cv_func_fork_works
=yes
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9396 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9398 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9399 if test "x$ac_cv_func_vfork" = xyes
; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9401 $as_echo_n "checking for working vfork... " >&6; }
9402 if test "${ac_cv_func_vfork_works+set}" = set; then :
9403 $as_echo_n "(cached) " >&6
9405 if test "$cross_compiling" = yes; then :
9406 ac_cv_func_vfork_works
=cross
9408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 /* Thanks to Paul Eggert for this test. */
9411 $ac_includes_default
9412 #include <sys/wait.h>
9416 /* On some sparc systems, changes by the child to local and incoming
9417 argument registers are propagated back to the parent. The compiler
9418 is told about this with #include <vfork.h>, but some compilers
9419 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9420 static variable whose address is put into a register that is
9421 clobbered by the vfork. */
9424 sparc_address_test (int arg)
9426 sparc_address_test (arg) int arg;
9447 pid_t parent = getpid ();
9450 sparc_address_test (0);
9455 /* Here is another test for sparc vfork register problems. This
9456 test uses lots of local variables, at least as many local
9457 variables as main has allocated so far including compiler
9458 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9459 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9460 reuse the register of parent for one of the local variables,
9461 since it will think that parent can't possibly be used any more
9462 in this routine. Assigning to the local variable will thus
9463 munge parent in the parent process. */
9465 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9466 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9467 /* Convince the compiler that p..p7 are live; otherwise, it might
9468 use the same hardware register for all 8 local variables. */
9469 if (p != p1 || p != p2 || p != p3 || p != p4
9470 || p != p5 || p != p6 || p != p7)
9473 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9474 from child file descriptors. If the child closes a descriptor
9475 before it execs or exits, this munges the parent's descriptor
9476 as well. Test for this by closing stdout in the child. */
9477 _exit(close(fileno(stdout)) != 0);
9482 while (wait(&status) != child)
9485 /* Was there some problem with vforking? */
9488 /* Did the child fail? (This shouldn't happen.) */
9491 /* Did the vfork/compiler bug occur? */
9492 || parent != getpid()
9494 /* Did the file descriptor bug occur? */
9495 || fstat(fileno(stdout), &st) != 0
9500 if ac_fn_c_try_run
"$LINENO"; then :
9501 ac_cv_func_vfork_works
=yes
9503 ac_cv_func_vfork_works
=no
9505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9511 $as_echo "$ac_cv_func_vfork_works" >&6; }
9514 if test "x$ac_cv_func_fork_works" = xcross
; then
9515 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9517 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9520 if test "x$ac_cv_func_vfork_works" = xyes
; then
9522 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9526 $as_echo "#define vfork fork" >>confdefs.h
9529 if test "x$ac_cv_func_fork_works" = xyes
; then
9531 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9536 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9537 # iconv() prototype.
9539 if test "X$prefix" = "XNONE"; then
9540 acl_final_prefix
="$ac_default_prefix"
9542 acl_final_prefix
="$prefix"
9544 if test "X$exec_prefix" = "XNONE"; then
9545 acl_final_exec_prefix
='${prefix}'
9547 acl_final_exec_prefix
="$exec_prefix"
9549 acl_save_prefix
="$prefix"
9550 prefix
="$acl_final_prefix"
9551 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9552 prefix
="$acl_save_prefix"
9555 # Check whether --with-gnu-ld was given.
9556 if test "${with_gnu_ld+set}" = set; then :
9557 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9562 # Prepare PATH_SEPARATOR.
9563 # The user is always right.
9564 if test "${PATH_SEPARATOR+set}" != set; then
9565 echo "#! /bin/sh" >conf$$.sh
9566 echo "exit 0" >>conf$$.sh
9568 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9576 if test "$GCC" = yes; then
9577 # Check if gcc -print-prog-name=ld gives a path.
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9579 $as_echo_n "checking for ld used by GCC... " >&6; }
9582 # gcc leaves a trailing carriage return which upsets mingw
9583 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9585 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9588 # Accept absolute paths.
9589 [\\/]* |
[A-Za-z
]:[\\/]*)
9590 re_direlt
='/[^/][^/]*/\.\./'
9591 # Canonicalize the path of ld
9592 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9593 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9594 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9596 test -z "$LD" && LD
="$ac_prog"
9599 # If it fails, then pretend we aren't using GCC.
9603 # If it is relative, then search for the first ld in PATH.
9607 elif test "$with_gnu_ld" = yes; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9609 $as_echo_n "checking for GNU ld... " >&6; }
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9612 $as_echo_n "checking for non-GNU ld... " >&6; }
9614 if test "${acl_cv_path_LD+set}" = set; then :
9615 $as_echo_n "(cached) " >&6
9617 if test -z "$LD"; then
9618 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9619 for ac_dir
in $PATH; do
9620 test -z "$ac_dir" && ac_dir
=.
9621 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9622 acl_cv_path_LD
="$ac_dir/$ac_prog"
9623 # Check to see if the program is GNU ld. I'd rather use --version,
9624 # but apparently some GNU ld's only accept -v.
9625 # Break only if it was the GNU/non-GNU ld that we prefer.
9626 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9627 test "$with_gnu_ld" != no
&& break
9629 test "$with_gnu_ld" != yes && break
9635 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9639 LD
="$acl_cv_path_LD"
9640 if test -n "$LD"; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9642 $as_echo "$LD" >&6; }
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645 $as_echo "no" >&6; }
9647 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9649 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9650 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9651 $as_echo_n "(cached) " >&6
9653 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9654 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9655 acl_cv_prog_gnu_ld
=yes
9657 acl_cv_prog_gnu_ld
=no
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9661 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9662 with_gnu_ld
=$acl_cv_prog_gnu_ld
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9667 $as_echo_n "checking for shared library run path origin... " >&6; }
9668 if test "${acl_cv_rpath+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9672 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9673 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9680 $as_echo "$acl_cv_rpath" >&6; }
9682 libext
="$acl_cv_libext"
9683 shlibext
="$acl_cv_shlibext"
9684 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9685 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9686 hardcode_direct
="$acl_cv_hardcode_direct"
9687 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9688 # Check whether --enable-rpath was given.
9689 if test "${enable_rpath+set}" = set; then :
9690 enableval
=$enable_rpath; :
9704 acl_save_prefix
="$prefix"
9705 prefix
="$acl_final_prefix"
9706 acl_save_exec_prefix
="$exec_prefix"
9707 exec_prefix
="$acl_final_exec_prefix"
9709 eval additional_includedir
=\"$includedir\"
9710 eval additional_libdir
=\"$libdir\"
9712 exec_prefix
="$acl_save_exec_prefix"
9713 prefix
="$acl_save_prefix"
9716 # Check whether --with-libiconv-prefix was given.
9717 if test "${with_libiconv_prefix+set}" = set; then :
9718 withval
=$with_libiconv_prefix;
9719 if test "X$withval" = "Xno"; then
9722 if test "X$withval" = "X"; then
9724 acl_save_prefix
="$prefix"
9725 prefix
="$acl_final_prefix"
9726 acl_save_exec_prefix
="$exec_prefix"
9727 exec_prefix
="$acl_final_exec_prefix"
9729 eval additional_includedir
=\"$includedir\"
9730 eval additional_libdir
=\"$libdir\"
9732 exec_prefix
="$acl_save_exec_prefix"
9733 prefix
="$acl_save_prefix"
9736 additional_includedir
="$withval/include"
9737 additional_libdir
="$withval/lib"
9748 names_already_handled
=
9749 names_next_round
='iconv '
9750 while test -n "$names_next_round"; do
9751 names_this_round
="$names_next_round"
9753 for name
in $names_this_round; do
9755 for n
in $names_already_handled; do
9756 if test "$n" = "$name"; then
9761 if test -z "$already_handled"; then
9762 names_already_handled
="$names_already_handled $name"
9763 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9764 eval value
=\"\
$HAVE_LIB$uppername\"
9765 if test -n "$value"; then
9766 if test "$value" = yes; then
9767 eval value
=\"\
$LIB$uppername\"
9768 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9769 eval value
=\"\
$LTLIB$uppername\"
9770 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9779 if test $use_additional = yes; then
9780 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9781 found_dir
="$additional_libdir"
9782 found_so
="$additional_libdir/lib$name.$shlibext"
9783 if test -f "$additional_libdir/lib$name.la"; then
9784 found_la
="$additional_libdir/lib$name.la"
9787 if test -f "$additional_libdir/lib$name.$libext"; then
9788 found_dir
="$additional_libdir"
9789 found_a
="$additional_libdir/lib$name.$libext"
9790 if test -f "$additional_libdir/lib$name.la"; then
9791 found_la
="$additional_libdir/lib$name.la"
9796 if test "X$found_dir" = "X"; then
9797 for x
in $LDFLAGS $LTLIBICONV; do
9799 acl_save_prefix
="$prefix"
9800 prefix
="$acl_final_prefix"
9801 acl_save_exec_prefix
="$exec_prefix"
9802 exec_prefix
="$acl_final_exec_prefix"
9804 exec_prefix
="$acl_save_exec_prefix"
9805 prefix
="$acl_save_prefix"
9809 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9810 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9812 found_so
="$dir/lib$name.$shlibext"
9813 if test -f "$dir/lib$name.la"; then
9814 found_la
="$dir/lib$name.la"
9817 if test -f "$dir/lib$name.$libext"; then
9819 found_a
="$dir/lib$name.$libext"
9820 if test -f "$dir/lib$name.la"; then
9821 found_la
="$dir/lib$name.la"
9827 if test "X$found_dir" != "X"; then
9832 if test "X$found_dir" != "X"; then
9833 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9834 if test "X$found_so" != "X"; then
9835 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9836 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9839 for x
in $ltrpathdirs; do
9840 if test "X$x" = "X$found_dir"; then
9845 if test -z "$haveit"; then
9846 ltrpathdirs
="$ltrpathdirs $found_dir"
9848 if test "$hardcode_direct" = yes; then
9849 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9851 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9852 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9854 for x
in $rpathdirs; do
9855 if test "X$x" = "X$found_dir"; then
9860 if test -z "$haveit"; then
9861 rpathdirs
="$rpathdirs $found_dir"
9865 for x
in $LDFLAGS $LIBICONV; do
9867 acl_save_prefix
="$prefix"
9868 prefix
="$acl_final_prefix"
9869 acl_save_exec_prefix
="$exec_prefix"
9870 exec_prefix
="$acl_final_exec_prefix"
9872 exec_prefix
="$acl_save_exec_prefix"
9873 prefix
="$acl_save_prefix"
9875 if test "X$x" = "X-L$found_dir"; then
9880 if test -z "$haveit"; then
9881 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9883 if test "$hardcode_minus_L" != no
; then
9884 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9886 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9892 if test "X$found_a" != "X"; then
9893 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9895 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9898 additional_includedir
=
9899 case "$found_dir" in
9901 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9902 additional_includedir
="$basedir/include"
9905 if test "X$additional_includedir" != "X"; then
9906 if test "X$additional_includedir" != "X/usr/include"; then
9908 if test "X$additional_includedir" = "X/usr/local/include"; then
9909 if test -n "$GCC"; then
9911 linux
*) haveit
=yes;;
9915 if test -z "$haveit"; then
9916 for x
in $CPPFLAGS $INCICONV; do
9918 acl_save_prefix
="$prefix"
9919 prefix
="$acl_final_prefix"
9920 acl_save_exec_prefix
="$exec_prefix"
9921 exec_prefix
="$acl_final_exec_prefix"
9923 exec_prefix
="$acl_save_exec_prefix"
9924 prefix
="$acl_save_prefix"
9926 if test "X$x" = "X-I$additional_includedir"; then
9931 if test -z "$haveit"; then
9932 if test -d "$additional_includedir"; then
9933 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9939 if test -n "$found_la"; then
9940 save_libdir
="$libdir"
9942 */* |
*\\*) .
"$found_la" ;;
9943 *) .
"./$found_la" ;;
9945 libdir
="$save_libdir"
9946 for dep
in $dependency_libs; do
9949 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9950 if test "X$additional_libdir" != "X/usr/lib"; then
9952 if test "X$additional_libdir" = "X/usr/local/lib"; then
9953 if test -n "$GCC"; then
9955 linux
*) haveit
=yes;;
9959 if test -z "$haveit"; then
9961 for x
in $LDFLAGS $LIBICONV; do
9963 acl_save_prefix
="$prefix"
9964 prefix
="$acl_final_prefix"
9965 acl_save_exec_prefix
="$exec_prefix"
9966 exec_prefix
="$acl_final_exec_prefix"
9968 exec_prefix
="$acl_save_exec_prefix"
9969 prefix
="$acl_save_prefix"
9971 if test "X$x" = "X-L$additional_libdir"; then
9976 if test -z "$haveit"; then
9977 if test -d "$additional_libdir"; then
9978 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9982 for x
in $LDFLAGS $LTLIBICONV; do
9984 acl_save_prefix
="$prefix"
9985 prefix
="$acl_final_prefix"
9986 acl_save_exec_prefix
="$exec_prefix"
9987 exec_prefix
="$acl_final_exec_prefix"
9989 exec_prefix
="$acl_save_exec_prefix"
9990 prefix
="$acl_save_prefix"
9992 if test "X$x" = "X-L$additional_libdir"; then
9997 if test -z "$haveit"; then
9998 if test -d "$additional_libdir"; then
9999 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10006 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10007 if test "$enable_rpath" != no
; then
10009 for x
in $rpathdirs; do
10010 if test "X$x" = "X$dir"; then
10015 if test -z "$haveit"; then
10016 rpathdirs
="$rpathdirs $dir"
10019 for x
in $ltrpathdirs; do
10020 if test "X$x" = "X$dir"; then
10025 if test -z "$haveit"; then
10026 ltrpathdirs
="$ltrpathdirs $dir"
10031 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10034 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10037 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10038 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10044 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10045 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10051 if test "X$rpathdirs" != "X"; then
10052 if test -n "$hardcode_libdir_separator"; then
10054 for found_dir
in $rpathdirs; do
10055 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10057 acl_save_libdir
="$libdir"
10059 eval flag
=\"$hardcode_libdir_flag_spec\"
10060 libdir
="$acl_save_libdir"
10061 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10063 for found_dir
in $rpathdirs; do
10064 acl_save_libdir
="$libdir"
10065 libdir
="$found_dir"
10066 eval flag
=\"$hardcode_libdir_flag_spec\"
10067 libdir
="$acl_save_libdir"
10068 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10072 if test "X$ltrpathdirs" != "X"; then
10073 for found_dir
in $ltrpathdirs; do
10074 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10079 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10081 ac_cpp
='$CXXCPP $CPPFLAGS'
10082 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10083 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10084 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10091 am_save_CPPFLAGS
="$CPPFLAGS"
10093 for element
in $INCICONV; do
10095 for x
in $CPPFLAGS; do
10097 acl_save_prefix
="$prefix"
10098 prefix
="$acl_final_prefix"
10099 acl_save_exec_prefix
="$exec_prefix"
10100 exec_prefix
="$acl_final_exec_prefix"
10102 exec_prefix
="$acl_save_exec_prefix"
10103 prefix
="$acl_save_prefix"
10105 if test "X$x" = "X$element"; then
10110 if test -z "$haveit"; then
10111 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10117 $as_echo_n "checking for iconv... " >&6; }
10118 if test "${am_cv_func_iconv+set}" = set; then :
10119 $as_echo_n "(cached) " >&6
10122 am_cv_func_iconv
="no, consider installing GNU libiconv"
10124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126 #include <stdlib.h>
10131 iconv_t cd = iconv_open("","");
10132 iconv(cd,NULL,NULL,NULL,NULL);
10138 if ac_fn_cxx_try_link
"$LINENO"; then :
10139 am_cv_func_iconv
=yes
10141 rm -f core conftest.err conftest.
$ac_objext \
10142 conftest
$ac_exeext conftest.
$ac_ext
10143 if test "$am_cv_func_iconv" != yes; then
10144 am_save_LIBS
="$LIBS"
10145 LIBS
="$LIBS $LIBICONV"
10146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148 #include <stdlib.h>
10153 iconv_t cd = iconv_open("","");
10154 iconv(cd,NULL,NULL,NULL,NULL);
10160 if ac_fn_cxx_try_link
"$LINENO"; then :
10161 am_cv_lib_iconv
=yes
10162 am_cv_func_iconv
=yes
10164 rm -f core conftest.err conftest.
$ac_objext \
10165 conftest
$ac_exeext conftest.
$ac_ext
10166 LIBS
="$am_save_LIBS"
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10171 $as_echo "$am_cv_func_iconv" >&6; }
10172 if test "$am_cv_func_iconv" = yes; then
10174 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10177 if test "$am_cv_lib_iconv" = yes; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10179 $as_echo_n "checking how to link with libiconv... " >&6; }
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10181 $as_echo "$LIBICONV" >&6; }
10183 CPPFLAGS
="$am_save_CPPFLAGS"
10190 if test "$am_cv_func_iconv" = yes; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10192 $as_echo_n "checking for iconv declaration... " >&6; }
10193 if test "${am_cv_proto_iconv+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10200 #include <stdlib.h>
10206 #if defined(__STDC__) || defined(__cplusplus)
10207 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10220 if ac_fn_cxx_try_compile
"$LINENO"; then :
10221 am_cv_proto_iconv_arg1
=""
10223 am_cv_proto_iconv_arg1
="const"
10225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10226 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);"
10229 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10231 }$am_cv_proto_iconv" >&5
10233 }$am_cv_proto_iconv" >&6; }
10235 cat >>confdefs.h
<<_ACEOF
10236 #define ICONV_CONST $am_cv_proto_iconv_arg1
10242 ac_cpp
='$CPP $CPPFLAGS'
10243 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10244 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10245 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10253 am_save_CPPFLAGS
="$CPPFLAGS"
10255 for element
in $INCICONV; do
10257 for x
in $CPPFLAGS; do
10259 acl_save_prefix
="$prefix"
10260 prefix
="$acl_final_prefix"
10261 acl_save_exec_prefix
="$exec_prefix"
10262 exec_prefix
="$acl_final_exec_prefix"
10264 exec_prefix
="$acl_save_exec_prefix"
10265 prefix
="$acl_save_prefix"
10267 if test "X$x" = "X$element"; then
10272 if test -z "$haveit"; then
10273 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10279 $as_echo_n "checking for iconv... " >&6; }
10280 if test "${am_cv_func_iconv+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10284 am_cv_func_iconv
="no, consider installing GNU libiconv"
10286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288 #include <stdlib.h>
10293 iconv_t cd = iconv_open("","");
10294 iconv(cd,NULL,NULL,NULL,NULL);
10300 if ac_fn_c_try_link
"$LINENO"; then :
10301 am_cv_func_iconv
=yes
10303 rm -f core conftest.err conftest.
$ac_objext \
10304 conftest
$ac_exeext conftest.
$ac_ext
10305 if test "$am_cv_func_iconv" != yes; then
10306 am_save_LIBS
="$LIBS"
10307 LIBS
="$LIBS $LIBICONV"
10308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10309 /* end confdefs.h. */
10310 #include <stdlib.h>
10315 iconv_t cd = iconv_open("","");
10316 iconv(cd,NULL,NULL,NULL,NULL);
10322 if ac_fn_c_try_link
"$LINENO"; then :
10323 am_cv_lib_iconv
=yes
10324 am_cv_func_iconv
=yes
10326 rm -f core conftest.err conftest.
$ac_objext \
10327 conftest
$ac_exeext conftest.
$ac_ext
10328 LIBS
="$am_save_LIBS"
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10333 $as_echo "$am_cv_func_iconv" >&6; }
10334 if test "$am_cv_func_iconv" = yes; then
10336 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10339 if test "$am_cv_lib_iconv" = yes; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10341 $as_echo_n "checking how to link with libiconv... " >&6; }
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10343 $as_echo "$LIBICONV" >&6; }
10345 CPPFLAGS
="$am_save_CPPFLAGS"
10352 if test "$am_cv_func_iconv" = yes; then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10354 $as_echo_n "checking for iconv declaration... " >&6; }
10355 if test "${am_cv_proto_iconv+set}" = set; then :
10356 $as_echo_n "(cached) " >&6
10359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10362 #include <stdlib.h>
10368 #if defined(__STDC__) || defined(__cplusplus)
10369 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10382 if ac_fn_c_try_compile
"$LINENO"; then :
10383 am_cv_proto_iconv_arg1
=""
10385 am_cv_proto_iconv_arg1
="const"
10387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10388 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);"
10391 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10393 }$am_cv_proto_iconv" >&5
10395 }$am_cv_proto_iconv" >&6; }
10397 cat >>confdefs.h
<<_ACEOF
10398 #define ICONV_CONST $am_cv_proto_iconv_arg1
10405 # Until we have in-tree GNU iconv:
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10411 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10412 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
10415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 #include <locale.h>
10426 if ac_fn_c_try_link
"$LINENO"; then :
10427 am_cv_val_LC_MESSAGES
=yes
10429 am_cv_val_LC_MESSAGES
=no
10431 rm -f core conftest.err conftest.
$ac_objext \
10432 conftest
$ac_exeext conftest.
$ac_ext
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10435 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10436 if test $am_cv_val_LC_MESSAGES = yes; then
10438 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10445 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10446 if test "${am_cv_langinfo_codeset+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 #include <langinfo.h>
10455 char* cs = nl_langinfo(CODESET);
10460 if ac_fn_c_try_link
"$LINENO"; then :
10461 am_cv_langinfo_codeset
=yes
10463 am_cv_langinfo_codeset
=no
10465 rm -f core conftest.err conftest.
$ac_objext \
10466 conftest
$ac_exeext conftest.
$ac_ext
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10470 $as_echo "$am_cv_langinfo_codeset" >&6; }
10471 if test $am_cv_langinfo_codeset = yes; then
10473 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10478 # We will need to find libiberty.h and ansidecl.h
10479 saved_CFLAGS
="$CFLAGS"
10480 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10481 saved_CXXFLAGS
="$CXXFLAGS"
10482 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10483 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10484 strsignal strstr stpcpy strverscmp \
10485 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10486 free
basename getopt
clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10488 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10490 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10491 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10492 $as_echo_n "(cached) " >&6
10494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10497 #define $ac_tr_decl 1
10499 #include "ansidecl.h"
10500 #include "system.h"
10506 char *(*pfn) = (char *(*)) $ac_func ;
10512 if ac_fn_c_try_compile
"$LINENO"; then :
10513 eval "gcc_cv_have_decl_$ac_func=yes"
10515 eval "gcc_cv_have_decl_$ac_func=no"
10517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10520 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10522 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10523 #define $ac_tr_decl 1
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10529 #define $ac_tr_decl 0
10537 for ac_func
in getrlimit setrlimit getrusage
10539 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10541 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10542 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10543 $as_echo_n "(cached) " >&6
10545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10548 #define $ac_tr_decl 1
10550 #include "ansidecl.h"
10551 #include "system.h"
10552 #ifdef HAVE_SYS_RESOURCE_H
10553 #include <sys/resource.h>
10561 char *(*pfn) = (char *(*)) $ac_func ;
10567 if ac_fn_c_try_compile
"$LINENO"; then :
10568 eval "gcc_cv_have_decl_$ac_func=yes"
10570 eval "gcc_cv_have_decl_$ac_func=no"
10572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10575 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10578 #define $ac_tr_decl 1
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10584 #define $ac_tr_decl 0
10592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10595 #include "ansidecl.h"
10596 #include "system.h"
10597 #ifdef HAVE_SYS_RESOURCE_H
10598 #include <sys/resource.h>
10609 if ac_fn_c_try_compile
"$LINENO"; then :
10613 $as_echo "#define rlim_t long" >>confdefs.h
10616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10618 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10619 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10620 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10621 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10622 for ac_func
in ldgetname
10624 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10626 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10627 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10628 $as_echo_n "(cached) " >&6
10630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10633 #define $ac_tr_decl 1
10635 #include "ansidecl.h"
10636 #include "system.h"
10637 #ifdef HAVE_LDFCN_H
10648 char *(*pfn) = (char *(*)) $ac_func ;
10654 if ac_fn_c_try_compile
"$LINENO"; then :
10655 eval "gcc_cv_have_decl_$ac_func=yes"
10657 eval "gcc_cv_have_decl_$ac_func=no"
10659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10662 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10664 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10665 #define $ac_tr_decl 1
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10671 #define $ac_tr_decl 0
10679 for ac_func
in times
10681 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10683 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10684 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10685 $as_echo_n "(cached) " >&6
10687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10690 #define $ac_tr_decl 1
10692 #include "ansidecl.h"
10693 #include "system.h"
10694 #ifdef HAVE_SYS_TIMES_H
10695 #include <sys/times.h>
10703 char *(*pfn) = (char *(*)) $ac_func ;
10709 if ac_fn_c_try_compile
"$LINENO"; then :
10710 eval "gcc_cv_have_decl_$ac_func=yes"
10712 eval "gcc_cv_have_decl_$ac_func=no"
10714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10717 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10719 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10720 #define $ac_tr_decl 1
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10726 #define $ac_tr_decl 0
10734 for ac_func
in sigaltstack
10736 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10738 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10739 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10740 $as_echo_n "(cached) " >&6
10742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10745 #define $ac_tr_decl 1
10747 #include "ansidecl.h"
10748 #include "system.h"
10749 #include <signal.h>
10756 char *(*pfn) = (char *(*)) $ac_func ;
10762 if ac_fn_c_try_compile
"$LINENO"; then :
10763 eval "gcc_cv_have_decl_$ac_func=yes"
10765 eval "gcc_cv_have_decl_$ac_func=no"
10767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10770 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10772 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10773 #define $ac_tr_decl 1
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10779 #define $ac_tr_decl 0
10787 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10789 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10791 ac_cpp
='$CXXCPP $CPPFLAGS'
10792 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10793 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10794 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10796 for ac_func
in madvise
10798 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10800 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10801 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10802 $as_echo_n "(cached) " >&6
10804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10807 #define $ac_tr_decl 1
10809 #include "ansidecl.h"
10810 #include "system.h"
10817 char *(*pfn) = (char *(*)) $ac_func ;
10823 if ac_fn_cxx_try_compile
"$LINENO"; then :
10824 eval "gcc_cv_have_decl_$ac_func=yes"
10826 eval "gcc_cv_have_decl_$ac_func=no"
10828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10831 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10833 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10834 #define $ac_tr_decl 1
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10840 #define $ac_tr_decl 0
10848 ac_cpp
='$CPP $CPPFLAGS'
10849 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10850 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10851 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10854 for ac_func
in madvise
10856 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10858 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10859 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10860 $as_echo_n "(cached) " >&6
10862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10865 #define $ac_tr_decl 1
10867 #include "ansidecl.h"
10868 #include "system.h"
10875 char *(*pfn) = (char *(*)) $ac_func ;
10881 if ac_fn_c_try_compile
"$LINENO"; then :
10882 eval "gcc_cv_have_decl_$ac_func=yes"
10884 eval "gcc_cv_have_decl_$ac_func=no"
10886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10889 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10891 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10892 #define $ac_tr_decl 1
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10898 #define $ac_tr_decl 0
10908 # More time-related stuff.
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10910 $as_echo_n "checking for struct tms... " >&6; }
10911 if test "${ac_cv_struct_tms+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10918 #include "ansidecl.h"
10919 #include "system.h"
10920 #ifdef HAVE_SYS_TIMES_H
10921 #include <sys/times.h>
10932 if ac_fn_c_try_compile
"$LINENO"; then :
10933 ac_cv_struct_tms
=yes
10935 ac_cv_struct_tms
=no
10937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10940 $as_echo "$ac_cv_struct_tms" >&6; }
10941 if test $ac_cv_struct_tms = yes; then
10943 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10947 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10948 # revisit after autoconf 2.50.
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10950 $as_echo_n "checking for clock_t... " >&6; }
10951 if test "${gcc_cv_type_clock_t+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10958 #include "ansidecl.h"
10959 #include "system.h"
10969 if ac_fn_c_try_compile
"$LINENO"; then :
10970 gcc_cv_type_clock_t
=yes
10972 gcc_cv_type_clock_t
=no
10974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10977 $as_echo "$gcc_cv_type_clock_t" >&6; }
10978 if test $gcc_cv_type_clock_t = yes; then
10980 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10984 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10985 CFLAGS
="$saved_CFLAGS"
10986 CXXFLAGS
="$saved_CXXFLAGS"
10988 # mkdir takes a single argument on some systems.
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10990 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10991 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10997 #include <sys/types.h>
10998 #ifdef HAVE_SYS_STAT_H
10999 # include <sys/stat.h>
11001 #ifdef HAVE_UNISTD_H
11002 # include <unistd.h>
11004 #ifdef HAVE_DIRECT_H
11005 # include <direct.h>
11015 if ac_fn_c_try_compile
"$LINENO"; then :
11016 gcc_cv_mkdir_takes_one_arg
=no
11018 gcc_cv_mkdir_takes_one_arg
=yes
11020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11023 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11024 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11026 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11037 # With Setjmp/Longjmp based exception handling.
11038 # Check whether --enable-sjlj-exceptions was given.
11039 if test "${enable_sjlj_exceptions+set}" = set; then :
11040 enableval
=$enable_sjlj_exceptions; case $target in
11042 if test $enableval != yes; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11044 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11049 force_sjlj_exceptions
=yes
11053 force_sjlj_exceptions
=yes
11057 force_sjlj_exceptions
=no
11062 if test $force_sjlj_exceptions = yes; then
11063 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11065 cat >>confdefs.h
<<_ACEOF
11066 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11071 # --------------------------------------------------------
11072 # Build, host, and target specific configuration fragments
11073 # --------------------------------------------------------
11075 # Collect build-machine-specific information.
11076 .
${srcdir}/config.build
11078 # Collect host-machine-specific information.
11079 .
${srcdir}/config.
host
11083 # Collect target-machine-specific information.
11084 .
${srcdir}/config.gcc
11086 extra_objs
="${host_extra_objs} ${extra_objs}"
11087 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11089 # Default the target-machine variables that were not explicitly set.
11090 if test x
"$tm_file" = x
11091 then tm_file
=$cpu_type/$cpu_type.h
; fi
11093 if test x
"$extra_headers" = x
11094 then extra_headers
=; fi
11096 if test x
$md_file = x
11097 then md_file
=$cpu_type/$cpu_type.md
; fi
11099 if test x
$out_file = x
11100 then out_file
=$cpu_type/$cpu_type.c
; fi
11102 if test x
"$tmake_file" = x
11103 then tmake_file
=$cpu_type/t-
$cpu_type
11106 # Support --enable-initfini-array.
11107 if test x
$enable_initfini_array != xno
; then
11108 tm_file
="${tm_file} initfini-array.h"
11111 if test x
"$dwarf2" = xyes
11112 then tm_file
="$tm_file tm-dwarf2.h"
11115 # Say what files are being used for the output code and MD file.
11116 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11117 echo "Using \`$srcdir/config/$md_file' as machine description file."
11119 # If any of the xm_file variables contain nonexistent files, warn
11120 # about them and drop them.
11123 for x
in $build_xm_file; do
11124 if test -f $srcdir/config
/$x
11126 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11127 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11130 build_xm_file
="$bx"
11133 for x
in $host_xm_file; do
11134 if test -f $srcdir/config
/$x
11136 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11137 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11143 for x
in $xm_file; do
11144 if test -f $srcdir/config
/$x
11146 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11147 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11153 for f
in $tm_file; do
11156 if test $count = ax
; then
11157 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11159 echo "Using the following target machine macro files:"
11160 for f
in $tm_file; do
11161 echo " $srcdir/config/$f"
11165 if test x
$need_64bit_hwint = xyes
; then
11167 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11171 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11173 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11178 for f
in $host_xm_file; do
11181 if test $count = a
; then
11183 elif test $count = ax
; then
11184 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11186 echo "Using the following host machine macro files:"
11187 for f
in $host_xm_file; do
11188 echo " $srcdir/config/$f"
11191 echo "Using ${out_host_hook_obj} for host machine hooks."
11193 if test "$host_xm_file" != "$build_xm_file"; then
11195 for f
in $build_xm_file; do
11198 if test $count = a
; then
11200 elif test $count = ax
; then
11201 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11203 echo "Using the following build machine macro files:"
11204 for f
in $build_xm_file; do
11205 echo " $srcdir/config/$f"
11210 if test -n "$configured_native_system_header_dir"; then
11211 native_system_header_dir
=$configured_native_system_header_dir
11213 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11217 powerpc
*-*-darwin*)
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11219 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11220 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11221 $as_echo_n "(cached) " >&6
11223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11226 #include <sys/cdefs.h>
11227 #include <sys/signal.h>
11228 #include <ucontext.h>
11229 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11232 if ac_fn_c_try_compile
"$LINENO"; then :
11233 gcc_cv_mcontext_underscores
=no
11235 gcc_cv_mcontext_underscores
=yes
11237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11240 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11241 if test $gcc_cv_mcontext_underscores = yes; then
11243 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11253 # Check if a valid thread package
11254 case ${enable_threads} in
11257 target_thread_file
='single'
11261 target_thread_file
='single'
11263 aix | dce | lynx | mipssde | posix | rtems | \
11264 single | tpf | vxworks | win32
)
11265 target_thread_file
=${enable_threads}
11268 echo "${enable_threads} is an unknown thread package" 1>&2
11273 if test x
${thread_file} = x
; then
11274 # No thread file set by target-specific clauses in config.gcc,
11275 # so use file chosen by default logic above
11276 thread_file
=${target_thread_file}
11284 if test x
$enable___cxa_atexit = xyes || \
11285 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11286 if test x
$host = x
$target; then
11288 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11289 # keyed to flag_use_cxa_atexit
11294 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11295 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11298 echo "__cxa_atexit can't be enabled on this target"
11304 # We can't check for __cxa_atexit when building a cross, so assume
11308 if test x
$use_cxa_atexit = xyes
; then
11310 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11315 # Look for a file containing extra machine modes.
11316 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11317 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11320 cat >>confdefs.h
<<_ACEOF
11321 #define EXTRA_MODES_FILE "config/$extra_modes"
11326 # Convert extra_options into a form suitable for Makefile use.
11329 for f
in $extra_options; do
11330 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11331 all_opt_files
="$all_opt_files $srcdir/config/$f"
11335 # auto-host.h is the file containing items generated by autoconf and is
11336 # the first file included by config.h.
11337 # If host=build, it is correct to have bconfig include auto-host.h
11338 # as well. If host!=build, we are in error and need to do more
11339 # work to find out the build config parameters.
11340 if test x
$host = x
$build
11342 build_auto
=auto-host.h
11344 # We create a subdir, then run autoconf in the subdir.
11345 # To prevent recursion we set host and build for the new
11346 # invocation of configure to the build for this invocation
11353 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11354 *) realsrcdir
=..
/${srcdir};;
11356 saved_CFLAGS
="${CFLAGS}"
11357 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11358 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11359 ${realsrcdir}/configure \
11360 --enable-languages=${enable_languages-all} \
11361 --target=$target_alias --host=$build_alias --build=$build_alias
11362 CFLAGS
="${saved_CFLAGS}"
11364 # We just finished tests for the build machine, so rename
11365 # the file auto-build.h in the gcc directory.
11366 mv auto-host.h ..
/auto-build.h
11369 build_auto
=auto-build.h
11373 tm_file
="${tm_file} defaults.h"
11374 tm_p_file
="${tm_p_file} tm-preds.h"
11375 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11376 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11377 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11378 # put this back in temporarily.
11379 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11385 # Compile in configure arguments.
11386 if test -f configargs.h
; then
11387 # Being re-configured.
11388 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11389 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11391 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11394 # Double all backslashes and backslash all quotes to turn
11395 # gcc_config_arguments into a C string.
11396 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11397 $gcc_config_arguments
11399 gcc_config_arguments_str
=`cat conftest.out`
11402 cat > configargs.h
<<EOF
11403 /* Generated automatically. */
11404 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11405 static const char thread_model[] = "$thread_file";
11407 static const struct {
11408 const char *name, *value;
11409 } configure_default_options[] = $configure_default_options;
11412 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11413 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11414 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11415 if test -f $srcdir/REVISION
; then
11416 gcc_REVISION
=`cat $srcdir/REVISION`
11420 cat > plugin-version.h
<<EOF
11421 #include "configargs.h"
11423 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11424 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11425 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11426 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11428 static char basever[] = "$gcc_BASEVER";
11429 static char datestamp[] = "$gcc_DATESTAMP";
11430 static char devphase[] = "$gcc_DEVPHASE";
11431 static char revision[] = "$gcc_REVISION";
11433 /* FIXME plugins: We should make the version information more precise.
11434 One way to do is to add a checksum. */
11436 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11437 devphase, revision,
11438 configuration_arguments};
11441 # Internationalization
11442 # If we haven't got the data from the intl directory,
11443 # assume NLS is disabled.
11452 if test -f ..
/intl
/config.intl
; then
11453 . ..
/intl
/config.intl
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11456 $as_echo_n "checking whether NLS is requested... " >&6; }
11457 if test x
"$USE_NLS" != xyes
; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11462 $as_echo "yes" >&6; }
11464 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11468 $as_echo_n "checking for catalogs to be installed... " >&6; }
11469 # Look for .po and .gmo files in the source directory.
11472 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11473 # If there aren't any .gmo files the shell will give us the
11474 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11476 case "$cat" in *\
**)
11479 # The quadruple backslash is collapsed to a double backslash
11480 # by the backticks, then collapsed again by the double quotes,
11481 # leaving us with one backslash in the sed expression (right
11482 # before the dot that mustn't act as a wildcard).
11483 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11484 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11485 # The user is allowed to set LINGUAS to a list of languages to
11486 # install catalogs for. If it's empty that means "all of them."
11487 if test "x$LINGUAS" = x
; then
11488 CATALOGS
="$CATALOGS $cat"
11489 XLINGUAS
="$XLINGUAS $lang"
11491 case "$LINGUAS" in *$lang*)
11492 CATALOGS
="$CATALOGS $cat"
11493 XLINGUAS
="$XLINGUAS $lang"
11498 LINGUAS
="$XLINGUAS"
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11500 $as_echo "$LINGUAS" >&6; }
11513 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11514 # -liconv on the link line twice.
11515 case "$LIBINTL" in *$LIBICONV*)
11519 # Check whether --enable-secureplt was given.
11520 if test "${enable_secureplt+set}" = set; then :
11521 enableval
=$enable_secureplt;
11525 # Check whether --enable-leading-mingw64-underscores was given.
11526 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11527 enableval
=$enable_leading_mingw64_underscores;
11530 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11532 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11536 # Check whether --enable-cld was given.
11537 if test "${enable_cld+set}" = set; then :
11538 enableval
=$enable_cld;
11544 # Check whether --enable-frame-pointer was given.
11545 if test "${enable_frame_pointer+set}" = set; then :
11546 enableval
=$enable_frame_pointer;
11550 linux
* | darwin
[8912]*)
11551 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11553 enable_frame_pointer
=no
11556 enable_frame_pointer
=yes
11563 # Windows32 Registry support for specifying GCC installation paths.
11564 # Check whether --enable-win32-registry was given.
11565 if test "${enable_win32_registry+set}" = set; then :
11566 enableval
=$enable_win32_registry;
11571 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11572 if test "x$enable_win32_registry" != xno
; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11574 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11575 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11578 ac_func_search_save_LIBS
=$LIBS
11579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11582 /* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11588 char RegOpenKeyExA ();
11592 return RegOpenKeyExA ();
11597 for ac_lib
in '' advapi32
; do
11598 if test -z "$ac_lib"; then
11599 ac_res
="none required"
11602 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11604 if ac_fn_c_try_link
"$LINENO"; then :
11605 ac_cv_search_RegOpenKeyExA
=$ac_res
11607 rm -f core conftest.err conftest.
$ac_objext \
11609 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11613 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11616 ac_cv_search_RegOpenKeyExA
=no
11618 rm conftest.
$ac_ext
11619 LIBS
=$ac_func_search_save_LIBS
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11622 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11623 ac_res
=$ac_cv_search_RegOpenKeyExA
11624 if test "$ac_res" != no
; then :
11625 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11628 enable_win32_registry
=no
11633 if test "x$enable_win32_registry" != xno
; then
11635 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11638 if test "x$enable_win32_registry" != xyes \
11639 && test "x$enable_win32_registry" != x
; then
11641 cat >>confdefs.h
<<_ACEOF
11642 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11650 # Get an absolute path to the GCC top-level source directory
11651 holddir
=`${PWDCMD-pwd}`
11653 topdir
=`${PWDCMD-pwd}`
11656 # Conditionalize the makefile for this host machine.
11658 for f
in ${host_xmake_file}
11660 if test -f ${srcdir}/config
/$f
11662 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11666 # Conditionalize the makefile for this target machine.
11668 for f
in ${tmake_file}
11670 if test -f ${srcdir}/config
/$f
11672 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11675 tmake_file
="${tmake_file_}"
11677 out_object_file
=`basename $out_file .c`.o
11678 common_out_object_file
=`basename $common_out_file .c`.o
11680 tm_file_list
="options.h"
11681 tm_include_list
="options.h insn-constants.h"
11682 for f
in $tm_file; do
11685 f
=`echo $f | sed 's/^..//'`
11686 tm_file_list
="${tm_file_list} $f"
11687 tm_include_list
="${tm_include_list} $f"
11690 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11691 tm_include_list
="${tm_include_list} $f"
11694 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11695 tm_include_list
="${tm_include_list} config/$f"
11702 for f
in $tm_p_file; do
11705 tm_p_file_list
="${tm_p_file_list} $f"
11706 tm_p_include_list
="${tm_p_include_list} $f"
11709 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11710 tm_p_include_list
="${tm_p_include_list} config/$f"
11716 for f
in $xm_file; do
11719 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11720 xm_include_list
="${xm_include_list} $f"
11723 xm_file_list
="${xm_file_list} $f"
11724 xm_include_list
="${xm_include_list} $f"
11727 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11728 xm_include_list
="${xm_include_list} config/$f"
11734 host_xm_include_list
=
11735 for f
in $host_xm_file; do
11738 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11739 host_xm_include_list
="${host_xm_include_list} $f"
11742 host_xm_file_list
="${host_xm_file_list} $f"
11743 host_xm_include_list
="${host_xm_include_list} $f"
11746 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11747 host_xm_include_list
="${host_xm_include_list} config/$f"
11752 build_xm_file_list
=
11753 for f
in $build_xm_file; do
11756 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11757 build_xm_include_list
="${build_xm_include_list} $f"
11759 auto-build.h | auto-host.h
)
11760 build_xm_file_list
="${build_xm_file_list} $f"
11761 build_xm_include_list
="${build_xm_include_list} $f"
11764 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11765 build_xm_include_list
="${build_xm_include_list} config/$f"
11770 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11771 # cross-compiler which does not use the native headers and libraries.
11772 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11775 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11777 if test "x$with_build_sysroot" != x
; then
11778 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11780 # This value is used, even on a native system, because
11781 # CROSS_SYSTEM_HEADER_DIR is just
11782 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11783 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11786 if test x
$host != x
$target
11788 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11790 SYSTEM_HEADER_DIR
=$build_system_header_dir
11791 case "$host","$target" in
11792 # Darwin crosses can use the host system's libraries and headers,
11793 # because of the fat library support. Of course, it must be the
11794 # same version of Darwin on both sides. Allow the user to
11795 # just say --target=foo-darwin without a version number to mean
11796 # "the version on this system".
11797 *-*-darwin*,*-*-darwin*)
11798 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11799 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11800 if test $hostos = $targetos -o $targetos = darwin
; then
11802 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11807 i?
86-*-*,x86_64-
*-* \
11808 | powerpc
*-*-*,powerpc64
*-*-*)
11809 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11814 if test "x$with_headers" = x
; then
11821 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11822 SYSTEM_HEADER_DIR
=$build_system_header_dir
11825 # If this is a cross-compiler that does not
11826 # have its own set of headers then define
11829 # If this is using newlib, without having the headers available now,
11830 # then define inhibit_libc in LIBGCC2_CFLAGS.
11831 # This prevents libgcc2 from containing any code which requires libc
11833 : ${inhibit_libc=false}
11834 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11835 test x
$with_newlib = xyes
; } &&
11836 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11841 # When building gcc with a cross-compiler, we need to adjust things so
11842 # that the generator programs are still built with the native compiler.
11843 # Also, we cannot run fixincludes.
11845 # These are the normal (build=host) settings:
11846 CC_FOR_BUILD
='$(CC)'
11847 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11848 BUILD_LDFLAGS
='$(LDFLAGS)'
11849 STMP_FIXINC
=stmp-fixinc
11851 # And these apply if build != host, or we are generating coverage data
11852 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11854 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11855 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11858 # Expand extra_headers to include complete path.
11859 # This substitutes for lots of t-* files.
11860 extra_headers_list
=
11861 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11862 for file in ${extra_headers} ; do
11863 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11866 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11867 if test x
"$use_gcc_tgmath" = xyes
11868 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11871 # Define collect2 in Makefile.
11872 case $host_can_use_collect2 in
11874 *) collect2
='collect2$(exeext)' ;;
11878 # Add a definition of USE_COLLECT2 if system wants one.
11879 case $use_collect2 in
11880 no
) use_collect2
= ;;
11883 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11884 xm_defines
="${xm_defines} USE_COLLECT2"
11885 case $host_can_use_collect2 in
11887 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11894 cat >>confdefs.h
<<_ACEOF
11895 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11899 # ---------------------------
11900 # Assembler & linker features
11901 # ---------------------------
11903 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11904 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11905 # However when ld-new is first executed from the build tree, libtool will
11906 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11907 # to the build tree. While doing this we need to use the previous-stage
11908 # linker, or we have an infinite loop. The presence of a shell script as
11909 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11910 # the gcc/collect-ld script. So we need to know how libtool works, or
11911 # exec-tool will fail.
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11917 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11922 macro_version
='2.2.7a'
11923 macro_revision
='1.3134'
11937 ltmain
="$ac_aux_dir/ltmain.sh"
11939 # Backslashify metacharacters that are still active within
11940 # double-quoted strings.
11941 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11943 # Same as above, but do not quote variable references.
11944 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11946 # Sed substitution to delay expansion of an escaped shell variable in a
11947 # double_quote_subst'ed string.
11948 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11950 # Sed substitution to delay expansion of an escaped single quote.
11951 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11953 # Sed substitution to avoid accidental globbing in evaled expressions
11954 no_glob_subst
='s/\*/\\\*/g'
11956 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11961 $as_echo_n "checking how to print strings... " >&6; }
11962 # Test print first, because it will be a builtin if present.
11963 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11966 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11969 # Use this function as a fallback that always works.
11970 func_fallback_echo ()
11972 eval 'cat <<_LTECHO_EOF
11976 ECHO='func_fallback_echo
'
11979 # func_echo_all arg...
11980 # Invoke $ECHO with all args, space-separated.
11987 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11988 $as_echo "printf" >&6; } ;;
11989 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11990 $as_echo "print -r" >&6; } ;;
11991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11992 $as_echo "cat" >&6; } ;;
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12009 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12010 if test "${ac_cv_path_SED+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
12013 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12014 for ac_i in 1 2 3 4 5 6 7; do
12015 ac_script="$ac_script$as_nl$ac_script"
12017 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12018 { ac_script=; unset ac_script;}
12019 if test -z "$SED"; then
12020 ac_path_SED_found=false
12021 # Loop through the user's path and
test for each of PROGNAME-LIST
12022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12023 for as_dir
in $PATH
12026 test -z "$as_dir" && as_dir
=.
12027 for ac_prog
in sed gsed
; do
12028 for ac_exec_ext
in '' $ac_executable_extensions; do
12029 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12030 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12031 # Check for GNU ac_path_SED and select it if it is found.
12032 # Check for GNU $ac_path_SED
12033 case `"$ac_path_SED" --version 2>&1` in
12035 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12038 $as_echo_n 0123456789 >"conftest.in"
12041 cat "conftest.in" "conftest.in" >"conftest.tmp"
12042 mv "conftest.tmp" "conftest.in"
12043 cp "conftest.in" "conftest.nl"
12044 $as_echo '' >> "conftest.nl"
12045 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12046 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12047 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12048 if test $ac_count -gt ${ac_path_SED_max-0}; then
12049 # Best one so far, save it but keep looking for a better one
12050 ac_cv_path_SED
="$ac_path_SED"
12051 ac_path_SED_max
=$ac_count
12053 # 10*(2^10) chars as input seems more than enough
12054 test $ac_count -gt 10 && break
12056 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12059 $ac_path_SED_found && break 3
12064 if test -z "$ac_cv_path_SED"; then
12065 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12068 ac_cv_path_SED
=$SED
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12073 $as_echo "$ac_cv_path_SED" >&6; }
12074 SED
="$ac_cv_path_SED"
12077 test -z "$SED" && SED
=sed
12078 Xsed
="$SED -e 1s/^X//"
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12091 $as_echo_n "checking for fgrep... " >&6; }
12092 if test "${ac_cv_path_FGREP+set}" = set; then :
12093 $as_echo_n "(cached) " >&6
12095 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12096 then ac_cv_path_FGREP
="$GREP -F"
12098 if test -z "$FGREP"; then
12099 ac_path_FGREP_found
=false
12100 # Loop through the user's path and test for each of PROGNAME-LIST
12101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12102 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12105 test -z "$as_dir" && as_dir
=.
12106 for ac_prog
in fgrep
; do
12107 for ac_exec_ext
in '' $ac_executable_extensions; do
12108 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12109 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12110 # Check for GNU ac_path_FGREP and select it if it is found.
12111 # Check for GNU $ac_path_FGREP
12112 case `"$ac_path_FGREP" --version 2>&1` in
12114 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12117 $as_echo_n 0123456789 >"conftest.in"
12120 cat "conftest.in" "conftest.in" >"conftest.tmp"
12121 mv "conftest.tmp" "conftest.in"
12122 cp "conftest.in" "conftest.nl"
12123 $as_echo 'FGREP' >> "conftest.nl"
12124 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12125 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12126 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12128 # Best one so far, save it but keep looking for a better one
12129 ac_cv_path_FGREP
="$ac_path_FGREP"
12130 ac_path_FGREP_max
=$ac_count
12132 # 10*(2^10) chars as input seems more than enough
12133 test $ac_count -gt 10 && break
12135 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12138 $ac_path_FGREP_found && break 3
12143 if test -z "$ac_cv_path_FGREP"; then
12144 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12147 ac_cv_path_FGREP
=$FGREP
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12153 $as_echo "$ac_cv_path_FGREP" >&6; }
12154 FGREP
="$ac_cv_path_FGREP"
12157 test -z "$GREP" && GREP
=grep
12177 # Check whether --with-gnu-ld was given.
12178 if test "${with_gnu_ld+set}" = set; then :
12179 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12185 if test "$GCC" = yes; then
12186 # Check if gcc -print-prog-name=ld gives a path.
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12188 $as_echo_n "checking for ld used by $CC... " >&6; }
12191 # gcc leaves a trailing carriage return which upsets mingw
12192 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12194 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12197 # Accept absolute paths.
12199 re_direlt
='/[^/][^/]*/\.\./'
12200 # Canonicalize the pathname of ld
12201 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12202 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12203 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12205 test -z "$LD" && LD
="$ac_prog"
12208 # If it fails, then pretend we aren't using GCC.
12212 # If it is relative, then search for the first ld in PATH.
12213 with_gnu_ld
=unknown
12216 elif test "$with_gnu_ld" = yes; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12218 $as_echo_n "checking for GNU ld... " >&6; }
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12221 $as_echo_n "checking for non-GNU ld... " >&6; }
12223 if test "${lt_cv_path_LD+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12226 if test -z "$LD"; then
12227 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12228 for ac_dir
in $PATH; do
12230 test -z "$ac_dir" && ac_dir
=.
12231 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12232 lt_cv_path_LD
="$ac_dir/$ac_prog"
12233 # Check to see if the program is GNU ld. I'd rather use --version,
12234 # but apparently some variants of GNU ld only accept -v.
12235 # Break only if it was the GNU/non-GNU ld that we prefer.
12236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12237 *GNU
* |
*'with BFD'*)
12238 test "$with_gnu_ld" != no
&& break
12241 test "$with_gnu_ld" != yes && break
12248 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12252 LD
="$lt_cv_path_LD"
12253 if test -n "$LD"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12255 $as_echo "$LD" >&6; }
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12260 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12263 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12267 case `$LD -v 2>&1 </dev/null` in
12268 *GNU
* |
*'with BFD'*)
12269 lt_cv_prog_gnu_ld
=yes
12272 lt_cv_prog_gnu_ld
=no
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12278 with_gnu_ld
=$lt_cv_prog_gnu_ld
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12290 if test "${lt_cv_path_NM+set}" = set; then :
12291 $as_echo_n "(cached) " >&6
12293 if test -n "$NM"; then
12294 # Let the user override the test.
12295 lt_cv_path_NM
="$NM"
12297 lt_nm_to_check
="${ac_tool_prefix}nm"
12298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12299 lt_nm_to_check
="$lt_nm_to_check nm"
12301 for lt_tmp_nm
in $lt_nm_to_check; do
12302 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12303 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12305 test -z "$ac_dir" && ac_dir
=.
12306 tmp_nm
="$ac_dir/$lt_tmp_nm"
12307 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12308 # Check to see if the nm accepts a BSD-compat flag.
12309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12310 # nm: unknown option "B" ignored
12311 # Tru64's nm complains that /dev/null is an invalid object file
12312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12313 */dev
/null
* |
*'Invalid file or object type'*)
12314 lt_cv_path_NM
="$tmp_nm -B"
12318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12320 lt_cv_path_NM
="$tmp_nm -p"
12324 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12325 continue # so that we can try to find one that supports BSD flags
12334 : ${lt_cv_path_NM=no}
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12338 $as_echo "$lt_cv_path_NM" >&6; }
12339 if test "$lt_cv_path_NM" != "no"; then
12340 NM
="$lt_cv_path_NM"
12342 # Didn't find any BSD compatible name lister, look for dumpbin.
12343 if test -n "$DUMPBIN"; then :
12344 # Let the user override the test.
12346 if test -n "$ac_tool_prefix"; then
12347 for ac_prog
in dumpbin
"link -dump"
12349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12350 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12356 if test -n "$DUMPBIN"; then
12357 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12360 for as_dir
in $PATH
12363 test -z "$as_dir" && as_dir
=.
12364 for ac_exec_ext
in '' $ac_executable_extensions; do
12365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12366 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 DUMPBIN
=$ac_cv_prog_DUMPBIN
12377 if test -n "$DUMPBIN"; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12379 $as_echo "$DUMPBIN" >&6; }
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12386 test -n "$DUMPBIN" && break
12389 if test -z "$DUMPBIN"; then
12390 ac_ct_DUMPBIN
=$DUMPBIN
12391 for ac_prog
in dumpbin
"link -dump"
12393 # Extract the first word of "$ac_prog", so it can be a program name with args.
12394 set dummy
$ac_prog; ac_word
=$2
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396 $as_echo_n "checking for $ac_word... " >&6; }
12397 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12398 $as_echo_n "(cached) " >&6
12400 if test -n "$ac_ct_DUMPBIN"; then
12401 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12404 for as_dir
in $PATH
12407 test -z "$as_dir" && as_dir
=.
12408 for ac_exec_ext
in '' $ac_executable_extensions; do
12409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12410 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12420 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12421 if test -n "$ac_ct_DUMPBIN"; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12423 $as_echo "$ac_ct_DUMPBIN" >&6; }
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12430 test -n "$ac_ct_DUMPBIN" && break
12433 if test "x$ac_ct_DUMPBIN" = x
; then
12436 case $cross_compiling:$ac_tool_warned in
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12440 ac_tool_warned
=yes ;;
12442 DUMPBIN
=$ac_ct_DUMPBIN
12446 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12448 DUMPBIN
="$DUMPBIN -symbols"
12456 if test "$DUMPBIN" != ":"; then
12460 test -z "$NM" && NM
=nm
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12468 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12469 if test "${lt_cv_nm_interface+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12472 lt_cv_nm_interface
="BSD nm"
12473 echo "int some_variable = 0;" > conftest.
$ac_ext
12474 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12475 (eval "$ac_compile" 2>conftest.err
)
12476 cat conftest.err
>&5
12477 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12478 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12479 cat conftest.err
>&5
12480 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12481 cat conftest.out
>&5
12482 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12483 lt_cv_nm_interface
="MS dumpbin"
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12488 $as_echo "$lt_cv_nm_interface" >&6; }
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12491 $as_echo_n "checking whether ln -s works... " >&6; }
12493 if test "$LN_S" = "ln -s"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12495 $as_echo "yes" >&6; }
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12498 $as_echo "no, using $LN_S" >&6; }
12501 # find the maximum length of command line arguments
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12503 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12504 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12512 # On DJGPP, this test can blow up pretty badly due to problems in libc
12513 # (any single argument exceeding 2000 bytes causes a buffer overrun
12514 # during glob expansion). Even if it were fixed, the result of this
12515 # check would be larger than it should be.
12516 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12520 # Under GNU Hurd, this test is not required because there is
12521 # no limit to the length of command line arguments.
12522 # Libtool will interpret -1 as no limit whatsoever
12523 lt_cv_sys_max_cmd_len
=-1;
12526 cygwin
* | mingw
* | cegcc
*)
12527 # On Win9x/ME, this test blows up -- it succeeds, but takes
12528 # about 5 minutes as the teststring grows exponentially.
12529 # Worse, since 9x/ME are not pre-emptively multitasking,
12530 # you end up with a "frozen" computer, even though with patience
12531 # the test eventually succeeds (with a max line length of 256k).
12532 # Instead, let's just punt: use the minimum linelength reported by
12533 # all of the supported platforms: 8192 (on NT/2K/XP).
12534 lt_cv_sys_max_cmd_len
=8192;
12538 # On MiNT this can take a long time and run out of memory.
12539 lt_cv_sys_max_cmd_len
=8192;
12543 # On AmigaOS with pdksh, this test takes hours, literally.
12544 # So we just punt and use a minimum line length of 8192.
12545 lt_cv_sys_max_cmd_len
=8192;
12548 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12549 # This has been around since 386BSD, at least. Likely further.
12550 if test -x /sbin
/sysctl
; then
12551 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12552 elif test -x /usr
/sbin
/sysctl
; then
12553 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12555 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12557 # And add a safety zone
12558 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12559 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12563 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12564 lt_cv_sys_max_cmd_len
=196608
12568 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12569 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12570 # nice to cause kernel panics so lets avoid the loop below.
12571 # First set a reasonable default.
12572 lt_cv_sys_max_cmd_len
=16384
12574 if test -x /sbin
/sysconfig
; then
12575 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12576 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12581 lt_cv_sys_max_cmd_len
=102400
12583 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12584 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12585 if test -n "$kargmax"; then
12586 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12588 lt_cv_sys_max_cmd_len
=32768
12592 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12593 if test -n "$lt_cv_sys_max_cmd_len"; then
12594 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12595 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12597 # Make teststring a little bigger before we do anything with it.
12598 # a 1K string should be a reasonable start.
12599 for i
in 1 2 3 4 5 6 7 8 ; do
12600 teststring
=$teststring$teststring
12602 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12603 # If test is not a shell built-in, we'll probably end up computing a
12604 # maximum length that is only half of the actual maximum length, but
12606 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12607 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12608 test $i != 17 # 1/2 MB should be enough
12611 teststring
=$teststring$teststring
12613 # Only check the string length outside the loop.
12614 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12616 # Add a significant safety factor because C++ compilers can tack on
12617 # massive amounts of additional arguments before passing them to the
12618 # linker. It appears as though 1/2 is a usable value.
12619 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12626 if test -n $lt_cv_sys_max_cmd_len ; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12628 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12631 $as_echo "none" >&6; }
12633 max_cmd_len
=$lt_cv_sys_max_cmd_len
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12645 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12646 # Try some XSI features
12648 ( _lt_dummy
="a/b/c"
12649 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12651 && eval 'test $(( 1 + 1 )) -eq 2 \
12652 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12655 $as_echo "$xsi_shell" >&6; }
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12659 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12661 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12663 && lt_shell_append=yes
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12665 $as_echo "$lt_shell_append" >&6; }
12668 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12678 # test EBCDIC or ASCII
12679 case `echo X|tr X '\101'` in
12680 A) # ASCII based system
12681 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12682 lt_SP2NL='tr \040 \012'
12683 lt_NL2SP='tr \015\012 \040\040'
12685 *) # EBCDIC based system
12686 lt_SP2NL='tr \100 \n'
12687 lt_NL2SP='tr \r\n \100\100'
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12700 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12701 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12702 $as_echo_n "(cached
) " >&6
12704 lt_cv_ld_reload_flag='-r'
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12707 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12708 reload_flag=$lt_cv_ld_reload_flag
12709 case $reload_flag in
12711 *) reload_flag=" $reload_flag" ;;
12713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12716 if test "$GCC" = yes; then
12717 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12719 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12732 if test -n "$ac_tool_prefix"; then
12733 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12734 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12736 $as_echo_n "checking
for $ac_word...
" >&6; }
12737 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12738 $as_echo_n "(cached
) " >&6
12740 if test -n "$OBJDUMP"; then
12741 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12747 test -z "$as_dir" && as_dir=.
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12750 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12760 OBJDUMP=$ac_cv_prog_OBJDUMP
12761 if test -n "$OBJDUMP"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12763 $as_echo "$OBJDUMP" >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12766 $as_echo "no
" >&6; }
12771 if test -z "$ac_cv_prog_OBJDUMP"; then
12772 ac_ct_OBJDUMP=$OBJDUMP
12773 # Extract the first word of "objdump
", so it can be a program name with args.
12774 set dummy objdump; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12776 $as_echo_n "checking
for $ac_word...
" >&6; }
12777 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12778 $as_echo_n "(cached
) " >&6
12780 if test -n "$ac_ct_OBJDUMP"; then
12781 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 for as_dir in $PATH
12787 test -z "$as_dir" && as_dir=.
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12790 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12791 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12800 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12801 if test -n "$ac_ct_OBJDUMP"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12803 $as_echo "$ac_ct_OBJDUMP" >&6; }
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12806 $as_echo "no
" >&6; }
12809 if test "x
$ac_ct_OBJDUMP" = x; then
12812 case $cross_compiling:$ac_tool_warned in
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12815 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12816 ac_tool_warned=yes ;;
12818 OBJDUMP=$ac_ct_OBJDUMP
12821 OBJDUMP="$ac_cv_prog_OBJDUMP"
12824 test -z "$OBJDUMP" && OBJDUMP=objdump
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12835 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12836 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12837 $as_echo_n "(cached
) " >&6
12839 lt_cv_file_magic_cmd='$MAGIC_CMD'
12840 lt_cv_file_magic_test_file=
12841 lt_cv_deplibs_check_method='unknown'
12842 # Need to set the preceding variable on all platforms that support
12843 # interlibrary dependencies.
12844 # 'none' -- dependencies not supported.
12845 # `unknown' -- same as none, but documents that we really don't know.
12846 # 'pass_all' -- all dependencies passed with no checks.
12847 # 'test_compile' -- check by making test program.
12848 # 'file_magic [[regex]]' -- check by looking for files in library path
12849 # which responds to the $file_magic_cmd with a given extended regex.
12850 # If you have `file' or equivalent on your system and you're not sure
12851 # whether `pass_all' will *always* work, you probably want this one.
12855 lt_cv_deplibs_check_method=pass_all
12859 lt_cv_deplibs_check_method=pass_all
12863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12864 lt_cv_file_magic_cmd='/usr/bin/file -L'
12865 lt_cv_file_magic_test_file=/shlib/libc.so
12869 # func_win32_libid is a shell function defined in ltmain.sh
12870 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12871 lt_cv_file_magic_cmd='func_win32_libid'
12875 # Base MSYS/MinGW do not provide the 'file' command needed by
12876 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12877 # unless we find 'file', for example because we are cross-compiling.
12878 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12879 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12880 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12881 lt_cv_file_magic_cmd='func_win32_libid'
12883 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12884 lt_cv_file_magic_cmd='$OBJDUMP -f'
12889 # use the weaker test based on 'objdump'. See mingw*.
12890 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12891 lt_cv_file_magic_cmd='$OBJDUMP -f'
12894 darwin* | rhapsody*)
12895 lt_cv_deplibs_check_method=pass_all
12898 freebsd* | dragonfly*)
12899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12902 # Not sure whether the presence of OpenBSD here was a mistake.
12903 # Let's accept both of them until this is cleared up.
12904 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12905 lt_cv_file_magic_cmd=/usr/bin/file
12906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12910 lt_cv_deplibs_check_method=pass_all
12915 lt_cv_deplibs_check_method=pass_all
12919 lt_cv_deplibs_check_method=pass_all
12922 hpux10.20* | hpux11*)
12923 lt_cv_file_magic_cmd=/usr/bin/file
12926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12927 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12930 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]'
12931 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12934 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12935 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12941 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12945 irix5* | irix6* | nonstopux*)
12947 *-32|*"-32 ") libmagic=32-bit;;
12948 *-n32|*"-n32 ") libmagic=N32;;
12949 *-64|*"-64 ") libmagic=64-bit;;
12950 *) libmagic=never-match;;
12952 lt_cv_deplibs_check_method=pass_all
12955 # This must be Linux ELF.
12956 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12957 lt_cv_deplibs_check_method=pass_all
12961 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12970 lt_cv_file_magic_cmd=/usr/bin/file
12971 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12975 lt_cv_deplibs_check_method=pass_all
12979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12986 osf3* | osf4* | osf5*)
12987 lt_cv_deplibs_check_method=pass_all
12991 lt_cv_deplibs_check_method=pass_all
12995 lt_cv_deplibs_check_method=pass_all
12998 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12999 lt_cv_deplibs_check_method=pass_all
13003 case $host_vendor in
13005 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]'
13006 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13009 lt_cv_deplibs_check_method=pass_all
13012 lt_cv_file_magic_cmd='/bin/file'
13013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13016 lt_cv_file_magic_cmd='/bin/file'
13017 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13018 lt_cv_file_magic_test_file=/lib/libc.so
13021 lt_cv_deplibs_check_method=pass_all
13024 lt_cv_deplibs_check_method=pass_all
13030 lt_cv_deplibs_check_method=pass_all
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13036 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13037 file_magic_cmd=$lt_cv_file_magic_cmd
13038 deplibs_check_method=$lt_cv_deplibs_check_method
13039 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13052 if test -n "$ac_tool_prefix"; then
13053 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13054 set dummy ${ac_tool_prefix}ar; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13056 $as_echo_n "checking
for $ac_word...
" >&6; }
13057 if test "${ac_cv_prog_AR+set}" = set; then :
13058 $as_echo_n "(cached
) " >&6
13060 if test -n "$AR"; then
13061 ac_cv_prog_AR="$AR" # Let the user override the test.
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13070 ac_cv_prog_AR="${ac_tool_prefix}ar"
13071 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13081 if test -n "$AR"; then
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13083 $as_echo "$AR" >&6; }
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13086 $as_echo "no
" >&6; }
13091 if test -z "$ac_cv_prog_AR"; then
13093 # Extract the first word of "ar", so it can be a program name with args.
13094 set dummy ar; ac_word=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13096 $as_echo_n "checking
for $ac_word...
" >&6; }
13097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13098 $as_echo_n "(cached
) " >&6
13100 if test -n "$ac_ct_AR"; then
13101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13110 ac_cv_prog_ac_ct_AR="ar"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13121 if test -n "$ac_ct_AR"; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13123 $as_echo "$ac_ct_AR" >&6; }
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13126 $as_echo "no
" >&6; }
13129 if test "x
$ac_ct_AR" = x; then
13132 case $cross_compiling:$ac_tool_warned in
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13135 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13136 ac_tool_warned=yes ;;
13141 AR="$ac_cv_prog_AR"
13144 test -z "$AR" && AR=ar
13145 test -z "$AR_FLAGS" && AR_FLAGS=cru
13157 if test -n "$ac_tool_prefix"; then
13158 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13159 set dummy ${ac_tool_prefix}strip; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13161 $as_echo_n "checking
for $ac_word...
" >&6; }
13162 if test "${ac_cv_prog_STRIP+set}" = set; then :
13163 $as_echo_n "(cached
) " >&6
13165 if test -n "$STRIP"; then
13166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $PATH
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13175 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13185 STRIP=$ac_cv_prog_STRIP
13186 if test -n "$STRIP"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13188 $as_echo "$STRIP" >&6; }
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13191 $as_echo "no
" >&6; }
13196 if test -z "$ac_cv_prog_STRIP"; then
13198 # Extract the first word of "strip
", so it can be a program name with args.
13199 set dummy strip; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13201 $as_echo_n "checking
for $ac_word...
" >&6; }
13202 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13203 $as_echo_n "(cached
) " >&6
13205 if test -n "$ac_ct_STRIP"; then
13206 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215 ac_cv_prog_ac_ct_STRIP="strip
"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13225 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13226 if test -n "$ac_ct_STRIP"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13228 $as_echo "$ac_ct_STRIP" >&6; }
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13231 $as_echo "no
" >&6; }
13234 if test "x
$ac_ct_STRIP" = x; then
13237 case $cross_compiling:$ac_tool_warned in
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13240 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13241 ac_tool_warned=yes ;;
13246 STRIP="$ac_cv_prog_STRIP"
13249 test -z "$STRIP" && STRIP=:
13256 if test -n "$ac_tool_prefix"; then
13257 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13260 $as_echo_n "checking
for $ac_word...
" >&6; }
13261 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13262 $as_echo_n "(cached
) " >&6
13264 if test -n "$RANLIB"; then
13265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13275 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13284 RANLIB=$ac_cv_prog_RANLIB
13285 if test -n "$RANLIB"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13287 $as_echo "$RANLIB" >&6; }
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13290 $as_echo "no
" >&6; }
13295 if test -z "$ac_cv_prog_RANLIB"; then
13296 ac_ct_RANLIB=$RANLIB
13297 # Extract the first word of "ranlib
", so it can be a program name with args.
13298 set dummy ranlib; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13300 $as_echo_n "checking
for $ac_word...
" >&6; }
13301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13302 $as_echo_n "(cached
) " >&6
13304 if test -n "$ac_ct_RANLIB"; then
13305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in $PATH
13311 test -z "$as_dir" && as_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13314 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13315 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13325 if test -n "$ac_ct_RANLIB"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13327 $as_echo "$ac_ct_RANLIB" >&6; }
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13330 $as_echo "no
" >&6; }
13333 if test "x
$ac_ct_RANLIB" = x; then
13336 case $cross_compiling:$ac_tool_warned in
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13339 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13340 ac_tool_warned=yes ;;
13342 RANLIB=$ac_ct_RANLIB
13345 RANLIB="$ac_cv_prog_RANLIB"
13348 test -z "$RANLIB" && RANLIB=:
13355 # Determine commands to create old-style static archives.
13356 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13357 old_postinstall_cmds='chmod 644 $oldlib'
13358 old_postuninstall_cmds=
13360 if test -n "$RANLIB"; then
13363 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13366 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13369 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13374 lock_old_archive_extraction=yes ;;
13376 lock_old_archive_extraction=no ;;
13417 # If no C compiler was specified, use CC.
13420 # If no C compiler flags were specified, use CFLAGS.
13421 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13423 # Allow CC to be a program name with arguments.
13427 # Check for command to grab the raw symbol name followed by C symbol from nm.
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13429 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13430 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13431 $as_echo_n "(cached
) " >&6
13434 # These are sane defaults that work on at least a few old systems.
13435 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13437 # Character class describing NM global symbol codes.
13438 symcode='[BCDEGRST]'
13440 # Regexp to match symbols that can be accessed directly from C.
13441 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13443 # Define system-specific variables.
13448 cygwin* | mingw* | pw32* | cegcc*)
13449 symcode='[ABCDGISTW]'
13452 if test "$host_cpu" = ia64; then
13453 symcode='[ABCDEGRST]'
13456 irix* | nonstopux*)
13457 symcode='[BCDEGRST]'
13460 symcode='[BCDEGQRST]'
13471 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13479 # If we're using GNU nm, then use its standard symbol codes.
13480 case `$NM -V 2>&1` in
13481 *GNU* | *'with BFD'*)
13482 symcode='[ABCDGIRSTW]' ;;
13485 # Transform an extracted symbol line into a proper C declaration.
13486 # Some systems (esp. on ia64) link data and code symbols differently,
13487 # so use this general approach.
13488 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13490 # Transform an extracted symbol line into symbol name and symbol address
13491 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13492 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'"
13494 # Handle CRLF in mingw tool chain
13498 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13502 # Try without a prefix underscore, then with it.
13503 for ac_symprfx in "" "_
"; do
13505 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13506 symxfrm="\\1 $ac_symprfx\\2 \\2"
13508 # Write the raw and C identifiers.
13509 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13510 # Fake it for dumpbin and say T for any non-static function
13511 # and D for any global variable.
13512 # Also find C++ and __fastcall symbols from MSVC++,
13513 # which start with @ or ?.
13514 lt_cv_sys_global_symbol_pipe="$AWK '"\
13515 " {last_section=section; section=\$ 3};"\
13516 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13517 " \$ 0!~/External *\|/{next};"\
13518 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13519 " {if(hide[section]) next};"\
13520 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13521 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13522 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13523 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13524 " ' prfx
=^
$ac_symprfx"
13526 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13529 # Check to see that the pipe works correctly.
13533 cat > conftest.$ac_ext <<_LT_EOF
13538 void nm_test_func(void);
13539 void nm_test_func(void){}
13543 int main(){nm_test_var='a';nm_test_func();return(0);}
13546 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13547 (eval $ac_compile) 2>&5
13549 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13550 test $ac_status = 0; }; then
13551 # Now try to grab the symbols.
13553 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13554 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13556 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13557 test $ac_status = 0; } && test -s "$nlist"; then
13558 # Try sorting and uniquifying the output.
13559 if sort "$nlist" | uniq > "$nlist"T; then
13560 mv -f "$nlist"T "$nlist"
13565 # Make sure that we snagged all the symbols we need.
13566 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13567 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13568 cat <<_LT_EOF > conftest.$ac_ext
13574 # Now generate the symbol file.
13575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13577 cat <<_LT_EOF >> conftest.$ac_ext
13579 /* The mapping between symbol names and symbols. */
13584 lt__PROGRAM__LTX_preloaded_symbols[] =
13586 { "@PROGRAM@
", (void *) 0 },
13588 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13589 cat <<\_LT_EOF >> conftest.$ac_ext
13593 /* This works around a problem in FreeBSD linker */
13594 #ifdef FREEBSD_WORKAROUND
13595 static const void *lt_preloaded_setup() {
13596 return lt__PROGRAM__LTX_preloaded_symbols;
13604 # Now try linking the two files.
13605 mv conftest.$ac_objext conftstm.$ac_objext
13606 lt_save_LIBS="$LIBS"
13607 lt_save_CFLAGS="$CFLAGS"
13608 LIBS="conftstm.
$ac_objext"
13609 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13610 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13611 (eval $ac_link) 2>&5
13613 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13614 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13617 LIBS="$lt_save_LIBS"
13618 CFLAGS="$lt_save_CFLAGS"
13620 echo "cannot
find nm_test_func
in $nlist" >&5
13623 echo "cannot
find nm_test_var
in $nlist" >&5
13626 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13629 echo "$progname: failed program was
:" >&5
13630 cat conftest.$ac_ext >&5
13632 rm -rf conftest* conftst*
13634 # Do not use the global_symbol_pipe unless it works.
13635 if test "$pipe_works" = yes; then
13638 lt_cv_sys_global_symbol_pipe=
13644 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13645 lt_cv_sys_global_symbol_to_cdecl=
13647 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13649 $as_echo "failed
" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13652 $as_echo "ok
" >&6; }
13676 # Check whether --enable-libtool-lock was given.
13677 if test "${enable_libtool_lock+set}" = set; then :
13678 enableval=$enable_libtool_lock;
13681 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13683 # Some flags need to be propagated to the compiler or linker for good
13687 # Find out which ABI we are using.
13688 echo 'int i;' > conftest.$ac_ext
13689 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13690 (eval $ac_compile) 2>&5
13692 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13693 test $ac_status = 0; }; then
13694 case `/usr/bin/file conftest.$ac_objext` in
13696 HPUX_IA64_MODE="32"
13699 HPUX_IA64_MODE="64"
13706 # Find out which ABI we are using.
13707 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13708 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13709 (eval $ac_compile) 2>&5
13711 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13712 test $ac_status = 0; }; then
13713 if test "$lt_cv_prog_gnu_ld" = yes; then
13714 case `/usr/bin/file conftest.$ac_objext` in
13716 LD="${LD-ld} -melf32bsmip"
13719 LD="${LD-ld} -melf32bmipn32"
13722 LD="${LD-ld} -melf64bmip"
13726 case `/usr/bin/file conftest.$ac_objext` in
13742 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13743 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13744 # Find out which ABI we are using.
13745 echo 'int i;' > conftest.$ac_ext
13746 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13747 (eval $ac_compile) 2>&5
13749 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13750 test $ac_status = 0; }; then
13751 case `/usr/bin/file conftest.o` in
13754 x86_64-*kfreebsd*-gnu)
13755 LD="${LD-ld} -m elf_i386_fbsd
"
13758 LD="${LD-ld} -m elf_i386
"
13760 ppc64-*linux*|powerpc64-*linux*)
13761 LD="${LD-ld} -m elf32ppclinux
"
13764 LD="${LD-ld} -m elf_s390
"
13767 LD="${LD-ld} -m elf32_sparc
"
13773 x86_64-*kfreebsd*-gnu)
13774 LD="${LD-ld} -m elf_x86_64_fbsd
"
13777 LD="${LD-ld} -m elf_x86_64
"
13779 ppc*-*linux*|powerpc*-*linux*)
13780 LD="${LD-ld} -m elf64ppc
"
13782 s390*-*linux*|s390*-*tpf*)
13783 LD="${LD-ld} -m elf64_s390
"
13786 LD="${LD-ld} -m elf64_sparc
"
13796 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13797 SAVE_CFLAGS="$CFLAGS"
13798 CFLAGS="$CFLAGS -belf"
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13800 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13801 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13802 $as_echo_n "(cached
) " >&6
13805 ac_cpp='$CPP $CPPFLAGS'
13806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13821 if ac_fn_c_try_link "$LINENO"; then :
13822 lt_cv_cc_needs_belf=yes
13824 lt_cv_cc_needs_belf=no
13826 rm -f core conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13829 ac_cpp='$CPP $CPPFLAGS'
13830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13836 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13837 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13839 CFLAGS="$SAVE_CFLAGS"
13843 # Find out which ABI we are using.
13844 echo 'int i;' > conftest.$ac_ext
13845 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13846 (eval $ac_compile) 2>&5
13848 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13849 test $ac_status = 0; }; then
13850 case `/usr/bin/file conftest.o` in
13852 case $lt_cv_prog_gnu_ld in
13853 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13855 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13867 need_locks="$enable_libtool_lock"
13871 rhapsody* | darwin*)
13872 if test -n "$ac_tool_prefix"; then
13873 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13874 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13876 $as_echo_n "checking
for $ac_word...
" >&6; }
13877 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13878 $as_echo_n "(cached
) " >&6
13880 if test -n "$DSYMUTIL"; then
13881 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884 for as_dir in $PATH
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
13889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13890 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13900 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13901 if test -n "$DSYMUTIL"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13903 $as_echo "$DSYMUTIL" >&6; }
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13906 $as_echo "no
" >&6; }
13911 if test -z "$ac_cv_prog_DSYMUTIL"; then
13912 ac_ct_DSYMUTIL=$DSYMUTIL
13913 # Extract the first word of "dsymutil
", so it can be a program name with args.
13914 set dummy dsymutil; ac_word=$2
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13916 $as_echo_n "checking
for $ac_word...
" >&6; }
13917 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13918 $as_echo_n "(cached
) " >&6
13920 if test -n "$ac_ct_DSYMUTIL"; then
13921 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924 for as_dir in $PATH
13927 test -z "$as_dir" && as_dir=.
13928 for ac_exec_ext in '' $ac_executable_extensions; do
13929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13930 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13931 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13940 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13941 if test -n "$ac_ct_DSYMUTIL"; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13943 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13946 $as_echo "no
" >&6; }
13949 if test "x
$ac_ct_DSYMUTIL" = x; then
13952 case $cross_compiling:$ac_tool_warned in
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13955 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13956 ac_tool_warned=yes ;;
13958 DSYMUTIL=$ac_ct_DSYMUTIL
13961 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13964 if test -n "$ac_tool_prefix"; then
13965 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13966 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13968 $as_echo_n "checking
for $ac_word...
" >&6; }
13969 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13970 $as_echo_n "(cached
) " >&6
13972 if test -n "$NMEDIT"; then
13973 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976 for as_dir in $PATH
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
13981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13982 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13992 NMEDIT=$ac_cv_prog_NMEDIT
13993 if test -n "$NMEDIT"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13995 $as_echo "$NMEDIT" >&6; }
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13998 $as_echo "no
" >&6; }
14003 if test -z "$ac_cv_prog_NMEDIT"; then
14004 ac_ct_NMEDIT=$NMEDIT
14005 # Extract the first word of "nmedit
", so it can be a program name with args.
14006 set dummy nmedit; ac_word=$2
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14008 $as_echo_n "checking
for $ac_word...
" >&6; }
14009 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14010 $as_echo_n "(cached
) " >&6
14012 if test -n "$ac_ct_NMEDIT"; then
14013 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14022 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14023 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14032 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14033 if test -n "$ac_ct_NMEDIT"; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14035 $as_echo "$ac_ct_NMEDIT" >&6; }
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14038 $as_echo "no
" >&6; }
14041 if test "x
$ac_ct_NMEDIT" = x; then
14044 case $cross_compiling:$ac_tool_warned in
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14047 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14048 ac_tool_warned=yes ;;
14050 NMEDIT=$ac_ct_NMEDIT
14053 NMEDIT="$ac_cv_prog_NMEDIT"
14056 if test -n "$ac_tool_prefix"; then
14057 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14058 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14060 $as_echo_n "checking
for $ac_word...
" >&6; }
14061 if test "${ac_cv_prog_LIPO+set}" = set; then :
14062 $as_echo_n "(cached
) " >&6
14064 if test -n "$LIPO"; then
14065 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14074 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14084 LIPO=$ac_cv_prog_LIPO
14085 if test -n "$LIPO"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14087 $as_echo "$LIPO" >&6; }
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14090 $as_echo "no
" >&6; }
14095 if test -z "$ac_cv_prog_LIPO"; then
14097 # Extract the first word of "lipo
", so it can be a program name with args.
14098 set dummy lipo; ac_word=$2
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14100 $as_echo_n "checking
for $ac_word...
" >&6; }
14101 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14102 $as_echo_n "(cached
) " >&6
14104 if test -n "$ac_ct_LIPO"; then
14105 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14108 for as_dir in $PATH
14111 test -z "$as_dir" && as_dir=.
14112 for ac_exec_ext in '' $ac_executable_extensions; do
14113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14114 ac_cv_prog_ac_ct_LIPO="lipo
"
14115 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14124 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14125 if test -n "$ac_ct_LIPO"; then
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14127 $as_echo "$ac_ct_LIPO" >&6; }
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14130 $as_echo "no
" >&6; }
14133 if test "x
$ac_ct_LIPO" = x; then
14136 case $cross_compiling:$ac_tool_warned in
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14139 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14140 ac_tool_warned=yes ;;
14145 LIPO="$ac_cv_prog_LIPO"
14148 if test -n "$ac_tool_prefix"; then
14149 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14150 set dummy ${ac_tool_prefix}otool; ac_word=$2
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14152 $as_echo_n "checking
for $ac_word...
" >&6; }
14153 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14154 $as_echo_n "(cached
) " >&6
14156 if test -n "$OTOOL"; then
14157 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14160 for as_dir in $PATH
14163 test -z "$as_dir" && as_dir=.
14164 for ac_exec_ext in '' $ac_executable_extensions; do
14165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14166 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14167 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14176 OTOOL=$ac_cv_prog_OTOOL
14177 if test -n "$OTOOL"; then
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14179 $as_echo "$OTOOL" >&6; }
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14182 $as_echo "no
" >&6; }
14187 if test -z "$ac_cv_prog_OTOOL"; then
14189 # Extract the first word of "otool
", so it can be a program name with args.
14190 set dummy otool; ac_word=$2
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14192 $as_echo_n "checking
for $ac_word...
" >&6; }
14193 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14194 $as_echo_n "(cached
) " >&6
14196 if test -n "$ac_ct_OTOOL"; then
14197 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14200 for as_dir in $PATH
14203 test -z "$as_dir" && as_dir=.
14204 for ac_exec_ext in '' $ac_executable_extensions; do
14205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14206 ac_cv_prog_ac_ct_OTOOL="otool
"
14207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14216 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14217 if test -n "$ac_ct_OTOOL"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14219 $as_echo "$ac_ct_OTOOL" >&6; }
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14222 $as_echo "no
" >&6; }
14225 if test "x
$ac_ct_OTOOL" = x; then
14228 case $cross_compiling:$ac_tool_warned in
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14231 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14232 ac_tool_warned=yes ;;
14237 OTOOL="$ac_cv_prog_OTOOL"
14240 if test -n "$ac_tool_prefix"; then
14241 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14242 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14244 $as_echo_n "checking
for $ac_word...
" >&6; }
14245 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14246 $as_echo_n "(cached
) " >&6
14248 if test -n "$OTOOL64"; then
14249 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14252 for as_dir in $PATH
14255 test -z "$as_dir" && as_dir=.
14256 for ac_exec_ext in '' $ac_executable_extensions; do
14257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14258 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14259 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14268 OTOOL64=$ac_cv_prog_OTOOL64
14269 if test -n "$OTOOL64"; then
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14271 $as_echo "$OTOOL64" >&6; }
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14274 $as_echo "no
" >&6; }
14279 if test -z "$ac_cv_prog_OTOOL64"; then
14280 ac_ct_OTOOL64=$OTOOL64
14281 # Extract the first word of "otool64
", so it can be a program name with args.
14282 set dummy otool64; ac_word=$2
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14284 $as_echo_n "checking
for $ac_word...
" >&6; }
14285 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14286 $as_echo_n "(cached
) " >&6
14288 if test -n "$ac_ct_OTOOL64"; then
14289 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14298 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14308 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14309 if test -n "$ac_ct_OTOOL64"; then
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14311 $as_echo "$ac_ct_OTOOL64" >&6; }
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14314 $as_echo "no
" >&6; }
14317 if test "x
$ac_ct_OTOOL64" = x; then
14320 case $cross_compiling:$ac_tool_warned in
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14323 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14324 ac_tool_warned=yes ;;
14326 OTOOL64=$ac_ct_OTOOL64
14329 OTOOL64="$ac_cv_prog_OTOOL64"
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14359 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14360 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14361 $as_echo_n "(cached
) " >&6
14363 lt_cv_apple_cc_single_mod=no
14364 if test -z "${LT_MULTI_MODULE}"; then
14365 # By default we will add the -single_module flag. You can override
14366 # by either setting the environment variable LT_MULTI_MODULE
14367 # non-empty at configure time, or by adding -multi_module to the
14369 rm -rf libconftest.dylib*
14370 echo "int foo
(void
){return 1;}" > conftest.c
14371 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14372 -dynamiclib -Wl,-single_module conftest.c
" >&5
14373 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14374 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14376 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14377 lt_cv_apple_cc_single_mod=yes
14379 cat conftest.err >&5
14381 rm -rf libconftest.dylib*
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14386 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14388 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14389 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14390 $as_echo_n "(cached
) " >&6
14392 lt_cv_ld_exported_symbols_list=no
14393 save_LDFLAGS=$LDFLAGS
14394 echo "_main
" > conftest.sym
14395 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14407 if ac_fn_c_try_link "$LINENO"; then :
14408 lt_cv_ld_exported_symbols_list=yes
14410 lt_cv_ld_exported_symbols_list=no
14412 rm -f core conftest.err conftest.$ac_objext \
14413 conftest$ac_exeext conftest.$ac_ext
14414 LDFLAGS="$save_LDFLAGS"
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14418 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14420 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14421 if test "${lt_cv_ld_force_load+set}" = set; then :
14422 $as_echo_n "(cached
) " >&6
14424 lt_cv_ld_force_load=no
14425 cat > conftest.c << _LT_EOF
14426 int forced_loaded() { return 2;}
14428 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14429 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14430 echo "$AR cru libconftest.a conftest.o
" >&5
14431 $AR cru libconftest.a conftest.o 2>&5
14432 cat > conftest.c << _LT_EOF
14433 int main() { return 0;}
14435 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14436 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14438 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14439 lt_cv_ld_force_load=yes
14441 cat conftest.err >&5
14443 rm -f conftest.err libconftest.a conftest conftest.c
14444 rm -rf conftest.dSYM
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14448 $as_echo "$lt_cv_ld_force_load" >&6; }
14450 rhapsody* | darwin1.[012])
14451 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14453 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14454 darwin*) # darwin 5.x on
14455 # if running on 10.5 or later, the deployment target defaults
14456 # to the OS version, if on x86, and 10.4, the deployment
14457 # target defaults to 10.4. Don't you love it?
14458 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14459 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14462 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14464 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14468 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14469 _lt_dar_single_mod='$single_module'
14471 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14472 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14474 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14476 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14477 _lt_dsymutil='~$DSYMUTIL $lib || :'
14484 for ac_header in dlfcn.h
14486 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14487 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14488 cat >>confdefs.h <<_ACEOF
14489 #define HAVE_DLFCN_H 1
14506 enable_win32_dll=no
14509 # Check whether --enable-shared was given.
14510 if test "${enable_shared+set}" = set; then :
14511 enableval=$enable_shared; p=${PACKAGE-default}
14513 yes) enable_shared=yes ;;
14514 no) enable_shared=no ;;
14517 # Look at the argument we got. We use all the common list separators.
14518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14519 for pkg in $enableval; do
14521 if test "X
$pkg" = "X
$p"; then
14540 # Check whether --enable-static was given.
14541 if test "${enable_static+set}" = set; then :
14542 enableval=$enable_static; p=${PACKAGE-default}
14544 yes) enable_static=yes ;;
14545 no) enable_static=no ;;
14548 # Look at the argument we got. We use all the common list separators.
14549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14550 for pkg in $enableval; do
14552 if test "X
$pkg" = "X
$p"; then
14572 # Check whether --with-pic was given.
14573 if test "${with_pic+set}" = set; then :
14574 withval=$with_pic; pic_mode="$withval"
14580 test -z "$pic_mode" && pic_mode=default
14588 # Check whether --enable-fast-install was given.
14589 if test "${enable_fast_install+set}" = set; then :
14590 enableval=$enable_fast_install; p=${PACKAGE-default}
14592 yes) enable_fast_install=yes ;;
14593 no) enable_fast_install=no ;;
14595 enable_fast_install=no
14596 # Look at the argument we got. We use all the common list separators.
14597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14598 for pkg in $enableval; do
14600 if test "X
$pkg" = "X
$p"; then
14601 enable_fast_install=yes
14608 enable_fast_install=yes
14621 # This can be used to rebuild libtool when needed
14622 LIBTOOL_DEPS="$ltmain"
14624 # Always use our own libtool.
14625 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14652 test -z "$LN_S" && LN_S="ln -s"
14667 if test -n "${ZSH_VERSION+set}" ; then
14668 setopt NO_GLOB_SUBST
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14672 $as_echo_n "checking
for objdir...
" >&6; }
14673 if test "${lt_cv_objdir+set}" = set; then :
14674 $as_echo_n "(cached
) " >&6
14676 rm -f .libs 2>/dev/null
14677 mkdir .libs 2>/dev/null
14678 if test -d .libs; then
14681 # MS-DOS does not allow filenames that begin with a dot.
14684 rmdir .libs 2>/dev/null
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14687 $as_echo "$lt_cv_objdir" >&6; }
14688 objdir=$lt_cv_objdir
14694 cat >>confdefs.h <<_ACEOF
14695 #define LT_OBJDIR "$lt_cv_objdir/"
14703 # AIX sometimes has problems with the GCC collect2 program. For some
14704 # reason, if we set the COLLECT_NAMES environment variable, the problems
14705 # vanish in a puff of smoke.
14706 if test "X
${COLLECT_NAMES+set}" != Xset; then
14708 export COLLECT_NAMES
14713 # Global variables:
14715 can_build_shared=yes
14717 # All known linkers require a `.a' archive for static linking (except MSVC,
14718 # which needs '.lib').
14721 with_gnu_ld="$lt_cv_prog_gnu_ld"
14724 old_CFLAGS="$CFLAGS"
14726 # Set sane defaults for various variables
14727 test -z "$CC" && CC=cc
14728 test -z "$LTCC" && LTCC=$CC
14729 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14730 test -z "$LD" && LD=ld
14731 test -z "$ac_objext" && ac_objext=o
14733 for cc_temp in $compiler""; do
14735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14741 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14744 # Only perform the check for file, if the check method requires it
14745 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14746 case $deplibs_check_method in
14748 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14750 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14751 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14752 $as_echo_n "(cached
) " >&6
14756 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14759 lt_save_MAGIC_CMD="$MAGIC_CMD"
14760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14761 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14762 for ac_dir in $ac_dummy; do
14764 test -z "$ac_dir" && ac_dir=.
14765 if test -f $ac_dir/${ac_tool_prefix}file; then
14766 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14767 if test -n "$file_magic_test_file"; then
14768 case $deplibs_check_method in
14770 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14772 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14773 $EGREP "$file_magic_regex" > /dev/null; then
14778 *** Warning: the command libtool uses to detect shared libraries,
14779 *** $file_magic_cmd, produces output that libtool cannot recognize.
14780 *** The result is that libtool may fail to recognize shared libraries
14781 *** as such. This will affect the creation of libtool libraries that
14782 *** depend on shared libraries, but programs linked with such libtool
14783 *** libraries will work regardless of this problem. Nevertheless, you
14784 *** may want to report the problem to your system manager and/or to
14785 *** bug-libtool@gnu.org
14795 MAGIC_CMD="$lt_save_MAGIC_CMD"
14800 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14801 if test -n "$MAGIC_CMD"; then
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14803 $as_echo "$MAGIC_CMD" >&6; }
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14806 $as_echo "no
" >&6; }
14813 if test -z "$lt_cv_path_MAGIC_CMD"; then
14814 if test -n "$ac_tool_prefix"; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14816 $as_echo_n "checking
for file...
" >&6; }
14817 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14818 $as_echo_n "(cached
) " >&6
14822 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14825 lt_save_MAGIC_CMD="$MAGIC_CMD"
14826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14827 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14828 for ac_dir in $ac_dummy; do
14830 test -z "$ac_dir" && ac_dir=.
14831 if test -f $ac_dir/file; then
14832 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14833 if test -n "$file_magic_test_file"; then
14834 case $deplibs_check_method in
14836 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14839 $EGREP "$file_magic_regex" > /dev/null; then
14844 *** Warning: the command libtool uses to detect shared libraries,
14845 *** $file_magic_cmd, produces output that libtool cannot recognize.
14846 *** The result is that libtool may fail to recognize shared libraries
14847 *** as such. This will affect the creation of libtool libraries that
14848 *** depend on shared libraries, but programs linked with such libtool
14849 *** libraries will work regardless of this problem. Nevertheless, you
14850 *** may want to report the problem to your system manager and/or to
14851 *** bug-libtool@gnu.org
14861 MAGIC_CMD="$lt_save_MAGIC_CMD"
14866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14867 if test -n "$MAGIC_CMD"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14869 $as_echo "$MAGIC_CMD" >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14872 $as_echo "no
" >&6; }
14885 # Use C for the default configuration in the libtool script
14889 ac_cpp='$CPP $CPPFLAGS'
14890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14895 # Source file extension for C test sources.
14898 # Object file extension for compiled C test sources.
14902 # Code to be used in simple compile tests
14903 lt_simple_compile_test_code="int some_variable
= 0;"
14905 # Code to be used in simple link tests
14906 lt_simple_link_test_code='int main(){return(0);}'
14914 # If no C compiler was specified, use CC.
14917 # If no C compiler flags were specified, use CFLAGS.
14918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14920 # Allow CC to be a program name with arguments.
14923 # Save the default compiler, since it gets overwritten when the other
14924 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14925 compiler_DEFAULT=$CC
14927 # save warnings/boilerplate of simple test code
14928 ac_outfile=conftest.$ac_objext
14929 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14930 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14931 _lt_compiler_boilerplate=`cat conftest.err`
14934 ac_outfile=conftest.$ac_objext
14935 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14936 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14937 _lt_linker_boilerplate=`cat conftest.err`
14942 ## There is no encapsulation within the following macros, do not change
14943 ## the running order or otherwise move them around unless you know exactly
14944 ## what you are doing...
14945 if test -n "$compiler"; then
14947 lt_prog_compiler_no_builtin_flag=
14949 if test "$GCC" = yes; then
14950 case $cc_basename in
14952 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14954 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14958 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14959 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14960 $as_echo_n "(cached
) " >&6
14962 lt_cv_prog_compiler_rtti_exceptions=no
14963 ac_outfile=conftest.$ac_objext
14964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14965 lt_compiler_flag="-fno-rtti -fno-exceptions"
14966 # Insert the option either (1) after the last *FLAGS variable, or
14967 # (2) before a word containing "conftest.
", or (3) at the end.
14968 # Note that $ac_compile itself does not contain backslashes and begins
14969 # with a dollar sign (not a hyphen), so the echo should work correctly.
14970 # The option is referenced via a variable to avoid confusing sed.
14971 lt_compile=`echo "$ac_compile" | $SED \
14972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14974 -e 's:$: $lt_compiler_flag:'`
14975 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14976 (eval "$lt_compile" 2>conftest.err)
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14980 if (exit $ac_status) && test -s "$ac_outfile"; then
14981 # The compiler can only warn and ignore the option if not recognized
14982 # So say no if there are warnings other than the usual output.
14983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14985 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14986 lt_cv_prog_compiler_rtti_exceptions=yes
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14993 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14995 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14996 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15008 lt_prog_compiler_wl=
15009 lt_prog_compiler_pic=
15010 lt_prog_compiler_static=
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15013 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15015 if test "$GCC" = yes; then
15016 lt_prog_compiler_wl='-Wl,'
15017 lt_prog_compiler_static='-static'
15021 # All AIX code is PIC.
15022 if test "$host_cpu" = ia64; then
15023 # AIX 5 now supports IA64 processor
15024 lt_prog_compiler_static='-Bstatic'
15031 # see comment about AmigaOS4 .so support
15032 lt_prog_compiler_pic='-fPIC'
15035 # FIXME: we need at least 68020 code to build shared libraries, but
15036 # adding the `-m68020' flag to GCC prevents building anything better,
15038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15044 # PIC is the default for these OSes.
15047 mingw* | cygwin* | pw32* | os2* | cegcc*)
15048 # This hack is so that the source file can tell whether it is being
15049 # built for inclusion in a dll (and should export symbols for example).
15050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15051 # (--disable-auto-import) libraries
15052 lt_prog_compiler_pic='-DDLL_EXPORT'
15055 darwin* | rhapsody*)
15056 # PIC is the default on this platform
15057 # Common symbols not allowed in MH_DYLIB files
15058 lt_prog_compiler_pic='-fno-common'
15062 # PIC is the default for Haiku.
15063 # The "-static" flag exists, but is broken.
15064 lt_prog_compiler_static=
15068 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15069 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15070 # sets the default TLS model and affects inlining.
15076 lt_prog_compiler_pic='-fPIC'
15082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15083 # Instead, we relocate shared libraries at runtime.
15087 # Just because we use GCC doesn't mean we suddenly get shared libraries
15088 # on systems that don't support them.
15089 lt_prog_compiler_can_build_shared=no
15094 # QNX uses GNU C++, but need to define -shared option too, otherwise
15095 # it will coredump.
15096 lt_prog_compiler_pic='-fPIC -shared'
15100 if test -d /usr/nec; then
15101 lt_prog_compiler_pic=-Kconform_pic
15106 lt_prog_compiler_pic='-fPIC'
15110 case $cc_basename in
15111 nvcc*) # Cuda Compiler Driver 2.2
15112 lt_prog_compiler_wl='-Xlinker '
15113 lt_prog_compiler_pic='-Xcompiler -fPIC'
15117 # PORTME Check for flag to pass linker flags through the system compiler.
15120 lt_prog_compiler_wl='-Wl,'
15121 if test "$host_cpu" = ia64; then
15122 # AIX 5 now supports IA64 processor
15123 lt_prog_compiler_static='-Bstatic'
15125 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15129 mingw* | cygwin* | pw32* | os2* | cegcc*)
15130 # This hack is so that the source file can tell whether it is being
15131 # built for inclusion in a dll (and should export symbols for example).
15132 lt_prog_compiler_pic='-DDLL_EXPORT'
15135 hpux9* | hpux10* | hpux11*)
15136 lt_prog_compiler_wl='-Wl,'
15137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15138 # not for PA HP-UX.
15144 lt_prog_compiler_pic='+Z'
15147 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15148 lt_prog_compiler_static='${wl}-a ${wl}archive'
15151 irix5* | irix6* | nonstopux*)
15152 lt_prog_compiler_wl='-Wl,'
15153 # PIC (with -KPIC) is the default.
15154 lt_prog_compiler_static='-non_shared'
15157 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15158 case $cc_basename in
15159 # old Intel for x86_64 which still supported -KPIC.
15161 lt_prog_compiler_wl='-Wl,'
15162 lt_prog_compiler_pic='-KPIC'
15163 lt_prog_compiler_static='-static'
15165 # icc used to be incompatible with GCC.
15166 # ICC 10 doesn't accept -KPIC any more.
15168 lt_prog_compiler_wl='-Wl,'
15169 lt_prog_compiler_pic='-fPIC'
15170 lt_prog_compiler_static='-static'
15172 # Lahey Fortran 8.1.
15174 lt_prog_compiler_wl='-Wl,'
15175 lt_prog_compiler_pic='--shared'
15176 lt_prog_compiler_static='--static'
15178 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15179 # Portland Group compilers (*not* the Pentium gcc compiler,
15180 # which looks to be a dead project)
15181 lt_prog_compiler_wl='-Wl,'
15182 lt_prog_compiler_pic='-fpic'
15183 lt_prog_compiler_static='-Bstatic'
15186 lt_prog_compiler_wl='-Wl,'
15187 # All Alpha code is PIC.
15188 lt_prog_compiler_static='-non_shared'
15190 xl* | bgxl* | bgf* | mpixl*)
15191 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15192 lt_prog_compiler_wl='-Wl,'
15193 lt_prog_compiler_pic='-qpic'
15194 lt_prog_compiler_static='-qstaticlink'
15197 case `$CC -V 2>&1 | sed 5q` in
15198 *Sun\ F* | *Sun*Fortran*)
15199 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15200 lt_prog_compiler_pic='-KPIC'
15201 lt_prog_compiler_static='-Bstatic'
15202 lt_prog_compiler_wl=''
15206 lt_prog_compiler_pic='-KPIC'
15207 lt_prog_compiler_static='-Bstatic'
15208 lt_prog_compiler_wl='-Wl,'
15216 lt_prog_compiler_pic='-KPIC'
15217 lt_prog_compiler_static='-Bstatic'
15221 # QNX uses GNU C++, but need to define -shared option too, otherwise
15222 # it will coredump.
15223 lt_prog_compiler_pic='-fPIC -shared'
15226 osf3* | osf4* | osf5*)
15227 lt_prog_compiler_wl='-Wl,'
15228 # All OSF/1 code is PIC.
15229 lt_prog_compiler_static='-non_shared'
15233 lt_prog_compiler_static='-non_shared'
15237 lt_prog_compiler_pic='-KPIC'
15238 lt_prog_compiler_static='-Bstatic'
15239 case $cc_basename in
15240 f77* | f90* | f95*)
15241 lt_prog_compiler_wl='-Qoption ld ';;
15243 lt_prog_compiler_wl='-Wl,';;
15248 lt_prog_compiler_wl='-Qoption ld '
15249 lt_prog_compiler_pic='-PIC'
15250 lt_prog_compiler_static='-Bstatic'
15253 sysv4 | sysv4.2uw2* | sysv4.3*)
15254 lt_prog_compiler_wl='-Wl,'
15255 lt_prog_compiler_pic='-KPIC'
15256 lt_prog_compiler_static='-Bstatic'
15260 if test -d /usr/nec ;then
15261 lt_prog_compiler_pic='-Kconform_pic'
15262 lt_prog_compiler_static='-Bstatic'
15266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15267 lt_prog_compiler_wl='-Wl,'
15268 lt_prog_compiler_pic='-KPIC'
15269 lt_prog_compiler_static='-Bstatic'
15273 lt_prog_compiler_wl='-Wl,'
15274 lt_prog_compiler_can_build_shared=no
15278 lt_prog_compiler_pic='-pic'
15279 lt_prog_compiler_static='-Bstatic'
15283 lt_prog_compiler_can_build_shared=no
15289 # For platforms which do not support PIC, -DPIC is meaningless:
15291 lt_prog_compiler_pic=
15294 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15298 $as_echo "$lt_prog_compiler_pic" >&6; }
15306 # Check to make sure the PIC flag actually works.
15308 if test -n "$lt_prog_compiler_pic"; then
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15310 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15311 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15312 $as_echo_n "(cached
) " >&6
15314 lt_cv_prog_compiler_pic_works=no
15315 ac_outfile=conftest.$ac_objext
15316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15318 # Insert the option either (1) after the last *FLAGS variable, or
15319 # (2) before a word containing "conftest.
", or (3) at the end.
15320 # Note that $ac_compile itself does not contain backslashes and begins
15321 # with a dollar sign (not a hyphen), so the echo should work correctly.
15322 # The option is referenced via a variable to avoid confusing sed.
15323 lt_compile=`echo "$ac_compile" | $SED \
15324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15326 -e 's:$: $lt_compiler_flag:'`
15327 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15328 (eval "$lt_compile" 2>conftest.err)
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15332 if (exit $ac_status) && test -s "$ac_outfile"; then
15333 # The compiler can only warn and ignore the option if not recognized
15334 # So say no if there are warnings other than the usual output.
15335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15338 lt_cv_prog_compiler_pic_works=yes
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15345 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15347 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15348 case $lt_prog_compiler_pic in
15350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15353 lt_prog_compiler_pic=
15354 lt_prog_compiler_can_build_shared=no
15365 # Check to make sure the static flag actually works.
15367 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15369 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15370 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15371 $as_echo_n "(cached
) " >&6
15373 lt_cv_prog_compiler_static_works=no
15374 save_LDFLAGS="$LDFLAGS"
15375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15378 # The linker can only warn and ignore the option if not recognized
15379 # So say no if there are warnings
15380 if test -s conftest.err; then
15381 # Append any errors to the config.log.
15382 cat conftest.err 1>&5
15383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15385 if diff conftest.exp conftest.er2 >/dev/null; then
15386 lt_cv_prog_compiler_static_works=yes
15389 lt_cv_prog_compiler_static_works=yes
15393 LDFLAGS="$save_LDFLAGS"
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15397 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15399 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15402 lt_prog_compiler_static=
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15412 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15413 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15414 $as_echo_n "(cached
) " >&6
15416 lt_cv_prog_compiler_c_o=no
15417 $RM -r conftest 2>/dev/null
15421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15423 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15424 # Insert the option either (1) after the last *FLAGS variable, or
15425 # (2) before a word containing "conftest.
", or (3) at the end.
15426 # Note that $ac_compile itself does not contain backslashes and begins
15427 # with a dollar sign (not a hyphen), so the echo should work correctly.
15428 lt_compile=`echo "$ac_compile" | $SED \
15429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15431 -e 's:$: $lt_compiler_flag:'`
15432 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15433 (eval "$lt_compile" 2>out/conftest.err)
15435 cat out/conftest.err >&5
15436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15439 # The compiler can only warn and ignore the option if not recognized
15440 # So say no if there are warnings
15441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15444 lt_cv_prog_compiler_c_o=yes
15449 # SGI C++ compiler will create directory out/ii_files/ for
15450 # template instantiation
15451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15452 $RM out/* && rmdir out
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15467 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15468 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15469 $as_echo_n "(cached
) " >&6
15471 lt_cv_prog_compiler_c_o=no
15472 $RM -r conftest 2>/dev/null
15476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15478 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15479 # Insert the option either (1) after the last *FLAGS variable, or
15480 # (2) before a word containing "conftest.
", or (3) at the end.
15481 # Note that $ac_compile itself does not contain backslashes and begins
15482 # with a dollar sign (not a hyphen), so the echo should work correctly.
15483 lt_compile=`echo "$ac_compile" | $SED \
15484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15486 -e 's:$: $lt_compiler_flag:'`
15487 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15488 (eval "$lt_compile" 2>out/conftest.err)
15490 cat out/conftest.err >&5
15491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15494 # The compiler can only warn and ignore the option if not recognized
15495 # So say no if there are warnings
15496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15499 lt_cv_prog_compiler_c_o=yes
15504 # SGI C++ compiler will create directory out/ii_files/ for
15505 # template instantiation
15506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15507 $RM out/* && rmdir out
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15514 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15519 hard_links="nottested
"
15520 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15521 # do not overwrite the value of need_locks provided by the user
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15523 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15528 ln conftest.a conftest.b 2>&5 || hard_links=no
15529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15531 $as_echo "$hard_links" >&6; }
15532 if test "$hard_links" = no; then
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15534 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15547 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15550 allow_undefined_flag=
15551 always_export_symbols=no
15553 archive_expsym_cmds=
15554 compiler_needs_object=no
15555 enable_shared_with_static_runtimes=no
15556 export_dynamic_flag_spec=
15557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15558 hardcode_automatic=no
15560 hardcode_direct_absolute=no
15561 hardcode_libdir_flag_spec=
15562 hardcode_libdir_flag_spec_ld=
15563 hardcode_libdir_separator=
15564 hardcode_minus_L=no
15565 hardcode_shlibpath_var=unsupported
15567 link_all_deplibs=unknown
15569 module_expsym_cmds=
15570 old_archive_from_new_cmds=
15571 old_archive_from_expsyms_cmds=
15572 thread_safe_flag_spec=
15573 whole_archive_flag_spec=
15574 # include_expsyms should be a list of space-separated symbols to be *always*
15575 # included in the symbol list
15577 # exclude_expsyms can be an extended regexp of symbols to exclude
15578 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15579 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15580 # as well as any symbol that contains `d'.
15581 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15582 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15583 # platforms (ab)use it in PIC code, but their linkers get confused if
15584 # the symbol is explicitly referenced. Since portable code cannot
15585 # rely on this symbol name, it's probably fine to never include it in
15586 # preloaded symbol tables.
15587 # Exclude shared library initialization/finalization symbols.
15588 extract_expsyms_cmds=
15591 cygwin* | mingw* | pw32* | cegcc*)
15592 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15593 # When not using gcc, we currently assume that we are using
15594 # Microsoft Visual C++.
15595 if test "$GCC" != yes; then
15600 # we just hope/assume this is gcc and not c89 (= MSVC++)
15610 # On some targets, GNU ld is compatible enough with the native linker
15611 # that we're better off using the native interface for both.
15612 lt_use_gnu_ld_interface=no
15613 if test "$with_gnu_ld" = yes; then
15616 # The AIX port of GNU ld has always aspired to compatibility
15617 # with the native linker. However, as the warning in the GNU ld
15618 # block says, versions before 2.19.5* couldn't really create working
15619 # shared libraries, regardless of the interface used.
15620 case `$LD -v 2>&1` in
15621 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15622 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15623 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15625 lt_use_gnu_ld_interface=yes
15630 lt_use_gnu_ld_interface=yes
15635 if test "$lt_use_gnu_ld_interface" = yes; then
15636 # If archive_cmds runs LD, not CC, wlarc should be empty
15639 # Set some defaults for GNU ld with shared library support. These
15640 # are reset later if shared libraries are not supported. Putting them
15641 # here allows them to be overridden if necessary.
15642 runpath_var=LD_RUN_PATH
15643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15644 export_dynamic_flag_spec='${wl}--export-dynamic'
15645 # ancient GNU ld didn't support --whole-archive et. al.
15646 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15647 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15649 whole_archive_flag_spec=
15651 supports_anon_versioning=no
15652 case `$LD -v 2>&1` in
15653 *GNU\ gold*) supports_anon_versioning=yes ;;
15654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15657 *\ 2.11.*) ;; # other 2.11 versions
15658 *) supports_anon_versioning=yes ;;
15661 # See if GNU ld supports shared libraries.
15664 # On AIX/PPC, the GNU linker is very broken
15665 if test "$host_cpu" != ia64; then
15669 *** Warning: the GNU linker, at least up to release 2.19, is reported
15670 *** to be unable to reliably create shared libraries on AIX.
15671 *** Therefore, libtool is disabling shared libraries support. If you
15672 *** really care for shared libraries, you may want to install binutils
15673 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15674 *** You will then need to restart the configuration process.
15683 # see comment about AmigaOS4 .so support
15684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685 archive_expsym_cmds=''
15688 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)'
15689 hardcode_libdir_flag_spec
='-L$libdir'
15690 hardcode_minus_L
=yes
15696 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15697 allow_undefined_flag
=unsupported
15698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15699 # support --undefined. This deserves some investigation. FIXME
15700 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15706 cygwin
* | mingw
* | pw32
* | cegcc
*)
15707 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15708 # as there is no search path for DLLs.
15709 hardcode_libdir_flag_spec
='-L$libdir'
15710 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15711 allow_undefined_flag
=unsupported
15712 always_export_symbols
=no
15713 enable_shared_with_static_runtimes
=yes
15714 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15716 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15717 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15718 # If the export-symbols file already is a .def file (1st line
15719 # is EXPORTS), use it as is; otherwise, prepend...
15720 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15721 cp $export_symbols $output_objdir/$soname.def;
15723 echo EXPORTS > $output_objdir/$soname.def;
15724 cat $export_symbols >> $output_objdir/$soname.def;
15726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15733 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15734 link_all_deplibs
=yes
15739 hardcode_shlibpath_var
=no
15740 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15741 export_dynamic_flag_spec
='${wl}-E'
15742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15743 # Instead, shared libraries are loaded at an image base (0x10000000 by
15744 # default) and relocated if they conflict, which is a slow very memory
15745 # consuming and fragmenting process. To avoid this, we pick a random,
15746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15747 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15748 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15749 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'
15752 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15754 if test "$host_os" = linux-dietlibc
; then
15755 case $cc_basename in
15756 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15759 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15760 && test "$tmp_diet" = no
15763 tmp_sharedflag
='-shared'
15764 case $cc_basename,$host_cpu in
15765 pgcc
*) # Portland Group C compiler
15766 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'
15767 tmp_addflag
=' $pic_flag'
15769 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15770 # Portland Group f77 and f90 compilers
15771 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'
15772 tmp_addflag
=' $pic_flag -Mnomain' ;;
15773 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15774 tmp_addflag
=' -i_dynamic' ;;
15775 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15776 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15777 ifc
* | ifort
*) # Intel Fortran compiler
15778 tmp_addflag
=' -nofor_main' ;;
15779 lf95
*) # Lahey Fortran 8.1
15780 whole_archive_flag_spec
=
15781 tmp_sharedflag
='--shared' ;;
15782 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15783 tmp_sharedflag
='-qmkshrobj'
15785 nvcc
*) # Cuda Compiler Driver 2.2
15786 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'
15787 compiler_needs_object
=yes
15790 case `$CC -V 2>&1 | sed 5q` in
15791 *Sun\ C
*) # Sun C 5.9
15792 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'
15793 compiler_needs_object
=yes
15794 tmp_sharedflag
='-G' ;;
15795 *Sun\ F
*) # Sun Fortran 8.3
15796 tmp_sharedflag
='-G' ;;
15798 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15800 if test "x$supports_anon_versioning" = xyes
; then
15801 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15803 echo "local: *; };" >> $output_objdir/$libname.ver~
15804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15807 case $cc_basename in
15808 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15809 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15810 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15811 hardcode_libdir_flag_spec
=
15812 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15813 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15814 if test "x$supports_anon_versioning" = xyes
; then
15815 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15817 echo "local: *; };" >> $output_objdir/$libname.ver~
15818 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15828 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15829 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15832 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15833 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15838 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15843 *** create shared libraries on Solaris systems. Therefore, libtool
15844 *** is disabling shared libraries support. We urge you to upgrade GNU
15845 *** binutils to release 2.9.1 or newer. Another option is to modify
15846 *** your PATH or compiler configuration so that the native linker is
15847 *** used, and then restart.
15850 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15851 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15852 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15858 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15859 case `$LD -v 2>&1` in
15860 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15865 *** reliably create shared libraries on SCO systems. Therefore, libtool
15866 *** is disabling shared libraries support. We urge you to upgrade GNU
15867 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15868 *** your PATH or compiler configuration so that the native linker is
15869 *** used, and then restart.
15874 # For security reasons, it is highly recommended that you always
15875 # use absolute paths for naming shared libraries, and exclude the
15876 # DT_RUNPATH tag from executables and libraries. But doing so
15877 # requires that you compile everything twice, which is a pain.
15878 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15879 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15880 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15881 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15890 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15892 hardcode_direct
=yes
15893 hardcode_shlibpath_var
=no
15897 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15898 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15899 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15906 if test "$ld_shlibs" = no
; then
15908 hardcode_libdir_flag_spec
=
15909 export_dynamic_flag_spec
=
15910 whole_archive_flag_spec
=
15913 # PORTME fill in a description of your system's linker (not GNU ld)
15916 allow_undefined_flag
=unsupported
15917 always_export_symbols
=yes
15918 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'
15919 # Note: this linker hardcodes the directories in LIBPATH if there
15920 # are no directories specified by -L.
15921 hardcode_minus_L
=yes
15922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15923 # Neither direct hardcoding nor static linking is supported with a
15925 hardcode_direct
=unsupported
15930 if test "$host_cpu" = ia64
; then
15931 # On IA64, the linker does run time linking by default, so we don't
15932 # have to do anything special.
15933 aix_use_runtimelinking
=no
15934 exp_sym_flag
='-Bexport'
15937 # If we're using GNU nm, then we don't want the "-C" option.
15938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15939 # Also, AIX nm treats weak defined symbols like other global
15940 # defined symbols, whereas GNU nm marks them as "W".
15941 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15942 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'
15944 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'
15946 aix_use_runtimelinking
=no
15948 # Test if we are trying to use run time linking or normal
15949 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15950 # need to do runtime linking.
15951 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15952 for ld_flag
in $LDFLAGS; do
15953 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15954 aix_use_runtimelinking
=yes
15961 exp_sym_flag
='-bexport'
15962 no_entry_flag
='-bnoentry'
15965 # When large executables or shared objects are built, AIX ld can
15966 # have problems creating the table of contents. If linking a library
15967 # or program results in "error TOC overflow" add -mminimal-toc to
15968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15972 hardcode_direct
=yes
15973 hardcode_direct_absolute
=yes
15974 hardcode_libdir_separator
=':'
15975 link_all_deplibs
=yes
15976 file_list_spec
='${wl}-f,'
15978 if test "$GCC" = yes; then
15979 case $host_os in aix4.
[012]|aix4.
[012].
*)
15980 # We only want to do this on AIX 4.2 and lower, the check
15981 # below for broken collect2 doesn't work under 4.3+
15982 collect2name
=`${CC} -print-prog-name=collect2`
15983 if test -f "$collect2name" &&
15984 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15986 # We have reworked collect2
15989 # We have old collect2
15990 hardcode_direct
=unsupported
15991 # It fails to find uninstalled libraries when the uninstalled
15992 # path is not listed in the libpath. Setting hardcode_minus_L
15993 # to unsupported forces relinking
15994 hardcode_minus_L
=yes
15995 hardcode_libdir_flag_spec
='-L$libdir'
15996 hardcode_libdir_separator
=
16000 shared_flag
='-shared'
16001 if test "$aix_use_runtimelinking" = yes; then
16002 shared_flag
="$shared_flag "'${wl}-G'
16006 if test "$host_cpu" = ia64
; then
16007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16008 # chokes on -Wl,-G. The following line is correct:
16011 if test "$aix_use_runtimelinking" = yes; then
16012 shared_flag
='${wl}-G'
16014 shared_flag
='${wl}-bM:SRE'
16019 export_dynamic_flag_spec
='${wl}-bexpall'
16020 # It seems that -bexpall does not export symbols beginning with
16021 # underscore (_), so it is better to generate a list of symbols to export.
16022 always_export_symbols
=yes
16023 if test "$aix_use_runtimelinking" = yes; then
16024 # Warning - without using the other runtime loading flags (-brtl),
16025 # -berok will link without error, but may produce a broken library.
16026 allow_undefined_flag
='-berok'
16027 # Determine the default libpath from the value encoded in an
16028 # empty executable.
16029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16030 /* end confdefs.h. */
16040 if ac_fn_c_try_link
"$LINENO"; then :
16042 lt_aix_libpath_sed
='
16043 /Import File Strings/,/^$/ {
16049 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16050 # Check for a 64-bit object if we didn't find anything.
16051 if test -z "$aix_libpath"; then
16052 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16055 rm -f core conftest.err conftest.
$ac_objext \
16056 conftest
$ac_exeext conftest.
$ac_ext
16057 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16059 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16060 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"
16062 if test "$host_cpu" = ia64
; then
16063 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16064 allow_undefined_flag
="-z nodefs"
16065 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"
16067 # Determine the default libpath from the value encoded in an
16068 # empty executable.
16069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16080 if ac_fn_c_try_link
"$LINENO"; then :
16082 lt_aix_libpath_sed
='
16083 /Import File Strings/,/^$/ {
16089 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16090 # Check for a 64-bit object if we didn't find anything.
16091 if test -z "$aix_libpath"; then
16092 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16095 rm -f core conftest.err conftest.
$ac_objext \
16096 conftest
$ac_exeext conftest.
$ac_ext
16097 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16099 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16100 # Warning - without using the other run time loading flags,
16101 # -berok will link without error, but may produce a broken library.
16102 no_undefined_flag
=' ${wl}-bernotok'
16103 allow_undefined_flag
=' ${wl}-berok'
16104 if test "$with_gnu_ld" = yes; then
16105 # We only use this code for GNU lds that support --whole-archive.
16106 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16108 # Exported symbols can be pulled into shared objects from archives
16109 whole_archive_flag_spec
='$convenience'
16111 archive_cmds_need_lc
=yes
16112 # This is similar to how AIX traditionally builds its shared libraries.
16113 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'
16121 # see comment about AmigaOS4 .so support
16122 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16123 archive_expsym_cmds
=''
16126 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)'
16127 hardcode_libdir_flag_spec
='-L$libdir'
16128 hardcode_minus_L
=yes
16134 export_dynamic_flag_spec
=-rdynamic
16137 cygwin
* | mingw
* | pw32
* | cegcc
*)
16138 # When not using gcc, we currently assume that we are using
16139 # Microsoft Visual C++.
16140 # hardcode_libdir_flag_spec is actually meaningless, as there is
16141 # no search path for DLLs.
16142 hardcode_libdir_flag_spec
=' '
16143 allow_undefined_flag
=unsupported
16144 # Tell ltmain to make .lib files, not .a files.
16146 # Tell ltmain to make .dll files, not .so files.
16148 # FIXME: Setting linknames here is a bad hack.
16149 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16150 # The linker will automatically build a .lib file if we build a DLL.
16151 old_archive_from_new_cmds
='true'
16152 # FIXME: Should let the user specify the lib program.
16153 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16154 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16155 enable_shared_with_static_runtimes
=yes
16158 darwin
* | rhapsody
*)
16161 archive_cmds_need_lc
=no
16163 hardcode_automatic
=yes
16164 hardcode_shlibpath_var
=unsupported
16165 if test "$lt_cv_ld_force_load" = "yes"; then
16166 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\"`'
16168 whole_archive_flag_spec
=''
16170 link_all_deplibs
=yes
16171 allow_undefined_flag
="$_lt_dar_allow_undefined"
16172 case $cc_basename in
16173 ifort
*) _lt_dar_can_shared
=yes ;;
16174 *) _lt_dar_can_shared
=$GCC ;;
16176 if test "$_lt_dar_can_shared" = "yes"; then
16177 output_verbose_link_cmd
=func_echo_all
16178 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16179 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16180 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}"
16181 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}"
16190 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 hardcode_libdir_flag_spec
='-L$libdir'
16192 hardcode_shlibpath_var
=no
16195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16196 # support. Future versions do this automatically, but an explicit c++rt0.o
16197 # does not break anything, and helps significantly (at the cost of a little
16200 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16201 hardcode_libdir_flag_spec
='-R$libdir'
16202 hardcode_direct
=yes
16203 hardcode_shlibpath_var
=no
16206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16208 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_direct
=yes
16210 hardcode_minus_L
=yes
16211 hardcode_shlibpath_var
=no
16214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16215 freebsd
* | dragonfly
*)
16216 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16217 hardcode_libdir_flag_spec
='-R$libdir'
16218 hardcode_direct
=yes
16219 hardcode_shlibpath_var
=no
16223 if test "$GCC" = yes; then
16224 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'
16226 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'
16228 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16229 hardcode_libdir_separator
=:
16230 hardcode_direct
=yes
16232 # hardcode_minus_L: Not really in the search PATH,
16233 # but as the default location of the library.
16234 hardcode_minus_L
=yes
16235 export_dynamic_flag_spec
='${wl}-E'
16239 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16240 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16242 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16244 if test "$with_gnu_ld" = no
; then
16245 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16246 hardcode_libdir_flag_spec_ld
='+b $libdir'
16247 hardcode_libdir_separator
=:
16248 hardcode_direct
=yes
16249 hardcode_direct_absolute
=yes
16250 export_dynamic_flag_spec
='${wl}-E'
16251 # hardcode_minus_L: Not really in the search PATH,
16252 # but as the default location of the library.
16253 hardcode_minus_L
=yes
16258 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16261 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16264 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16267 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16273 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16276 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16280 # Older versions of the 11.00 compiler do not understand -b yet
16281 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16283 $as_echo_n "checking if $CC understands -b... " >&6; }
16284 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16285 $as_echo_n "(cached) " >&6
16287 lt_cv_prog_compiler__b
=no
16288 save_LDFLAGS
="$LDFLAGS"
16289 LDFLAGS
="$LDFLAGS -b"
16290 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16291 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16292 # The linker can only warn and ignore the option if not recognized
16293 # So say no if there are warnings
16294 if test -s conftest.err
; then
16295 # Append any errors to the config.log.
16296 cat conftest.err
1>&5
16297 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16298 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16299 if diff conftest.exp conftest.er2
>/dev
/null
; then
16300 lt_cv_prog_compiler__b
=yes
16303 lt_cv_prog_compiler__b
=yes
16307 LDFLAGS
="$save_LDFLAGS"
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16311 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16313 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16314 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16316 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16322 if test "$with_gnu_ld" = no
; then
16323 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16324 hardcode_libdir_separator
=:
16329 hardcode_shlibpath_var
=no
16332 hardcode_direct
=yes
16333 hardcode_direct_absolute
=yes
16334 export_dynamic_flag_spec
='${wl}-E'
16336 # hardcode_minus_L: Not really in the search PATH,
16337 # but as the default location of the library.
16338 hardcode_minus_L
=yes
16344 irix5
* | irix6
* | nonstopux
*)
16345 if test "$GCC" = yes; then
16346 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'
16347 # Try to use the -exported_symbol ld option, if it does not
16348 # work, assume that -exports_file does not work either and
16349 # implicitly export all symbols.
16350 save_LDFLAGS
="$LDFLAGS"
16351 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16356 if ac_fn_c_try_link
"$LINENO"; then :
16357 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'
16360 rm -f core conftest.err conftest.
$ac_objext \
16361 conftest
$ac_exeext conftest.
$ac_ext
16362 LDFLAGS
="$save_LDFLAGS"
16364 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'
16365 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'
16367 archive_cmds_need_lc
='no'
16368 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16369 hardcode_libdir_separator
=:
16371 link_all_deplibs
=yes
16375 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16376 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16378 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16380 hardcode_libdir_flag_spec
='-R$libdir'
16381 hardcode_direct
=yes
16382 hardcode_shlibpath_var
=no
16386 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16387 hardcode_direct
=yes
16388 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16389 hardcode_libdir_separator
=:
16390 hardcode_shlibpath_var
=no
16397 if test -f /usr
/libexec
/ld.so
; then
16398 hardcode_direct
=yes
16399 hardcode_shlibpath_var
=no
16400 hardcode_direct_absolute
=yes
16401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16402 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16403 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16404 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16405 export_dynamic_flag_spec
='${wl}-E'
16408 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16409 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16410 hardcode_libdir_flag_spec
='-R$libdir'
16413 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16414 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16424 hardcode_libdir_flag_spec
='-L$libdir'
16425 hardcode_minus_L
=yes
16426 allow_undefined_flag
=unsupported
16427 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'
16428 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16432 if test "$GCC" = yes; then
16433 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16434 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'
16436 allow_undefined_flag
=' -expect_unresolved \*'
16437 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'
16439 archive_cmds_need_lc
='no'
16440 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16441 hardcode_libdir_separator
=:
16444 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16445 if test "$GCC" = yes; then
16446 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16447 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'
16448 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16450 allow_undefined_flag
=' -expect_unresolved \*'
16451 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'
16452 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~
16453 $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'
16455 # Both c and cxx compiler support -rpath directly
16456 hardcode_libdir_flag_spec
='-rpath $libdir'
16458 archive_cmds_need_lc
='no'
16459 hardcode_libdir_separator
=:
16463 no_undefined_flag
=' -z defs'
16464 if test "$GCC" = yes; then
16466 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16467 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16468 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16470 case `$CC -V 2>&1` in
16473 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16474 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16479 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16480 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16481 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16485 hardcode_libdir_flag_spec
='-R$libdir'
16486 hardcode_shlibpath_var
=no
16488 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16490 # The compiler driver will combine and reorder linker options,
16491 # but understands `-z linker_flag'. GCC discards it without `$wl',
16492 # but is careful enough not to reorder.
16493 # Supported since Solaris 2.6 (maybe 2.5.1?)
16494 if test "$GCC" = yes; then
16495 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16497 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16501 link_all_deplibs
=yes
16505 if test "x$host_vendor" = xsequent
; then
16506 # Use $CC to link under sequent, because it throws in some extra .o
16507 # files that make .init and .fini sections work.
16508 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16510 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_libdir_flag_spec
='-L$libdir'
16513 hardcode_direct
=yes
16514 hardcode_minus_L
=yes
16515 hardcode_shlibpath_var
=no
16519 case $host_vendor in
16521 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16522 hardcode_direct
=yes # is this really true???
16525 ## LD is ld it makes a PLAMLIB
16526 ## CC just makes a GrossModule.
16527 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16528 reload_cmds
='$CC -r -o $output$reload_objs'
16532 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16533 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16536 runpath_var
='LD_RUN_PATH'
16537 hardcode_shlibpath_var
=no
16541 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16542 hardcode_shlibpath_var
=no
16543 export_dynamic_flag_spec
='-Bexport'
16547 if test -d /usr
/nec
; then
16548 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549 hardcode_shlibpath_var
=no
16550 runpath_var
=LD_RUN_PATH
16551 hardcode_runpath_var
=yes
16556 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16557 no_undefined_flag
='${wl}-z,text'
16558 archive_cmds_need_lc
=no
16559 hardcode_shlibpath_var
=no
16560 runpath_var
='LD_RUN_PATH'
16562 if test "$GCC" = yes; then
16563 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16564 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16571 sysv5
* | sco3.2v5
* | sco5v6
*)
16572 # Note: We can NOT use -z defs as we might desire, because we do not
16573 # link with -lc, and that would cause any symbols used from libc to
16574 # always be unresolved, which means just about no library would
16575 # ever link correctly. If we're not using GNU ld we use -z text
16576 # though, which does catch some bad symbols but isn't as heavy-handed
16578 no_undefined_flag
='${wl}-z,text'
16579 allow_undefined_flag
='${wl}-z,nodefs'
16580 archive_cmds_need_lc
=no
16581 hardcode_shlibpath_var
=no
16582 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16583 hardcode_libdir_separator
=':'
16584 link_all_deplibs
=yes
16585 export_dynamic_flag_spec
='${wl}-Bexport'
16586 runpath_var
='LD_RUN_PATH'
16588 if test "$GCC" = yes; then
16589 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16590 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16598 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599 hardcode_libdir_flag_spec
='-L$libdir'
16600 hardcode_shlibpath_var
=no
16608 if test x
$host_vendor = xsni
; then
16610 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16611 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16618 $as_echo "$ld_shlibs" >&6; }
16619 test "$ld_shlibs" = no
&& can_build_shared
=no
16621 with_gnu_ld
=$with_gnu_ld
16638 # Do we need to explicitly link libc?
16640 case "x$archive_cmds_need_lc" in
16642 # Assume -lc should be added
16643 archive_cmds_need_lc
=yes
16645 if test "$enable_shared" = yes && test "$GCC" = yes; then
16646 case $archive_cmds in
16648 # FIXME: we may have to deal with multi-command sequences.
16651 # Test whether the compiler implicitly links with -lc since on some
16652 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16653 # to ld, don't add -lc before -lgcc.
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16655 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16656 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16657 $as_echo_n "(cached) " >&6
16660 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16663 (eval $ac_compile) 2>&5
16665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16666 test $ac_status = 0; } 2>conftest.err
; then
16669 libobjs
=conftest.
$ac_objext
16671 wl
=$lt_prog_compiler_wl
16672 pic_flag
=$lt_prog_compiler_pic
16678 lt_save_allow_undefined_flag
=$allow_undefined_flag
16679 allow_undefined_flag
=
16680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16681 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16684 test $ac_status = 0; }
16686 lt_cv_archive_cmds_need_lc
=no
16688 lt_cv_archive_cmds_need_lc
=yes
16690 allow_undefined_flag
=$lt_save_allow_undefined_flag
16692 cat conftest.err
1>&5
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16698 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16699 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16863 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16865 if test "$GCC" = yes; then
16867 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16868 *) lt_awk_arg
="/^libraries:/" ;;
16871 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16872 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16874 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16875 case $lt_search_path_spec in
16877 # if the path contains ";" then we assume it to be the separator
16878 # otherwise default to the standard path separator (i.e. ":") - it is
16879 # assumed that no part of a normal pathname contains ";" but that should
16880 # okay in the real world where ";" in dirpaths is itself problematic.
16881 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16884 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16887 # Ok, now we have the path, separated by spaces, we can step through it
16888 # and add multilib dir if necessary.
16889 lt_tmp_lt_search_path_spec
=
16890 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16891 for lt_sys_path
in $lt_search_path_spec; do
16892 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16893 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16895 test -d "$lt_sys_path" && \
16896 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16899 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16900 BEGIN {RS=" "; FS="/|\n";} {
16903 for (lt_i = NF; lt_i > 0; lt_i--) {
16904 if ($lt_i != "" && $lt_i != ".") {
16905 if ($lt_i == "..") {
16908 if (lt_count == 0) {
16909 lt_foo="/" $lt_i lt_foo;
16916 if (lt_foo != "") { lt_freq[lt_foo]++; }
16917 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16919 # AWK program above erroneously prepends '/' to C:/dos/paths
16922 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16923 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16925 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16927 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16929 library_names_spec
=
16930 libname_spec
='lib$name'
16934 postuninstall_cmds
=
16938 shlibpath_overrides_runpath
=unknown
16940 dynamic_linker
="$host_os ld.so"
16941 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16942 need_lib_prefix
=unknown
16943 hardcode_into_libs
=no
16945 # when you set need_version to no, make sure it does not cause -set_version
16946 # flags to be left without arguments
16947 need_version
=unknown
16952 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16953 shlibpath_var
=LIBPATH
16955 # AIX 3 has no versioning support, so we append a major version to the name.
16956 soname_spec
='${libname}${release}${shared_ext}$major'
16963 hardcode_into_libs
=yes
16964 if test "$host_cpu" = ia64
; then
16965 # AIX 5 supports IA64
16966 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16967 shlibpath_var
=LD_LIBRARY_PATH
16969 # With GCC up to 2.95.x, collect2 would create an import file
16970 # for dependence libraries. The import file would start with
16971 # the line `#! .'. This would cause the generated library to
16972 # depend on `.', always an invalid library. This was fixed in
16973 # development snapshots of GCC prior to 3.0.
16975 aix4 | aix4.
[01] | aix4.
[01].
*)
16976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16978 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16981 can_build_shared
=no
16985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16986 # soname into executable. Probably we can add versioning support to
16987 # collect2, so additional links can be useful in future.
16988 if test "$aix_use_runtimelinking" = yes; then
16989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16990 # instead of lib<name>.a to let people know that these are not
16991 # typical AIX shared libraries.
16992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16994 # We preserve .a as extension for shared libraries through AIX4.2
16995 # and later when we are not doing run time linking.
16996 library_names_spec
='${libname}${release}.a $libname.a'
16997 soname_spec
='${libname}${release}${shared_ext}$major'
16999 shlibpath_var
=LIBPATH
17006 # Since July 2007 AmigaOS4 officially supports .so libraries.
17007 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011 library_names_spec
='$libname.ixlibrary $libname.a'
17012 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17013 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'
17019 library_names_spec
='${libname}${shared_ext}'
17020 dynamic_linker
="$host_os ld.so"
17021 shlibpath_var
=LIBRARY_PATH
17027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028 soname_spec
='${libname}${release}${shared_ext}$major'
17029 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17030 shlibpath_var
=LD_LIBRARY_PATH
17031 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17032 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17033 # the default ld.so.conf also contains /usr/contrib/lib and
17034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17035 # libtool to hard-code these into programs
17038 cygwin
* | mingw
* | pw32
* | cegcc
*)
17039 version_type
=windows
17044 case $GCC,$host_os in
17045 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17046 library_names_spec
='$libname.dll.a'
17047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17048 postinstall_cmds
='base_file=`basename \${file}`~
17049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17050 dldir=$destdir/`dirname \$dlpath`~
17051 test -d \$dldir || mkdir -p \$dldir~
17052 $install_prog $dir/$dlname \$dldir/$dlname~
17053 chmod a+x \$dldir/$dlname~
17054 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17055 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17057 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17058 dlpath=$dir/\$dldll~
17060 shlibpath_overrides_runpath
=yes
17064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17065 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17067 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17070 # MinGW DLLs use traditional 'lib' prefix
17071 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17074 # pw32 DLLs use 'pw' prefix rather than 'lib'
17075 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17081 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17084 dynamic_linker
='Win32 ld.exe'
17085 # FIXME: first we should search . and the directory the executable is in
17089 darwin
* | rhapsody
*)
17090 dynamic_linker
="$host_os dyld"
17091 version_type
=darwin
17094 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17095 soname_spec
='${libname}${release}${major}$shared_ext'
17096 shlibpath_overrides_runpath
=yes
17097 shlibpath_var
=DYLD_LIBRARY_PATH
17098 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17100 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17101 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17109 soname_spec
='${libname}${release}${shared_ext}$major'
17110 shlibpath_var
=LD_LIBRARY_PATH
17113 freebsd
* | dragonfly
*)
17114 # DragonFly does not have aout. When/if they implement a new
17115 # versioning mechanism, adjust this.
17116 if test -x /usr
/bin
/objformat
; then
17117 objformat
=`/usr/bin/objformat`
17120 freebsd
[23].
*) objformat
=aout
;;
17121 *) objformat
=elf
;;
17124 version_type
=freebsd-
$objformat
17125 case $version_type in
17127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17132 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17136 shlibpath_var
=LD_LIBRARY_PATH
17139 shlibpath_overrides_runpath
=yes
17141 freebsd3.
[01]* | freebsdelf3.
[01]*)
17142 shlibpath_overrides_runpath
=yes
17143 hardcode_into_libs
=yes
17145 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17146 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17147 shlibpath_overrides_runpath
=no
17148 hardcode_into_libs
=yes
17150 *) # from 4.6 on, and DragonFly
17151 shlibpath_overrides_runpath
=yes
17152 hardcode_into_libs
=yes
17161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17162 soname_spec
='${libname}${release}${shared_ext}$major'
17163 shlibpath_var
=LD_LIBRARY_PATH
17164 hardcode_into_libs
=yes
17171 dynamic_linker
="$host_os runtime_loader"
17172 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17173 soname_spec
='${libname}${release}${shared_ext}$major'
17174 shlibpath_var
=LIBRARY_PATH
17175 shlibpath_overrides_runpath
=yes
17176 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17177 hardcode_into_libs
=yes
17180 hpux9
* | hpux10
* | hpux11
*)
17181 # Give a soname corresponding to the major version so that dld.sl refuses to
17182 # link against other versions.
17189 hardcode_into_libs
=yes
17190 dynamic_linker
="$host_os dld.so"
17191 shlibpath_var
=LD_LIBRARY_PATH
17192 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194 soname_spec
='${libname}${release}${shared_ext}$major'
17195 if test "X$HPUX_IA64_MODE" = X32
; then
17196 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17198 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17200 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17204 hardcode_into_libs
=yes
17205 dynamic_linker
="$host_os dld.sl"
17206 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17207 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 soname_spec
='${libname}${release}${shared_ext}$major'
17210 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17211 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17215 dynamic_linker
="$host_os dld.sl"
17216 shlibpath_var
=SHLIB_PATH
17217 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec
='${libname}${release}${shared_ext}$major'
17222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17223 postinstall_cmds
='chmod 555 $lib'
17224 # or fails outright, so override atomically:
17225 install_override_mode
=555
17232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17233 soname_spec
='${libname}${release}${shared_ext}$major'
17234 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17235 shlibpath_var
=LD_LIBRARY_PATH
17236 shlibpath_overrides_runpath
=no
17237 hardcode_into_libs
=yes
17240 irix5
* | irix6
* | nonstopux
*)
17242 nonstopux
*) version_type
=nonstopux
;;
17244 if test "$lt_cv_prog_gnu_ld" = yes; then
17252 soname_spec
='${libname}${release}${shared_ext}$major'
17253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17255 irix5
* | nonstopux
*)
17256 libsuff
= shlibsuff
=
17259 case $LD in # libtool.m4 will add one of these switches to LD
17260 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17261 libsuff
= shlibsuff
= libmagic
=32-bit;;
17262 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17263 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17264 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17265 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17266 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17270 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17271 shlibpath_overrides_runpath
=no
17272 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17273 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17274 hardcode_into_libs
=yes
17277 # No shared lib support for Linux oldld, aout, or coff.
17278 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17282 # This must be Linux ELF.
17283 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 soname_spec
='${libname}${release}${shared_ext}$major'
17289 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17290 shlibpath_var
=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath
=no
17293 # Some binutils ld are patched to set DT_RUNPATH
17294 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17295 $as_echo_n "(cached) " >&6
17297 lt_cv_shlibpath_overrides_runpath
=no
17298 save_LDFLAGS
=$LDFLAGS
17299 save_libdir
=$libdir
17300 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17301 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17303 /* end confdefs.h. */
17313 if ac_fn_c_try_link
"$LINENO"; then :
17314 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17315 lt_cv_shlibpath_overrides_runpath
=yes
17318 rm -f core conftest.err conftest.
$ac_objext \
17319 conftest
$ac_exeext conftest.
$ac_ext
17320 LDFLAGS
=$save_LDFLAGS
17321 libdir
=$save_libdir
17325 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17327 # This implies no fast_install, which is unacceptable.
17328 # Some rework will be needed to allow for fast_install
17329 # before this can be enabled.
17330 hardcode_into_libs
=yes
17332 # Append ld.so.conf contents to the search path
17333 if test -f /etc
/ld.so.conf
; then
17334 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' ' '`
17335 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17338 # We used to test for /lib/ld.so.1 and disable shared libraries on
17339 # powerpc, because MkLinux only supported shared libraries with the
17340 # GNU dynamic linker. Since this was broken with cross compilers,
17341 # most powerpc-linux boxes support dynamic linking these days and
17342 # people can always --disable-shared, the test was removed, and we
17343 # assume the GNU/Linux dynamic linker is in use.
17344 dynamic_linker
='GNU/Linux ld.so'
17351 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17353 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17354 dynamic_linker
='NetBSD (a.out) ld.so'
17356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17357 soname_spec
='${libname}${release}${shared_ext}$major'
17358 dynamic_linker
='NetBSD ld.elf_so'
17360 shlibpath_var
=LD_LIBRARY_PATH
17361 shlibpath_overrides_runpath
=yes
17362 hardcode_into_libs
=yes
17367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 shlibpath_var
=LD_LIBRARY_PATH
17369 shlibpath_overrides_runpath
=yes
17376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec
='${libname}${release}${shared_ext}$major'
17378 shlibpath_var
=LD_LIBRARY_PATH
17379 shlibpath_overrides_runpath
=no
17380 hardcode_into_libs
=yes
17381 dynamic_linker
='ldqnx.so'
17386 sys_lib_dlsearch_path_spec
="/usr/lib"
17388 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17390 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17391 *) need_version
=no
;;
17393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17394 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17395 shlibpath_var
=LD_LIBRARY_PATH
17396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17398 openbsd2.
[89] | openbsd2.
[89].
*)
17399 shlibpath_overrides_runpath
=no
17402 shlibpath_overrides_runpath
=yes
17406 shlibpath_overrides_runpath
=yes
17411 libname_spec
='$name'
17414 library_names_spec
='$libname${shared_ext} $libname.a'
17415 dynamic_linker
='OS/2 ld.exe'
17416 shlibpath_var
=LIBPATH
17419 osf3
* | osf4
* | osf5
*)
17423 soname_spec
='${libname}${release}${shared_ext}$major'
17424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 shlibpath_var
=LD_LIBRARY_PATH
17426 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17427 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17438 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17439 soname_spec
='${libname}${release}${shared_ext}$major'
17440 shlibpath_var
=LD_LIBRARY_PATH
17441 shlibpath_overrides_runpath
=yes
17442 hardcode_into_libs
=yes
17443 # ldd complains unless libraries are executable
17444 postinstall_cmds
='chmod +x $lib'
17449 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17450 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17451 shlibpath_var
=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath
=yes
17453 if test "$with_gnu_ld" = yes; then
17461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462 soname_spec
='${libname}${release}${shared_ext}$major'
17463 shlibpath_var
=LD_LIBRARY_PATH
17464 case $host_vendor in
17466 shlibpath_overrides_runpath
=no
17468 runpath_var
=LD_RUN_PATH
17476 shlibpath_overrides_runpath
=no
17477 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17483 if test -d /usr
/nec
;then
17485 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17486 soname_spec
='$libname${shared_ext}.$major'
17487 shlibpath_var
=LD_LIBRARY_PATH
17491 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17492 version_type
=freebsd-elf
17495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17496 soname_spec
='${libname}${release}${shared_ext}$major'
17497 shlibpath_var
=LD_LIBRARY_PATH
17498 shlibpath_overrides_runpath
=yes
17499 hardcode_into_libs
=yes
17500 if test "$with_gnu_ld" = yes; then
17501 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17503 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17506 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17510 sys_lib_dlsearch_path_spec
='/usr/lib'
17514 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519 shlibpath_var
=LD_LIBRARY_PATH
17520 shlibpath_overrides_runpath
=no
17521 hardcode_into_libs
=yes
17526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17527 soname_spec
='${libname}${release}${shared_ext}$major'
17528 shlibpath_var
=LD_LIBRARY_PATH
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17536 $as_echo "$dynamic_linker" >&6; }
17537 test "$dynamic_linker" = no
&& can_build_shared
=no
17539 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17540 if test "$GCC" = yes; then
17541 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17544 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17545 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17547 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17548 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17643 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17645 if test -n "$hardcode_libdir_flag_spec" ||
17646 test -n "$runpath_var" ||
17647 test "X$hardcode_automatic" = "Xyes" ; then
17649 # We can hardcode non-existent directories.
17650 if test "$hardcode_direct" != no
&&
17651 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17652 # have to relink, otherwise we might link with an installed library
17653 # when we should be linking with a yet-to-be-installed one
17654 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17655 test "$hardcode_minus_L" != no
; then
17656 # Linking always hardcodes the temporary library directory.
17657 hardcode_action
=relink
17659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17660 hardcode_action
=immediate
17663 # We cannot hardcode anything, or else we can only hardcode existing
17665 hardcode_action
=unsupported
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17668 $as_echo "$hardcode_action" >&6; }
17670 if test "$hardcode_action" = relink ||
17671 test "$inherit_rpath" = yes; then
17672 # Fast installation is not supported
17673 enable_fast_install
=no
17674 elif test "$shlibpath_overrides_runpath" = yes ||
17675 test "$enable_shared" = no
; then
17676 # Fast installation is not necessary
17677 enable_fast_install
=needless
17685 if test "x$enable_dlopen" != xyes
; then
17686 enable_dlopen
=unknown
17687 enable_dlopen_self
=unknown
17688 enable_dlopen_self_static
=unknown
17695 lt_cv_dlopen
="load_add_on"
17697 lt_cv_dlopen_self
=yes
17700 mingw
* | pw32
* | cegcc
*)
17701 lt_cv_dlopen
="LoadLibrary"
17706 lt_cv_dlopen
="dlopen"
17711 # if libdl is installed we need to link against it
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17713 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17715 $as_echo_n "(cached) " >&6
17717 ac_check_lib_save_LIBS
=$LIBS
17719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17722 /* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17737 if ac_fn_c_try_link
"$LINENO"; then :
17738 ac_cv_lib_dl_dlopen
=yes
17740 ac_cv_lib_dl_dlopen
=no
17742 rm -f core conftest.err conftest.
$ac_objext \
17743 conftest
$ac_exeext conftest.
$ac_ext
17744 LIBS
=$ac_check_lib_save_LIBS
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17748 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17749 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17752 lt_cv_dlopen
="dyld"
17754 lt_cv_dlopen_self
=yes
17761 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17762 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17763 lt_cv_dlopen
="shl_load"
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17766 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17768 $as_echo_n "(cached) " >&6
17770 ac_check_lib_save_LIBS
=$LIBS
17772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17785 return shl_load ();
17790 if ac_fn_c_try_link
"$LINENO"; then :
17791 ac_cv_lib_dld_shl_load
=yes
17793 ac_cv_lib_dld_shl_load
=no
17795 rm -f core conftest.err conftest.
$ac_objext \
17796 conftest
$ac_exeext conftest.
$ac_ext
17797 LIBS
=$ac_check_lib_save_LIBS
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17800 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17801 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17802 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17804 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17805 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17806 lt_cv_dlopen
="dlopen"
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17809 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17811 $as_echo_n "(cached) " >&6
17813 ac_check_lib_save_LIBS
=$LIBS
17815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17818 /* Override any GCC internal prototype to avoid an error.
17819 Use char because int might match the return type of a GCC
17820 builtin and then its argument prototype would still apply. */
17833 if ac_fn_c_try_link
"$LINENO"; then :
17834 ac_cv_lib_dl_dlopen
=yes
17836 ac_cv_lib_dl_dlopen
=no
17838 rm -f core conftest.err conftest.
$ac_objext \
17839 conftest
$ac_exeext conftest.
$ac_ext
17840 LIBS
=$ac_check_lib_save_LIBS
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17844 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17845 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17848 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17850 $as_echo_n "(cached) " >&6
17852 ac_check_lib_save_LIBS
=$LIBS
17853 LIBS
="-lsvld $LIBS"
17854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17857 /* Override any GCC internal prototype to avoid an error.
17858 Use char because int might match the return type of a GCC
17859 builtin and then its argument prototype would still apply. */
17872 if ac_fn_c_try_link
"$LINENO"; then :
17873 ac_cv_lib_svld_dlopen
=yes
17875 ac_cv_lib_svld_dlopen
=no
17877 rm -f core conftest.err conftest.
$ac_objext \
17878 conftest
$ac_exeext conftest.
$ac_ext
17879 LIBS
=$ac_check_lib_save_LIBS
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17882 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17883 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17884 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17887 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17888 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17889 $as_echo_n "(cached) " >&6
17891 ac_check_lib_save_LIBS
=$LIBS
17893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h. */
17896 /* Override any GCC internal prototype to avoid an error.
17897 Use char because int might match the return type of a GCC
17898 builtin and then its argument prototype would still apply. */
17906 return dld_link ();
17911 if ac_fn_c_try_link
"$LINENO"; then :
17912 ac_cv_lib_dld_dld_link
=yes
17914 ac_cv_lib_dld_dld_link
=no
17916 rm -f core conftest.err conftest.
$ac_objext \
17917 conftest
$ac_exeext conftest.
$ac_ext
17918 LIBS
=$ac_check_lib_save_LIBS
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17921 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17922 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17923 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17944 if test "x$lt_cv_dlopen" != xno
; then
17950 case $lt_cv_dlopen in
17952 save_CPPFLAGS
="$CPPFLAGS"
17953 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17955 save_LDFLAGS
="$LDFLAGS"
17956 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17959 LIBS
="$lt_cv_dlopen_libs $LIBS"
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17962 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17963 if test "${lt_cv_dlopen_self+set}" = set; then :
17964 $as_echo_n "(cached) " >&6
17966 if test "$cross_compiling" = yes; then :
17967 lt_cv_dlopen_self
=cross
17969 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17970 lt_status
=$lt_dlunknown
17971 cat > conftest.
$ac_ext <<_LT_EOF
17972 #line 17972 "configure"
17973 #include "confdefs.h"
17982 # define LT_DLGLOBAL RTLD_GLOBAL
17985 # define LT_DLGLOBAL DL_GLOBAL
17987 # define LT_DLGLOBAL 0
17991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17992 find out it does not work in some platform. */
17993 #ifndef LT_DLLAZY_OR_NOW
17995 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17998 # define LT_DLLAZY_OR_NOW DL_LAZY
18001 # define LT_DLLAZY_OR_NOW RTLD_NOW
18004 # define LT_DLLAZY_OR_NOW DL_NOW
18006 # define LT_DLLAZY_OR_NOW 0
18013 /* When -fvisbility=hidden is used, assume the code has been annotated
18014 correspondingly for the symbols needed. */
18015 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18016 void fnord () __attribute__((visibility("default")));
18019 void fnord () { int i=42; }
18022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18023 int status = $lt_dlunknown;
18027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18030 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18031 else puts (dlerror ());
18033 /* dlclose (self); */
18041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18042 (eval $ac_link) 2>&5
18044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18045 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18046 (.
/conftest
; exit; ) >&5 2>/dev
/null
18048 case x
$lt_status in
18049 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18050 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18051 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18054 # compilation failed
18055 lt_cv_dlopen_self
=no
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18063 $as_echo "$lt_cv_dlopen_self" >&6; }
18065 if test "x$lt_cv_dlopen_self" = xyes
; then
18066 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18068 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18069 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18070 $as_echo_n "(cached) " >&6
18072 if test "$cross_compiling" = yes; then :
18073 lt_cv_dlopen_self_static
=cross
18075 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18076 lt_status
=$lt_dlunknown
18077 cat > conftest.
$ac_ext <<_LT_EOF
18078 #line 18078 "configure"
18079 #include "confdefs.h"
18088 # define LT_DLGLOBAL RTLD_GLOBAL
18091 # define LT_DLGLOBAL DL_GLOBAL
18093 # define LT_DLGLOBAL 0
18097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18098 find out it does not work in some platform. */
18099 #ifndef LT_DLLAZY_OR_NOW
18101 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18104 # define LT_DLLAZY_OR_NOW DL_LAZY
18107 # define LT_DLLAZY_OR_NOW RTLD_NOW
18110 # define LT_DLLAZY_OR_NOW DL_NOW
18112 # define LT_DLLAZY_OR_NOW 0
18119 /* When -fvisbility=hidden is used, assume the code has been annotated
18120 correspondingly for the symbols needed. */
18121 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18122 void fnord () __attribute__((visibility("default")));
18125 void fnord () { int i=42; }
18128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18129 int status = $lt_dlunknown;
18133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18136 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18137 else puts (dlerror ());
18139 /* dlclose (self); */
18147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18148 (eval $ac_link) 2>&5
18150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18151 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18152 (.
/conftest
; exit; ) >&5 2>/dev
/null
18154 case x
$lt_status in
18155 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18156 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18157 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18160 # compilation failed
18161 lt_cv_dlopen_self_static
=no
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18169 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18172 CPPFLAGS
="$save_CPPFLAGS"
18173 LDFLAGS
="$save_LDFLAGS"
18178 case $lt_cv_dlopen_self in
18179 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18180 *) enable_dlopen_self
=unknown
;;
18183 case $lt_cv_dlopen_self_static in
18184 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18185 *) enable_dlopen_self_static
=unknown
;;
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18208 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18209 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18210 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18211 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18213 $as_echo "yes" >&6; }
18215 # FIXME - insert some real tests, host_os isn't really good enough
18218 if test -n "$STRIP" ; then
18219 striplib
="$STRIP -x"
18220 old_striplib
="$STRIP -S"
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18222 $as_echo "yes" >&6; }
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18225 $as_echo "no" >&6; }
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18230 $as_echo "no" >&6; }
18246 # Report which library types will actually be built
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18248 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18250 $as_echo "$can_build_shared" >&6; }
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18253 $as_echo_n "checking whether to build shared libraries... " >&6; }
18254 test "$can_build_shared" = "no" && enable_shared
=no
18256 # On AIX, shared libraries and static libraries use the same namespace, and
18257 # are all built from PIC.
18260 test "$enable_shared" = yes && enable_static
=no
18261 if test -n "$RANLIB"; then
18262 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18263 postinstall_cmds
='$RANLIB $lib'
18268 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18269 test "$enable_shared" = yes && enable_static
=no
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18274 $as_echo "$enable_shared" >&6; }
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18277 $as_echo_n "checking whether to build static libraries... " >&6; }
18278 # Make sure either enable_shared or enable_static is yes.
18279 test "$enable_shared" = yes || enable_static
=yes
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18281 $as_echo "$enable_static" >&6; }
18288 ac_cpp
='$CPP $CPPFLAGS'
18289 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18290 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18291 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18295 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18296 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18297 (test "X$CXX" != "Xg++"))) ; then
18299 ac_cpp
='$CXXCPP $CPPFLAGS'
18300 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18301 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18302 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18304 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18305 if test -z "$CXXCPP"; then
18306 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18307 $as_echo_n "(cached) " >&6
18309 # Double quotes because CXXCPP needs to be expanded
18310 for CXXCPP
in "$CXX -E" "/lib/cpp"
18312 ac_preproc_ok
=false
18313 for ac_cxx_preproc_warn_flag
in '' yes
18315 # Use a header file that comes with gcc, so configuring glibc
18316 # with a fresh cross-compiler works.
18317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18318 # <limits.h> exists even on freestanding compilers.
18319 # On the NeXT, cc -E runs the code through the compiler's parser,
18320 # not just through cpp. "Syntax error" is here to catch this case.
18321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18324 # include <limits.h>
18326 # include <assert.h>
18330 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18333 # Broken: fails on valid input.
18336 rm -f conftest.err conftest.
$ac_ext
18338 # OK, works on sane cases. Now check whether nonexistent headers
18339 # can be detected and how.
18340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18341 /* end confdefs.h. */
18342 #include <ac_nonexistent.h>
18344 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18345 # Broken: success on invalid input.
18348 # Passes both tests.
18352 rm -f conftest.err conftest.
$ac_ext
18355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18356 rm -f conftest.err conftest.
$ac_ext
18357 if $ac_preproc_ok; then :
18362 ac_cv_prog_CXXCPP
=$CXXCPP
18365 CXXCPP
=$ac_cv_prog_CXXCPP
18367 ac_cv_prog_CXXCPP
=$CXXCPP
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18370 $as_echo "$CXXCPP" >&6; }
18371 ac_preproc_ok
=false
18372 for ac_cxx_preproc_warn_flag
in '' yes
18374 # Use a header file that comes with gcc, so configuring glibc
18375 # with a fresh cross-compiler works.
18376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18377 # <limits.h> exists even on freestanding compilers.
18378 # On the NeXT, cc -E runs the code through the compiler's parser,
18379 # not just through cpp. "Syntax error" is here to catch this case.
18380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18381 /* end confdefs.h. */
18383 # include <limits.h>
18385 # include <assert.h>
18389 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18392 # Broken: fails on valid input.
18395 rm -f conftest.err conftest.
$ac_ext
18397 # OK, works on sane cases. Now check whether nonexistent headers
18398 # can be detected and how.
18399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401 #include <ac_nonexistent.h>
18403 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18404 # Broken: success on invalid input.
18407 # Passes both tests.
18411 rm -f conftest.err conftest.
$ac_ext
18414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18415 rm -f conftest.err conftest.
$ac_ext
18416 if $ac_preproc_ok; then :
18419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18421 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18422 See \`config.log' for more details." "$LINENO" 5; }
18426 ac_cpp
='$CPP $CPPFLAGS'
18427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18432 _lt_caught_CXX_error
=yes
18436 ac_cpp
='$CXXCPP $CPPFLAGS'
18437 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18438 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18439 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18441 archive_cmds_need_lc_CXX
=no
18442 allow_undefined_flag_CXX
=
18443 always_export_symbols_CXX
=no
18444 archive_expsym_cmds_CXX
=
18445 compiler_needs_object_CXX
=no
18446 export_dynamic_flag_spec_CXX
=
18447 hardcode_direct_CXX
=no
18448 hardcode_direct_absolute_CXX
=no
18449 hardcode_libdir_flag_spec_CXX
=
18450 hardcode_libdir_flag_spec_ld_CXX
=
18451 hardcode_libdir_separator_CXX
=
18452 hardcode_minus_L_CXX
=no
18453 hardcode_shlibpath_var_CXX
=unsupported
18454 hardcode_automatic_CXX
=no
18455 inherit_rpath_CXX
=no
18457 module_expsym_cmds_CXX
=
18458 link_all_deplibs_CXX
=unknown
18459 old_archive_cmds_CXX
=$old_archive_cmds
18460 reload_flag_CXX
=$reload_flag
18461 reload_cmds_CXX
=$reload_cmds
18462 no_undefined_flag_CXX
=
18463 whole_archive_flag_spec_CXX
=
18464 enable_shared_with_static_runtimes_CXX
=no
18466 # Source file extension for C++ test sources.
18469 # Object file extension for compiled C++ test sources.
18473 # No sense in running all these tests if we already determined that
18474 # the CXX compiler isn't working. Some variables (like enable_shared)
18475 # are currently assumed to apply to all compilers on this platform,
18476 # and will be corrupted by setting them based on a non-working compiler.
18477 if test "$_lt_caught_CXX_error" != yes; then
18478 # Code to be used in simple compile tests
18479 lt_simple_compile_test_code
="int some_variable = 0;"
18481 # Code to be used in simple link tests
18482 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18484 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18491 # If no C compiler was specified, use CC.
18494 # If no C compiler flags were specified, use CFLAGS.
18495 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18497 # Allow CC to be a program name with arguments.
18501 # save warnings/boilerplate of simple test code
18502 ac_outfile
=conftest.
$ac_objext
18503 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18504 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18505 _lt_compiler_boilerplate
=`cat conftest.err`
18508 ac_outfile
=conftest.
$ac_objext
18509 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18510 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18511 _lt_linker_boilerplate
=`cat conftest.err`
18515 # Allow CC to be a program name with arguments.
18520 lt_save_with_gnu_ld
=$with_gnu_ld
18521 lt_save_path_LD
=$lt_cv_path_LD
18522 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18523 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18525 $as_unset lt_cv_prog_gnu_ld
18527 if test -n "${lt_cv_path_LDCXX+set}"; then
18528 lt_cv_path_LD
=$lt_cv_path_LDCXX
18530 $as_unset lt_cv_path_LD
18532 test -z "${LDCXX+set}" || LD
=$LDCXX
18536 for cc_temp
in $compiler""; do
18538 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18539 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18544 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18547 if test -n "$compiler"; then
18548 # We don't want -fno-exception when compiling C++ code, so set the
18549 # no_builtin_flag separately
18550 if test "$GXX" = yes; then
18551 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18553 lt_prog_compiler_no_builtin_flag_CXX
=
18556 if test "$GXX" = yes; then
18557 # Set up default GNU C++ configuration
18561 # Check whether --with-gnu-ld was given.
18562 if test "${with_gnu_ld+set}" = set; then :
18563 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18569 if test "$GCC" = yes; then
18570 # Check if gcc -print-prog-name=ld gives a path.
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18572 $as_echo_n "checking for ld used by $CC... " >&6; }
18575 # gcc leaves a trailing carriage return which upsets mingw
18576 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18578 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18581 # Accept absolute paths.
18583 re_direlt
='/[^/][^/]*/\.\./'
18584 # Canonicalize the pathname of ld
18585 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18586 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18587 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18589 test -z "$LD" && LD
="$ac_prog"
18592 # If it fails, then pretend we aren't using GCC.
18596 # If it is relative, then search for the first ld in PATH.
18597 with_gnu_ld
=unknown
18600 elif test "$with_gnu_ld" = yes; then
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18602 $as_echo_n "checking for GNU ld... " >&6; }
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18605 $as_echo_n "checking for non-GNU ld... " >&6; }
18607 if test "${lt_cv_path_LD+set}" = set; then :
18608 $as_echo_n "(cached) " >&6
18610 if test -z "$LD"; then
18611 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18612 for ac_dir
in $PATH; do
18614 test -z "$ac_dir" && ac_dir
=.
18615 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18616 lt_cv_path_LD
="$ac_dir/$ac_prog"
18617 # Check to see if the program is GNU ld. I'd rather use --version,
18618 # but apparently some variants of GNU ld only accept -v.
18619 # Break only if it was the GNU/non-GNU ld that we prefer.
18620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18621 *GNU
* |
*'with BFD'*)
18622 test "$with_gnu_ld" != no
&& break
18625 test "$with_gnu_ld" != yes && break
18632 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18636 LD
="$lt_cv_path_LD"
18637 if test -n "$LD"; then
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18639 $as_echo "$LD" >&6; }
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18642 $as_echo "no" >&6; }
18644 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18647 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18648 $as_echo_n "(cached) " >&6
18650 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18651 case `$LD -v 2>&1 </dev/null` in
18652 *GNU
* |
*'with BFD'*)
18653 lt_cv_prog_gnu_ld
=yes
18656 lt_cv_prog_gnu_ld
=no
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18661 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18662 with_gnu_ld
=$lt_cv_prog_gnu_ld
18670 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18671 # archiving commands below assume that GNU ld is being used.
18672 if test "$with_gnu_ld" = yes; then
18673 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18674 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'
18676 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18677 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18679 # If archive_cmds runs LD, not CC, wlarc should be empty
18680 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18681 # investigate it a little bit more. (MM)
18684 # ancient GNU ld didn't support --whole-archive et. al.
18685 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18686 $GREP 'no-whole-archive' > /dev
/null
; then
18687 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18689 whole_archive_flag_spec_CXX
=
18695 # A generic and very simple default shared library creation
18696 # command for GNU C++ for the case where it uses the native
18697 # linker, instead of GNU ld. If possible, this setting should
18698 # overridden to take advantage of the native linker features on
18699 # the platform it is being used on.
18700 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18703 # Commands to make compiler produce verbose output that lists
18704 # what "hidden" libraries, object files and flags are used when
18705 # linking a shared library.
18706 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18714 # PORTME: fill in a description of your system's C++ link characteristics
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18720 # FIXME: insert proper C++ library support
18724 if test "$host_cpu" = ia64
; then
18725 # On IA64, the linker does run time linking by default, so we don't
18726 # have to do anything special.
18727 aix_use_runtimelinking
=no
18728 exp_sym_flag
='-Bexport'
18731 aix_use_runtimelinking
=no
18733 # Test if we are trying to use run time linking or normal
18734 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18735 # need to do runtime linking.
18736 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18737 for ld_flag
in $LDFLAGS; do
18740 aix_use_runtimelinking
=yes
18748 exp_sym_flag
='-bexport'
18749 no_entry_flag
='-bnoentry'
18752 # When large executables or shared objects are built, AIX ld can
18753 # have problems creating the table of contents. If linking a library
18754 # or program results in "error TOC overflow" add -mminimal-toc to
18755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18758 archive_cmds_CXX
=''
18759 hardcode_direct_CXX
=yes
18760 hardcode_direct_absolute_CXX
=yes
18761 hardcode_libdir_separator_CXX
=':'
18762 link_all_deplibs_CXX
=yes
18763 file_list_spec_CXX
='${wl}-f,'
18765 if test "$GXX" = yes; then
18766 case $host_os in aix4.
[012]|aix4.
[012].
*)
18767 # We only want to do this on AIX 4.2 and lower, the check
18768 # below for broken collect2 doesn't work under 4.3+
18769 collect2name
=`${CC} -print-prog-name=collect2`
18770 if test -f "$collect2name" &&
18771 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18773 # We have reworked collect2
18776 # We have old collect2
18777 hardcode_direct_CXX
=unsupported
18778 # It fails to find uninstalled libraries when the uninstalled
18779 # path is not listed in the libpath. Setting hardcode_minus_L
18780 # to unsupported forces relinking
18781 hardcode_minus_L_CXX
=yes
18782 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18783 hardcode_libdir_separator_CXX
=
18786 shared_flag
='-shared'
18787 if test "$aix_use_runtimelinking" = yes; then
18788 shared_flag
="$shared_flag "'${wl}-G'
18792 if test "$host_cpu" = ia64
; then
18793 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18794 # chokes on -Wl,-G. The following line is correct:
18797 if test "$aix_use_runtimelinking" = yes; then
18798 shared_flag
='${wl}-G'
18800 shared_flag
='${wl}-bM:SRE'
18805 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18806 # It seems that -bexpall does not export symbols beginning with
18807 # underscore (_), so it is better to generate a list of symbols to
18809 always_export_symbols_CXX
=yes
18810 if test "$aix_use_runtimelinking" = yes; then
18811 # Warning - without using the other runtime loading flags (-brtl),
18812 # -berok will link without error, but may produce a broken library.
18813 allow_undefined_flag_CXX
='-berok'
18814 # Determine the default libpath from the value encoded in an empty
18816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18817 /* end confdefs.h. */
18827 if ac_fn_cxx_try_link
"$LINENO"; then :
18829 lt_aix_libpath_sed
='
18830 /Import File Strings/,/^$/ {
18836 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18837 # Check for a 64-bit object if we didn't find anything.
18838 if test -z "$aix_libpath"; then
18839 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18842 rm -f core conftest.err conftest.
$ac_objext \
18843 conftest
$ac_exeext conftest.
$ac_ext
18844 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18846 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18848 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"
18850 if test "$host_cpu" = ia64
; then
18851 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18852 allow_undefined_flag_CXX
="-z nodefs"
18853 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"
18855 # Determine the default libpath from the value encoded in an
18856 # empty executable.
18857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18868 if ac_fn_cxx_try_link
"$LINENO"; then :
18870 lt_aix_libpath_sed
='
18871 /Import File Strings/,/^$/ {
18877 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18878 # Check for a 64-bit object if we didn't find anything.
18879 if test -z "$aix_libpath"; then
18880 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18883 rm -f core conftest.err conftest.
$ac_objext \
18884 conftest
$ac_exeext conftest.
$ac_ext
18885 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18887 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18888 # Warning - without using the other run time loading flags,
18889 # -berok will link without error, but may produce a broken library.
18890 no_undefined_flag_CXX
=' ${wl}-bernotok'
18891 allow_undefined_flag_CXX
=' ${wl}-berok'
18892 if test "$with_gnu_ld" = yes; then
18893 # We only use this code for GNU lds that support --whole-archive.
18894 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18896 # Exported symbols can be pulled into shared objects from archives
18897 whole_archive_flag_spec_CXX
='$convenience'
18899 archive_cmds_need_lc_CXX
=yes
18900 # This is similar to how AIX traditionally builds its shared
18902 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'
18908 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18909 allow_undefined_flag_CXX
=unsupported
18910 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18911 # support --undefined. This deserves some investigation. FIXME
18912 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18919 case $cc_basename in
18921 # FIXME: insert proper C++ library support
18927 cygwin
* | mingw
* | pw32
* | cegcc
*)
18928 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18929 # as there is no search path for DLLs.
18930 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18931 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18932 allow_undefined_flag_CXX
=unsupported
18933 always_export_symbols_CXX
=no
18934 enable_shared_with_static_runtimes_CXX
=yes
18936 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18937 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'
18938 # If the export-symbols file already is a .def file (1st line
18939 # is EXPORTS), use it as is; otherwise, prepend...
18940 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18941 cp $export_symbols $output_objdir/$soname.def;
18943 echo EXPORTS > $output_objdir/$soname.def;
18944 cat $export_symbols >> $output_objdir/$soname.def;
18946 $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'
18951 darwin
* | rhapsody
*)
18954 archive_cmds_need_lc_CXX
=no
18955 hardcode_direct_CXX
=no
18956 hardcode_automatic_CXX
=yes
18957 hardcode_shlibpath_var_CXX
=unsupported
18958 if test "$lt_cv_ld_force_load" = "yes"; then
18959 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\"`'
18961 whole_archive_flag_spec_CXX
=''
18963 link_all_deplibs_CXX
=yes
18964 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18965 case $cc_basename in
18966 ifort
*) _lt_dar_can_shared
=yes ;;
18967 *) _lt_dar_can_shared
=$GCC ;;
18969 if test "$_lt_dar_can_shared" = "yes"; then
18970 output_verbose_link_cmd
=func_echo_all
18971 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}"
18972 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18973 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}"
18974 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}"
18975 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18976 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}"
18977 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}"
18987 case $cc_basename in
18989 # FIXME: insert proper C++ library support
18993 # Green Hills C++ Compiler
18994 # FIXME: insert proper C++ library support
18998 # FIXME: insert proper C++ library support
19005 # C++ shared libraries reported to be fairly broken before
19011 archive_cmds_need_lc_CXX
=no
19014 freebsd
* | dragonfly
*)
19015 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19024 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19025 link_all_deplibs_CXX
=yes
19029 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19030 hardcode_libdir_separator_CXX
=:
19031 export_dynamic_flag_spec_CXX
='${wl}-E'
19032 hardcode_direct_CXX
=yes
19033 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19034 # but as the default
19035 # location of the library.
19037 case $cc_basename in
19039 # FIXME: insert proper C++ library support
19043 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'
19044 # Commands to make compiler produce verbose output that lists
19045 # what "hidden" libraries, object files and flags are used when
19046 # linking a shared library.
19048 # There doesn't appear to be a way to prevent this compiler from
19049 # explicitly linking system object files so we need to strip them
19050 # from the output so that they don't get included in the library
19052 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"'
19055 if test "$GXX" = yes; then
19056 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'
19058 # FIXME: insert proper C++ library support
19066 if test $with_gnu_ld = no
; then
19067 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19068 hardcode_libdir_separator_CXX
=:
19074 export_dynamic_flag_spec_CXX
='${wl}-E'
19080 hardcode_direct_CXX
=no
19081 hardcode_shlibpath_var_CXX
=no
19084 hardcode_direct_CXX
=yes
19085 hardcode_direct_absolute_CXX
=yes
19086 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19087 # but as the default
19088 # location of the library.
19092 case $cc_basename in
19094 # FIXME: insert proper C++ library support
19100 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19103 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19106 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19109 # Commands to make compiler produce verbose output that lists
19110 # what "hidden" libraries, object files and flags are used when
19111 # linking a shared library.
19113 # There doesn't appear to be a way to prevent this compiler from
19114 # explicitly linking system object files so we need to strip them
19115 # from the output so that they don't get included in the library
19117 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"'
19120 if test "$GXX" = yes; then
19121 if test $with_gnu_ld = no
; then
19124 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19127 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19130 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'
19135 # FIXME: insert proper C++ library support
19143 hardcode_direct_CXX
=no
19144 hardcode_shlibpath_var_CXX
=no
19145 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19146 export_dynamic_flag_spec_CXX
='${wl}-E'
19147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19148 # Instead, shared libraries are loaded at an image base (0x10000000 by
19149 # default) and relocated if they conflict, which is a slow very memory
19150 # consuming and fragmenting process. To avoid this, we pick a random,
19151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19152 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19153 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'
19154 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'
19157 case $cc_basename in
19160 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'
19162 # Archives containing C++ object files must be created using
19163 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19164 # necessary to make sure instantiated templates are included
19166 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19169 if test "$GXX" = yes; then
19170 if test "$with_gnu_ld" = no
; then
19171 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'
19173 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'
19176 link_all_deplibs_CXX
=yes
19179 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19180 hardcode_libdir_separator_CXX
=:
19181 inherit_rpath_CXX
=yes
19184 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19185 case $cc_basename in
19187 # Kuck and Associates, Inc. (KAI) C++ Compiler
19189 # KCC will only create a shared library if the output file
19190 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19191 # to its proper name (with version) after linking.
19192 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'
19193 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'
19194 # Commands to make compiler produce verbose output that lists
19195 # what "hidden" libraries, object files and flags are used when
19196 # linking a shared library.
19198 # There doesn't appear to be a way to prevent this compiler from
19199 # explicitly linking system object files so we need to strip them
19200 # from the output so that they don't get included in the library
19202 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"'
19204 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19205 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19207 # Archives containing C++ object files must be created using
19208 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19209 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19214 # version 8.0 and above of icpc choke on multiply defined symbols
19215 # if we add $predep_objects and $postdep_objects, however 7.1 and
19216 # earlier do not add the objects themselves.
19217 case `$CC -V 2>&1` in
19219 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19220 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'
19222 *) # Version 8.0 or newer
19225 ia64
*) tmp_idyn
=' -i_dynamic';;
19227 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19228 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'
19231 archive_cmds_need_lc_CXX
=no
19232 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19233 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19234 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19237 # Portland Group C++ compiler
19239 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19240 prelink_cmds_CXX
='tpldir=Template.dir~
19242 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19243 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19244 old_archive_cmds_CXX
='tpldir=Template.dir~
19246 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19247 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19249 archive_cmds_CXX
='tpldir=Template.dir~
19251 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19252 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19253 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19255 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19256 $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'
19258 *) # Version 6 and above use weak symbols
19259 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19260 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'
19264 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19265 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19266 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'
19270 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19271 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'
19273 runpath_var
=LD_RUN_PATH
19274 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19275 hardcode_libdir_separator_CXX
=:
19277 # Commands to make compiler produce verbose output that lists
19278 # what "hidden" libraries, object files and flags are used when
19279 # linking a shared library.
19281 # There doesn't appear to be a way to prevent this compiler from
19282 # explicitly linking system object files so we need to strip them
19283 # from the output so that they don't get included in the library
19285 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'
19287 xl
* | mpixl
* | bgxl
*)
19288 # IBM XL 8.0 on PPC, with GNU ld
19289 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19290 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19291 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19292 if test "x$supports_anon_versioning" = xyes
; then
19293 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19295 echo "local: *; };" >> $output_objdir/$libname.ver~
19296 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19300 case `$CC -V 2>&1 | sed 5q` in
19303 no_undefined_flag_CXX
=' -zdefs'
19304 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19305 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'
19306 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19307 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'
19308 compiler_needs_object_CXX
=yes
19310 # Not sure whether something based on
19311 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19313 output_verbose_link_cmd
='func_echo_all'
19315 # Archives containing C++ object files must be created using
19316 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19317 # necessary to make sure instantiated templates are included
19319 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19327 # FIXME: insert proper C++ library support
19332 # FIXME: insert proper C++ library support
19337 case $cc_basename in
19339 # FIXME: insert proper C++ library support
19343 # FIXME: insert proper C++ library support
19350 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19351 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19353 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19354 hardcode_direct_CXX
=yes
19355 hardcode_shlibpath_var_CXX
=no
19357 # Workaround some broken pre-1.5 toolchains
19358 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19366 # C++ shared libraries are fairly broken
19371 if test -f /usr
/libexec
/ld.so
; then
19372 hardcode_direct_CXX
=yes
19373 hardcode_shlibpath_var_CXX
=no
19374 hardcode_direct_absolute_CXX
=yes
19375 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19376 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19378 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19379 export_dynamic_flag_spec_CXX
='${wl}-E'
19380 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19382 output_verbose_link_cmd
=func_echo_all
19388 osf3
* | osf4
* | osf5
*)
19389 case $cc_basename in
19391 # Kuck and Associates, Inc. (KAI) C++ Compiler
19393 # KCC will only create a shared library if the output file
19394 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19395 # to its proper name (with version) after linking.
19396 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'
19398 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19399 hardcode_libdir_separator_CXX
=:
19401 # Archives containing C++ object files must be created using
19402 # the KAI C++ compiler.
19404 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19405 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19409 # Rational C++ 2.4.1
19410 # FIXME: insert proper C++ library support
19416 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19417 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'
19418 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19421 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19422 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'
19423 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19424 echo "-hidden">> $lib.exp~
19425 $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~
19427 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19431 hardcode_libdir_separator_CXX
=:
19433 # Commands to make compiler produce verbose output that lists
19434 # what "hidden" libraries, object files and flags are used when
19435 # linking a shared library.
19437 # There doesn't appear to be a way to prevent this compiler from
19438 # explicitly linking system object files so we need to strip them
19439 # from the output so that they don't get included in the library
19441 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"'
19444 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19445 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19448 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'
19451 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'
19455 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19456 hardcode_libdir_separator_CXX
=:
19458 # Commands to make compiler produce verbose output that lists
19459 # what "hidden" libraries, object files and flags are used when
19460 # linking a shared library.
19461 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19464 # FIXME: insert proper C++ library support
19472 # FIXME: insert proper C++ library support
19477 case $cc_basename in
19480 # FIXME: insert proper C++ library support
19485 # FIXME: insert proper C++ library support
19489 # FIXME: insert proper C++ library support
19496 case $cc_basename in
19498 # Sun C++ 4.2, 5.x and Centerline C++
19499 archive_cmds_need_lc_CXX
=yes
19500 no_undefined_flag_CXX
=' -zdefs'
19501 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19502 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19503 $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'
19505 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19506 hardcode_shlibpath_var_CXX
=no
19508 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19510 # The compiler driver will combine and reorder linker options,
19511 # but understands `-z linker_flag'.
19512 # Supported since Solaris 2.6 (maybe 2.5.1?)
19513 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19516 link_all_deplibs_CXX
=yes
19518 output_verbose_link_cmd
='func_echo_all'
19520 # Archives containing C++ object files must be created using
19521 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19522 # necessary to make sure instantiated templates are included
19524 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19527 # Green Hills C++ Compiler
19528 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19530 # The C++ compiler must be used to create the archive.
19531 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19534 # GNU C++ compiler with Solaris linker
19535 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19536 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19537 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19538 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19539 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19540 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19542 # Commands to make compiler produce verbose output that lists
19543 # what "hidden" libraries, object files and flags are used when
19544 # linking a shared library.
19545 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19547 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19549 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19550 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19551 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19553 # Commands to make compiler produce verbose output that lists
19554 # what "hidden" libraries, object files and flags are used when
19555 # linking a shared library.
19556 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19559 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19561 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19563 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19571 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19572 no_undefined_flag_CXX
='${wl}-z,text'
19573 archive_cmds_need_lc_CXX
=no
19574 hardcode_shlibpath_var_CXX
=no
19575 runpath_var
='LD_RUN_PATH'
19577 case $cc_basename in
19579 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19580 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19583 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19584 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19589 sysv5
* | sco3.2v5
* | sco5v6
*)
19590 # Note: We can NOT use -z defs as we might desire, because we do not
19591 # link with -lc, and that would cause any symbols used from libc to
19592 # always be unresolved, which means just about no library would
19593 # ever link correctly. If we're not using GNU ld we use -z text
19594 # though, which does catch some bad symbols but isn't as heavy-handed
19596 no_undefined_flag_CXX
='${wl}-z,text'
19597 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19598 archive_cmds_need_lc_CXX
=no
19599 hardcode_shlibpath_var_CXX
=no
19600 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19601 hardcode_libdir_separator_CXX
=':'
19602 link_all_deplibs_CXX
=yes
19603 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19604 runpath_var
='LD_RUN_PATH'
19606 case $cc_basename in
19608 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19609 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19610 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19611 '"$old_archive_cmds_CXX"
19612 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19613 '"$reload_cmds_CXX"
19616 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19617 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19623 case $cc_basename in
19625 # NonStop-UX NCC 3.20
19626 # FIXME: insert proper C++ library support
19630 # FIXME: insert proper C++ library support
19637 # FIXME: insert proper C++ library support
19642 # FIXME: insert proper C++ library support
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19648 $as_echo "$ld_shlibs_CXX" >&6; }
19649 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19655 ## There is no encapsulation within the following macros, do not change
19656 ## the running order or otherwise move them around unless you know exactly
19657 ## what you are doing...
19658 # Dependencies to place before and after the object being linked:
19659 predep_objects_CXX
=
19660 postdep_objects_CXX
=
19663 compiler_lib_search_path_CXX
=
19665 cat > conftest.
$ac_ext <<_LT_EOF
19669 Foo (void) { a = 0; }
19675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19676 (eval $ac_compile) 2>&5
19678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19679 test $ac_status = 0; }; then
19680 # Parse the compiler output and extract the necessary
19681 # objects, libraries and library flags.
19683 # Sentinel used to keep track of whether or not we are before
19684 # the conftest object file.
19685 pre_test_object_deps_done
=no
19687 for p
in `eval "$output_verbose_link_cmd"`; do
19691 # Some compilers place space between "-{L,R}" and the path.
19692 # Remove the space.
19693 if test $p = "-L" ||
19694 test $p = "-R"; then
19701 if test "$pre_test_object_deps_done" = no
; then
19704 # Internal compiler library paths should come after those
19705 # provided the user. The postdeps already come after the
19706 # user supplied libs so there is no need to process them.
19707 if test -z "$compiler_lib_search_path_CXX"; then
19708 compiler_lib_search_path_CXX
="${prev}${p}"
19710 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19713 # The "-l" case would never come before the object being
19714 # linked, so don't bother handling this case.
19717 if test -z "$postdeps_CXX"; then
19718 postdeps_CXX
="${prev}${p}"
19720 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19726 # This assumes that the test object file only shows up
19727 # once in the compiler output.
19728 if test "$p" = "conftest.$objext"; then
19729 pre_test_object_deps_done
=yes
19733 if test "$pre_test_object_deps_done" = no
; then
19734 if test -z "$predep_objects_CXX"; then
19735 predep_objects_CXX
="$p"
19737 predep_objects_CXX
="$predep_objects_CXX $p"
19740 if test -z "$postdep_objects_CXX"; then
19741 postdep_objects_CXX
="$p"
19743 postdep_objects_CXX
="$postdep_objects_CXX $p"
19748 *) ;; # Ignore the rest.
19756 echo "libtool.m4: error: problem compiling CXX test program"
19759 $RM -f confest.
$objext
19761 # PORTME: override above test on systems where it is broken
19764 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19765 # hack all around it, let's just trust "g++" to DTRT.
19766 predep_objects_CXX
=
19767 postdep_objects_CXX
=
19772 case `$CC -V 2>&1 | sed 5q` in
19776 # The more standards-conforming stlport4 library is
19777 # incompatible with the Cstd library. Avoid specifying
19778 # it if it's in CXXFLAGS. Ignore libCrun as
19779 # -library=stlport4 depends on it.
19780 case " $CXX $CXXFLAGS " in
19781 *" -library=stlport4 "*)
19782 solaris_use_stlport4
=yes
19786 if test "$solaris_use_stlport4" != yes; then
19787 postdeps_CXX
='-library=Cstd -library=Crun'
19794 case $cc_basename in
19796 # The more standards-conforming stlport4 library is
19797 # incompatible with the Cstd library. Avoid specifying
19798 # it if it's in CXXFLAGS. Ignore libCrun as
19799 # -library=stlport4 depends on it.
19800 case " $CXX $CXXFLAGS " in
19801 *" -library=stlport4 "*)
19802 solaris_use_stlport4
=yes
19806 # Adding this requires a known-good setup of shared libraries for
19807 # Sun compiler versions before 5.6, else PIC objects from an old
19808 # archive will be linked into the output, leading to subtle bugs.
19809 if test "$solaris_use_stlport4" != yes; then
19810 postdeps_CXX
='-library=Cstd -library=Crun'
19818 case " $postdeps_CXX " in
19819 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19821 compiler_lib_search_dirs_CXX
=
19822 if test -n "${compiler_lib_search_path_CXX}"; then
19823 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19856 lt_prog_compiler_wl_CXX
=
19857 lt_prog_compiler_pic_CXX
=
19858 lt_prog_compiler_static_CXX
=
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19861 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19863 # C++ specific cases for pic, static, wl, etc.
19864 if test "$GXX" = yes; then
19865 lt_prog_compiler_wl_CXX
='-Wl,'
19866 lt_prog_compiler_static_CXX
='-static'
19870 # All AIX code is PIC.
19871 if test "$host_cpu" = ia64
; then
19872 # AIX 5 now supports IA64 processor
19873 lt_prog_compiler_static_CXX
='-Bstatic'
19880 # see comment about AmigaOS4 .so support
19881 lt_prog_compiler_pic_CXX
='-fPIC'
19884 # FIXME: we need at least 68020 code to build shared libraries, but
19885 # adding the `-m68020' flag to GCC prevents building anything better,
19887 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19892 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19893 # PIC is the default for these OSes.
19895 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19896 # This hack is so that the source file can tell whether it is being
19897 # built for inclusion in a dll (and should export symbols for example).
19898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19899 # (--disable-auto-import) libraries
19900 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19902 darwin
* | rhapsody
*)
19903 # PIC is the default on this platform
19904 # Common symbols not allowed in MH_DYLIB files
19905 lt_prog_compiler_pic_CXX
='-fno-common'
19908 # DJGPP does not support shared libraries at all
19909 lt_prog_compiler_pic_CXX
=
19912 # PIC is the default for Haiku.
19913 # The "-static" flag exists, but is broken.
19914 lt_prog_compiler_static_CXX
=
19917 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19918 # Instead, we relocate shared libraries at runtime.
19921 if test -d /usr
/nec
; then
19922 lt_prog_compiler_pic_CXX
=-Kconform_pic
19926 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19927 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19928 # sets the default TLS model and affects inlining.
19933 lt_prog_compiler_pic_CXX
='-fPIC'
19938 # QNX uses GNU C++, but need to define -shared option too, otherwise
19939 # it will coredump.
19940 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19943 lt_prog_compiler_pic_CXX
='-fPIC'
19949 # All AIX code is PIC.
19950 if test "$host_cpu" = ia64
; then
19951 # AIX 5 now supports IA64 processor
19952 lt_prog_compiler_static_CXX
='-Bstatic'
19954 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19958 case $cc_basename in
19960 # Green Hills C++ Compiler
19961 # _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"
19966 case $cc_basename in
19968 lt_prog_compiler_pic_CXX
='-KPIC'
19971 # Green Hills C++ Compiler
19972 lt_prog_compiler_pic_CXX
='-pic'
19978 freebsd
* | dragonfly
*)
19979 # FreeBSD uses GNU C++
19981 hpux9
* | hpux10
* | hpux11
*)
19982 case $cc_basename in
19984 lt_prog_compiler_wl_CXX
='-Wl,'
19985 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19986 if test "$host_cpu" != ia64
; then
19987 lt_prog_compiler_pic_CXX
='+Z'
19991 lt_prog_compiler_wl_CXX
='-Wl,'
19992 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19998 lt_prog_compiler_pic_CXX
='+Z'
20007 # This is c89, which is MS Visual C++ (no shared libs)
20008 # Anyone wants to do a port?
20010 irix5
* | irix6
* | nonstopux
*)
20011 case $cc_basename in
20013 lt_prog_compiler_wl_CXX
='-Wl,'
20014 lt_prog_compiler_static_CXX
='-non_shared'
20015 # CC pic flag -KPIC is the default.
20021 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20022 case $cc_basename in
20025 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20026 lt_prog_compiler_pic_CXX
='-fPIC'
20029 # old Intel C++ for x86_64 which still supported -KPIC.
20030 lt_prog_compiler_wl_CXX
='-Wl,'
20031 lt_prog_compiler_pic_CXX
='-KPIC'
20032 lt_prog_compiler_static_CXX
='-static'
20035 # Intel C++, used to be incompatible with GCC.
20036 # ICC 10 doesn't accept -KPIC any more.
20037 lt_prog_compiler_wl_CXX
='-Wl,'
20038 lt_prog_compiler_pic_CXX
='-fPIC'
20039 lt_prog_compiler_static_CXX
='-static'
20042 # Portland Group C++ compiler
20043 lt_prog_compiler_wl_CXX
='-Wl,'
20044 lt_prog_compiler_pic_CXX
='-fpic'
20045 lt_prog_compiler_static_CXX
='-Bstatic'
20049 # Make sure the PIC flag is empty. It appears that all Alpha
20050 # Linux and Compaq Tru64 Unix objects are PIC.
20051 lt_prog_compiler_pic_CXX
=
20052 lt_prog_compiler_static_CXX
='-non_shared'
20054 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20055 # IBM XL 8.0, 9.0 on PPC and BlueGene
20056 lt_prog_compiler_wl_CXX
='-Wl,'
20057 lt_prog_compiler_pic_CXX
='-qpic'
20058 lt_prog_compiler_static_CXX
='-qstaticlink'
20061 case `$CC -V 2>&1 | sed 5q` in
20064 lt_prog_compiler_pic_CXX
='-KPIC'
20065 lt_prog_compiler_static_CXX
='-Bstatic'
20066 lt_prog_compiler_wl_CXX
='-Qoption ld '
20077 case $cc_basename in
20079 lt_prog_compiler_pic_CXX
='-W c,exportall'
20088 # QNX uses GNU C++, but need to define -shared option too, otherwise
20089 # it will coredump.
20090 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20092 osf3
* | osf4
* | osf5
*)
20093 case $cc_basename in
20095 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20098 # Rational C++ 2.4.1
20099 lt_prog_compiler_pic_CXX
='-pic'
20102 # Digital/Compaq C++
20103 lt_prog_compiler_wl_CXX
='-Wl,'
20104 # Make sure the PIC flag is empty. It appears that all Alpha
20105 # Linux and Compaq Tru64 Unix objects are PIC.
20106 lt_prog_compiler_pic_CXX
=
20107 lt_prog_compiler_static_CXX
='-non_shared'
20116 case $cc_basename in
20118 # Sun C++ 4.2, 5.x and Centerline C++
20119 lt_prog_compiler_pic_CXX
='-KPIC'
20120 lt_prog_compiler_static_CXX
='-Bstatic'
20121 lt_prog_compiler_wl_CXX
='-Qoption ld '
20124 # Green Hills C++ Compiler
20125 lt_prog_compiler_pic_CXX
='-PIC'
20132 case $cc_basename in
20135 lt_prog_compiler_pic_CXX
='-pic'
20136 lt_prog_compiler_static_CXX
='-Bstatic'
20140 lt_prog_compiler_pic_CXX
='-pic'
20146 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20147 case $cc_basename in
20149 lt_prog_compiler_wl_CXX
='-Wl,'
20150 lt_prog_compiler_pic_CXX
='-KPIC'
20151 lt_prog_compiler_static_CXX
='-Bstatic'
20156 case $cc_basename in
20158 # NonStop-UX NCC 3.20
20159 lt_prog_compiler_pic_CXX
='-KPIC'
20168 lt_prog_compiler_can_build_shared_CXX
=no
20174 # For platforms which do not support PIC, -DPIC is meaningless:
20176 lt_prog_compiler_pic_CXX
=
20179 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20183 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20188 # Check to make sure the PIC flag actually works.
20190 if test -n "$lt_prog_compiler_pic_CXX"; then
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20192 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20193 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20194 $as_echo_n "(cached) " >&6
20196 lt_cv_prog_compiler_pic_works_CXX
=no
20197 ac_outfile
=conftest.
$ac_objext
20198 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20199 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20200 # Insert the option either (1) after the last *FLAGS variable, or
20201 # (2) before a word containing "conftest.", or (3) at the end.
20202 # Note that $ac_compile itself does not contain backslashes and begins
20203 # with a dollar sign (not a hyphen), so the echo should work correctly.
20204 # The option is referenced via a variable to avoid confusing sed.
20205 lt_compile
=`echo "$ac_compile" | $SED \
20206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20208 -e 's:$: $lt_compiler_flag:'`
20209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20210 (eval "$lt_compile" 2>conftest.err
)
20212 cat conftest.err
>&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 if (exit $ac_status) && test -s "$ac_outfile"; then
20215 # The compiler can only warn and ignore the option if not recognized
20216 # So say no if there are warnings other than the usual output.
20217 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20218 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20219 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20220 lt_cv_prog_compiler_pic_works_CXX
=yes
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20227 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20229 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20230 case $lt_prog_compiler_pic_CXX in
20232 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20235 lt_prog_compiler_pic_CXX
=
20236 lt_prog_compiler_can_build_shared_CXX
=no
20244 # Check to make sure the static flag actually works.
20246 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20248 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20249 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20250 $as_echo_n "(cached) " >&6
20252 lt_cv_prog_compiler_static_works_CXX
=no
20253 save_LDFLAGS
="$LDFLAGS"
20254 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20255 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20256 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20257 # The linker can only warn and ignore the option if not recognized
20258 # So say no if there are warnings
20259 if test -s conftest.err
; then
20260 # Append any errors to the config.log.
20261 cat conftest.err
1>&5
20262 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20263 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20264 if diff conftest.exp conftest.er2
>/dev
/null
; then
20265 lt_cv_prog_compiler_static_works_CXX
=yes
20268 lt_cv_prog_compiler_static_works_CXX
=yes
20272 LDFLAGS
="$save_LDFLAGS"
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20276 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20278 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20281 lt_prog_compiler_static_CXX
=
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20288 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20289 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20290 $as_echo_n "(cached) " >&6
20292 lt_cv_prog_compiler_c_o_CXX
=no
20293 $RM -r conftest
2>/dev
/null
20297 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20299 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20300 # Insert the option either (1) after the last *FLAGS variable, or
20301 # (2) before a word containing "conftest.", or (3) at the end.
20302 # Note that $ac_compile itself does not contain backslashes and begins
20303 # with a dollar sign (not a hyphen), so the echo should work correctly.
20304 lt_compile
=`echo "$ac_compile" | $SED \
20305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20307 -e 's:$: $lt_compiler_flag:'`
20308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20309 (eval "$lt_compile" 2>out
/conftest.err
)
20311 cat out
/conftest.err
>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20315 # The compiler can only warn and ignore the option if not recognized
20316 # So say no if there are warnings
20317 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20318 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20319 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20320 lt_cv_prog_compiler_c_o_CXX
=yes
20325 # SGI C++ compiler will create directory out/ii_files/ for
20326 # template instantiation
20327 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20328 $RM out
/* && rmdir out
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20335 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20340 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20341 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20342 $as_echo_n "(cached) " >&6
20344 lt_cv_prog_compiler_c_o_CXX
=no
20345 $RM -r conftest
2>/dev
/null
20349 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20351 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20352 # Insert the option either (1) after the last *FLAGS variable, or
20353 # (2) before a word containing "conftest.", or (3) at the end.
20354 # Note that $ac_compile itself does not contain backslashes and begins
20355 # with a dollar sign (not a hyphen), so the echo should work correctly.
20356 lt_compile
=`echo "$ac_compile" | $SED \
20357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20359 -e 's:$: $lt_compiler_flag:'`
20360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20361 (eval "$lt_compile" 2>out
/conftest.err
)
20363 cat out
/conftest.err
>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20367 # The compiler can only warn and ignore the option if not recognized
20368 # So say no if there are warnings
20369 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20370 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20371 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20372 lt_cv_prog_compiler_c_o_CXX
=yes
20377 # SGI C++ compiler will create directory out/ii_files/ for
20378 # template instantiation
20379 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20380 $RM out
/* && rmdir out
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20387 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20392 hard_links
="nottested"
20393 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20394 # do not overwrite the value of need_locks provided by the user
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20396 $as_echo_n "checking if we can lock with hard links... " >&6; }
20399 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20401 ln conftest.a conftest.b
2>&5 || hard_links
=no
20402 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20404 $as_echo "$hard_links" >&6; }
20405 if test "$hard_links" = no
; then
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20407 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20419 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20422 # If we're using GNU nm, then we don't want the "-C" option.
20423 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20424 # Also, AIX nm treats weak defined symbols like other global defined
20425 # symbols, whereas GNU nm marks them as "W".
20426 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20427 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'
20429 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'
20433 export_symbols_cmds_CXX
="$ltdll_cmds"
20435 cygwin
* | mingw
* | cegcc
*)
20436 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'
20439 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20442 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20445 $as_echo "$ld_shlibs_CXX" >&6; }
20446 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20448 with_gnu_ld_CXX
=$with_gnu_ld
20456 # Do we need to explicitly link libc?
20458 case "x$archive_cmds_need_lc_CXX" in
20460 # Assume -lc should be added
20461 archive_cmds_need_lc_CXX
=yes
20463 if test "$enable_shared" = yes && test "$GCC" = yes; then
20464 case $archive_cmds_CXX in
20466 # FIXME: we may have to deal with multi-command sequences.
20469 # Test whether the compiler implicitly links with -lc since on some
20470 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20471 # to ld, don't add -lc before -lgcc.
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20473 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20474 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20475 $as_echo_n "(cached) " >&6
20478 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20481 (eval $ac_compile) 2>&5
20483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20484 test $ac_status = 0; } 2>conftest.err
; then
20487 libobjs
=conftest.
$ac_objext
20489 wl
=$lt_prog_compiler_wl_CXX
20490 pic_flag
=$lt_prog_compiler_pic_CXX
20496 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20497 allow_undefined_flag_CXX
=
20498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20499 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20502 test $ac_status = 0; }
20504 lt_cv_archive_cmds_need_lc_CXX
=no
20506 lt_cv_archive_cmds_need_lc_CXX
=yes
20508 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20510 cat conftest.err
1>&5
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20516 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20517 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20588 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20590 library_names_spec
=
20591 libname_spec
='lib$name'
20595 postuninstall_cmds
=
20599 shlibpath_overrides_runpath
=unknown
20601 dynamic_linker
="$host_os ld.so"
20602 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20603 need_lib_prefix
=unknown
20604 hardcode_into_libs
=no
20606 # when you set need_version to no, make sure it does not cause -set_version
20607 # flags to be left without arguments
20608 need_version
=unknown
20613 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20614 shlibpath_var
=LIBPATH
20616 # AIX 3 has no versioning support, so we append a major version to the name.
20617 soname_spec
='${libname}${release}${shared_ext}$major'
20624 hardcode_into_libs
=yes
20625 if test "$host_cpu" = ia64
; then
20626 # AIX 5 supports IA64
20627 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20628 shlibpath_var
=LD_LIBRARY_PATH
20630 # With GCC up to 2.95.x, collect2 would create an import file
20631 # for dependence libraries. The import file would start with
20632 # the line `#! .'. This would cause the generated library to
20633 # depend on `.', always an invalid library. This was fixed in
20634 # development snapshots of GCC prior to 3.0.
20636 aix4 | aix4.
[01] | aix4.
[01].
*)
20637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20639 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20642 can_build_shared
=no
20646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20647 # soname into executable. Probably we can add versioning support to
20648 # collect2, so additional links can be useful in future.
20649 if test "$aix_use_runtimelinking" = yes; then
20650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20651 # instead of lib<name>.a to let people know that these are not
20652 # typical AIX shared libraries.
20653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20655 # We preserve .a as extension for shared libraries through AIX4.2
20656 # and later when we are not doing run time linking.
20657 library_names_spec
='${libname}${release}.a $libname.a'
20658 soname_spec
='${libname}${release}${shared_ext}$major'
20660 shlibpath_var
=LIBPATH
20667 # Since July 2007 AmigaOS4 officially supports .so libraries.
20668 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20672 library_names_spec
='$libname.ixlibrary $libname.a'
20673 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20674 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'
20680 library_names_spec
='${libname}${shared_ext}'
20681 dynamic_linker
="$host_os ld.so"
20682 shlibpath_var
=LIBRARY_PATH
20688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20689 soname_spec
='${libname}${release}${shared_ext}$major'
20690 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20691 shlibpath_var
=LD_LIBRARY_PATH
20692 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20693 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20694 # the default ld.so.conf also contains /usr/contrib/lib and
20695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20696 # libtool to hard-code these into programs
20699 cygwin
* | mingw
* | pw32
* | cegcc
*)
20700 version_type
=windows
20705 case $GCC,$host_os in
20706 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20707 library_names_spec
='$libname.dll.a'
20708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20709 postinstall_cmds
='base_file=`basename \${file}`~
20710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20711 dldir=$destdir/`dirname \$dlpath`~
20712 test -d \$dldir || mkdir -p \$dldir~
20713 $install_prog $dir/$dlname \$dldir/$dlname~
20714 chmod a+x \$dldir/$dlname~
20715 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20716 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20718 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20719 dlpath=$dir/\$dldll~
20721 shlibpath_overrides_runpath
=yes
20725 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20726 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20730 # MinGW DLLs use traditional 'lib' prefix
20731 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20734 # pw32 DLLs use 'pw' prefix rather than 'lib'
20735 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20741 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20744 dynamic_linker
='Win32 ld.exe'
20745 # FIXME: first we should search . and the directory the executable is in
20749 darwin
* | rhapsody
*)
20750 dynamic_linker
="$host_os dyld"
20751 version_type
=darwin
20754 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20755 soname_spec
='${libname}${release}${major}$shared_ext'
20756 shlibpath_overrides_runpath
=yes
20757 shlibpath_var
=DYLD_LIBRARY_PATH
20758 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20760 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20767 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20768 soname_spec
='${libname}${release}${shared_ext}$major'
20769 shlibpath_var
=LD_LIBRARY_PATH
20772 freebsd
* | dragonfly
*)
20773 # DragonFly does not have aout. When/if they implement a new
20774 # versioning mechanism, adjust this.
20775 if test -x /usr
/bin
/objformat
; then
20776 objformat
=`/usr/bin/objformat`
20779 freebsd
[23].
*) objformat
=aout
;;
20780 *) objformat
=elf
;;
20783 version_type
=freebsd-
$objformat
20784 case $version_type in
20786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20791 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20795 shlibpath_var
=LD_LIBRARY_PATH
20798 shlibpath_overrides_runpath
=yes
20800 freebsd3.
[01]* | freebsdelf3.
[01]*)
20801 shlibpath_overrides_runpath
=yes
20802 hardcode_into_libs
=yes
20804 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20805 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20806 shlibpath_overrides_runpath
=no
20807 hardcode_into_libs
=yes
20809 *) # from 4.6 on, and DragonFly
20810 shlibpath_overrides_runpath
=yes
20811 hardcode_into_libs
=yes
20820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20821 soname_spec
='${libname}${release}${shared_ext}$major'
20822 shlibpath_var
=LD_LIBRARY_PATH
20823 hardcode_into_libs
=yes
20830 dynamic_linker
="$host_os runtime_loader"
20831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20832 soname_spec
='${libname}${release}${shared_ext}$major'
20833 shlibpath_var
=LIBRARY_PATH
20834 shlibpath_overrides_runpath
=yes
20835 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20836 hardcode_into_libs
=yes
20839 hpux9
* | hpux10
* | hpux11
*)
20840 # Give a soname corresponding to the major version so that dld.sl refuses to
20841 # link against other versions.
20848 hardcode_into_libs
=yes
20849 dynamic_linker
="$host_os dld.so"
20850 shlibpath_var
=LD_LIBRARY_PATH
20851 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20853 soname_spec
='${libname}${release}${shared_ext}$major'
20854 if test "X$HPUX_IA64_MODE" = X32
; then
20855 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20857 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20859 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20863 hardcode_into_libs
=yes
20864 dynamic_linker
="$host_os dld.sl"
20865 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20866 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20868 soname_spec
='${libname}${release}${shared_ext}$major'
20869 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20870 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20874 dynamic_linker
="$host_os dld.sl"
20875 shlibpath_var
=SHLIB_PATH
20876 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 soname_spec
='${libname}${release}${shared_ext}$major'
20881 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20882 postinstall_cmds
='chmod 555 $lib'
20883 # or fails outright, so override atomically:
20884 install_override_mode
=555
20891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20892 soname_spec
='${libname}${release}${shared_ext}$major'
20893 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20894 shlibpath_var
=LD_LIBRARY_PATH
20895 shlibpath_overrides_runpath
=no
20896 hardcode_into_libs
=yes
20899 irix5
* | irix6
* | nonstopux
*)
20901 nonstopux
*) version_type
=nonstopux
;;
20903 if test "$lt_cv_prog_gnu_ld" = yes; then
20911 soname_spec
='${libname}${release}${shared_ext}$major'
20912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20914 irix5
* | nonstopux
*)
20915 libsuff
= shlibsuff
=
20918 case $LD in # libtool.m4 will add one of these switches to LD
20919 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20920 libsuff
= shlibsuff
= libmagic
=32-bit;;
20921 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20922 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20923 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20924 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20925 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20929 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20930 shlibpath_overrides_runpath
=no
20931 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20932 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20933 hardcode_into_libs
=yes
20936 # No shared lib support for Linux oldld, aout, or coff.
20937 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20941 # This must be Linux ELF.
20942 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20947 soname_spec
='${libname}${release}${shared_ext}$major'
20948 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20949 shlibpath_var
=LD_LIBRARY_PATH
20950 shlibpath_overrides_runpath
=no
20952 # Some binutils ld are patched to set DT_RUNPATH
20953 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20954 $as_echo_n "(cached) " >&6
20956 lt_cv_shlibpath_overrides_runpath
=no
20957 save_LDFLAGS
=$LDFLAGS
20958 save_libdir
=$libdir
20959 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20960 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h. */
20972 if ac_fn_cxx_try_link
"$LINENO"; then :
20973 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20974 lt_cv_shlibpath_overrides_runpath
=yes
20977 rm -f core conftest.err conftest.
$ac_objext \
20978 conftest
$ac_exeext conftest.
$ac_ext
20979 LDFLAGS
=$save_LDFLAGS
20980 libdir
=$save_libdir
20984 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20986 # This implies no fast_install, which is unacceptable.
20987 # Some rework will be needed to allow for fast_install
20988 # before this can be enabled.
20989 hardcode_into_libs
=yes
20991 # Append ld.so.conf contents to the search path
20992 if test -f /etc
/ld.so.conf
; then
20993 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' ' '`
20994 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20997 # We used to test for /lib/ld.so.1 and disable shared libraries on
20998 # powerpc, because MkLinux only supported shared libraries with the
20999 # GNU dynamic linker. Since this was broken with cross compilers,
21000 # most powerpc-linux boxes support dynamic linking these days and
21001 # people can always --disable-shared, the test was removed, and we
21002 # assume the GNU/Linux dynamic linker is in use.
21003 dynamic_linker
='GNU/Linux ld.so'
21010 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21012 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21013 dynamic_linker
='NetBSD (a.out) ld.so'
21015 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21016 soname_spec
='${libname}${release}${shared_ext}$major'
21017 dynamic_linker
='NetBSD ld.elf_so'
21019 shlibpath_var
=LD_LIBRARY_PATH
21020 shlibpath_overrides_runpath
=yes
21021 hardcode_into_libs
=yes
21026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21027 shlibpath_var
=LD_LIBRARY_PATH
21028 shlibpath_overrides_runpath
=yes
21035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036 soname_spec
='${libname}${release}${shared_ext}$major'
21037 shlibpath_var
=LD_LIBRARY_PATH
21038 shlibpath_overrides_runpath
=no
21039 hardcode_into_libs
=yes
21040 dynamic_linker
='ldqnx.so'
21045 sys_lib_dlsearch_path_spec
="/usr/lib"
21047 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21049 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21050 *) need_version
=no
;;
21052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21053 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21054 shlibpath_var
=LD_LIBRARY_PATH
21055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21057 openbsd2.
[89] | openbsd2.
[89].
*)
21058 shlibpath_overrides_runpath
=no
21061 shlibpath_overrides_runpath
=yes
21065 shlibpath_overrides_runpath
=yes
21070 libname_spec
='$name'
21073 library_names_spec
='$libname${shared_ext} $libname.a'
21074 dynamic_linker
='OS/2 ld.exe'
21075 shlibpath_var
=LIBPATH
21078 osf3
* | osf4
* | osf5
*)
21082 soname_spec
='${libname}${release}${shared_ext}$major'
21083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21084 shlibpath_var
=LD_LIBRARY_PATH
21085 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21086 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21097 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21098 soname_spec
='${libname}${release}${shared_ext}$major'
21099 shlibpath_var
=LD_LIBRARY_PATH
21100 shlibpath_overrides_runpath
=yes
21101 hardcode_into_libs
=yes
21102 # ldd complains unless libraries are executable
21103 postinstall_cmds
='chmod +x $lib'
21108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21109 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21110 shlibpath_var
=LD_LIBRARY_PATH
21111 shlibpath_overrides_runpath
=yes
21112 if test "$with_gnu_ld" = yes; then
21120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21121 soname_spec
='${libname}${release}${shared_ext}$major'
21122 shlibpath_var
=LD_LIBRARY_PATH
21123 case $host_vendor in
21125 shlibpath_overrides_runpath
=no
21127 runpath_var
=LD_RUN_PATH
21135 shlibpath_overrides_runpath
=no
21136 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21142 if test -d /usr
/nec
;then
21144 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21145 soname_spec
='$libname${shared_ext}.$major'
21146 shlibpath_var
=LD_LIBRARY_PATH
21150 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21151 version_type
=freebsd-elf
21154 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21155 soname_spec
='${libname}${release}${shared_ext}$major'
21156 shlibpath_var
=LD_LIBRARY_PATH
21157 shlibpath_overrides_runpath
=yes
21158 hardcode_into_libs
=yes
21159 if test "$with_gnu_ld" = yes; then
21160 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21162 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21165 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21169 sys_lib_dlsearch_path_spec
='/usr/lib'
21173 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21178 shlibpath_var
=LD_LIBRARY_PATH
21179 shlibpath_overrides_runpath
=no
21180 hardcode_into_libs
=yes
21185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21186 soname_spec
='${libname}${release}${shared_ext}$major'
21187 shlibpath_var
=LD_LIBRARY_PATH
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21195 $as_echo "$dynamic_linker" >&6; }
21196 test "$dynamic_linker" = no
&& can_build_shared
=no
21198 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21199 if test "$GCC" = yes; then
21200 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21203 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21204 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21206 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21207 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21248 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21249 hardcode_action_CXX
=
21250 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21251 test -n "$runpath_var_CXX" ||
21252 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21254 # We can hardcode non-existent directories.
21255 if test "$hardcode_direct_CXX" != no
&&
21256 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21257 # have to relink, otherwise we might link with an installed library
21258 # when we should be linking with a yet-to-be-installed one
21259 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21260 test "$hardcode_minus_L_CXX" != no
; then
21261 # Linking always hardcodes the temporary library directory.
21262 hardcode_action_CXX
=relink
21264 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21265 hardcode_action_CXX
=immediate
21268 # We cannot hardcode anything, or else we can only hardcode existing
21270 hardcode_action_CXX
=unsupported
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21273 $as_echo "$hardcode_action_CXX" >&6; }
21275 if test "$hardcode_action_CXX" = relink ||
21276 test "$inherit_rpath_CXX" = yes; then
21277 # Fast installation is not supported
21278 enable_fast_install
=no
21279 elif test "$shlibpath_overrides_runpath" = yes ||
21280 test "$enable_shared" = no
; then
21281 # Fast installation is not necessary
21282 enable_fast_install
=needless
21291 fi # test -n "$compiler"
21297 with_gnu_ld
=$lt_save_with_gnu_ld
21298 lt_cv_path_LDCXX
=$lt_cv_path_LD
21299 lt_cv_path_LD
=$lt_save_path_LD
21300 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21301 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21302 fi # test "$_lt_caught_CXX_error" != yes
21305 ac_cpp
='$CPP $CPPFLAGS'
21306 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21307 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21325 # Only expand once:
21331 # Identify the assembler which will work hand-in-glove with the newly
21332 # built GCC, so that we can examine its features. This is the assembler
21333 # which will be driven by the driver program.
21335 # If build != host, and we aren't building gas in-tree, we identify a
21336 # build->target assembler and hope that it will have the same features
21337 # as the host->target assembler we'll be using.
21338 gcc_cv_gas_major_version
=
21339 gcc_cv_gas_minor_version
=
21340 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21342 if test "${gcc_cv_as+set}" = set; then :
21346 if test -x "$DEFAULT_ASSEMBLER"; then
21347 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21348 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21349 && test -f ..
/gas
/Makefile \
21350 && test x
$build = x
$host; then
21351 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21352 elif test -x as
$build_exeext; then
21353 # Build using assembler in the current directory.
21354 gcc_cv_as
=.
/as
$build_exeext
21355 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21356 gcc_cv_as
="$AS_FOR_TARGET"
21358 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21359 set dummy
$AS_FOR_TARGET; ac_word
=$2
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21361 $as_echo_n "checking for $ac_word... " >&6; }
21362 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21363 $as_echo_n "(cached) " >&6
21367 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21371 for as_dir
in $PATH
21374 test -z "$as_dir" && as_dir
=.
21375 for ac_exec_ext
in '' $ac_executable_extensions; do
21376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21377 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21388 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21389 if test -n "$gcc_cv_as"; then
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21391 $as_echo "$gcc_cv_as" >&6; }
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21394 $as_echo "no" >&6; }
21401 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21403 case "$ORIGINAL_AS_FOR_TARGET" in
21404 .
/as | .
/as
$build_exeext) ;;
21405 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21410 $as_echo_n "checking what assembler to use... " >&6; }
21411 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21412 # Single tree build which includes gas. We want to prefer it
21413 # over whatever linker top-level may have detected, since
21414 # we'll use what we're building after installation anyway.
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21416 $as_echo "newly built gas" >&6; }
21418 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21419 for f
in $gcc_cv_as_bfd_srcdir/configure \
21420 $gcc_cv_as_gas_srcdir/configure \
21421 $gcc_cv_as_gas_srcdir/configure.
in \
21422 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21423 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21424 if test x
$gcc_cv_gas_version != x
; then
21428 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21429 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21430 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21431 case $gcc_cv_gas_patch_version in
21432 "") gcc_cv_gas_patch_version
="0" ;;
21434 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21435 + $gcc_cv_gas_minor_version \) \* 1000 \
21436 + $gcc_cv_gas_patch_version`
21438 in_tree_gas_is_elf
=no
21439 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21440 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21441 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21443 in_tree_gas_is_elf
=yes
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21447 $as_echo "$gcc_cv_as" >&6; }
21451 # Identify the linker which will work hand-in-glove with the newly
21452 # built GCC, so that we can examine its features. This is the linker
21453 # which will be driven by the driver program.
21455 # If build != host, and we aren't building gas in-tree, we identify a
21456 # build->target linker and hope that it will have the same features
21457 # as the host->target linker we'll be using.
21458 gcc_cv_gld_major_version
=
21459 gcc_cv_gld_minor_version
=
21460 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21461 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21463 if test "${gcc_cv_ld+set}" = set; then :
21467 if test -x "$DEFAULT_LINKER"; then
21468 gcc_cv_ld
="$DEFAULT_LINKER"
21469 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21470 && test -f ..
/ld
/Makefile \
21471 && test x
$build = x
$host; then
21472 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21473 elif test -x collect-ld
$build_exeext; then
21474 # Build using linker in the current directory.
21475 gcc_cv_ld
=.
/collect-ld
$build_exeext
21476 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21477 gcc_cv_ld
="$LD_FOR_TARGET"
21479 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21480 set dummy
$LD_FOR_TARGET; ac_word
=$2
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21482 $as_echo_n "checking for $ac_word... " >&6; }
21483 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21484 $as_echo_n "(cached) " >&6
21488 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21492 for as_dir
in $PATH
21495 test -z "$as_dir" && as_dir
=.
21496 for ac_exec_ext
in '' $ac_executable_extensions; do
21497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21498 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21509 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21510 if test -n "$gcc_cv_ld"; then
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21512 $as_echo "$gcc_cv_ld" >&6; }
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21515 $as_echo "no" >&6; }
21522 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21523 PLUGIN_LD
=`basename $gcc_cv_ld`
21525 # Check whether --with-plugin-ld was given.
21526 if test "${with_plugin_ld+set}" = set; then :
21527 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21528 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21529 PLUGIN_LD
="$withval"
21535 cat >>confdefs.h
<<_ACEOF
21536 #define PLUGIN_LD "$PLUGIN_LD"
21540 # Check to see if we are using gold instead of ld
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21542 $as_echo_n "checking whether we are using gold... " >&6; }
21544 if test x
$gcc_cv_ld != x
; then
21545 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21546 |
grep "GNU gold" > /dev
/null
; then
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21551 $as_echo "$ld_is_gold" >&6; }
21553 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21555 case "$ORIGINAL_LD_FOR_TARGET" in
21556 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21557 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21562 $as_echo_n "checking what linker to use... " >&6; }
21563 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21564 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21565 # Single tree build which includes ld. We want to prefer it
21566 # over whatever linker top-level may have detected, since
21567 # we'll use what we're building after installation anyway.
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21569 $as_echo "newly built ld" >&6; }
21571 in_tree_ld_is_elf
=no
21572 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21573 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21574 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21575 in_tree_ld_is_elf
=yes
21576 elif test "$ld_is_gold" = yes; then
21577 in_tree_ld_is_elf
=yes
21579 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
21581 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21582 if test x
$gcc_cv_gld_version != x
; then
21586 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21587 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21590 $as_echo "$gcc_cv_ld" >&6; }
21594 # Figure out what nm we will be using.
21595 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21596 if test "${gcc_cv_nm+set}" = set; then :
21600 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21601 && test -f ..
/binutils
/Makefile \
21602 && test x
$build = x
$host; then
21603 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21604 elif test -x nm
$build_exeext; then
21605 gcc_cv_nm
=.
/nm
$build_exeext
21606 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21607 gcc_cv_nm
="$NM_FOR_TARGET"
21609 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21610 set dummy
$NM_FOR_TARGET; ac_word
=$2
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21612 $as_echo_n "checking for $ac_word... " >&6; }
21613 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21614 $as_echo_n "(cached) " >&6
21618 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21622 for as_dir
in $PATH
21625 test -z "$as_dir" && as_dir
=.
21626 for ac_exec_ext
in '' $ac_executable_extensions; do
21627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21628 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21639 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21640 if test -n "$gcc_cv_nm"; then
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21642 $as_echo "$gcc_cv_nm" >&6; }
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21645 $as_echo "no" >&6; }
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21653 $as_echo_n "checking what nm to use... " >&6; }
21654 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21655 # Single tree build which includes binutils.
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21657 $as_echo "newly built nm" >&6; }
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21661 $as_echo "$gcc_cv_nm" >&6; }
21665 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21667 case "$ORIGINAL_NM_FOR_TARGET" in
21668 .
/nm | .
/nm
$build_exeext) ;;
21669 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21674 # Figure out what objdump we will be using.
21675 if test "${gcc_cv_objdump+set}" = set; then :
21679 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21680 && test -f ..
/binutils
/Makefile \
21681 && test x
$build = x
$host; then
21682 # Single tree build which includes binutils.
21683 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21684 elif test -x objdump
$build_exeext; then
21685 gcc_cv_objdump
=.
/objdump
$build_exeext
21686 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21687 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21689 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21690 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21692 $as_echo_n "checking for $ac_word... " >&6; }
21693 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21694 $as_echo_n "(cached) " >&6
21696 case $gcc_cv_objdump in
21698 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21702 for as_dir
in $PATH
21705 test -z "$as_dir" && as_dir
=.
21706 for ac_exec_ext
in '' $ac_executable_extensions; do
21707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21708 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21719 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21720 if test -n "$gcc_cv_objdump"; then
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21722 $as_echo "$gcc_cv_objdump" >&6; }
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21725 $as_echo "no" >&6; }
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21733 $as_echo_n "checking what objdump to use... " >&6; }
21734 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21735 # Single tree build which includes binutils.
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21737 $as_echo "newly built objdump" >&6; }
21738 elif test x
$gcc_cv_objdump = x
; then
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21740 $as_echo "not found" >&6; }
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21743 $as_echo "$gcc_cv_objdump" >&6; }
21746 # Figure out what readelf we will be using.
21747 if test "${gcc_cv_readelf+set}" = set; then :
21751 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21752 && test -f ..
/binutils
/Makefile \
21753 && test x
$build = x
$host; then
21754 # Single tree build which includes binutils.
21755 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21756 elif test -x readelf
$build_exeext; then
21757 gcc_cv_readelf
=.
/readelf
$build_exeext
21759 # Extract the first word of "readelf", so it can be a program name with args.
21760 set dummy readelf
; ac_word
=$2
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21762 $as_echo_n "checking for $ac_word... " >&6; }
21763 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21766 case $gcc_cv_readelf in
21768 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21772 for as_dir
in $PATH
21775 test -z "$as_dir" && as_dir
=.
21776 for ac_exec_ext
in '' $ac_executable_extensions; do
21777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21778 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21789 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21790 if test -n "$gcc_cv_readelf"; then
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21792 $as_echo "$gcc_cv_readelf" >&6; }
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795 $as_echo "no" >&6; }
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21803 $as_echo_n "checking what readelf to use... " >&6; }
21804 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21805 # Single tree build which includes binutils.
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21807 $as_echo "newly built readelf" >&6; }
21808 elif test x
$gcc_cv_readelf = x
; then
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21810 $as_echo "not found" >&6; }
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21813 $as_echo "$gcc_cv_readelf" >&6; }
21816 # Figure out what assembler alignment features are present.
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21818 $as_echo_n "checking assembler flags... " >&6; }
21819 if test "${gcc_cv_as_flags+set}" = set; then :
21820 $as_echo_n "(cached) " >&6
21823 i
[34567]86-*-linux*)
21824 gcc_cv_as_flags
="--32"
21826 powerpc
*-*-darwin*)
21827 gcc_cv_as_flags
="-arch ppc"
21830 gcc_cv_as_flags
=" "
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21835 $as_echo "$gcc_cv_as_flags" >&6; }
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21838 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21839 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21840 $as_echo_n "(cached) " >&6
21842 gcc_cv_as_balign_and_p2align
=no
21843 if test $in_tree_gas = yes; then
21844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21845 then gcc_cv_as_balign_and_p2align
=yes
21847 elif test x
$gcc_cv_as != x
; then
21848 $as_echo '.balign 4
21849 .p2align 2' > conftest.s
21850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21852 (eval $ac_try) 2>&5
21854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21855 test $ac_status = 0; }; }
21857 gcc_cv_as_balign_and_p2align
=yes
21859 echo "configure: failed program was" >&5
21862 rm -f conftest.o conftest.s
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21866 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21867 if test $gcc_cv_as_balign_and_p2align = yes; then
21869 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21874 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21875 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21876 $as_echo_n "(cached) " >&6
21878 gcc_cv_as_max_skip_p2align
=no
21879 if test $in_tree_gas = yes; then
21880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21881 then gcc_cv_as_max_skip_p2align
=yes
21883 elif test x
$gcc_cv_as != x
; then
21884 $as_echo '.p2align 4,,7' > conftest.s
21885 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21887 (eval $ac_try) 2>&5
21889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21890 test $ac_status = 0; }; }
21892 gcc_cv_as_max_skip_p2align
=yes
21894 echo "configure: failed program was" >&5
21897 rm -f conftest.o conftest.s
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21901 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21902 if test $gcc_cv_as_max_skip_p2align = yes; then
21904 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21909 $as_echo_n "checking assembler for .literal16... " >&6; }
21910 if test "${gcc_cv_as_literal16+set}" = set; then :
21911 $as_echo_n "(cached) " >&6
21913 gcc_cv_as_literal16
=no
21914 if test $in_tree_gas = yes; then
21915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21916 then gcc_cv_as_literal16
=yes
21918 elif test x
$gcc_cv_as != x
; then
21919 $as_echo '.literal16' > conftest.s
21920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21922 (eval $ac_try) 2>&5
21924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21925 test $ac_status = 0; }; }
21927 gcc_cv_as_literal16
=yes
21929 echo "configure: failed program was" >&5
21932 rm -f conftest.o conftest.s
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21936 $as_echo "$gcc_cv_as_literal16" >&6; }
21937 if test $gcc_cv_as_literal16 = yes; then
21939 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21944 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21945 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21946 $as_echo_n "(cached) " >&6
21948 gcc_cv_as_subsection_m1
=no
21949 if test $in_tree_gas = yes; then
21950 if test $in_tree_gas_is_elf = yes \
21951 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21952 then gcc_cv_as_subsection_m1
=yes
21954 elif test x
$gcc_cv_as != x
; then
21955 $as_echo 'conftest_label1: .word 0
21957 conftest_label2: .word 0
21958 .previous' > conftest.s
21959 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21961 (eval $ac_try) 2>&5
21963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21964 test $ac_status = 0; }; }
21966 if test x
$gcc_cv_nm != x
; then
21967 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21968 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21969 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21971 else gcc_cv_as_subsection_m1
=yes
21973 rm -f conftest.nm1 conftest.nm2
21976 echo "configure: failed program was" >&5
21979 rm -f conftest.o conftest.s
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21983 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21984 if test $gcc_cv_as_subsection_m1 = yes; then
21986 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21991 $as_echo_n "checking assembler for .weak... " >&6; }
21992 if test "${gcc_cv_as_weak+set}" = set; then :
21993 $as_echo_n "(cached) " >&6
21996 if test $in_tree_gas = yes; then
21997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21998 then gcc_cv_as_weak
=yes
22000 elif test x
$gcc_cv_as != x
; then
22001 $as_echo ' .weak foobar' > conftest.s
22002 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22004 (eval $ac_try) 2>&5
22006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22007 test $ac_status = 0; }; }
22011 echo "configure: failed program was" >&5
22014 rm -f conftest.o conftest.s
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22018 $as_echo "$gcc_cv_as_weak" >&6; }
22019 if test $gcc_cv_as_weak = yes; then
22021 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22026 $as_echo_n "checking assembler for .weakref... " >&6; }
22027 if test "${gcc_cv_as_weakref+set}" = set; then :
22028 $as_echo_n "(cached) " >&6
22030 gcc_cv_as_weakref
=no
22031 if test $in_tree_gas = yes; then
22032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22033 then gcc_cv_as_weakref
=yes
22035 elif test x
$gcc_cv_as != x
; then
22036 $as_echo ' .weakref foobar, barfnot' > conftest.s
22037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22039 (eval $ac_try) 2>&5
22041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22042 test $ac_status = 0; }; }
22044 gcc_cv_as_weakref
=yes
22046 echo "configure: failed program was" >&5
22049 rm -f conftest.o conftest.s
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22053 $as_echo "$gcc_cv_as_weakref" >&6; }
22054 if test $gcc_cv_as_weakref = yes; then
22056 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22061 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22062 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22063 $as_echo_n "(cached) " >&6
22065 gcc_cv_as_nsubspa_comdat
=no
22066 if test $in_tree_gas = yes; then
22067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22068 then gcc_cv_as_nsubspa_comdat
=yes
22070 elif test x
$gcc_cv_as != x
; then
22071 $as_echo ' .SPACE $TEXT$
22072 .NSUBSPA $CODE$,COMDAT' > conftest.s
22073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22075 (eval $ac_try) 2>&5
22077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22078 test $ac_status = 0; }; }
22080 gcc_cv_as_nsubspa_comdat
=yes
22082 echo "configure: failed program was" >&5
22085 rm -f conftest.o conftest.s
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22089 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22090 if test $gcc_cv_as_nsubspa_comdat = yes; then
22092 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22096 # .hidden needs to be supported in both the assembler and the linker,
22097 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22098 # This is irritatingly difficult to feature test for; we have to check the
22099 # date string after the version number. If we've got an in-tree
22100 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22102 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22104 $as_echo_n "checking assembler for .hidden... " >&6; }
22105 if test "${gcc_cv_as_hidden+set}" = set; then :
22106 $as_echo_n "(cached) " >&6
22108 gcc_cv_as_hidden
=no
22109 if test $in_tree_gas = yes; then
22110 if test $in_tree_gas_is_elf = yes \
22111 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22112 then gcc_cv_as_hidden
=yes
22114 elif test x
$gcc_cv_as != x
; then
22115 $as_echo ' .hidden foobar
22116 foobar:' > conftest.s
22117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22119 (eval $ac_try) 2>&5
22121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22122 test $ac_status = 0; }; }
22125 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22126 # STV_HIDDEN, so disable .hidden support if so.
22127 case "${target}" in
22128 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22129 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22130 cat > conftest.s
<<EOF
22135 .set default,hidden
22137 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22138 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22139 grep '\.hidden default' > /dev
/null
; then
22140 gcc_cv_as_hidden
=no
22142 gcc_cv_as_hidden
=yes
22145 # Assume bug is present if objdump is missing.
22146 gcc_cv_as_hidden
=no
22150 gcc_cv_as_hidden
=yes
22154 echo "configure: failed program was" >&5
22157 rm -f conftest.o conftest.s
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22161 $as_echo "$gcc_cv_as_hidden" >&6; }
22163 case "${target}" in
22165 # Darwin as has some visibility support, though with a different syntax.
22166 gcc_cv_as_hidden
=yes
22170 # gnu_indirect_function type is an extension proposed at
22171 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22172 # selection of function implementation
22173 # Check whether --enable-gnu-indirect-function was given.
22174 if test "${enable_gnu_indirect_function+set}" = set; then :
22175 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22177 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22178 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22181 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22184 if test x
$enable_gnu_indirect_function = xyes
; then
22186 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22190 if test $in_tree_ld != yes ; then
22191 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22192 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22193 if test x
"$ld_is_gold" = xyes
; then
22194 # GNU gold --version looks like this:
22196 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22198 # We extract the binutils version which is more familiar and specific
22199 # than the gold version.
22200 ld_vers
=`echo $ld_ver | sed -n \
22201 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22203 # GNU ld --version looks like this:
22205 # GNU ld (GNU Binutils) 2.21.51.20110225
22206 ld_vers
=`echo $ld_ver | sed -n \
22207 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22209 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'`
22210 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22211 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22212 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22214 case "${target}" in
22216 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22219 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22220 # /usr/ccs/bin/ld has been configured.
22221 ld_ver
=`$gcc_cv_ld -V 2>&1`
22222 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22223 ld_vers
=`echo $ld_ver | sed -n \
22224 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22225 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22226 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22234 $as_echo_n "checking linker for .hidden support... " >&6; }
22235 if test "${gcc_cv_ld_hidden+set}" = set; then :
22236 $as_echo_n "(cached) " >&6
22238 if test $in_tree_ld = yes ; then
22239 gcc_cv_ld_hidden
=no
22240 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 \
22241 && test $in_tree_ld_is_elf = yes; then
22242 gcc_cv_ld_hidden
=yes
22245 gcc_cv_ld_hidden
=yes
22246 if test x
"$ld_is_gold" = xyes
; then
22248 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22249 if test 0"$ld_date" -lt 20020404; then
22250 if test -n "$ld_date"; then
22251 # If there was date string, but was earlier than 2002-04-04, fail
22252 gcc_cv_ld_hidden
=no
22253 elif test -z "$ld_vers"; then
22254 # If there was no date string nor ld version number, something is wrong
22255 gcc_cv_ld_hidden
=no
22257 test -z "$ld_vers_patch" && ld_vers_patch
=0
22258 if test "$ld_vers_major" -lt 2; then
22259 gcc_cv_ld_hidden
=no
22260 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22261 gcc_cv_ld_hidden
="no"
22262 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22263 gcc_cv_ld_hidden
=no
22268 case "${target}" in
22270 # Darwin ld has some visibility support.
22271 gcc_cv_ld_hidden
=yes
22273 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22274 gcc_cv_ld_hidden
=yes
22277 # .hidden support was backported to Solaris 8, starting with ld
22279 if test "$ld_vers_minor" -ge 276; then
22280 gcc_cv_ld_hidden
=yes
22282 gcc_cv_ld_hidden
=no
22285 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22286 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22287 # .symbolic was only added in Solaris 9 12/02.
22288 gcc_cv_ld_hidden
=yes
22291 gcc_cv_ld_hidden
=no
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22298 $as_echo "$gcc_cv_ld_hidden" >&6; }
22299 libgcc_visibility
=no
22302 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22303 libgcc_visibility
=yes
22305 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22310 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22311 gcc_cv_ld_ro_rw_mix
=unknown
22312 if test $in_tree_ld = yes ; then
22313 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 \
22314 && test $in_tree_ld_is_elf = yes; then
22315 gcc_cv_ld_ro_rw_mix
=read-write
22317 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22318 echo '.section myfoosect, "a"' > conftest1.s
22319 echo '.section myfoosect, "aw"' > conftest2.s
22320 echo '.byte 1' >> conftest2.s
22321 echo '.section myfoosect, "a"' > conftest3.s
22322 echo '.byte 0' >> conftest3.s
22323 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22324 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22325 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22326 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22327 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22328 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22329 | sed -e '/myfoosect/!d' -e N`
22330 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22331 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22332 gcc_cv_ld_ro_rw_mix
=read-only
22334 gcc_cv_ld_ro_rw_mix
=read-write
22338 rm -f conftest.
* conftest
[123].
*
22340 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22342 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22346 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22348 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22349 case "${target}" in
22352 # Solaris 2 ld -V output looks like this for a regular version:
22354 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22356 # but test versions add stuff at the end:
22358 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22360 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22361 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22362 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22363 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22364 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22365 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22371 # Check whether --enable-initfini-array was given.
22372 if test "${enable_initfini_array+set}" = set; then :
22373 enableval
=$enable_initfini_array;
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22377 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22378 if test "${gcc_cv_initfini_array+set}" = set; then :
22379 $as_echo_n "(cached) " >&6
22381 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22382 case "${target}" in
22384 if test "$cross_compiling" = yes; then :
22385 gcc_cv_initfini_array
=no
22387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22388 /* end confdefs.h. */
22391 #error Not an ELF OS
22393 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22394 if it can be used. */
22396 int main (void) { return x; }
22397 int foo (void) { x = 0; }
22398 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22401 if ac_fn_c_try_run
"$LINENO"; then :
22402 gcc_cv_initfini_array
=yes
22404 gcc_cv_initfini_array
=no
22406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22407 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22411 gcc_cv_initfini_array
=no
22412 if test $in_tree_ld = yes ; then
22413 if test "$gcc_cv_gld_major_version" -eq 2 \
22414 -a "$gcc_cv_gld_minor_version" -ge 22 \
22415 -o "$gcc_cv_gld_major_version" -gt 2 \
22416 && test $in_tree_ld_is_elf = yes; then
22417 gcc_cv_initfini_array
=yes
22419 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22420 cat > conftest.s
<<\EOF
22421 .section .dtors
,"a",%progbits
22423 .byte
'A', 'A', 'A', 'A'
22424 .section .ctors
,"a",%progbits
22426 .byte
'B', 'B', 'B', 'B'
22427 .section .fini_array
.65530,"a",%progbits
22429 .byte
'C', 'C', 'C', 'C'
22430 .section .init_array
.65530,"a",%progbits
22432 .byte
'D', 'D', 'D', 'D'
22433 .section .dtors
.64528,"a",%progbits
22435 .byte
'E', 'E', 'E', 'E'
22436 .section .ctors
.64528,"a",%progbits
22438 .byte
'F', 'F', 'F', 'F'
22439 .section .fini_array
.01005,"a",%progbits
22441 .byte
'G', 'G', 'G', 'G'
22442 .section .init_array
.01005,"a",%progbits
22444 .byte
'H', 'H', 'H', 'H'
22449 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22450 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22451 && $gcc_cv_objdump -s -j .init_array conftest \
22452 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22453 && $gcc_cv_objdump -s -j .fini_array conftest \
22454 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22455 gcc_cv_initfini_array
=yes
22457 rm -f conftest conftest.
*
22459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h. */
22463 # error Not an ELF OS
22465 #include <stdlib.h>
22466 #if defined __GLIBC_PREREQ
22467 # if __GLIBC_PREREQ (2, 4)
22469 # error GLIBC 2.4 required
22472 # if defined __sun__ && defined __svr4__
22473 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22475 # error The C library not known to support .init_array/.fini_array
22480 if ac_fn_c_try_cpp
"$LINENO"; then :
22482 case "${target}" in
22484 # .init_array/.fini_array support was introduced in Solaris 8
22485 # patches 109147-08 (sparc) and 109148-08 (x86). Since ld.so.1 and
22486 # ld are guaranteed to be updated in lockstep, we can check ld -V
22487 # instead. Unfortunately, proper ld version numbers were only
22488 # introduced in rev. -14, so we check for that.
22489 if test "$gcc_cv_sun_ld_vers_minor" -lt 272; then
22490 gcc_cv_initfini_array
=no
22493 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22494 # .init_array/.fini_array support is present since Solaris 9 FCS.
22499 gcc_cv_initfini_array
=no
22501 rm -f conftest.err conftest.
$ac_ext;;
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22505 $as_echo_n "checking cross compile... guessing... " >&6; }
22506 gcc_cv_initfini_array
=no
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22510 $as_echo "$gcc_cv_initfini_array" >&6; }
22511 enable_initfini_array
=$gcc_cv_initfini_array
22515 if test $enable_initfini_array = yes; then
22517 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22521 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22523 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22524 if test "${gcc_cv_as_leb128+set}" = set; then :
22525 $as_echo_n "(cached) " >&6
22527 gcc_cv_as_leb128
=no
22528 if test $in_tree_gas = yes; then
22529 if test $in_tree_gas_is_elf = yes \
22530 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22531 then gcc_cv_as_leb128
=yes
22533 elif test x
$gcc_cv_as != x
; then
22540 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22542 (eval $ac_try) 2>&5
22544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22545 test $ac_status = 0; }; }
22547 # GAS versions before 2.11 do not support uleb128,
22548 # despite appearing to.
22549 # ??? There exists an elf-specific test that will crash
22550 # the assembler. Perhaps it's better to figure out whether
22551 # arbitrary sections are supported and try the test.
22552 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22553 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22554 as_vers
=`echo $as_ver | sed -n \
22555 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22556 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22557 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22558 if test $as_major -eq 2 && test $as_minor -lt 11
22560 else gcc_cv_as_leb128
=yes
22564 echo "configure: failed program was" >&5
22567 rm -f conftest.o conftest.s
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22571 $as_echo "$gcc_cv_as_leb128" >&6; }
22572 if test $gcc_cv_as_leb128 = yes; then
22574 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22578 # Check if we have assembler support for unwind directives.
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22580 $as_echo_n "checking assembler for cfi directives... " >&6; }
22581 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22582 $as_echo_n "(cached) " >&6
22584 gcc_cv_as_cfi_directive
=no
22585 if test x
$gcc_cv_as != x
; then
22591 .cfi_escape 1, 2, 3, 4, 5
22592 .cfi_endproc' > conftest.s
22593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22595 (eval $ac_try) 2>&5
22597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22598 test $ac_status = 0; }; }
22602 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22603 # read-only and read-write sections, we need to make sure that the
22604 # assembler used emits read-write .eh_frame sections.
22605 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22606 if test "x$gcc_cv_objdump" != x
; then
22607 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22608 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22609 gcc_cv_as_cfi_directive
=no
22612 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22613 # On Solaris/x86, make sure that GCC and gas agree on using
22614 # read-only .eh_frame sections for 64-bit.
22615 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22616 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22617 sed -e /.eh_frame
/!d
-e N | \
22618 grep READONLY
> /dev
/null
; then
22619 gcc_cv_as_cfi_directive
=yes
22621 gcc_cv_as_cfi_directive
=no
22625 gcc_cv_as_cfi_directive
=yes
22630 # no objdump, err on the side of caution
22631 gcc_cv_as_cfi_directive
=no
22634 gcc_cv_as_cfi_directive
=yes
22638 gcc_cv_as_cfi_directive
=yes
22642 echo "configure: failed program was" >&5
22645 rm -f conftest.o conftest.s
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22649 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22651 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22653 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22654 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22655 $as_echo_n "(cached) " >&6
22657 gcc_cv_as_cfi_advance_working
=no
22658 if test x
$gcc_cv_as != x
; then
22661 .cfi_adjust_cfa_offset 64
22663 .cfi_adjust_cfa_offset 128
22664 .cfi_endproc' > conftest.s
22665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22667 (eval $ac_try) 2>&5
22669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22670 test $ac_status = 0; }; }
22673 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22674 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22675 gcc_cv_as_cfi_advance_working
=yes
22679 echo "configure: failed program was" >&5
22682 rm -f conftest.o conftest.s
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22686 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22689 # no objdump, err on the side of caution
22690 gcc_cv_as_cfi_advance_working
=no
22694 cat >>confdefs.h
<<_ACEOF
22695 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22696 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22702 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22703 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22704 $as_echo_n "(cached) " >&6
22706 gcc_cv_as_cfi_personality_directive
=no
22707 if test x
$gcc_cv_as != x
; then
22710 .cfi_personality 0, symbol
22711 .cfi_endproc' > conftest.s
22712 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22714 (eval $ac_try) 2>&5
22716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22717 test $ac_status = 0; }; }
22719 gcc_cv_as_cfi_personality_directive
=yes
22721 echo "configure: failed program was" >&5
22724 rm -f conftest.o conftest.s
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22728 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22731 cat >>confdefs.h
<<_ACEOF
22732 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22733 then echo 1; else echo 0; fi`
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22738 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22739 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22740 $as_echo_n "(cached) " >&6
22742 gcc_cv_as_cfi_sections_directive
=no
22743 if test x
$gcc_cv_as != x
; then
22745 .cfi_sections .debug_frame, .eh_frame
22747 .cfi_endproc' > conftest.s
22748 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22750 (eval $ac_try) 2>&5
22752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22753 test $ac_status = 0; }; }
22756 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22757 # Need to check that we generated the correct relocation for the
22758 # .debug_frame section. This was fixed for binutils 2.21.
22759 gcc_cv_as_cfi_sections_directive
=no
22760 if test "x$gcc_cv_objdump" != x
; then
22761 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22762 grep secrel
> /dev
/null
; then
22763 gcc_cv_as_cfi_sections_directive
=yes
22768 gcc_cv_as_cfi_sections_directive
=yes
22772 echo "configure: failed program was" >&5
22775 rm -f conftest.o conftest.s
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22779 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22783 cat >>confdefs.h
<<_ACEOF
22784 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22785 then echo 1; else echo 0; fi`
22789 # GAS versions up to and including 2.11.0 may mis-optimize
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22792 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22793 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22794 $as_echo_n "(cached) " >&6
22796 gcc_cv_as_eh_frame
=no
22797 if test $in_tree_gas = yes; then
22798 if test $in_tree_gas_is_elf = yes \
22799 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22800 then gcc_cv_as_eh_frame
=yes
22802 elif test x
$gcc_cv_as != x
; then
22809 .section .eh_frame,"aw",@progbits
22811 .4byte .LECIE1-.LSCIE1
22825 .4byte .LEFDE1-.LASFDE1
22827 .4byte .LASFDE1-__FRAME_BEGIN__
22834 .LEFDE1:' > conftest.s
22835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22842 cat > conftest.lit
<<EOF
22843 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22844 0010 01000000 12000000 18000000 00000000 ................
22845 0020 08000000 04080000 0044 .........D
22847 cat > conftest.big
<<EOF
22848 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22849 0010 00000001 00000012 00000018 00000000 ................
22850 0020 00000008 04000000 0844 .........D
22852 # If the assembler didn't choke, and we can objdump,
22853 # and we got the correct data, then succeed.
22854 # The text in the here-document typically retains its unix-style line
22855 # endings, while the output of objdump will use host line endings.
22856 # Therefore, use diff -b for the comparisons.
22857 if test x
$gcc_cv_objdump != x \
22858 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22859 |
tail -3 > conftest.got \
22860 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22861 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22863 gcc_cv_as_eh_frame
=yes
22864 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22866 (eval $ac_try) 2>&5
22868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22869 test $ac_status = 0; }; }; then
22870 gcc_cv_as_eh_frame
=buggy
22872 # Uh oh, what do we do now?
22873 gcc_cv_as_eh_frame
=no
22876 echo "configure: failed program was" >&5
22879 rm -f conftest.o conftest.s
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22883 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22886 if test $gcc_cv_as_eh_frame = buggy
; then
22888 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22893 $as_echo_n "checking assembler for section merging support... " >&6; }
22894 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22895 $as_echo_n "(cached) " >&6
22897 gcc_cv_as_shf_merge
=no
22898 if test $in_tree_gas = yes; then
22899 if test $in_tree_gas_is_elf = yes \
22900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22901 then gcc_cv_as_shf_merge
=yes
22903 elif test x
$gcc_cv_as != x
; then
22904 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22907 (eval $ac_try) 2>&5
22909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910 test $ac_status = 0; }; }
22912 gcc_cv_as_shf_merge
=yes
22914 echo "configure: failed program was" >&5
22917 rm -f conftest.o conftest.s
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22921 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22923 if test $gcc_cv_as_shf_merge = no
; then
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22925 $as_echo_n "checking assembler for section merging support... " >&6; }
22926 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22927 $as_echo_n "(cached) " >&6
22929 gcc_cv_as_shf_merge
=no
22930 if test $in_tree_gas = yes; then
22931 if test $in_tree_gas_is_elf = yes \
22932 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22933 then gcc_cv_as_shf_merge
=yes
22935 elif test x
$gcc_cv_as != x
; then
22936 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22937 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22939 (eval $ac_try) 2>&5
22941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22942 test $ac_status = 0; }; }
22944 gcc_cv_as_shf_merge
=yes
22946 echo "configure: failed program was" >&5
22949 rm -f conftest.o conftest.s
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22953 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22957 cat >>confdefs.h
<<_ACEOF
22958 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22963 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22964 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22965 $as_echo_n "(cached) " >&6
22967 gcc_cv_as_comdat_group
=no
22968 if test $in_tree_gas = yes; then
22969 if test $in_tree_gas_is_elf = yes \
22970 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22971 then gcc_cv_as_comdat_group
=yes
22973 elif test x
$gcc_cv_as != x
; then
22974 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22975 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22977 (eval $ac_try) 2>&5
22979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22980 test $ac_status = 0; }; }
22982 gcc_cv_as_comdat_group
=yes
22984 echo "configure: failed program was" >&5
22987 rm -f conftest.o conftest.s
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22991 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22993 if test $gcc_cv_as_comdat_group = yes; then
22994 gcc_cv_as_comdat_group_percent
=no
22995 gcc_cv_as_comdat_group_group
=no
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22998 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22999 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23000 $as_echo_n "(cached) " >&6
23002 gcc_cv_as_comdat_group_percent
=no
23003 if test $in_tree_gas = yes; then
23004 if test $in_tree_gas_is_elf = yes \
23005 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23006 then gcc_cv_as_comdat_group_percent
=yes
23008 elif test x
$gcc_cv_as != x
; then
23009 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23012 (eval $ac_try) 2>&5
23014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23015 test $ac_status = 0; }; }
23017 gcc_cv_as_comdat_group_percent
=yes
23019 echo "configure: failed program was" >&5
23022 rm -f conftest.o conftest.s
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23026 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23028 if test $gcc_cv_as_comdat_group_percent = yes; then
23029 gcc_cv_as_comdat_group_group
=no
23031 case "${target}" in
23032 # Sun as uses a completely different syntax.
23034 case "${target}" in
23035 sparc
*-*-solaris2*)
23037 .group foo,".text%foo",#comdat
23038 .section ".text%foo", #alloc,#execinstr,#progbits
23043 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23045 .group foo,.text%foo,#comdat
23046 .section .text%foo, "ax", @progbits
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23053 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23054 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23055 $as_echo_n "(cached) " >&6
23057 gcc_cv_as_comdat_group_group
=no
23058 if test x
$gcc_cv_as != x
; then
23059 $as_echo "$conftest_s" > conftest.s
23060 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23062 (eval $ac_try) 2>&5
23064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23065 test $ac_status = 0; }; }
23067 gcc_cv_as_comdat_group_group
=yes
23069 echo "configure: failed program was" >&5
23072 rm -f conftest.o conftest.s
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23076 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23082 if test x
"$ld_is_gold" = xyes
; then
23084 elif test $in_tree_ld = yes ; then
23086 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 \
23087 && test $in_tree_ld_is_elf = yes; then
23090 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23092 if test 0"$ld_date" -lt 20050308; then
23093 if test -n "$ld_date"; then
23094 # If there was date string, but was earlier than 2005-03-08, fail
23096 elif test "$ld_vers_major" -lt 2; then
23098 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23103 case "${target}" in
23104 *-*-solaris2.1
[1-9]*)
23106 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23107 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23110 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23111 # least ld version 1.2267.
23112 if test "$ld_vers_major" -gt 1; then
23114 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23116 elif test "$ld_vers_minor" -ge 2267; then
23121 # Assume linkers other than GNU ld don't support COMDAT group.
23126 # Allow overriding the automatic COMDAT group tests above.
23127 # Check whether --enable-comdat was given.
23128 if test "${enable_comdat+set}" = set; then :
23129 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23132 if test $comdat_group = no
; then
23133 gcc_cv_as_comdat_group
=no
23134 gcc_cv_as_comdat_group_percent
=no
23135 gcc_cv_as_comdat_group_group
=no
23138 cat >>confdefs.h
<<_ACEOF
23139 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23140 || test $gcc_cv_as_comdat_group_percent = yes \
23141 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23146 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23147 if test "${gcc_cv_as_discriminator+set}" = set; then :
23148 $as_echo_n "(cached) " >&6
23150 gcc_cv_as_discriminator
=no
23151 if test $in_tree_gas = yes; then
23152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23153 then gcc_cv_as_discriminator
=yes
23155 elif test x
$gcc_cv_as != x
; then
23158 .loc 1 1 0 discriminator 1' > conftest.s
23159 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23161 (eval $ac_try) 2>&5
23163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23164 test $ac_status = 0; }; }
23166 gcc_cv_as_discriminator
=yes
23168 echo "configure: failed program was" >&5
23171 rm -f conftest.o conftest.s
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23175 $as_echo "$gcc_cv_as_discriminator" >&6; }
23176 if test $gcc_cv_as_discriminator = yes; then
23178 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23182 # Thread-local storage - the check is heavily parameterized.
23190 .section ".tdata","awT",@progbits
23193 ldq $27,__tls_get_addr($29) !literal!1
23194 lda $16,foo($29) !tlsgd!1
23195 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23196 ldq $27,__tls_get_addr($29) !literal!2
23197 lda $16,foo($29) !tlsldm!2
23198 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23199 ldq $1,foo($29) !gotdtprel
23200 ldah $2,foo($29) !dtprelhi
23201 lda $3,foo($2) !dtprello
23202 lda $4,foo($29) !dtprel
23203 ldq $1,foo($29) !gottprel
23204 ldah $2,foo($29) !tprelhi
23205 lda $3,foo($2) !tprello
23206 lda $4,foo($29) !tprel'
23209 tls_as_opt
=--fatal-warnings
23211 cris-
*-*|crisv32-
*-*)
23213 .section ".tdata","awT",@progbits
23220 tls_as_opt
=--fatal-warnings
23224 .section ".tdata","awT",@progbits
23227 call #gettlsoff(x)'
23236 .section ".tdata","awT",@progbits
23240 addil LT%foo-$tls_gdidx$,gp
23241 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23244 addil LT%foo-$tls_ldidx$,gp
23246 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23247 addil LR%foo-$tls_dtpoff$,%ret0
23248 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23250 addil LT%foo-$tls_ieoff$,gp
23251 ldw RT%foo-$tls_ieoff$(%r1),%t2
23254 addil LR%foo-$tls_leoff$,%t1
23255 ldo RR%foo-$tls_leoff$(%r1),%t2'
23258 tls_as_opt
=--fatal-warnings
23262 .section ".tdata","awT",%progbits
23265 .word foo(gottpoff)
23273 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23275 i
[34567]86-*-solaris2.
*)
23277 tga_func
=___tls_get_addr
23279 x86_64-
*-solaris2.1
[0-9]*)
23281 tga_func
=__tls_get_addr
23287 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23289 .section .tdata,"awt",@progbits'
23293 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23297 .section ".tdata","awT",@progbits'
23300 tls_as_opt
="--fatal-warnings"
23302 conftest_s
="$conftest_s
23306 leal foo@tlsgd(,%ebx,1), %eax
23307 leal foo@tlsldm(%ebx), %eax
23308 leal foo@dtpoff(%eax), %edx
23309 movl foo@gottpoff(%ebx), %eax
23310 subl foo@gottpoff(%ebx), %eax
23311 addl foo@gotntpoff(%ebx), %eax
23312 movl foo@indntpoff, %eax
23313 movl \$foo@tpoff, %eax
23314 subl \$foo@tpoff, %eax
23315 leal foo@ntpoff(%ecx), %eax"
23319 .section ".tdata","awT",@progbits
23323 leaq foo@TLSGD(%rip), %rdi
23324 leaq foo@TLSLD(%rip), %rdi
23325 leaq foo@DTPOFF(%rax), %rdx
23326 movq foo@GOTTPOFF(%rip), %rax
23327 movq $foo@TPOFF, %rax'
23330 tls_as_opt
=--fatal-warnings
23334 .section ".tdata","awT",@progbits
23337 addl r16 = @ltoff(@dtpmod(foo#)), gp
23338 addl r17 = @ltoff(@dtprel(foo#)), gp
23339 addl r18 = @ltoff(@tprel(foo#)), gp
23340 addl r19 = @dtprel(foo#), gp
23341 adds r21 = @dtprel(foo#), r13
23342 movl r23 = @dtprel(foo#)
23343 addl r20 = @tprel(foo#), gp
23344 adds r22 = @tprel(foo#), r13
23345 movl r24 = @tprel(foo#)'
23348 tls_as_opt
=--fatal-warnings
23352 .section .tdata,"awT",@progbits
23356 addiu $4, $28, %tlsgd(x)
23357 addiu $4, $28, %tlsldm(x)
23358 lui $4, %dtprel_hi(x)
23359 addiu $4, $4, %dtprel_lo(x)
23360 lw $4, %gottprel(x)($28)
23361 lui $4, %tprel_hi(x)
23362 addiu $4, $4, %tprel_lo(x)'
23365 tls_as_opt
='-32 --fatal-warnings'
23369 .section .tdata,"awT",@progbits
23374 move.l x@TLSGD(%a5),%a0
23375 move.l x@TLSLDM(%a5),%a0
23376 move.l x@TLSLDO(%a5),%a0
23377 move.l x@TLSIE(%a5),%a0
23378 move.l x@TLSLE(%a5),%a0'
23381 tls_as_opt
='--fatal-warnings'
23385 .section ".tdata","awT",@progbits
23393 addi 3,31,ld0@got@tlsgd
23395 addi 3,31,x1@got@tlsld
23398 addis 9,3,x2@dtprel@ha
23399 addi 9,9,x2@dtprel@l
23400 lwz 9,x3@got@tprel(31)
23403 addis 9,2,x2@tprel@ha
23404 addi 9,9,x2@tprel@l'
23407 tls_as_opt
="-a32 --fatal-warnings"
23411 .section ".tdata","awT",@progbits
23419 addi 3,2,ld0@got@tlsgd
23425 addi 3,2,x1@got@tlsld
23431 addis 9,3,x2@dtprel@ha
23432 addi 9,9,x2@dtprel@l
23435 ld 9,x3@got@dtprel(2)
23441 tls_as_opt
="-a64 --fatal-warnings"
23445 .section ".tdata","awT",@progbits
23452 .long foo@GOTNTPOFF
23453 .long foo@INDNTPOFF
23454 l %r1,foo@GOTNTPOFF(%r12)
23455 l %r1,0(%r1):tls_load:foo
23456 bas %r14,0(%r1,%r13):tls_gdcall:foo
23457 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23460 tls_as_opt
="-m31 --fatal-warnings"
23464 .section ".tdata","awT",@progbits
23471 .quad foo@GOTNTPOFF
23472 lg %r1,foo@GOTNTPOFF(%r12)
23473 larl %r1,foo@INDNTPOFF
23474 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23475 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23478 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23480 sh-
*-* | sh
[34]-*-*)
23482 .section ".tdata","awT",@progbits
23492 tls_as_opt
=--fatal-warnings
23496 sparc
*-sun-solaris2.
*)
23498 tga_func
=__tls_get_addr
23504 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23506 .section ".tdata",#alloc,#write,#tls'
23511 .section ".tdata","awT",@progbits'
23514 tls_as_opt
="-32 --fatal-warnings"
23516 conftest_s
="$conftest_s
23519 sethi %tgd_hi22(foo), %o0
23520 add %o0, %tgd_lo10(foo), %o1
23521 add %l7, %o1, %o0, %tgd_add(foo)
23522 call __tls_get_addr, %tgd_call(foo)
23523 sethi %tldm_hi22(foo), %l1
23524 add %l1, %tldm_lo10(foo), %l2
23525 add %l7, %l2, %o0, %tldm_add(foo)
23526 call __tls_get_addr, %tldm_call(foo)
23527 sethi %tldo_hix22(foo), %l3
23528 xor %l3, %tldo_lox10(foo), %l4
23529 add %o0, %l4, %l5, %tldo_add(foo)
23530 sethi %tie_hi22(foo), %o3
23531 add %o3, %tie_lo10(foo), %o3
23532 ld [%l7 + %o3], %o2, %tie_ld(foo)
23533 add %g7, %o2, %o4, %tie_add(foo)
23534 sethi %tle_hix22(foo), %l1
23535 xor %l1, %tle_lox10(foo), %o5
23536 ld [%g7 + %o5], %o1"
23540 .section ".tdata","awT",@progbits
23543 addli r0, zero, tls_gd(foo)
23544 auli r0, zero, tls_gd_ha16(foo)
23545 addli r0, r0, tls_gd_lo16(foo)
23547 addli r0, zero, tls_ie(foo)
23548 auli r0, r0, tls_ie_ha16(foo)
23549 addli r0, r0, tls_ie_lo16(foo)'
23552 tls_as_opt
="--fatal-warnings"
23556 .section ".tdata","awT",@progbits
23559 shl16insli r0, zero, hw0_last_tls_gd(foo)
23560 shl16insli r0, zero, hw1_last_tls_gd(foo)
23561 shl16insli r0, r0, hw0_tls_gd(foo)
23563 shl16insli r0, zero, hw1_last_tls_ie(foo)
23564 shl16insli r0, r0, hw0_tls_ie(foo)'
23567 tls_as_opt
="--fatal-warnings"
23571 .section ".tdata","awT",@progbits
23574 movi a8, foo@TLSFUNC
23575 movi a10, foo@TLSARG
23576 callx8.tls a8, foo@TLSCALL'
23582 if test "x$enable_tls" = xno
; then
23583 : # TLS explicitly disabled.
23584 elif test "x$enable_tls" = xyes
; then
23585 set_have_as_tls
=yes # TLS explicitly enabled.
23586 elif test -z "$tls_first_major"; then
23587 : # If we don't have a check, assume no support.
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23590 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23591 if test "${gcc_cv_as_tls+set}" = set; then :
23592 $as_echo_n "(cached) " >&6
23595 if test $in_tree_gas = yes; then
23596 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23597 then gcc_cv_as_tls
=yes
23599 elif test x
$gcc_cv_as != x
; then
23600 $as_echo "$conftest_s" > conftest.s
23601 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23603 (eval $ac_try) 2>&5
23605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23606 test $ac_status = 0; }; }
23610 echo "configure: failed program was" >&5
23613 rm -f conftest.o conftest.s
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23617 $as_echo "$gcc_cv_as_tls" >&6; }
23618 if test $gcc_cv_as_tls = yes; then
23619 set_have_as_tls
=yes
23624 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23625 # with TLS support are in use, native TLS cannot work.
23628 # TLS was introduced in the Solaris 9 FCS release and backported to
23629 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23630 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23631 # ld and GCC don't support any longer.
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23634 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23636 # Check ld and ld.so.1 TLS support.
23637 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23638 # Assume all interesting versions of GNU ld have TLS support.
23639 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23643 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23645 min_tls_ld_vers_minor
=280
23647 # Solaris 8/SPARC ld has TLS support since version 1.272.
23648 sparc
*-*-solaris2.8
)
23649 min_tls_ld_vers_minor
=272
23651 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23653 min_tls_ld_vers_minor
=374
23655 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23656 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23657 min_tls_ld_vers_minor
=343
23660 if test "$ld_vers_major" -gt 1 || \
23661 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23668 $as_echo "$ld_tls_support" >&6; }
23671 save_LDFLAGS
="$LDFLAGS"
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23676 $as_echo_n "checking alternate thread library... " >&6; }
23678 # TLS support was backported to Solaris 8 patches, but only lives in
23679 # the alternate thread library which became the default in Solaris 9.
23680 # We want to always use that, irrespective of TLS support.
23682 # Take multilib subdir into account. There's no spec to handle
23683 # this. The 64 symlink exists since Solaris 8.
23684 lwp_dir
=/usr
/lib
/lwp
23685 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23686 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23693 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23695 cat >>confdefs.h
<<_ACEOF
23696 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23700 $as_echo "$lwp_dir" >&6; }
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23703 $as_echo_n "checking library containing $tga_func... " >&6; }
23704 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23705 # (32-bit x86) only lived in libthread, so check for that. Keep
23706 # set_have_as_tls if found, disable if not.
23707 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23709 $as_echo_n "checking for library containing $tga_func... " >&6; }
23710 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23711 $as_echo_n "(cached) " >&6
23713 ac_func_search_save_LIBS
=$LIBS
23714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23715 /* end confdefs.h. */
23717 /* Override any GCC internal prototype to avoid an error.
23718 Use char because int might match the return type of a GCC
23719 builtin and then its argument prototype would still apply. */
23727 return $tga_func ();
23732 for ac_lib
in '' thread
; do
23733 if test -z "$ac_lib"; then
23734 ac_res
="none required"
23737 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23739 if ac_fn_c_try_link
"$LINENO"; then :
23740 eval "$as_ac_Search=\$ac_res"
23742 rm -f core conftest.err conftest.
$ac_objext \
23744 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23748 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23751 eval "$as_ac_Search=no"
23753 rm conftest.
$ac_ext
23754 LIBS
=$ac_func_search_save_LIBS
23756 eval ac_res
=\$
$as_ac_Search
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23758 $as_echo "$ac_res" >&6; }
23759 eval ac_res
=\$
$as_ac_Search
23760 if test "$ac_res" != no
; then :
23761 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23767 # Clear LIBS if we cannot support TLS.
23768 if test $set_have_as_tls = no
; then
23771 # Even without TLS support on Solaris 8, explicitly link with libthread
23772 # to guarantee that the alternate thread library is used.
23778 # Always define LIB_TLS_SPEC, even without TLS support.
23780 cat >>confdefs.h
<<_ACEOF
23781 #define LIB_TLS_SPEC "$LIBS"
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23785 $as_echo "$LIBS" >&6; }
23788 LDFLAGS
="$save_LDFLAGS"
23791 if test $set_have_as_tls = yes ; then
23793 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23797 # Target-specific assembler checks.
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23800 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23801 gcc_cv_ld_static_dynamic
=no
23802 gcc_cv_ld_static_option
='-Bstatic'
23803 gcc_cv_ld_dynamic_option
='-Bdynamic'
23804 if test $in_tree_ld = yes ; then
23805 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
23806 gcc_cv_ld_static_dynamic
=yes
23808 elif test x
$gcc_cv_ld != x
; then
23809 # Check if linker supports -Bstatic/-Bdynamic option
23810 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23811 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23812 gcc_cv_ld_static_dynamic
=yes
23815 # HP-UX ld uses -a flags to select between shared and archive.
23817 if test x
"$gnu_ld" = xno
; then
23818 gcc_cv_ld_static_dynamic
=yes
23819 gcc_cv_ld_static_option
="-aarchive_shared"
23820 gcc_cv_ld_dynamic_option
="-adefault"
23823 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23825 gcc_cv_ld_static_dynamic
=yes
23827 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23829 gcc_cv_ld_static_dynamic
=yes
23834 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23836 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23839 cat >>confdefs.h
<<_ACEOF
23840 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23844 cat >>confdefs.h
<<_ACEOF
23845 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23850 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23852 if test x
"$demangler_in_ld" = xyes
; then
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23854 $as_echo_n "checking linker --demangle support... " >&6; }
23855 gcc_cv_ld_demangle
=no
23856 if test $in_tree_ld = yes; then
23857 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 \
23858 gcc_cv_ld_demangle
=yes
23860 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23861 # Check if the GNU linker supports --demangle option
23862 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23863 gcc_cv_ld_demangle
=yes
23866 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23868 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23872 $as_echo "$gcc_cv_ld_demangle" >&6; }
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23876 $as_echo_n "checking linker plugin support... " >&6; }
23877 gcc_cv_lto_plugin
=0
23878 if test -f liblto_plugin.la
; then
23879 save_ld_ver
="$ld_ver"
23880 save_ld_vers_major
="$ld_vers_major"
23881 save_ld_vers_minor
="$ld_vers_minor"
23882 save_ld_is_gold
="$ld_is_gold"
23886 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23888 # FIXME: ld_is_gold?
23889 ld_vers_major
="$gcc_cv_gld_major_version"
23890 ld_vers_minor
="$gcc_cv_gld_minor_version"
23892 # Determine plugin linker version.
23893 # FIXME: Partial duplicate from above, generalize.
23894 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23895 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23896 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23898 ld_vers
=`echo $ld_ver | sed -n \
23899 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23901 ld_vers
=`echo $ld_ver | sed -n \
23902 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23904 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23905 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23909 # Determine plugin support.
23910 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23911 # Require GNU ld or gold 2.21+ for plugin support by default.
23912 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23913 gcc_cv_lto_plugin
=2
23914 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23915 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23916 gcc_cv_lto_plugin
=1
23920 ld_ver
="$save_ld_ver"
23921 ld_vers_major
="$save_ld_vers_major"
23922 ld_vers_minor
="$save_ld_vers_minor"
23923 ld_is_gold
="$save_ld_is_gold"
23926 cat >>confdefs.h
<<_ACEOF
23927 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23931 $as_echo "$gcc_cv_lto_plugin" >&6; }
23934 # All TARGET_ABI_OSF targets.
23935 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23937 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23938 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23939 $as_echo_n "(cached) " >&6
23941 gcc_cv_as_alpha_explicit_relocs
=no
23942 if test $in_tree_gas = yes; then
23943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23944 then gcc_cv_as_alpha_explicit_relocs
=yes
23946 elif test x
$gcc_cv_as != x
; then
23947 $as_echo ' .set nomacro
23949 extbl $3, $2, $3 !lituse_bytoff!1
23950 ldq $2, a($29) !literal!1
23951 ldq $4, b($29) !literal!2
23952 ldq_u $3, 0($2) !lituse_base!1
23953 ldq $27, f($29) !literal!5
23954 jsr $26, ($27), f !lituse_jsr!5
23955 ldah $29, 0($26) !gpdisp!3
23956 lda $0, c($29) !gprel
23957 ldah $1, d($29) !gprelhigh
23958 lda $1, d($1) !gprellow
23959 lda $29, 0($29) !gpdisp!3' > conftest.s
23960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23962 (eval $ac_try) 2>&5
23964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23965 test $ac_status = 0; }; }
23967 gcc_cv_as_alpha_explicit_relocs
=yes
23969 echo "configure: failed program was" >&5
23972 rm -f conftest.o conftest.s
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23976 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23977 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23979 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23983 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23984 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23985 $as_echo_n "(cached) " >&6
23987 gcc_cv_as_alpha_jsrdirect_relocs
=no
23988 if test $in_tree_gas = yes; then
23989 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23990 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23992 elif test x
$gcc_cv_as != x
; then
23993 $as_echo ' .set nomacro
23995 ldq $27, a($29) !literal!1
23996 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; }
24004 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24006 echo "configure: failed program was" >&5
24009 rm -f conftest.o conftest.s
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24013 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24014 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24016 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24023 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24024 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24025 $as_echo_n "(cached) " >&6
24027 gcc_cv_as_cris_no_mul_bug
=no
24028 if test $in_tree_gas = yes; then
24029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24030 then gcc_cv_as_cris_no_mul_bug
=yes
24032 elif test x
$gcc_cv_as != x
; then
24033 $as_echo '.text' > conftest.s
24034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24036 (eval $ac_try) 2>&5
24038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24039 test $ac_status = 0; }; }
24041 gcc_cv_as_cris_no_mul_bug
=yes
24043 echo "configure: failed program was" >&5
24046 rm -f conftest.o conftest.s
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24050 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24051 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24053 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24060 $as_echo_n "checking assembler for .register... " >&6; }
24061 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24062 $as_echo_n "(cached) " >&6
24064 gcc_cv_as_sparc_register_op
=no
24065 if test x
$gcc_cv_as != x
; then
24066 $as_echo '.register %g2, #scratch' > conftest.s
24067 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24069 (eval $ac_try) 2>&5
24071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24072 test $ac_status = 0; }; }
24074 gcc_cv_as_sparc_register_op
=yes
24076 echo "configure: failed program was" >&5
24079 rm -f conftest.o conftest.s
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24083 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24084 if test $gcc_cv_as_sparc_register_op = yes; then
24086 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24091 $as_echo_n "checking assembler for -relax option... " >&6; }
24092 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24093 $as_echo_n "(cached) " >&6
24095 gcc_cv_as_sparc_relax
=no
24096 if test x
$gcc_cv_as != x
; then
24097 $as_echo '.text' > conftest.s
24098 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24100 (eval $ac_try) 2>&5
24102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24103 test $ac_status = 0; }; }
24105 gcc_cv_as_sparc_relax
=yes
24107 echo "configure: failed program was" >&5
24110 rm -f conftest.o conftest.s
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24114 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24115 if test $gcc_cv_as_sparc_relax = yes; then
24117 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24122 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24123 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24124 $as_echo_n "(cached) " >&6
24126 gcc_cv_as_sparc_gotdata_op
=no
24127 if test x
$gcc_cv_as != x
; then
24133 sethi %gdop_hix22(foo), %g1
24134 xor %g1, %gdop_lox10(foo), %g1
24135 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24138 (eval $ac_try) 2>&5
24140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141 test $ac_status = 0; }; }
24143 if test x
$gcc_cv_ld != x \
24144 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24145 if test x
$gcc_cv_objdump != x
; then
24146 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24147 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24148 gcc_cv_as_sparc_gotdata_op
=no
24150 gcc_cv_as_sparc_gotdata_op
=yes
24156 echo "configure: failed program was" >&5
24159 rm -f conftest.o conftest.s
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24163 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24164 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24166 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24171 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24172 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24173 $as_echo_n "(cached) " >&6
24175 gcc_cv_as_sparc_ua_pcrel
=no
24176 if test x
$gcc_cv_as != x
; then
24183 .uaword %r_disp32(foo)' > conftest.s
24184 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24186 (eval $ac_try) 2>&5
24188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24189 test $ac_status = 0; }; }
24191 if test x
$gcc_cv_ld != x \
24192 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24193 gcc_cv_as_sparc_ua_pcrel
=yes
24197 echo "configure: failed program was" >&5
24200 rm -f conftest.o conftest.s
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24204 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24205 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24207 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24211 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24212 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24213 $as_echo_n "(cached) " >&6
24215 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24216 if test x
$gcc_cv_as != x
; then
24220 .uaword %r_disp32(foo)
24221 .byte 0x32, 0x33, 0x34
24225 .skip 4' > conftest.s
24226 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24228 (eval $ac_try) 2>&5
24230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24231 test $ac_status = 0; }; }
24233 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24234 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24235 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24236 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24237 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24238 |
grep 'DISP32' > /dev
/null
2>&1; then
24241 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24246 echo "configure: failed program was" >&5
24249 rm -f conftest.o conftest.s
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24253 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24254 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24256 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24260 fi # unaligned pcrel relocs
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24263 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24264 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24265 $as_echo_n "(cached) " >&6
24267 gcc_cv_as_sparc_offsetable_lo10
=no
24268 if test x
$gcc_cv_as != x
; then
24270 or %g1, %lo(ab) + 12, %g1
24271 or %g1, %lo(ab + 12), %g1' > conftest.s
24272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274 (eval $ac_try) 2>&5
24276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277 test $ac_status = 0; }; }
24279 if test x
$gcc_cv_objdump != x \
24280 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24281 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24282 gcc_cv_as_sparc_offsetable_lo10
=yes
24285 echo "configure: failed program was" >&5
24288 rm -f conftest.o conftest.s
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24292 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24293 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24295 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24300 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24301 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24302 $as_echo_n "(cached) " >&6
24304 gcc_cv_as_sparc_fmaf
=no
24305 if test x
$gcc_cv_as != x
; then
24307 .register %g2, #scratch
24308 .register %g3, #scratch
24310 fmaddd %f0, %f2, %f4, %f6
24311 addxccc %g1, %g2, %g3
24312 fsrl32 %f2, %f4, %f8
24313 fnaddd %f10, %f12, %f14' > conftest.s
24314 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24316 (eval $ac_try) 2>&5
24318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24319 test $ac_status = 0; }; }
24321 gcc_cv_as_sparc_fmaf
=yes
24323 echo "configure: failed program was" >&5
24326 rm -f conftest.o conftest.s
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24330 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24331 if test $gcc_cv_as_sparc_fmaf = yes; then
24333 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24338 i
[34567]86-*-* | x86_64-
*-*)
24341 # Full C++ conformance when using a shared libstdc++-v3 requires some
24342 # support from the Cygwin DLL, which in more recent versions exports
24343 # wrappers to aid in interposing and redirecting operators new, delete,
24344 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24345 # are configuring for a version of Cygwin that exports the wrappers.
24346 if test x
$host = x
$target; then
24347 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24348 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24349 gcc_ac_cygwin_dll_wrappers
=yes
24351 gcc_ac_cygwin_dll_wrappers
=no
24355 # Can't check presence of libc functions during cross-compile, so
24356 # we just have to assume we're building for an up-to-date target.
24357 gcc_ac_cygwin_dll_wrappers
=yes
24360 cat >>confdefs.h
<<_ACEOF
24361 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24366 cygwin
* | pe | mingw32
* | interix
*)
24367 # Recent binutils allows the three-operand form of ".comm" on PE. This
24368 # definition is used unconditionally to initialise the default state of
24369 # the target option variable that governs usage of the feature.
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24371 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24372 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24373 $as_echo_n "(cached) " >&6
24375 gcc_cv_as_comm_has_align
=no
24376 if test $in_tree_gas = yes; then
24377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24378 then gcc_cv_as_comm_has_align
=yes
24380 elif test x
$gcc_cv_as != x
; then
24381 $as_echo '.comm foo,1,32' > conftest.s
24382 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24384 (eval $ac_try) 2>&5
24386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24387 test $ac_status = 0; }; }
24389 gcc_cv_as_comm_has_align
=yes
24391 echo "configure: failed program was" >&5
24394 rm -f conftest.o conftest.s
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24398 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24401 cat >>confdefs.h
<<_ACEOF
24402 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24405 # Used for DWARF 2 in PE
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24407 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24408 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24409 $as_echo_n "(cached) " >&6
24411 gcc_cv_as_ix86_pe_secrel32
=no
24412 if test $in_tree_gas = yes; then
24413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24414 then gcc_cv_as_ix86_pe_secrel32
=yes
24416 elif test x
$gcc_cv_as != x
; then
24420 .secrel32 foo' > conftest.s
24421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24423 (eval $ac_try) 2>&5
24425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24426 test $ac_status = 0; }; }
24428 if test x
$gcc_cv_ld != x \
24429 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24430 gcc_cv_as_ix86_pe_secrel32
=yes
24434 echo "configure: failed program was" >&5
24437 rm -f conftest.o conftest.s
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24441 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24442 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24444 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24447 # Test if the assembler supports the extended form of the .section
24448 # directive that specifies section alignment. LTO support uses this,
24449 # but normally only after installation, so we warn but don't fail the
24450 # configure if LTO is enabled but the assembler does not support it.
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24452 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24453 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24454 $as_echo_n "(cached) " >&6
24456 gcc_cv_as_section_has_align
=no
24457 if test $in_tree_gas = yes; then
24458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24459 then gcc_cv_as_section_has_align
=yes
24461 elif test x
$gcc_cv_as != x
; then
24462 $as_echo '.section lto_test,"dr0"' > conftest.s
24463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24465 (eval $ac_try) 2>&5
24467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24468 test $ac_status = 0; }; }
24470 gcc_cv_as_section_has_align
=yes
24472 echo "configure: failed program was" >&5
24475 rm -f conftest.o conftest.s
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24479 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24481 if test x
$gcc_cv_as_section_has_align != xyes
; then
24482 case ",$enable_languages," in
24484 { $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
24485 $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;}
24489 # Test if the assembler supports the section flag 'e' for specifying
24490 # an excluded section.
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24492 $as_echo_n "checking assembler for .section with e... " >&6; }
24493 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24494 $as_echo_n "(cached) " >&6
24496 gcc_cv_as_section_has_e
=no
24497 if test $in_tree_gas = yes; then
24498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24499 then gcc_cv_as_section_has_e
=yes
24501 elif test x
$gcc_cv_as != x
; then
24502 $as_echo '.section foo1,"e"
24503 .byte 0,0,0,0' > conftest.s
24504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24511 gcc_cv_as_section_has_e
=yes
24513 echo "configure: failed program was" >&5
24516 rm -f conftest.o conftest.s
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24520 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24523 cat >>confdefs.h
<<_ACEOF
24524 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24531 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24532 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24533 $as_echo_n "(cached) " >&6
24535 gcc_cv_as_ix86_filds
=no
24536 if test x
$gcc_cv_as != x
; then
24537 $as_echo 'filds mem; fists mem' > conftest.s
24538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24540 (eval $ac_try) 2>&5
24542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24543 test $ac_status = 0; }; }
24545 gcc_cv_as_ix86_filds
=yes
24547 echo "configure: failed program was" >&5
24550 rm -f conftest.o conftest.s
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24554 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24555 if test $gcc_cv_as_ix86_filds = yes; then
24557 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24562 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24563 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24564 $as_echo_n "(cached) " >&6
24566 gcc_cv_as_ix86_fildq
=no
24567 if test x
$gcc_cv_as != x
; then
24568 $as_echo 'fildq mem; fistpq mem' > conftest.s
24569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24571 (eval $ac_try) 2>&5
24573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24574 test $ac_status = 0; }; }
24576 gcc_cv_as_ix86_fildq
=yes
24578 echo "configure: failed program was" >&5
24581 rm -f conftest.o conftest.s
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24585 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24586 if test $gcc_cv_as_ix86_fildq = yes; then
24588 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24593 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24594 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24597 gcc_cv_as_ix86_cmov_sun_syntax
=no
24598 if test x
$gcc_cv_as != x
; then
24599 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24600 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; }
24607 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24609 echo "configure: failed program was" >&5
24612 rm -f conftest.o conftest.s
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24616 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24617 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24619 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24624 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24625 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24626 $as_echo_n "(cached) " >&6
24628 gcc_cv_as_ix86_ffreep
=no
24629 if test x
$gcc_cv_as != x
; then
24630 $as_echo 'ffreep %st(1)' > conftest.s
24631 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24633 (eval $ac_try) 2>&5
24635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24636 test $ac_status = 0; }; }
24638 gcc_cv_as_ix86_ffreep
=yes
24640 echo "configure: failed program was" >&5
24643 rm -f conftest.o conftest.s
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24647 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24648 if test $gcc_cv_as_ix86_ffreep = yes; then
24650 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24655 $as_echo_n "checking assembler for .quad directive... " >&6; }
24656 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24657 $as_echo_n "(cached) " >&6
24659 gcc_cv_as_ix86_quad
=no
24660 if test x
$gcc_cv_as != x
; then
24661 $as_echo '.quad 0' > conftest.s
24662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; }
24669 gcc_cv_as_ix86_quad
=yes
24671 echo "configure: failed program was" >&5
24674 rm -f conftest.o conftest.s
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24678 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24679 if test $gcc_cv_as_ix86_quad = yes; then
24681 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24686 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24687 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24688 $as_echo_n "(cached) " >&6
24690 gcc_cv_as_ix86_sahf
=no
24691 if test x
$gcc_cv_as != x
; then
24694 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24696 (eval $ac_try) 2>&5
24698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24699 test $ac_status = 0; }; }
24701 gcc_cv_as_ix86_sahf
=yes
24703 echo "configure: failed program was" >&5
24706 rm -f conftest.o conftest.s
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24710 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24711 if test $gcc_cv_as_ix86_sahf = yes; then
24713 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24718 $as_echo_n "checking assembler for swap suffix... " >&6; }
24719 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
24722 gcc_cv_as_ix86_swap
=no
24723 if test x
$gcc_cv_as != x
; then
24724 $as_echo 'movl.s %esp, %ebp' > conftest.s
24725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727 (eval $ac_try) 2>&5
24729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730 test $ac_status = 0; }; }
24732 gcc_cv_as_ix86_swap
=yes
24734 echo "configure: failed program was" >&5
24737 rm -f conftest.o conftest.s
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24741 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24742 if test $gcc_cv_as_ix86_swap = yes; then
24744 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24749 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24750 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24751 $as_echo_n "(cached) " >&6
24753 gcc_cv_as_ix86_diff_sect_delta
=no
24754 if test x
$gcc_cv_as != x
; then
24755 $as_echo '.section .rodata
24761 .L2: nop' > conftest.s
24762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24769 gcc_cv_as_ix86_diff_sect_delta
=yes
24771 echo "configure: failed program was" >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24778 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24779 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24781 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24785 # These two are used unconditionally by i386.[ch]; it is to be defined
24786 # to 1 if the feature is present, 0 otherwise.
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24788 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24789 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24790 $as_echo_n "(cached) " >&6
24792 gcc_cv_as_ix86_gotoff_in_data
=no
24793 if test $in_tree_gas = yes; then
24794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24795 then gcc_cv_as_ix86_gotoff_in_data
=yes
24797 elif test x
$gcc_cv_as != x
; then
24802 .long .L0@GOTOFF' > conftest.s
24803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24805 (eval $ac_try) 2>&5
24807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; }
24810 gcc_cv_as_ix86_gotoff_in_data
=yes
24812 echo "configure: failed program was" >&5
24815 rm -f conftest.o conftest.s
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24819 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24822 cat >>confdefs.h
<<_ACEOF
24823 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24828 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24829 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24830 $as_echo_n "(cached) " >&6
24832 gcc_cv_as_ix86_rep_lock_prefix
=no
24833 if test x
$gcc_cv_as != x
; then
24834 $as_echo 'rep movsl
24835 lock addl %edi, (%eax,%esi)
24836 lock orl $0, (%esp)' > conftest.s
24837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24839 (eval $ac_try) 2>&5
24841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24842 test $ac_status = 0; }; }
24844 gcc_cv_as_ix86_rep_lock_prefix
=yes
24846 echo "configure: failed program was" >&5
24849 rm -f conftest.o conftest.s
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24853 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24854 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24856 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24861 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24862 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24863 $as_echo_n "(cached) " >&6
24865 gcc_cv_as_ix86_tlsgdplt
=no
24866 if test x
$gcc_cv_as != x
; then
24867 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24868 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24870 (eval $ac_try) 2>&5
24872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873 test $ac_status = 0; }; }
24875 if test x
$gcc_cv_ld != x \
24876 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24877 gcc_cv_as_ix86_tlsgdplt
=yes
24881 echo "configure: failed program was" >&5
24884 rm -f conftest.o conftest.s
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24888 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24889 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24891 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24896 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24897 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24898 $as_echo_n "(cached) " >&6
24900 gcc_cv_as_ix86_tlsldmplt
=no
24901 if test x
$gcc_cv_as != x
; then
24903 call tls_ld@tlsldmplt' > conftest.s
24904 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24906 (eval $ac_try) 2>&5
24908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24909 test $ac_status = 0; }; }
24911 if test x
$gcc_cv_ld != x \
24912 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24913 gcc_cv_as_ix86_tlsldmplt
=yes
24917 echo "configure: failed program was" >&5
24920 rm -f conftest.o conftest.s
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24924 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24925 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24927 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24935 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24936 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24937 $as_echo_n "(cached) " >&6
24939 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24940 if test $in_tree_gas = yes; then
24941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24942 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24944 elif test x
$gcc_cv_as != x
; then
24946 addl r15 = @ltoffx(x#), gp
24948 ld8.mov r16 = [r15], x#' > conftest.s
24949 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24951 (eval $ac_try) 2>&5
24953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24954 test $ac_status = 0; }; }
24956 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24958 echo "configure: failed program was" >&5
24961 rm -f conftest.o conftest.s
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24965 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24966 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24968 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24976 *-*-aix*) conftest_s
=' .machine "pwr5"
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24981 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24982 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24983 $as_echo_n "(cached) " >&6
24985 gcc_cv_as_machine_directive
=no
24986 if test x
$gcc_cv_as != x
; then
24987 $as_echo ' .machine ppc7400' > conftest.s
24988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }
24995 gcc_cv_as_machine_directive
=yes
24997 echo "configure: failed program was" >&5
25000 rm -f conftest.o conftest.s
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25004 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25006 if test x
$gcc_cv_as_machine_directive != xyes
; then
25007 echo "*** This target requires an assembler supporting \".machine\"" >&2
25008 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25009 test x
$build = x
$target && exit 1
25013 *) conftest_s
=' .machine power4
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25019 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25020 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25021 $as_echo_n "(cached) " >&6
25023 gcc_cv_as_powerpc_mfcrf
=no
25024 if test $in_tree_gas = yes; then
25025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25026 then gcc_cv_as_powerpc_mfcrf
=yes
25028 elif test x
$gcc_cv_as != x
; then
25029 $as_echo "$conftest_s" > conftest.s
25030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25032 (eval $ac_try) 2>&5
25034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25035 test $ac_status = 0; }; }
25037 gcc_cv_as_powerpc_mfcrf
=yes
25039 echo "configure: failed program was" >&5
25042 rm -f conftest.o conftest.s
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25046 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25047 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25049 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25054 *-*-aix*) conftest_s
=' .machine "pwr5"
25057 *) conftest_s
=' .machine power5
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25063 $as_echo_n "checking assembler for popcntb support... " >&6; }
25064 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25065 $as_echo_n "(cached) " >&6
25067 gcc_cv_as_powerpc_popcntb
=no
25068 if test $in_tree_gas = yes; then
25069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25070 then gcc_cv_as_powerpc_popcntb
=yes
25072 elif test x
$gcc_cv_as != x
; then
25073 $as_echo "$conftest_s" > conftest.s
25074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25081 gcc_cv_as_powerpc_popcntb
=yes
25083 echo "configure: failed program was" >&5
25086 rm -f conftest.o conftest.s
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25090 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25091 if test $gcc_cv_as_powerpc_popcntb = yes; then
25093 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25098 *-*-aix*) conftest_s
=' .machine "pwr5x"
25101 *) conftest_s
=' .machine power5
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25107 $as_echo_n "checking assembler for fp round support... " >&6; }
25108 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25109 $as_echo_n "(cached) " >&6
25111 gcc_cv_as_powerpc_fprnd
=no
25112 if test $in_tree_gas = yes; then
25113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25114 then gcc_cv_as_powerpc_fprnd
=yes
25116 elif test x
$gcc_cv_as != x
; then
25117 $as_echo "$conftest_s" > conftest.s
25118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120 (eval $ac_try) 2>&5
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; }; }
25125 gcc_cv_as_powerpc_fprnd
=yes
25127 echo "configure: failed program was" >&5
25130 rm -f conftest.o conftest.s
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25134 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25135 if test $gcc_cv_as_powerpc_fprnd = yes; then
25137 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25142 *-*-aix*) conftest_s
=' .machine "pwr6"
25145 *) conftest_s
=' .machine power6
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25151 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25152 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25153 $as_echo_n "(cached) " >&6
25155 gcc_cv_as_powerpc_mfpgpr
=no
25156 if test $in_tree_gas = yes; then
25157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25158 then gcc_cv_as_powerpc_mfpgpr
=yes
25160 elif test x
$gcc_cv_as != x
; then
25161 $as_echo "$conftest_s" > conftest.s
25162 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164 (eval $ac_try) 2>&5
25166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167 test $ac_status = 0; }; }
25169 gcc_cv_as_powerpc_mfpgpr
=yes
25171 echo "configure: failed program was" >&5
25174 rm -f conftest.o conftest.s
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25178 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25179 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25181 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25186 *-*-aix*) conftest_s
=' .csect .text[PR]
25188 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25192 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25193 *) conftest_s
=' .text
25195 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25199 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25200 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25201 $as_echo_n "(cached) " >&6
25203 gcc_cv_as_powerpc_rel16
=no
25204 if test $in_tree_gas = yes; then
25205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25206 then gcc_cv_as_powerpc_rel16
=yes
25208 elif test x
$gcc_cv_as != x
; then
25209 $as_echo "$conftest_s" > conftest.s
25210 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25212 (eval $ac_try) 2>&5
25214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25215 test $ac_status = 0; }; }
25217 gcc_cv_as_powerpc_rel16
=yes
25219 echo "configure: failed program was" >&5
25222 rm -f conftest.o conftest.s
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25226 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25227 if test $gcc_cv_as_powerpc_rel16 = yes; then
25229 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25234 *-*-aix*) conftest_s
=' .machine "pwr6"
25237 *) conftest_s
=' .machine power6
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25243 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25244 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25247 gcc_cv_as_powerpc_cmpb
=no
25248 if test $in_tree_gas = yes; then
25249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25250 then gcc_cv_as_powerpc_cmpb
=yes
25252 elif test x
$gcc_cv_as != x
; then
25253 $as_echo "$conftest_s" > conftest.s
25254 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256 (eval $ac_try) 2>&5
25258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259 test $ac_status = 0; }; }
25261 gcc_cv_as_powerpc_cmpb
=yes
25263 echo "configure: failed program was" >&5
25266 rm -f conftest.o conftest.s
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25270 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25271 if test $gcc_cv_as_powerpc_cmpb = yes; then
25273 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25278 *-*-aix*) conftest_s
=' .machine "pwr6"
25281 *) conftest_s
=' .machine power6
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25287 $as_echo_n "checking assembler for decimal float support... " >&6; }
25288 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25289 $as_echo_n "(cached) " >&6
25291 gcc_cv_as_powerpc_dfp
=no
25292 if test $in_tree_gas = yes; then
25293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25294 then gcc_cv_as_powerpc_dfp
=yes
25296 elif test x
$gcc_cv_as != x
; then
25297 $as_echo "$conftest_s" > conftest.s
25298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25305 gcc_cv_as_powerpc_dfp
=yes
25307 echo "configure: failed program was" >&5
25310 rm -f conftest.o conftest.s
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25314 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25315 if test $gcc_cv_as_powerpc_dfp = yes; then
25317 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25322 *-*-aix*) conftest_s
=' .machine "pwr7"
25325 *) conftest_s
=' .machine power7
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25331 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25332 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25333 $as_echo_n "(cached) " >&6
25335 gcc_cv_as_powerpc_vsx
=no
25336 if test $in_tree_gas = yes; then
25337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25338 then gcc_cv_as_powerpc_vsx
=yes
25340 elif test x
$gcc_cv_as != x
; then
25341 $as_echo "$conftest_s" > conftest.s
25342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25344 (eval $ac_try) 2>&5
25346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25347 test $ac_status = 0; }; }
25349 gcc_cv_as_powerpc_vsx
=yes
25351 echo "configure: failed program was" >&5
25354 rm -f conftest.o conftest.s
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25358 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25359 if test $gcc_cv_as_powerpc_vsx = yes; then
25361 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25366 *-*-aix*) conftest_s
=' .machine "pwr7"
25369 *) conftest_s
=' .machine power7
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25375 $as_echo_n "checking assembler for popcntd support... " >&6; }
25376 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25377 $as_echo_n "(cached) " >&6
25379 gcc_cv_as_powerpc_popcntd
=no
25380 if test $in_tree_gas = yes; then
25381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25382 then gcc_cv_as_powerpc_popcntd
=yes
25384 elif test x
$gcc_cv_as != x
; then
25385 $as_echo "$conftest_s" > conftest.s
25386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25388 (eval $ac_try) 2>&5
25390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25391 test $ac_status = 0; }; }
25393 gcc_cv_as_powerpc_popcntd
=yes
25395 echo "configure: failed program was" >&5
25398 rm -f conftest.o conftest.s
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25402 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25403 if test $gcc_cv_as_powerpc_popcntd = yes; then
25405 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25410 *-*-aix*) conftest_s
=' .csect .text[PR]
25412 *) conftest_s
=' .text
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25417 $as_echo_n "checking assembler for lwsync support... " >&6; }
25418 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25419 $as_echo_n "(cached) " >&6
25421 gcc_cv_as_powerpc_lwsync
=no
25422 if test $in_tree_gas = yes; then
25423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25424 then gcc_cv_as_powerpc_lwsync
=yes
25426 elif test x
$gcc_cv_as != x
; then
25427 $as_echo "$conftest_s" > conftest.s
25428 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25430 (eval $ac_try) 2>&5
25432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25433 test $ac_status = 0; }; }
25435 gcc_cv_as_powerpc_lwsync
=yes
25437 echo "configure: failed program was" >&5
25440 rm -f conftest.o conftest.s
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25444 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25445 if test $gcc_cv_as_powerpc_lwsync = yes; then
25447 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25452 *-*-aix*) conftest_s
=' .machine "476"
25455 *) conftest_s
=' .machine "476"
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25461 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25462 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25465 gcc_cv_as_powerpc_dci
=no
25466 if test $in_tree_gas = yes; then
25467 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25468 then gcc_cv_as_powerpc_dci
=yes
25470 elif test x
$gcc_cv_as != x
; then
25471 $as_echo "$conftest_s" > conftest.s
25472 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25479 gcc_cv_as_powerpc_dci
=yes
25481 echo "configure: failed program was" >&5
25484 rm -f conftest.o conftest.s
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25488 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25489 if test $gcc_cv_as_powerpc_dci = yes; then
25491 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25496 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25497 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25498 $as_echo_n "(cached) " >&6
25500 gcc_cv_as_powerpc_gnu_attribute
=no
25501 if test $in_tree_gas = yes; then
25502 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25503 then gcc_cv_as_powerpc_gnu_attribute
=yes
25505 elif test x
$gcc_cv_as != x
; then
25506 $as_echo '.gnu_attribute 4,1' > conftest.s
25507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25509 (eval $ac_try) 2>&5
25511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25512 test $ac_status = 0; }; }
25514 gcc_cv_as_powerpc_gnu_attribute
=yes
25516 echo "configure: failed program was" >&5
25519 rm -f conftest.o conftest.s
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25523 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25524 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25526 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25531 $as_echo_n "checking assembler for tls marker support... " >&6; }
25532 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25533 $as_echo_n "(cached) " >&6
25535 gcc_cv_as_powerpc_tls_markers
=no
25536 if test $in_tree_gas = yes; then
25537 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25538 then gcc_cv_as_powerpc_tls_markers
=yes
25540 elif test x
$gcc_cv_as != x
; then
25541 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25542 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25544 (eval $ac_try) 2>&5
25546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25547 test $ac_status = 0; }; }
25549 gcc_cv_as_powerpc_tls_markers
=yes
25551 echo "configure: failed program was" >&5
25554 rm -f conftest.o conftest.s
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25558 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25559 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25561 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25568 $as_echo_n "checking assembler for .ref support... " >&6; }
25569 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25570 $as_echo_n "(cached) " >&6
25572 gcc_cv_as_aix_ref
=no
25573 if test $in_tree_gas = yes; then
25574 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25577 elif test x
$gcc_cv_as != x
; then
25578 $as_echo ' .csect stuff[rw]
25584 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25586 (eval $ac_try) 2>&5
25588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25589 test $ac_status = 0; }; }
25591 gcc_cv_as_aix_ref
=yes
25593 echo "configure: failed program was" >&5
25596 rm -f conftest.o conftest.s
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25600 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25601 if test $gcc_cv_as_aix_ref = yes; then
25603 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25612 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25613 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25614 $as_echo_n "(cached) " >&6
25616 gcc_cv_as_mips_explicit_relocs
=no
25617 if test $in_tree_gas = yes; then
25618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25619 then gcc_cv_as_mips_explicit_relocs
=yes
25621 elif test x
$gcc_cv_as != x
; then
25622 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25623 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_mips_explicit_relocs
=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_mips_explicit_relocs" >&5
25639 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25640 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25641 if test x
$target_cpu_default = x
25642 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25643 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25647 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25648 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25649 $as_echo_n "(cached) " >&6
25651 gcc_cv_as_mips_no_shared
=no
25652 if test $in_tree_gas = yes; then
25653 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25654 then gcc_cv_as_mips_no_shared
=yes
25656 elif test x
$gcc_cv_as != x
; then
25657 $as_echo 'nop' > conftest.s
25658 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25660 (eval $ac_try) 2>&5
25662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25663 test $ac_status = 0; }; }
25665 gcc_cv_as_mips_no_shared
=yes
25667 echo "configure: failed program was" >&5
25670 rm -f conftest.o conftest.s
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25674 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25675 if test $gcc_cv_as_mips_no_shared = yes; then
25677 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25682 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25683 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25684 $as_echo_n "(cached) " >&6
25686 gcc_cv_as_mips_gnu_attribute
=no
25687 if test $in_tree_gas = yes; then
25688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25689 then gcc_cv_as_mips_gnu_attribute
=yes
25691 elif test x
$gcc_cv_as != x
; then
25692 $as_echo '.gnu_attribute 4,1' > conftest.s
25693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25695 (eval $ac_try) 2>&5
25697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25698 test $ac_status = 0; }; }
25700 gcc_cv_as_mips_gnu_attribute
=yes
25702 echo "configure: failed program was" >&5
25705 rm -f conftest.o conftest.s
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25709 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25710 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25712 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25717 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25718 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25719 $as_echo_n "(cached) " >&6
25721 gcc_cv_as_mips_dtprelword
=no
25722 if test $in_tree_gas = yes; then
25723 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25724 then gcc_cv_as_mips_dtprelword
=yes
25726 elif test x
$gcc_cv_as != x
; then
25727 $as_echo '.section .tdata,"awT",@progbits
25731 .dtprelword x+0x8000' > conftest.s
25732 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25734 (eval $ac_try) 2>&5
25736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25737 test $ac_status = 0; }; }
25739 gcc_cv_as_mips_dtprelword
=yes
25741 echo "configure: failed program was" >&5
25744 rm -f conftest.o conftest.s
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25748 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25749 if test $gcc_cv_as_mips_dtprelword = yes; then
25751 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25756 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25757 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25758 $as_echo_n "(cached) " >&6
25760 gcc_cv_as_mips_dspr1_mult
=no
25761 if test x
$gcc_cv_as != x
; then
25762 $as_echo ' .set mips32r2
25770 multu $ac3,$4,$5' > conftest.s
25771 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25773 (eval $ac_try) 2>&5
25775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25776 test $ac_status = 0; }; }
25778 gcc_cv_as_mips_dspr1_mult
=yes
25780 echo "configure: failed program was" >&5
25783 rm -f conftest.o conftest.s
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25787 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25788 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25790 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25795 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25796 gcc_cv_as_ld_jalr_reloc
=no
25797 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25798 if test $in_tree_ld = yes ; then
25799 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 \
25800 && test $in_tree_ld_is_elf = yes; then
25801 gcc_cv_as_ld_jalr_reloc
=yes
25803 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25804 echo ' .ent x' > conftest.s
25805 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25806 echo ' ld $25,%call16(y)($28)' >> conftest.s
25807 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25808 echo '1: jalr $25' >> conftest.s
25809 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25810 echo '1: jalr $25' >> conftest.s
25811 echo ' .end x' >> conftest.s
25812 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25813 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25814 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25815 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25816 gcc_cv_as_ld_jalr_reloc
=yes
25822 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25823 if test x
$target_cpu_default = x
; then
25824 target_cpu_default
=MASK_RELAX_PIC_CALLS
25826 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25830 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25833 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25834 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25835 $as_echo_n "(cached) " >&6
25837 gcc_cv_ld_mips_personality_relaxation
=no
25838 if test $in_tree_ld = yes ; then
25839 if test "$gcc_cv_gld_major_version" -eq 2 \
25840 -a "$gcc_cv_gld_minor_version" -ge 21 \
25841 -o "$gcc_cv_gld_major_version" -gt 2; then
25842 gcc_cv_ld_mips_personality_relaxation
=yes
25844 elif test x
$gcc_cv_as != x \
25845 -a x
$gcc_cv_ld != x \
25846 -a x
$gcc_cv_readelf != x
; then
25847 cat > conftest.s
<<EOF
25849 .cfi_personality 0x80,indirect_ptr
25856 .section .data,"aw",@progbits
25860 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25861 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25862 if $gcc_cv_readelf -d conftest
2>&1 \
25863 |
grep TEXTREL
> /dev
/null
2>&1; then
25865 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25866 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25869 gcc_cv_ld_mips_personality_relaxation
=yes
25873 rm -f conftest.s conftest.o conftest
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25876 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25877 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25879 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25885 # Mips and HP-UX need the GNU assembler.
25886 # Linux on IA64 might be able to use the Intel assembler.
25889 mips
*-*-* |
*-*-hpux* )
25890 if test x
$gas_flag = xyes \
25891 ||
test x
"$host" != x
"$build" \
25892 ||
test ! -x "$gcc_cv_as" \
25893 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25896 echo "*** This configuration requires the GNU assembler" >&2
25902 # ??? Not all targets support dwarf2 debug_line, even within a version
25903 # of gas. Moreover, we need to emit a valid instruction to trigger any
25904 # info to the output file. So, as supported targets are added to gas 2.11,
25905 # add some instruction here to (also) show we expect this might work.
25906 # ??? Once 2.11 is released, probably need to add first known working
25907 # version to the per-target configury.
25908 case "$cpu_type" in
25909 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25910 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa
)
25920 if test x
"$insn" != x
; then
25922 .file 1 \"conftest.s\"
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25926 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25927 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25928 $as_echo_n "(cached) " >&6
25930 gcc_cv_as_dwarf2_debug_line
=no
25931 if test $in_tree_gas = yes; then
25932 if test $in_tree_gas_is_elf = yes \
25933 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25934 then gcc_cv_as_dwarf2_debug_line
=yes
25936 elif test x
$gcc_cv_as != x
; then
25937 $as_echo "$conftest_s" > conftest.s
25938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25945 if test x
$gcc_cv_objdump != x \
25946 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25947 |
grep debug_line
> /dev
/null
2>&1; then
25948 gcc_cv_as_dwarf2_debug_line
=yes
25951 echo "configure: failed program was" >&5
25954 rm -f conftest.o conftest.s
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25958 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25961 # The .debug_line file table must be in the exact order that
25962 # we specified the files, since these indices are also used
25963 # by DW_AT_decl_file. Approximate this test by testing if
25964 # the assembler bitches if the same index is assigned twice.
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25966 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25967 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25968 $as_echo_n "(cached) " >&6
25970 gcc_cv_as_dwarf2_file_buggy
=no
25971 if test x
$gcc_cv_as != x
; then
25972 $as_echo ' .file 1 "foo.s"
25973 .file 1 "bar.s"' > conftest.s
25974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25976 (eval $ac_try) 2>&5
25978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25979 test $ac_status = 0; }; }
25981 gcc_cv_as_dwarf2_file_buggy
=yes
25983 echo "configure: failed program was" >&5
25986 rm -f conftest.o conftest.s
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25990 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25993 if test $gcc_cv_as_dwarf2_debug_line = yes \
25994 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25996 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26001 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26002 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26003 $as_echo_n "(cached) " >&6
26005 gcc_cv_as_gdwarf2_flag
=no
26006 if test $in_tree_gas = yes; then
26007 if test $in_tree_gas_is_elf = yes \
26008 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26009 then gcc_cv_as_gdwarf2_flag
=yes
26011 elif test x
$gcc_cv_as != x
; then
26012 $as_echo "$insn" > conftest.s
26013 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26015 (eval $ac_try) 2>&5
26017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26018 test $ac_status = 0; }; }
26020 gcc_cv_as_gdwarf2_flag
=yes
26022 echo "configure: failed program was" >&5
26025 rm -f conftest.o conftest.s
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26029 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26030 if test $gcc_cv_as_gdwarf2_flag = yes; then
26032 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26037 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26038 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26039 $as_echo_n "(cached) " >&6
26041 gcc_cv_as_gstabs_flag
=no
26042 if test $in_tree_gas = yes; then
26043 if test $in_tree_gas_is_elf = yes \
26044 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26045 then gcc_cv_as_gstabs_flag
=yes
26047 elif test x
$gcc_cv_as != x
; then
26048 $as_echo "$insn" > conftest.s
26049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26051 (eval $ac_try) 2>&5
26053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26054 test $ac_status = 0; }; }
26056 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26057 # and warns about it, but still exits successfully. So check for
26059 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }
26066 else gcc_cv_as_gstabs_flag
=yes
26069 echo "configure: failed program was" >&5
26072 rm -f conftest.o conftest.s
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26076 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26077 if test $gcc_cv_as_gstabs_flag = yes; then
26079 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26084 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26085 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26086 $as_echo_n "(cached) " >&6
26088 gcc_cv_as_debug_prefix_map_flag
=no
26089 if test $in_tree_gas = yes; then
26090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26091 then gcc_cv_as_debug_prefix_map_flag
=yes
26093 elif test x
$gcc_cv_as != x
; then
26094 $as_echo "$insn" > conftest.s
26095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26097 (eval $ac_try) 2>&5
26099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26100 test $ac_status = 0; }; }
26102 gcc_cv_as_debug_prefix_map_flag
=yes
26104 echo "configure: failed program was" >&5
26107 rm -f conftest.o conftest.s
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26111 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26112 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26114 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26120 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26121 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26122 $as_echo_n "(cached) " >&6
26124 gcc_cv_as_lcomm_with_alignment
=no
26125 if test x
$gcc_cv_as != x
; then
26126 $as_echo '.lcomm bar,4,16' > conftest.s
26127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }
26134 gcc_cv_as_lcomm_with_alignment
=yes
26136 echo "configure: failed program was" >&5
26139 rm -f conftest.o conftest.s
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26143 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26144 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26146 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26150 # Check whether --enable-gnu-unique-object was given.
26151 if test "${enable_gnu_unique_object+set}" = set; then :
26152 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26154 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26155 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26159 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26160 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26161 $as_echo_n "(cached) " >&6
26163 gcc_cv_as_gnu_unique_object
=no
26164 if test $in_tree_gas = yes; then
26165 if test $in_tree_gas_is_elf = yes \
26166 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26167 then gcc_cv_as_gnu_unique_object
=yes
26169 elif test x
$gcc_cv_as != x
; then
26170 $as_echo '.type foo, @gnu_unique_object' > conftest.s
26171 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26173 (eval $ac_try) 2>&5
26175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26176 test $ac_status = 0; }; }
26178 gcc_cv_as_gnu_unique_object
=yes
26180 echo "configure: failed program was" >&5
26183 rm -f conftest.o conftest.s
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26187 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26188 if test $gcc_cv_as_gnu_unique_object = yes; then
26189 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26190 if test x
$host = x
$build -a x
$host = x
$target &&
26191 ldd
--version 2>/dev
/null
&&
26192 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26193 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26194 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26195 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26196 if test "$glibcnum" -ge 2011 ; then
26197 enable_gnu_unique_object
=yes
26203 if test x
$enable_gnu_unique_object = xyes
; then
26205 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26210 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26211 if test "${gcc_cv_as_line_zero+set}" = set; then :
26212 $as_echo_n "(cached) " >&6
26214 gcc_cv_as_line_zero
=no
26215 if test $in_tree_gas = yes; then
26216 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26217 then gcc_cv_as_line_zero
=yes
26219 elif test "x$gcc_cv_as" != x
; then
26220 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26221 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26223 (eval $ac_try) 2>&5
26225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26226 test $ac_status = 0; }; } &&
26227 test "x`cat conftest.out`" = x
26229 gcc_cv_as_line_zero
=yes
26231 echo "configure: failed program was" >&5
26233 echo "configure: error output was" >&5
26234 cat conftest.out
>&5
26236 rm -f conftest.o conftest.s conftest.out
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26240 $as_echo "$gcc_cv_as_line_zero" >&6; }
26241 if test "x$gcc_cv_as_line_zero" = xyes
; then
26243 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26248 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26249 gcc_cv_ld_eh_frame_hdr
=no
26250 if test $in_tree_ld = yes ; then
26251 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 \
26252 && test $in_tree_ld_is_elf = yes; then
26253 gcc_cv_ld_eh_frame_hdr
=yes
26255 elif test x
$gcc_cv_ld != x
; then
26256 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26257 # Check if linker supports --eh-frame-hdr option
26258 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26259 gcc_cv_ld_eh_frame_hdr
=yes
26264 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26265 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26266 gcc_cv_ld_eh_frame_hdr
=yes
26273 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26275 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26279 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26282 $as_echo_n "checking linker position independent executable support... " >&6; }
26284 if test $in_tree_ld = yes ; then
26285 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 \
26286 && test $in_tree_ld_is_elf = yes; then
26289 elif test x
$gcc_cv_ld != x
; then
26290 # Check if linker supports -pie option
26291 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26295 if test x
"$gcc_cv_ld_pie" = xyes
; then
26297 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26301 $as_echo "$gcc_cv_ld_pie" >&6; }
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26304 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26305 gcc_cv_ld_eh_gc_sections
=no
26306 if test $in_tree_ld = yes ; then
26307 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 \
26308 && test $in_tree_ld_is_elf = yes; then
26309 gcc_cv_ld_eh_gc_sections
=yes
26311 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26312 cat > conftest.s
<<EOF
26315 .type _start, @function
26318 .size _start, .-_start
26319 .section .text.foo,"ax",@progbits
26320 .type foo, @function
26324 .section .gcc_except_table.foo,"a",@progbits
26327 .section .eh_frame,"a",@progbits
26330 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26331 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26332 |
grep "gc-sections option ignored" > /dev
/null
; then
26333 gcc_cv_ld_eh_gc_sections
=no
26334 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26335 |
grep gcc_except_table
> /dev
/null
; then
26336 gcc_cv_ld_eh_gc_sections
=yes
26337 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26338 if test x
$gcc_cv_as_comdat_group != xyes
; then
26339 gcc_cv_ld_eh_gc_sections
=no
26340 cat > conftest.s
<<EOF
26343 .type _start, @function
26346 .size _start, .-_start
26347 .section .gnu.linkonce.t.foo,"ax",@progbits
26348 .type foo, @function
26352 .section .gcc_except_table.foo,"a",@progbits
26355 .section .eh_frame,"a",@progbits
26358 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26359 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26360 |
grep "gc-sections option ignored" > /dev
/null
; then
26361 gcc_cv_ld_eh_gc_sections
=no
26362 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26363 |
grep gcc_except_table
> /dev
/null
; then
26364 gcc_cv_ld_eh_gc_sections
=yes
26370 rm -f conftest.s conftest.o conftest
26374 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26375 gcc_cv_ld_eh_gc_sections
=no
26378 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26380 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26384 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26387 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26388 gcc_cv_ld_eh_gc_sections_bug
=no
26389 if test $in_tree_ld = yes ; then
26390 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 \
26391 && test $in_tree_ld_is_elf = yes; then
26392 gcc_cv_ld_eh_gc_sections_bug
=yes
26394 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
26395 gcc_cv_ld_eh_gc_sections_bug
=yes
26396 cat > conftest.s
<<EOF
26399 .type _start, @function
26402 .size _start, .-_start
26403 .section .text.startup.foo,"ax",@progbits
26404 .type foo, @function
26408 .section .gcc_except_table.foo,"a",@progbits
26411 .section .eh_frame,"a",@progbits
26414 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26415 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26416 |
grep "gc-sections option ignored" > /dev
/null
; then
26418 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26419 |
grep gcc_except_table
> /dev
/null
; then
26420 gcc_cv_ld_eh_gc_sections_bug
=no
26423 rm -f conftest.s conftest.o conftest
26425 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26427 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26431 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26438 $as_echo_n "checking linker --as-needed support... " >&6; }
26439 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26440 $as_echo_n "(cached) " >&6
26442 gcc_cv_ld_as_needed
=no
26443 if test $in_tree_ld = yes ; then
26444 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 \
26445 && test $in_tree_ld_is_elf = yes; then
26446 gcc_cv_ld_as_needed
=yes
26448 elif test x
$gcc_cv_ld != x
; then
26449 # Check if linker supports --as-needed and --no-as-needed options
26450 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26451 gcc_cv_ld_as_needed
=yes
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26457 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26458 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26460 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26464 case "$target:$tm_file" in
26465 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26467 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26468 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26469 $as_echo_n "(cached) " >&6
26471 gcc_cv_ld_no_dot_syms
=no
26472 if test $in_tree_ld = yes ; then
26473 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
26474 gcc_cv_ld_no_dot_syms
=yes
26476 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26477 cat > conftest1.s
<<EOF
26481 cat > conftest2.s
<<EOF
26482 .section ".opd","aw"
26485 .type foo,@function
26487 .quad .LEfoo,.TOC.@tocbase,0
26493 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26494 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26495 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26496 gcc_cv_ld_no_dot_syms
=yes
26498 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26503 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26504 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26506 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26511 $as_echo_n "checking linker large toc support... " >&6; }
26512 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26513 $as_echo_n "(cached) " >&6
26515 gcc_cv_ld_large_toc
=no
26516 if test $in_tree_ld = yes ; then
26517 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
26518 gcc_cv_ld_large_toc
=yes
26520 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26521 cat > conftest.s
<<EOF
26522 .section ".tbss","awT",@nobits
26528 addis 9,13,ie0@got@tprel@ha
26529 ld 9,ie0@got@tprel@l(9)
26531 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26532 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26533 gcc_cv_ld_large_toc
=yes
26535 rm -f conftest conftest.o conftest.s
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26540 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26541 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26543 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26550 $as_echo_n "checking linker --build-id support... " >&6; }
26551 if test "${gcc_cv_ld_buildid+set}" = set; then :
26552 $as_echo_n "(cached) " >&6
26554 gcc_cv_ld_buildid
=no
26555 if test $in_tree_ld = yes ; then
26556 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26557 "$gcc_cv_gld_minor_version" -ge 18 -o \
26558 "$gcc_cv_gld_major_version" -gt 2 \
26559 && test $in_tree_ld_is_elf = yes; then
26560 gcc_cv_ld_buildid
=yes
26562 elif test x
$gcc_cv_ld != x
; then
26563 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26564 gcc_cv_ld_buildid
=yes
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26569 $as_echo "$gcc_cv_ld_buildid" >&6; }
26570 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26572 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26576 # Check whether --enable-linker-build-id was given.
26577 if test "${enable_linker_build_id+set}" = set; then :
26578 enableval
=$enable_linker_build_id;
26580 enable_linker_build_id
=no
26584 if test x
"$enable_linker_build_id" = xyes
; then
26585 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26587 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26591 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26595 # In binutils 2.21, GNU ld gained support for new emulations fully
26596 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26598 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26599 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26600 $as_echo_n "(cached) " >&6
26602 gcc_cv_ld_sol2_emulation
=no
26603 if test $in_tree_ld = yes ; then
26604 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26605 "$gcc_cv_gld_minor_version" -ge 21 -o \
26606 "$gcc_cv_gld_major_version" -gt 2 \
26607 && test $in_tree_ld_is_elf = yes; then
26608 gcc_cv_ld_sol2_emulation
=yes
26610 elif test x
$gcc_cv_ld != x
; then
26611 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26612 grep _sol2
> /dev
/null
; then
26613 gcc_cv_ld_sol2_emulation
=yes
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26618 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26619 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26621 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26626 $as_echo_n "checking linker --sysroot support... " >&6; }
26627 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26628 $as_echo_n "(cached) " >&6
26630 gcc_cv_ld_sysroot
=no
26631 if test $in_tree_ld = yes ; then
26632 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
26633 gcc_cv_ld_sysroot
=yes
26635 elif test x
$gcc_cv_ld != x
; then
26636 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26637 gcc_cv_ld_sysroot
=yes
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26642 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26643 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26645 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26649 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26650 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26651 && test "$prefix" != "NONE"; then
26653 cat >>confdefs.h
<<_ACEOF
26654 #define PREFIX_INCLUDE_DIR "$prefix/include"
26659 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26660 if test "x$with_headers" != x
; then
26661 target_header_dir
=$with_headers
26662 elif test "x$with_sysroot" = x
; then
26663 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26664 elif test "x$with_build_sysroot" != "x"; then
26665 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26666 elif test "x$with_sysroot" = xyes
; then
26667 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26669 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26672 target_header_dir
=${native_system_header_dir}
26675 # Test for stack protector support in target C library.
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26677 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26678 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26679 $as_echo_n "(cached) " >&6
26681 gcc_cv_libc_provides_ssp
=no
26683 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26684 # glibc 2.4 and later provides __stack_chk_fail and
26685 # either __stack_chk_guard, or TLS access to stack guard canary.
26686 if test -f $target_header_dir/features.h \
26687 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26688 $target_header_dir/features.h
> /dev
/null
; then
26689 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26690 $target_header_dir/features.h
> /dev
/null
; then
26691 gcc_cv_libc_provides_ssp
=yes
26692 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26693 $target_header_dir/features.h
> /dev
/null \
26694 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26695 $target_header_dir/features.h
> /dev
/null
; then
26696 gcc_cv_libc_provides_ssp
=yes
26697 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26698 $target_header_dir/features.h
> /dev
/null
&& \
26699 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26700 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26701 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26702 gcc_cv_libc_provides_ssp
=yes
26707 # Avoid complicated tests (see
26708 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26709 # simply assert that glibc does provide this, which is true for all
26710 # realistically usable GNU/Hurd configurations.
26711 gcc_cv_libc_provides_ssp
=yes;;
26712 *-*-darwin* |
*-*-freebsd*)
26713 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26714 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26715 gcc_cv_libc_provides_ssp
=yes
26717 echo "no __stack_chk_fail on this target"
26721 *) gcc_cv_libc_provides_ssp
=no
;;
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26725 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26727 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26729 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26733 # Test for <sys/sdt.h> on the target.
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26736 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26738 if test -f $target_header_dir/sys
/sdt.h
; then
26741 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26745 $as_echo "$have_sys_sdt_h" >&6; }
26747 # Check if TFmode long double should be used by default or not.
26748 # Some glibc targets used DFmode long double, but with glibc 2.4
26749 # and later they can use TFmode.
26751 powerpc
*-*-linux* | \
26752 sparc
*-*-linux* | \
26756 # Check whether --with-long-double-128 was given.
26757 if test "${with_long_double_128+set}" = set; then :
26758 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26760 gcc_cv_target_ldbl128
=no
26761 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26762 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26763 && gcc_cv_target_ldbl128
=yes
26769 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26771 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26776 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26777 gcc_cv_target_dl_iterate_phdr
=unknown
26779 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26780 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26781 # libdl there, both complicating its use and breaking compatibility
26782 # between Solaris 10 updates.
26783 *-*-solaris2.1
[1-9]*)
26784 # <link.h> needs both a dl_iterate_phdr declaration and support for
26785 # compilation with largefile support.
26786 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26787 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26788 gcc_cv_target_dl_iterate_phdr
=yes
26790 gcc_cv_target_dl_iterate_phdr
=no
26795 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26797 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26801 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26803 # Find out what GC implementation we want, or may, use.
26805 # Check whether --with-gc was given.
26806 if test "${with_gc+set}" = set; then :
26807 withval
=$with_gc; case "$withval" in
26814 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26818 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26826 echo "Using $GGC for garbage collection."
26828 # Libraries to use on the host. This will normally be set by the top
26829 # level Makefile. Here we simply capture the value for our Makefile.
26830 if test -z "${HOST_LIBS+set}"; then
26835 # Use the system's zlib library.
26837 zlibinc
="-I\$(srcdir)/../zlib"
26839 # Check whether --with-system-zlib was given.
26840 if test "${with_system_zlib+set}" = set; then :
26841 withval
=$with_system_zlib; zlibdir
=
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26851 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26852 # Check whether --enable-maintainer-mode was given.
26853 if test "${enable_maintainer_mode+set}" = set; then :
26854 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26861 $as_echo "$maintainer_mode" >&6; }
26863 if test "$maintainer_mode" = "yes"; then
26873 # Make empty files to contain the specs and options for each language.
26874 # Then add #include lines to for a compiler that has specs and/or options.
26880 # These (without "all_") are set in each config-lang.in.
26881 # `language' must be a single word so is spelled singularly.
26884 all_outputs
='Makefile'
26885 # List of language makefile fragments.
26886 all_lang_makefrags
=
26887 # Additional files for gengtype
26888 all_gtfiles
="$target_gtfiles"
26890 # These are the languages that are set in --enable-languages,
26891 # and are available in the GCC tree.
26892 all_selected_languages
=
26894 # Add the language fragments.
26895 # Languages are added via two mechanisms. Some information must be
26896 # recorded in makefile variables, these are defined in config-lang.in.
26897 # We accumulate them and plug them into the main Makefile.
26898 # The other mechanism is a set of hooks for each of the main targets
26899 # like `clean', `install', etc.
26901 language_hooks
="Make-hooks"
26903 for lang
in ${srcdir}/*/config-lang.
in
26905 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26907 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26908 if test "x$lang_alias" = x
26910 echo "$lang doesn't set \$language." 1>&2
26913 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26914 subdirs
="$subdirs $subdir"
26916 # $gcc_subdir is where the gcc integration files are to be found
26917 # for a language, both for internal compiler purposes (compiler
26918 # sources implementing front-end to GCC tree converters), and for
26919 # build infrastructure purposes (Make-lang.in, etc.)
26921 # This will be <subdir> (relative to $srcdir) if a line like
26922 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26923 # is found in <langdir>/config-lang.in, and will remain <langdir>
26926 # Except for the language alias (fetched above), the regular
26927 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26928 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26929 # only this and the language alias.
26931 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26932 if [ "$gcc_subdir" = "" ]; then
26933 gcc_subdir
="$subdir"
26936 case ",$enable_languages," in
26938 all_selected_languages
="$all_selected_languages $lang_alias"
26939 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26940 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26951 .
${srcdir}/$gcc_subdir/config-lang.
in
26952 if test "x$language" = x
26954 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26959 case ",$enable_languages," in
26960 *,$lang_alias,*) ;;
26962 for i
in $subdir_requires; do
26963 test -f "${srcdir}/$i/config-lang.in" && continue
26971 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26972 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26973 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26974 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26976 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26977 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26979 all_languages
="$all_languages $language"
26980 all_compilers
="$all_compilers $compilers"
26981 all_outputs
="$all_outputs $outputs"
26982 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26983 case ",$enable_languages," in
26986 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26995 # Pick up gtfiles for c
26997 .
${srcdir}/c-config-lang.
in
26998 all_gtfiles
="$all_gtfiles [c] $gtfiles"
27001 for language
in $all_selected_languages
27003 check_languages
="$check_languages check-$language"
27006 # We link each language in with a set of hooks, reached indirectly via
27007 # lang.${target}. Only do so for selected languages.
27011 target_list
="all.cross start.encap rest.encap tags \
27012 install-common install-man install-info install-pdf install-html dvi \
27013 pdf html uninstall info man srcextra srcman srcinfo \
27014 mostlyclean clean distclean maintainer-clean install-plugin"
27016 for t
in $target_list
27019 for lang
in $all_selected_languages
27023 echo "lang.$t: $x" >> Make-hooks
27027 # Option include files
27030 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27031 option_includes
="option-includes.mk"
27040 echo "dir ." > .gdbinit
27041 echo "dir ${srcdir}" >> .gdbinit
27042 if test x
$gdb_needs_out_file_path = xyes
27044 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27046 if test "x$subdirs" != x
; then
27049 echo "dir ${srcdir}/$s" >> .gdbinit
27052 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27054 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27058 # Find a directory in which to install a shared libgcc.
27060 # Check whether --enable-version-specific-runtime-libs was given.
27061 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27062 enableval
=$enable_version_specific_runtime_libs;
27066 # Substitute configuration variables
27130 if test x
${build} = x
${host} ; then
27131 if test x
${host} = x
${target} ; then
27132 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27134 echo "Links are now set up to build a cross-compiler" 1>&2
27135 echo " from ${host} to ${target}." 1>&2
27138 if test x
${host} = x
${target} ; then
27139 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27140 echo " for ${target}." 1>&2
27142 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27143 echo " from ${host} to ${target}." 1>&2
27155 if test "x${CLOOGLIBS}" != "x" ; then
27157 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27161 # Check for plugin support
27162 # Check whether --enable-plugin was given.
27163 if test "${enable_plugin+set}" = set; then :
27164 enableval
=$enable_plugin; enable_plugin
=$enableval
27166 enable_plugin
=yes; default_plugin
=yes
27174 if test x
$build = x
$host; then
27175 export_sym_check
="nm${exeext} -g"
27176 elif test x
$host = x
$target; then
27177 export_sym_check
="$gcc_cv_nm -g"
27183 if test x
$build = x
$host; then
27184 export_sym_check
="objdump${exeext} -T"
27185 elif test x
$host = x
$target; then
27186 export_sym_check
="$gcc_cv_objdump -T"
27193 if test x
"$enable_plugin" = x
"yes"; then
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27196 $as_echo_n "checking for exported symbols... " >&6; }
27197 if test "x$export_sym_check" != x
; then
27198 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27199 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
27200 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27201 : # No need to use a flag
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27203 $as_echo "yes" >&6; }
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27206 $as_echo "yes" >&6; }
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27208 $as_echo_n "checking for -rdynamic... " >&6; }
27209 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
27210 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
27211 plugin_rdynamic
=yes
27212 pluginlibs
="-rdynamic"
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27218 $as_echo "$plugin_rdynamic" >&6; }
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27222 $as_echo "unable to check" >&6; }
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27228 $as_echo_n "checking for library containing dlopen... " >&6; }
27229 if test "${ac_cv_search_dlopen+set}" = set; then :
27230 $as_echo_n "(cached) " >&6
27232 ac_func_search_save_LIBS
=$LIBS
27233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27234 /* end confdefs.h. */
27236 /* Override any GCC internal prototype to avoid an error.
27237 Use char because int might match the return type of a GCC
27238 builtin and then its argument prototype would still apply. */
27251 for ac_lib
in '' dl
; do
27252 if test -z "$ac_lib"; then
27253 ac_res
="none required"
27256 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27258 if ac_fn_c_try_link
"$LINENO"; then :
27259 ac_cv_search_dlopen
=$ac_res
27261 rm -f core conftest.err conftest.
$ac_objext \
27263 if test "${ac_cv_search_dlopen+set}" = set; then :
27267 if test "${ac_cv_search_dlopen+set}" = set; then :
27270 ac_cv_search_dlopen
=no
27272 rm conftest.
$ac_ext
27273 LIBS
=$ac_func_search_save_LIBS
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27276 $as_echo "$ac_cv_search_dlopen" >&6; }
27277 ac_res
=$ac_cv_search_dlopen
27278 if test "$ac_res" != no
; then :
27279 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27283 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27284 pluginlibs
="$pluginlibs -ldl"
27288 # Check that we can build shared objects with -fPIC -shared
27289 saved_LDFLAGS
="$LDFLAGS"
27290 saved_CFLAGS
="$CFLAGS"
27293 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27294 CFLAGS
="$CFLAGS -fPIC"
27295 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27298 CFLAGS
="$CFLAGS -fPIC"
27299 LDFLAGS
="$LDFLAGS -fPIC -shared"
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27303 $as_echo_n "checking for -fPIC -shared... " >&6; }
27304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27305 /* end confdefs.h. */
27315 if ac_fn_c_try_link
"$LINENO"; then :
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27317 $as_echo "yes" >&6; }; have_pic_shared
=yes
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27320 $as_echo "no" >&6; }; have_pic_shared
=no
27322 rm -f core conftest.err conftest.
$ac_objext \
27323 conftest
$ac_exeext conftest.
$ac_ext
27324 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27328 LDFLAGS
="$saved_LDFLAGS"
27329 CFLAGS
="$saved_CFLAGS"
27331 # If plugin support had been requested but not available, fail.
27332 if test x
"$enable_plugin" = x
"no" ; then
27333 if test x
"$default_plugin" != x
"yes"; then
27335 Building GCC with plugin support requires a host that supports
27336 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27343 if test x
"$enable_plugin" = x
"yes"; then
27345 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27350 # Check whether --enable-libquadmath-support was given.
27351 if test "${enable_libquadmath_support+set}" = set; then :
27352 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27354 ENABLE_LIBQUADMATH_SUPPORT
=yes
27357 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27359 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27364 # Specify what hash style to use by default.
27366 # Check whether --with-linker-hash-style was given.
27367 if test "${with_linker_hash_style+set}" = set; then :
27368 withval
=$with_linker_hash_style; case x
"$withval" in
27370 LINKER_HASH_STYLE
=sysv
27373 LINKER_HASH_STYLE
=gnu
27376 LINKER_HASH_STYLE
=both
27379 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27383 LINKER_HASH_STYLE
=''
27386 if test x
"${LINKER_HASH_STYLE}" != x
; then
27388 cat >>confdefs.h
<<_ACEOF
27389 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27394 # Configure the subdirectories
27395 # AC_CONFIG_SUBDIRS($subdirs)
27397 # Create the Makefile
27398 # and configure language subdirectories
27399 ac_config_files
="$ac_config_files $all_outputs"
27402 ac_config_commands
="$ac_config_commands default"
27404 cat >confcache
<<\_ACEOF
27405 # This file is a shell script that caches the results of configure
27406 # tests run on this system so they can be shared between configure
27407 # scripts and configure runs, see configure's option --config-cache.
27408 # It is not useful on other systems. If it contains results you don't
27409 # want to keep, you may remove or edit it.
27411 # config.status only pays attention to the cache file if you give it
27412 # the --recheck option to rerun configure.
27414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27416 # following values.
27420 # The following way of writing the cache mishandles newlines in values,
27421 # but we know of no workaround that is simple, portable, and efficient.
27422 # So, we kill variables containing newlines.
27423 # Ultrix sh set writes to stderr and can't be redirected directly,
27424 # and sets the high bit in the cache file unless we assign to the vars.
27426 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27427 eval ac_val
=\$
$ac_var
27431 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27432 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27435 _ | IFS | as_nl
) ;; #(
27436 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27437 *) { eval $ac_var=; unset $ac_var;} ;;
27443 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27444 *${as_nl}ac_space
=\
*)
27445 # `set' does not quote correctly, so add quotes: double-quote
27446 # substitution turns \\\\ into \\, and sed turns \\ into \.
27449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27452 # `set' quotes correctly as required by POSIX, so do not add quotes.
27453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27464 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27466 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27467 if test -w "$cache_file"; then
27468 test "x$cache_file" != "x/dev/null" &&
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27470 $as_echo "$as_me: updating cache $cache_file" >&6;}
27471 cat confcache
>$cache_file
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27474 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27479 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27480 # Let make expand exec_prefix.
27481 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27483 DEFS
=-DHAVE_CONFIG_H
27487 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27488 # 1. Remove the extension, and $U if already installed.
27489 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27490 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27491 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27492 # will be set to the directory where LIBOBJS objects are built.
27493 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27494 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27496 LIBOBJS
=$ac_libobjs
27498 LTLIBOBJS
=$ac_ltlibobjs
27503 : ${CONFIG_STATUS=./config.status}
27505 ac_clean_files_save
=$ac_clean_files
27506 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27508 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27510 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27512 # Generated by $as_me.
27513 # Run this file to recreate the current configuration.
27514 # Compiler output produced by configure, useful for debugging
27515 # configure, is in config.log if it exists.
27518 ac_cs_recheck=false
27521 SHELL=\${CONFIG_SHELL-$SHELL}
27524 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27525 ## -------------------- ##
27526 ## M4sh Initialization. ##
27527 ## -------------------- ##
27529 # Be more Bourne compatible
27530 DUALCASE
=1; export DUALCASE
# for MKS sh
27531 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27534 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27535 # is contrary to our usage. Disable this feature.
27536 alias -g '${1+"$@"}'='"$@"'
27537 setopt NO_GLOB_SUBST
27539 case `(set -o) 2>/dev/null` in #(
27551 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27552 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27553 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27555 # Prefer a ksh shell builtin over an external printf program on Solaris,
27556 # but without wasting forks for bash or zsh.
27557 if test -z "$BASH_VERSION$ZSH_VERSION" \
27558 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27559 as_echo='print
-r --'
27560 as_echo_n='print
-rn --'
27561 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27562 as_echo='printf %s
\n'
27563 as_echo_n='printf %s
'
27565 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27566 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27567 as_echo_n='/usr
/ucb
/echo -n'
27569 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27570 as_echo_n_body='eval
27574 expr "X$arg" : "X\\(.*\\)$as_nl";
27575 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27577 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27579 export as_echo_n_body
27580 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27582 export as_echo_body
27583 as_echo='sh
-c $as_echo_body as_echo
'
27586 # The user is always right.
27587 if test "${PATH_SEPARATOR+set}" != set; then
27589 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27590 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27597 # We need space, tab and new line, in precisely that order. Quoting is
27598 # there to prevent editors from complaining about space-tab.
27599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27600 # splitting by setting IFS to empty value.)
27603 # Find who we are. Look in the path if we contain no directory separator.
27605 *[\\/]* ) as_myself=$0 ;;
27606 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27607 for as_dir in $PATH
27610 test -z "$as_dir" && as_dir=.
27611 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27617 # We did not find ourselves, most probably we were run as `sh COMMAND'
27618 # in which case we are not to be found in the path.
27619 if test "x$as_myself" = x
; then
27622 if test ! -f "$as_myself"; then
27623 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27627 # Unset variables that we do not need and which cause bugs (e.g. in
27628 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27629 # suppresses any "Segmentation fault" message there. '((' could
27630 # trigger a bug in pdksh 5.2.14.
27631 for as_var
in BASH_ENV ENV MAIL MAILPATH
27632 do eval test x\
${$as_var+set} = xset \
27633 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27646 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27649 # as_fn_error ERROR [LINENO LOG_FD]
27650 # ---------------------------------
27651 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27652 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27653 # script with status $?, using 1 if that was 0.
27656 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27658 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27659 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27661 $as_echo "$as_me: error: $1" >&2
27662 as_fn_exit
$as_status
27666 # as_fn_set_status STATUS
27667 # -----------------------
27668 # Set $? to STATUS, without forking.
27669 as_fn_set_status
()
27672 } # as_fn_set_status
27674 # as_fn_exit STATUS
27675 # -----------------
27676 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27680 as_fn_set_status
$1
27686 # Portably unset VAR.
27689 { eval $1=; unset $1;}
27691 as_unset
=as_fn_unset
27692 # as_fn_append VAR VALUE
27693 # ----------------------
27694 # Append the text in VALUE to the end of the definition contained in VAR. Take
27695 # advantage of any shell optimizations that allow amortized linear growth over
27696 # repeated appends, instead of the typical quadratic growth present in naive
27698 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27699 eval 'as_fn_append ()
27710 # as_fn_arith ARG...
27711 # ------------------
27712 # Perform arithmetic evaluation on the ARGs, and store the result in the
27713 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27714 # must be portable across $(()) and expr.
27715 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27716 eval 'as_fn_arith ()
27723 as_val
=`expr "$@" || test $? -eq 1`
27728 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27729 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27735 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27736 as_basename
=basename
27741 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27747 as_me
=`$as_basename -- "$0" ||
27748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27749 X"$0" : 'X\(//\)$' \| \
27750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27752 sed '/^.*\/\([^/][^/]*\)\/*$/{
27766 # Avoid depending upon Character Ranges.
27767 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27768 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27769 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27770 as_cr_digits
='0123456789'
27771 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27773 ECHO_C
= ECHO_N
= ECHO_T
=
27774 case `echo -n x` in #(((((
27776 case `echo 'xy\c'` in
27777 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27779 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27786 rm -f conf$$ conf$$.exe conf$$.
file
27787 if test -d conf$$.dir
; then
27788 rm -f conf$$.dir
/conf$$.
file
27791 mkdir conf$$.dir
2>/dev
/null
27793 if (echo >conf$$.
file) 2>/dev
/null
; then
27794 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27796 # ... but there are two gotchas:
27797 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27798 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27799 # In both cases, we have to default to `cp -p'.
27800 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27802 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27810 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27811 rmdir conf$$.dir
2>/dev
/null
27816 # Create "$as_dir" as a directory, including parents if necessary.
27821 -*) as_dir
=.
/$as_dir;;
27823 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27827 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27828 *) as_qdir
=$as_dir;;
27830 as_dirs
="'$as_qdir' $as_dirs"
27831 as_dir
=`$as_dirname -- "$as_dir" ||
27832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27833 X"$as_dir" : 'X\(//\)[^/]' \| \
27834 X"$as_dir" : 'X\(//\)$' \| \
27835 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27836 $as_echo X"$as_dir" |
27837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27841 /^X\(\/\/\)[^/].*/{
27854 test -d "$as_dir" && break
27856 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27857 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27861 if mkdir
-p .
2>/dev
/null
; then
27862 as_mkdir_p
='mkdir -p "$as_dir"'
27864 test -d .
/-p && rmdir .
/-p
27868 if test -x / >/dev
/null
2>&1; then
27869 as_test_x
='test -x'
27871 if ls -dL / >/dev
/null
2>&1; then
27878 if test -d "$1"; then
27884 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27885 ???[sx]*):;;*)false;;esac;fi
27889 as_executable_p
=$as_test_x
27891 # Sed expression to map a string onto a valid CPP name.
27892 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27894 # Sed expression to map a string onto a valid variable name.
27895 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27899 ## ----------------------------------- ##
27900 ## Main body of $CONFIG_STATUS script. ##
27901 ## ----------------------------------- ##
27903 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27906 # Save the log message, to keep $0 and so on meaningful, and to
27907 # report actual input values of CONFIG_FILES etc. instead of their
27908 # values after options handling.
27910 This file was extended by $as_me, which was
27911 generated by GNU Autoconf 2.64. Invocation command line was
27913 CONFIG_FILES = $CONFIG_FILES
27914 CONFIG_HEADERS = $CONFIG_HEADERS
27915 CONFIG_LINKS = $CONFIG_LINKS
27916 CONFIG_COMMANDS = $CONFIG_COMMANDS
27919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27924 case $ac_config_files in *"
27925 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27928 case $ac_config_headers in *"
27929 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27934 # Files that config.status was made for.
27935 config_files="$ac_config_files"
27936 config_headers="$ac_config_headers"
27937 config_commands="$ac_config_commands"
27941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27943 \`$as_me' instantiates files and other configuration actions
27944 from templates according to the current configuration. Unless the files
27945 and actions are specified as TAGs, all are instantiated by default.
27947 Usage: $0 [OPTION]... [TAG]...
27949 -h, --help print this help, then exit
27950 -V, --version print version number and configuration settings, then exit
27951 -q, --quiet, --silent
27952 do not print progress messages
27953 -d, --debug don't remove temporary files
27954 --recheck update $as_me by reconfiguring in the same conditions
27955 --file=FILE[:TEMPLATE]
27956 instantiate the configuration file FILE
27957 --header=FILE[:TEMPLATE]
27958 instantiate the configuration header FILE
27960 Configuration files:
27963 Configuration headers:
27966 Configuration commands:
27969 Report bugs to the package provider."
27972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27975 configured by $0, generated by GNU Autoconf 2.64,
27976 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27978 Copyright (C) 2009 Free Software Foundation, Inc.
27979 This config.status script is free software; the Free Software Foundation
27980 gives unlimited permission to copy, distribute and modify it."
27985 test -n "\$AWK" || AWK=awk
27988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27989 # The default lists apply if the user does not specify any file.
27995 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27996 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28007 # Handling of the options.
28008 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28010 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28011 $as_echo "$ac_cs_version"; exit ;;
28012 --debug |
--debu |
--deb |
--de |
--d |
-d )
28014 --file |
--fil |
--fi |
--f )
28017 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28019 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28020 ac_need_defaults
=false
;;
28021 --header |
--heade |
--head |
--hea )
28024 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28026 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28027 ac_need_defaults
=false
;;
28029 # Conflict between --help and --header
28030 as_fn_error
"ambiguous option: \`$1'
28031 Try \`$0 --help' for more information.";;
28032 --help |
--hel |
-h )
28033 $as_echo "$ac_cs_usage"; exit ;;
28034 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28035 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28038 # This is an error.
28039 -*) as_fn_error
"unrecognized option: \`$1'
28040 Try \`$0 --help' for more information." ;;
28042 *) as_fn_append ac_config_targets
" $1"
28043 ac_need_defaults
=false
;;
28049 ac_configure_extra_args
=
28051 if $ac_cs_silent; then
28053 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28058 if \$ac_cs_recheck; then
28059 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28061 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28062 CONFIG_SHELL='$SHELL'
28063 export CONFIG_SHELL
28068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28072 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28073 ## Running $as_me. ##
28079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28089 # Handling of arguments.
28090 for ac_config_target
in $ac_config_targets
28092 case $ac_config_target in
28093 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28094 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28095 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28096 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28097 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28098 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28100 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28105 # If the user did not use the arguments to specify the items to instantiate,
28106 # then the envvar interface is used. Set only those that are not.
28107 # We use the long form for the default assignment because of an extremely
28108 # bizarre bug on SunOS 4.1.3.
28109 if $ac_need_defaults; then
28110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28112 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28115 # Have a temporary directory for convenience. Make it in the build tree
28116 # simply because there is no reason against having it here, and in addition,
28117 # creating and moving files from /tmp can sometimes cause problems.
28118 # Hook for its removal unless debugging.
28119 # Note that there is a small window in which the directory will not be cleaned:
28120 # after its creation but before its name has been assigned to `$tmp'.
28124 trap 'exit_status=$?
28125 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28127 trap 'as_fn_exit 1' 1 2 13 15
28129 # Create a (secure) tmp directory for tmp files.
28132 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28133 test -n "$tmp" && test -d "$tmp"
28136 tmp
=.
/conf$$
-$RANDOM
28137 (umask 077 && mkdir
"$tmp")
28138 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28140 # Set up the scripts for CONFIG_FILES section.
28141 # No need to generate them if there are no CONFIG_FILES.
28142 # This happens for instance with `./config.status config.h'.
28143 if test -n "$CONFIG_FILES"; then
28145 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28146 ac_cs_awk_getline
=:
28147 ac_cs_awk_pipe_init
=
28148 ac_cs_awk_read_file
='
28149 while ((getline aline < (F[key])) > 0)
28152 ac_cs_awk_pipe_fini
=
28154 ac_cs_awk_getline
=false
28155 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28156 ac_cs_awk_read_file
='
28158 print "cat " F[key] " &&"
28159 '$ac_cs_awk_pipe_init
28160 # The final `:' finishes the AND list.
28161 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28163 ac_cr
=`echo X | tr X '\015'`
28164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28165 # But we know of no other shell where ac_cr would be empty at this
28166 # point, so we can use a bashism as a fallback.
28167 if test "x$ac_cr" = x
; then
28168 eval ac_cr
=\$
\'\\r
\'
28170 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28174 ac_cs_awk_cr
=$ac_cr
28177 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28180 # Create commands to substitute file output variables.
28182 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28183 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28184 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28187 } >conf$
$files.sh
&&
28188 . .
/conf$
$files.sh ||
28189 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28190 rm -f conf$
$files.sh
28193 echo "cat >conf$$subs.awk <<_ACEOF" &&
28194 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28196 } >conf$$subs.sh ||
28197 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28200 for ac_last_try in false false false false false :; do
28201 . ./conf$$subs.sh ||
28202 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28204 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28205 if test $ac_delim_n = $ac_delim_num; then
28207 elif $ac_last_try; then
28208 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28210 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28213 rm -f conf$$subs.sh
28215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28216 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28220 s/^/S["/; s
/!.
*/"]=/
28230 s/\(.\{148\}\).*/\1/
28232 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28237 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28244 s/\(.\{148\}\).*/\1/
28246 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28250 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28255 ' <conf$$subs.awk | sed '
28260 ' >>$CONFIG_STATUS || ac_write_fail=1
28261 rm -f conf$$subs.awk
28262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28264 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28265 for (key in S) S_is_set[key] = 1
28267 \$ac_cs_awk_pipe_init
28271 nfields = split(line, field, "@
")
28273 len = length(field[1])
28274 for (i = 2; i < nfields; i++) {
28276 keylen = length(key)
28277 if (S_is_set[key]) {
28279 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28280 len += length(value) + length(field[++i])
28285 if (nfields == 3 && !substed) {
28287 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28288 \$ac_cs_awk_read_file
28294 \$ac_cs_awk_pipe_fini
28297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28298 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28299 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28302 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28303 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28306 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28307 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28308 # trailing colons and then remove the whole line if VPATH becomes empty
28309 # (actually we leave an empty line to preserve line numbers).
28310 if test "x
$srcdir" = x.; then
28311 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28312 s/:*\$(srcdir):*/:/
28313 s/:*\${srcdir}:*/:/
28315 s/^\([^=]*=[ ]*\):*/\1/
28321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28322 fi # test -n "$CONFIG_FILES"
28324 # Set up the scripts for CONFIG_HEADERS section.
28325 # No need to generate them if there are no CONFIG_HEADERS.
28326 # This happens for instance with `./config.status Makefile'.
28327 if test -n "$CONFIG_HEADERS"; then
28328 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28332 # Transform confdefs.h into an awk script `defines.awk', embedded as
28333 # here-document in config.status, that substitutes the proper values into
28334 # config.h.in to produce config.h.
28336 # Create a delimiter string that does not exist in confdefs.h, to ease
28337 # handling of long lines.
28339 for ac_last_try in false false :; do
28340 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28341 if test -z "$ac_t"; then
28343 elif $ac_last_try; then
28344 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28346 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28350 # For the awk script, D is an array of macro values keyed by name,
28351 # likewise P contains macro parameters if any. Preserve backslash
28352 # newline sequences.
28354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28356 s/.\{148\}/&'"$ac_delim"'/g
28359 s/^[ ]*#[ ]*define[ ][ ]*/ /
28366 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28368 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28373 D["\
1"]=" \
3\\\\\\n
"\\/p
28375 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28380 s/.\{148\}/&'"$ac_delim"'/g
28385 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28388 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28390 ' <confdefs.h | sed '
28391 s/'"$ac_delim"'/"\\\
28392 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28395 for (key in D) D_is_set[key] = 1
28398 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28400 split(line, arg, " ")
28401 if (arg[1] == "#") {
28405 defundef
= substr
(arg
[1], 2)
28408 split(mac1
, mac2
, "(") #)
28410 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28411 if (D_is_set
[macro
]) {
28412 # Preserve the white space surrounding the "#".
28413 print prefix
"define", macro P
[macro
] D
[macro
]
28416 # Replace #undef with comments. This is necessary, for example,
28417 # in the case of _POSIX_SOURCE, which is predefined and required
28418 # on some systems where configure will not decide to define it.
28419 if (defundef
== "undef") {
28420 print
"/*", prefix defundef
, macro
, "*/"
28428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28429 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28430 fi # test -n "$CONFIG_HEADERS"
28433 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28438 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28440 case $ac_mode$ac_tag in
28442 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28443 :[FH
]-) ac_tag
=-:-;;
28444 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28461 -) ac_f
="$tmp/stdin";;
28462 *) # Look for the file first in the build tree, then in the source tree
28463 # (if the path is not absolute). The absolute path cannot be DOS-style,
28464 # because $ac_f cannot contain `:'.
28468 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28470 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28472 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28473 as_fn_append ac_file_inputs
" '$ac_f'"
28476 # Let's still pretend it is `configure' which instantiates (i.e., don't
28477 # use $as_me), people would be surprised to read:
28478 # /* config.h. Generated by config.status. */
28479 configure_input
='Generated from '`
28480 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28482 if test x
"$ac_file" != x-
; then
28483 configure_input
="$ac_file. $configure_input"
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28485 $as_echo "$as_me: creating $ac_file" >&6;}
28487 # Neutralize special characters interpreted by sed in replacement strings.
28488 case $configure_input in #(
28489 *\
&* |
*\|
* |
*\\* )
28490 ac_sed_conf_input
=`$as_echo "$configure_input" |
28491 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28492 *) ac_sed_conf_input
=$configure_input;;
28496 *:-:* |
*:-) cat >"$tmp/stdin" \
28497 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28502 ac_dir
=`$as_dirname -- "$ac_file" ||
28503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28504 X"$ac_file" : 'X\(//\)[^/]' \| \
28505 X"$ac_file" : 'X\(//\)$' \| \
28506 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28507 $as_echo X"$ac_file" |
28508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28512 /^X\(\/\/\)[^/].*/{
28525 as_dir
="$ac_dir"; as_fn_mkdir_p
28529 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28531 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28532 # A ".." for each directory in $ac_dir_suffix.
28533 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28534 case $ac_top_builddir_sub in
28535 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28536 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28539 ac_abs_top_builddir
=$ac_pwd
28540 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28541 # for backward compatibility:
28542 ac_top_builddir
=$ac_top_build_prefix
28545 .
) # We are building in place.
28547 ac_top_srcdir
=$ac_top_builddir_sub
28548 ac_abs_top_srcdir
=$ac_pwd ;;
28549 [\\/]* | ?
:[\\/]* ) # Absolute name.
28550 ac_srcdir
=$srcdir$ac_dir_suffix;
28551 ac_top_srcdir
=$srcdir
28552 ac_abs_top_srcdir
=$srcdir ;;
28553 *) # Relative name.
28554 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28555 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28556 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28558 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28570 # If the template does not know about datarootdir, expand it.
28571 # FIXME: This hack should be removed a few years after 2.60.
28572 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28583 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28584 *datarootdir
*) ac_datarootdir_seen
=yes;;
28585 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28587 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28590 ac_datarootdir_hack='
28591 s&@datadir@&$datadir&g
28592 s&@docdir@&$docdir&g
28593 s&@infodir@&$infodir&g
28594 s&@localedir@&$localedir&g
28595 s&@mandir@&$mandir&g
28596 s&\\\${datarootdir}&$datarootdir&g' ;;
28600 # Neutralize VPATH when `$srcdir' = `.'.
28601 # Shell code in configure.ac might set extrasub.
28602 # FIXME: do we really want to maintain this feature?
28603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28604 ac_sed_extra="$ac_vpsub
28607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28609 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28610 s|@configure_input@|
$ac_sed_conf_input|
;t t
28611 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28612 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28613 s
&@srcdir@
&$ac_srcdir&;t t
28614 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28615 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28616 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28617 s
&@builddir@
&$ac_builddir&;t t
28618 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28619 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28620 $ac_datarootdir_hack
28622 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28623 if $ac_cs_awk_getline; then
28624 $AWK -f "$tmp/subs.
awk"
28626 $AWK -f "$tmp/subs.
awk" | $SHELL
28628 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28630 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28631 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28632 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28634 which seems to be undefined. Please make sure it is defined." >&5
28635 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28636 which seems to be undefined. Please make sure it is defined." >&2;}
28640 -) cat "$tmp/out" && rm -f "$tmp/out";;
28641 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28643 || as_fn_error "could not create $ac_file" "$LINENO" 5
28649 if test x"$ac_file" != x-; then
28651 $as_echo "/* $configure_input */" \
28652 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28653 } >"$tmp/config.h" \
28654 || as_fn_error "could not create $ac_file" "$LINENO" 5
28655 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28657 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28660 mv "$tmp/config.h" "$ac_file" \
28661 || as_fn_error "could not create $ac_file" "$LINENO" 5
28664 $as_echo "/* $configure_input */" \
28665 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28666 || as_fn_error "could not create -" "$LINENO" 5
28670 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28671 $as_echo "$as_me: executing $ac_file commands" >&6;}
28676 case $ac_file$ac_mode in
28677 "as":F) chmod +x as ;;
28678 "collect-ld":F) chmod +x collect-ld ;;
28679 "nm":F) chmod +x nm ;;
28681 case ${CONFIG_HEADERS} in
28682 *auto-host.h:config.in*)
28685 # Make sure all the subdirs exist.
28686 for d in $subdirs doc build common c-family
28688 test -d $d || mkdir $d
28698 ac_clean_files=$ac_clean_files_save
28700 test $ac_write_fail = 0 ||
28701 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28704 # configure is writing to config.log, and then calls config.status.
28705 # config.status does its own redirection, appending to config.log.
28706 # Unfortunately, on DOS this fails, as config.log is still kept open
28707 # by configure, so config.status won't be able to
write to it
; its
28708 # output is simply discarded. So we exec the FD to /dev/null,
28709 # effectively closing config.log, so it can be properly (re)opened and
28710 # appended to by config.status. When coming back to configure, we
28711 # need to make the FD available again.
28712 if test "$no_create" != yes; then
28714 ac_config_status_args
=
28715 test "$silent" = yes &&
28716 ac_config_status_args
="$ac_config_status_args --quiet"
28718 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28720 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28721 # would make configure fail if this is the last instruction.
28722 $ac_cs_success || as_fn_exit $?
28724 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28726 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}