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
627 common_out_object_file
643 gcc_gxx_include_dir_add_sysroot
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
653 TM_MULTILIB_EXCEPTIONS_CONFIG
662 build_xm_include_list
664 build_install_headers_dir
666 all_selected_languages
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
693 ORIGINAL_AS_FOR_TARGET
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
739 NATIVE_SYSTEM_HEADER_DIR
772 real_target_noncanonical
773 enable_as_accelerator
787 valgrind_path_defines
817 CROSS_SYSTEM_HEADER_DIR
818 TARGET_SYSTEM_ROOT_DEFINE
820 SYSROOT_CFLAGS_FOR_TARGET
866 program_transform_name
877 ac_subst_files
='option_includes
880 enable_option_checking
883 with_native_system_header_dir
888 enable_generated_files_in_srcdir
895 enable_build_format_warnings
899 enable_gather_detailed_mem_stats
900 enable_valgrind_annotations
920 enable_sjlj_exceptions
922 enable_leading_mingw64_underscores
925 enable_win32_registry
933 enable_gnu_indirect_function
934 enable_initfini_array
936 enable_fix_cortex_a53_835769
937 enable_fix_cortex_a53_843419
939 enable_gnu_unique_object
940 enable_linker_build_id
945 enable_maintainer_mode
947 enable_version_specific_runtime_libs
950 enable_libquadmath_support
951 with_linker_hash_style
952 with_diagnostics_color
955 ac_precious_vars
='build_alias
974 # Initialize some variables set by options.
976 ac_init_version
=false
977 ac_unrecognized_opts
=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name
=s
,x
,x
,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir
='${exec_prefix}/bin'
1003 sbindir
='${exec_prefix}/sbin'
1004 libexecdir
='${exec_prefix}/libexec'
1005 datarootdir
='${prefix}/share'
1006 datadir
='${datarootdir}'
1007 sysconfdir
='${prefix}/etc'
1008 sharedstatedir
='${prefix}/com'
1009 localstatedir
='${prefix}/var'
1010 includedir
='${prefix}/include'
1011 oldincludedir
='/usr/include'
1012 docdir
='${datarootdir}/doc/${PACKAGE}'
1013 infodir
='${datarootdir}/info'
1018 libdir
='${exec_prefix}/lib'
1019 localedir
='${datarootdir}/locale'
1020 mandir
='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\
$ac_option
1034 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1044 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1046 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1047 bindir
=$ac_optarg ;;
1049 -build |
--build |
--buil |
--bui |
--bu)
1050 ac_prev
=build_alias
;;
1051 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1052 build_alias
=$ac_optarg ;;
1054 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1055 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1056 ac_prev
=cache_file
;;
1057 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1058 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1059 cache_file
=$ac_optarg ;;
1061 --config-cache |
-C)
1062 cache_file
=config.cache
;;
1064 -datadir |
--datadir |
--datadi |
--datad)
1066 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1067 datadir
=$ac_optarg ;;
1069 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1070 |
--dataroo |
--dataro |
--datar)
1071 ac_prev
=datarootdir
;;
1072 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1073 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1074 datarootdir
=$ac_optarg ;;
1076 -disable-* |
--disable-*)
1077 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1080 as_fn_error
"invalid feature name: $ac_useropt"
1081 ac_useropt_orig
=$ac_useropt
1082 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_
$ac_useropt"
1087 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep
=', ';;
1090 eval enable_
$ac_useropt=no
;;
1092 -docdir |
--docdir |
--docdi |
--doc |
--do)
1094 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1095 docdir
=$ac_optarg ;;
1097 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1099 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1100 dvidir
=$ac_optarg ;;
1102 -enable-* |
--enable-*)
1103 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1106 as_fn_error
"invalid feature name: $ac_useropt"
1107 ac_useropt_orig
=$ac_useropt
1108 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_
$ac_useropt"
1113 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep
=', ';;
1116 eval enable_
$ac_useropt=\
$ac_optarg ;;
1118 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1119 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1120 |
--exec |
--exe |
--ex)
1121 ac_prev
=exec_prefix
;;
1122 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1123 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1124 |
--exec=* |
--exe=* |
--ex=*)
1125 exec_prefix
=$ac_optarg ;;
1127 -gas |
--gas |
--ga |
--g)
1128 # Obsolete; use --with-gas.
1131 -help |
--help |
--hel |
--he |
-h)
1132 ac_init_help
=long
;;
1133 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1134 ac_init_help
=recursive
;;
1135 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1136 ac_init_help
=short
;;
1138 -host |
--host |
--hos |
--ho)
1139 ac_prev
=host_alias
;;
1140 -host=* |
--host=* |
--hos=* |
--ho=*)
1141 host_alias
=$ac_optarg ;;
1143 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1145 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1147 htmldir
=$ac_optarg ;;
1149 -includedir |
--includedir |
--includedi |
--included |
--include \
1150 |
--includ |
--inclu |
--incl |
--inc)
1151 ac_prev
=includedir
;;
1152 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1153 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1154 includedir
=$ac_optarg ;;
1156 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1158 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1159 infodir
=$ac_optarg ;;
1161 -libdir |
--libdir |
--libdi |
--libd)
1163 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1164 libdir
=$ac_optarg ;;
1166 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1167 |
--libexe |
--libex |
--libe)
1168 ac_prev
=libexecdir
;;
1169 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1170 |
--libexe=* |
--libex=* |
--libe=*)
1171 libexecdir
=$ac_optarg ;;
1173 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1174 ac_prev
=localedir
;;
1175 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1176 localedir
=$ac_optarg ;;
1178 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1179 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1180 ac_prev
=localstatedir
;;
1181 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1182 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1183 localstatedir
=$ac_optarg ;;
1185 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1187 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1188 mandir
=$ac_optarg ;;
1190 -nfp |
--nfp |
--nf)
1191 # Obsolete; use --without-fp.
1194 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1195 |
--no-cr |
--no-c |
-n)
1198 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1199 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1202 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1203 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1204 |
--oldin |
--oldi |
--old |
--ol |
--o)
1205 ac_prev
=oldincludedir
;;
1206 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1207 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1208 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1209 oldincludedir
=$ac_optarg ;;
1211 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1213 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1214 prefix
=$ac_optarg ;;
1216 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1217 |
--program-pre |
--program-pr |
--program-p)
1218 ac_prev
=program_prefix
;;
1219 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1220 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1221 program_prefix
=$ac_optarg ;;
1223 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1224 |
--program-suf |
--program-su |
--program-s)
1225 ac_prev
=program_suffix
;;
1226 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1227 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1228 program_suffix
=$ac_optarg ;;
1230 -program-transform-name |
--program-transform-name \
1231 |
--program-transform-nam |
--program-transform-na \
1232 |
--program-transform-n |
--program-transform- \
1233 |
--program-transform |
--program-transfor \
1234 |
--program-transfo |
--program-transf \
1235 |
--program-trans |
--program-tran \
1236 |
--progr-tra |
--program-tr |
--program-t)
1237 ac_prev
=program_transform_name
;;
1238 -program-transform-name=* |
--program-transform-name=* \
1239 |
--program-transform-nam=* |
--program-transform-na=* \
1240 |
--program-transform-n=* |
--program-transform-=* \
1241 |
--program-transform=* |
--program-transfor=* \
1242 |
--program-transfo=* |
--program-transf=* \
1243 |
--program-trans=* |
--program-tran=* \
1244 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1245 program_transform_name
=$ac_optarg ;;
1247 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1249 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1250 pdfdir
=$ac_optarg ;;
1252 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1254 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1257 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1258 |
-silent |
--silent |
--silen |
--sile |
--sil)
1261 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1263 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1265 sbindir
=$ac_optarg ;;
1267 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1268 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1269 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1271 ac_prev
=sharedstatedir
;;
1272 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1273 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1274 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1276 sharedstatedir
=$ac_optarg ;;
1278 -site |
--site |
--sit)
1280 -site=* |
--site=* |
--sit=*)
1283 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1285 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1286 srcdir
=$ac_optarg ;;
1288 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1289 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1290 ac_prev
=sysconfdir
;;
1291 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1292 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1293 sysconfdir
=$ac_optarg ;;
1295 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1296 ac_prev
=target_alias
;;
1297 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1298 target_alias
=$ac_optarg ;;
1300 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1303 -version |
--version |
--versio |
--versi |
--vers |
-V)
1304 ac_init_version
=: ;;
1307 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1310 as_fn_error
"invalid package name: $ac_useropt"
1311 ac_useropt_orig
=$ac_useropt
1312 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1317 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep
=', ';;
1320 eval with_
$ac_useropt=\
$ac_optarg ;;
1322 -without-* |
--without-*)
1323 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1326 as_fn_error
"invalid package name: $ac_useropt"
1327 ac_useropt_orig
=$ac_useropt
1328 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1333 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep
=', ';;
1336 eval with_
$ac_useropt=no
;;
1339 # Obsolete; use --with-x.
1342 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1343 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1344 ac_prev
=x_includes
;;
1345 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1346 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1347 x_includes
=$ac_optarg ;;
1349 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1350 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1351 ac_prev
=x_libraries
;;
1352 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1353 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1354 x_libraries
=$ac_optarg ;;
1356 -*) as_fn_error
"unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1361 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1365 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1367 eval $ac_envvar=\
$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1381 if test -n "$ac_prev"; then
1382 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error
"missing argument to $ac_option"
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1389 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394 # Check all directory arguments for consistency.
1395 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1400 eval ac_val
=\$
$ac_var
1401 # Remove trailing slashes.
1404 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\
$ac_val;;
1407 # Be sure to have absolute directory names.
1409 [\\/$
]* | ?
:[\\/]* ) continue;;
1410 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1412 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1420 target
=$target_alias
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x
; then
1424 if test "x$build_alias" = x
; then
1425 cross_compiling
=maybe
1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427 If a cross compiler is detected then cross compile mode will be used." >&2
1428 elif test "x$build_alias" != "x$host_alias"; then
1434 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1436 test "$silent" = yes && exec 6>/dev
/null
1439 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di
=`ls -di .` &&
1441 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error
"working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error
"pwd does not report name of working directory"
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted
=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir
=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1479 ac_srcdir_defaulted
=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1483 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1485 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1497 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 for ac_var
in $ac_precious_vars; do
1500 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1502 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1507 # Report the --help message.
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1513 \`configure' configures this package to adapt to many kinds of systems.
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1520 Defaults for the options are specified in brackets.
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1544 For better control, use the options below.
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1576 --build=BUILD configure
for building on BUILD
[guessed
]
1577 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1578 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1582 if test -n "$ac_init_help"; then
1587 --disable-option-checking ignore unrecognized
--enable/--with options
1588 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1589 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1590 --enable-generated-files-in-srcdir
1591 put copies of generated files
in source dir intended
1592 for creating
source tarballs
for users without
1593 texinfo bison or flex
1594 --disable-largefile omit support
for large files
1595 --disable-build-format-warnings
1596 don
't use -Wformat while building GCC
1597 --enable-werror-always enable -Werror despite compiler version
1598 --enable-checking[=LIST]
1599 enable expensive run-time checks. With LIST, enable
1600 only specific categories of checks. Categories are:
1601 yes,no,all,none,release. Flags are:
1602 assert,df,extra,fold,gc,gcac,gimple,misc,
1603 rtlflag,rtl,runtime,tree,valgrind,types
1604 --enable-coverage[=LEVEL]
1605 enable compiler's code coverage collection. Use to
1606 measure compiler performance and
locate unused parts
1607 of the compiler. With LEVEL
, specify optimization.
1608 Values are opt
, noopt
, default is noopt
1609 --enable-gather-detailed-mem-stats
1610 enable detailed memory allocation stats gathering
1611 --enable-valgrind-annotations
1612 enable valgrind runtime interaction
1613 --enable-multilib enable library support
for multiple ABIs
1614 --enable-multiarch enable support
for multiarch paths
1615 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1616 --enable-decimal-float={no
,yes,bid
,dpd
}
1617 enable decimal float extension to C. Selecting
'bid'
1618 or
'dpd' choses
which decimal floating point format
1620 --enable-fixed-point enable fixed-point arithmetic extension to C
1621 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1623 --enable-tls enable or disable generation of tls code overriding
1624 the assembler check
for tls support
1625 --enable-vtable-verify enable vtable verification feature
1626 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1627 GNU Objective-C runtime
1628 --disable-shared don't provide a shared libgcc
1629 --enable-languages=LIST specify
which front-ends to build
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-sjlj-exceptions
1632 arrange to use setjmp
/longjmp exception handling
1633 --enable-secureplt enable -msecure-plt by default
for PowerPC
1634 --enable-leading-mingw64-underscores
1635 enable leading underscores on
64 bit mingw targets
1636 --enable-cld enable -mcld by default
for 32bit x86
1637 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1639 --disable-win32-registry
1640 disable lookup of installation paths
in the Registry
1642 --enable-win32-registry enable registry lookup
(default
)
1643 --enable-win32-registry=KEY
1644 use KEY instead of GCC version as the last portion
1646 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1647 --enable-static[=PKGS
] build static libraries
[default
=yes]
1648 --enable-fast-install[=PKGS
]
1649 optimize
for fast installation
[default
=yes]
1650 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1651 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1652 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1653 --enable-gnu-indirect-function
1654 enable the use of the @gnu_indirect_function to
1656 --enable-initfini-array use .init_array
/.fini_array sections
1657 --enable-comdat enable COMDAT group support
1659 --enable-fix-cortex-a53-835769
1660 enable workaround
for AArch64 Cortex-A53 erratum
1662 --disable-fix-cortex-a53-835769
1663 disable workaround
for AArch64 Cortex-A53 erratum
1667 --enable-fix-cortex-a53-843419
1668 enable workaround
for AArch64 Cortex-A53 erratum
1670 --disable-fix-cortex-a53-843419
1671 disable workaround
for AArch64 Cortex-A53 erratum
1674 --enable-gnu-unique-object
1675 enable the use of the @gnu_unique_object ELF
1676 extension on glibc systems
1677 --enable-linker-build-id
1678 compiler will always pass
--build-id to linker
1679 --enable-default-ssp enable Stack Smashing Protection as default
1680 --enable-maintainer-mode
1681 enable make rules and dependencies not useful
(and
1682 sometimes confusing
) to the casual installer
1683 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1684 thrashing on the build machine
1685 --enable-version-specific-runtime-libs
1686 specify that runtime libraries should be installed
1687 in a compiler-specific directory
1688 --enable-plugin enable plugin support
1689 --enable-host-shared build
host code as shared libraries
1690 --disable-libquadmath-support
1691 disable libquadmath support
for Fortran
1692 --enable-default-pie enable Position Independent Executable as default
1695 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1696 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1697 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1698 --with-local-prefix=DIR specifies directory to put
local include
1699 --with-native-system-header-dir=dir
1700 use dir as the directory to
look for standard
1701 system header files
in. Defaults to
/usr
/include.
1702 --with-build-sysroot=sysroot
1703 use sysroot as the system root during the build
1704 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1705 --with-gxx-include-dir=DIR
1706 specifies directory to put g
++ header files
1707 --with-cpp-install-dir=DIR
1708 install the user visible C preprocessor
in DIR
1709 (relative to PREFIX
) as well as PREFIX
/bin
1710 --with-gnu-ld arrange to work with GNU ld
1711 --with-ld arrange to use the specified ld
(full pathname
)
1712 --with-demangler-in-ld try to use demangler
in GNU ld
1713 --with-gnu-as arrange to work with GNU as
1714 --with-as arrange to use the specified as
(full pathname
)
1715 --with-stabs arrange to use stabs instead of
host debug format
1716 --with-dwarf2 force the default debug format to be DWARF
2
1717 --with-specs=SPECS add SPECS to driver command-line processing
1718 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1719 --with-bugurl=URL Direct users to URL to report a bug
1720 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1721 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1722 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1723 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1724 --with-pic try to use only PIC/non-PIC objects [default=use
1726 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1727 --with-plugin-ld=[ARG] specify the plugin linker
1728 --with-glibc-version=M.N
1729 assume GCC used with glibc version M.N or later
1730 --with-long-double-128 use 128-bit long double by default
1731 --with-gc={page,zone} this option is not supported anymore. It used to
1732 choose the garbage collection mechanism to use with
1734 --with-system-zlib use installed libz
1735 --with-linker-hash-style={sysv,gnu,both}
1736 specify the linker hash style
1737 --with-diagnostics-color={never,auto,auto-if-env,always}
1738 specify the default of -fdiagnostics-color option
1739 auto-if-env stands for -fdiagnostics-color=auto if
1740 GCC_COLOR environment variable is present and
1741 -fdiagnostics-color=never otherwise
1743 Some influential environment variables:
1744 CC C compiler command
1745 CFLAGS C compiler flags
1746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1747 nonstandard directory <lib dir>
1748 LIBS libraries to pass to the linker, e.g. -l<library>
1749 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1750 you have headers in a nonstandard directory <include dir>
1751 CXX C++ compiler command
1752 CXXFLAGS C++ compiler flags
1753 CXXCPP C++ preprocessor
1755 GMPLIBS How to link GMP
1756 GMPINC How to find GMP include files
1757 ISLLIBS How to link isl
1758 ISLINC How to find isl include files
1760 Use these variables to override the choices made by `configure' or to
help
1761 it to
find libraries and programs with nonstandard names
/locations.
1763 Report bugs to the package provider.
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1777 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1779 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1784 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1787 ac_abs_top_builddir
=$ac_pwd
1788 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir
=$ac_top_build_prefix
1793 .
) # We are building in place.
1795 ac_top_srcdir
=$ac_top_builddir_sub
1796 ac_abs_top_srcdir
=$ac_pwd ;;
1797 [\\/]* | ?
:[\\/]* ) # Absolute name.
1798 ac_srcdir
=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir
=$srcdir
1800 ac_abs_top_srcdir
=$srcdir ;;
1802 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1806 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1819 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1827 generated by GNU Autoconf
2.64
1829 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1830 This configure
script is free software
; the Free Software Foundation
1831 gives unlimited permission to copy
, distribute and modify it.
1836 ## ------------------------ ##
1837 ## Autoconf initialization. ##
1838 ## ------------------------ ##
1840 # ac_fn_c_try_compile LINENO
1841 # --------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_compile
()
1845 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1846 rm -f conftest.
$ac_objext
1847 if { { ac_try
="$ac_compile"
1849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 } # ac_fn_c_try_compile
1878 # ac_fn_cxx_try_compile LINENO
1879 # ----------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_compile ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1888 *) ac_try_echo
=$ac_try;;
1890 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1894 if test -s conftest.err
; then
1895 grep -v '^ *+' conftest.err
>conftest.er1
1896 cat conftest.er1
>&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.
$ac_objext; then :
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.
$ac_ext >&5
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1914 } # ac_fn_cxx_try_compile
1916 # ac_fn_cxx_try_cpp LINENO
1917 # ------------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_cpp
()
1921 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1922 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1939 test ! -s conftest.err
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_cxx_try_cpp
1953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # ---------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1958 ac_fn_cxx_check_header_mongrel ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1979 if ac_fn_cxx_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1982 ac_header_compiler=no
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 if ac_fn_cxx_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1998 ac_header_preproc=no
2000 rm -f conftest.err conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2030 eval "$3=\$ac_header_compiler"
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_cxx_check_header_mongrel
2040 # ac_fn_cxx_try_run LINENO
2041 # ------------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_cxx_try_run ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2050 *) ac_try_echo
=$ac_try;;
2052 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_retval=$ac_status
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2080 } # ac_fn_cxx_try_run
2082 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists and can be compiled using the include files in
2085 # INCLUDES, setting the cache variable VAR accordingly.
2086 ac_fn_cxx_check_header_compile ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 $as_echo_n "(cached) " >&6
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2099 if ac_fn_cxx_try_compile "$LINENO"; then :
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 } # ac_fn_cxx_check_header_compile
2113 # ac_fn_c_try_cpp LINENO
2114 # ----------------------
2115 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2122 *) ac_try_echo
=$ac_try;;
2124 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2128 if test -s conftest.err
; then
2129 grep -v '^ *+' conftest.err
>conftest.er1
2130 cat conftest.er1
>&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } >/dev
/null
&& {
2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.
$ac_ext >&5
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2150 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2151 # ----------------------------------------------
2152 # Tries to find the compile-time value of EXPR in a program that includes
2153 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2155 ac_fn_cxx_compute_int
()
2157 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2158 if test "$cross_compiling" = yes; then
2159 # Depending upon the size, compute the lo and hi bounds.
2160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array [1 - 2 * !(($2) >= 0)];
2173 if ac_fn_cxx_try_compile
"$LINENO"; then :
2176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189 if ac_fn_cxx_try_compile
"$LINENO"; then :
2190 ac_hi
=$ac_mid; break
2192 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2193 if test $ac_lo -le $ac_mid; then
2197 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) < 0)];
2215 if ac_fn_cxx_try_compile
"$LINENO"; then :
2218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2231 if ac_fn_cxx_try_compile
"$LINENO"; then :
2232 ac_lo
=$ac_mid; break
2234 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2235 if test $ac_mid -le $ac_hi; then
2239 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2249 # Binary search between lo and hi bounds.
2250 while test "x$ac_lo" != "x$ac_hi"; do
2251 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2258 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2265 if ac_fn_cxx_try_compile
"$LINENO"; then :
2268 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2280 static long int longval () { return $2; }
2281 static unsigned long int ulongval () { return $2; }
2288 FILE *f = fopen ("conftest.val", "w");
2293 long int i = longval ();
2296 fprintf (f, "%ld", i);
2300 unsigned long int i = ulongval ();
2303 fprintf (f, "%lu", i);
2305 /* Do not output a trailing newline, as this causes \r\n confusion
2306 on some platforms. */
2307 return ferror (f) || fclose (f) != 0;
2313 if ac_fn_cxx_try_run
"$LINENO"; then :
2314 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2318 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2319 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2326 } # ac_fn_cxx_compute_int
2328 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2329 # ---------------------------------------------
2330 # Tests whether TYPE exists after having included INCLUDES, setting cache
2331 # variable VAR accordingly.
2332 ac_fn_cxx_check_type
()
2334 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2353 if ac_fn_cxx_try_compile
"$LINENO"; then :
2354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2366 if ac_fn_cxx_try_compile
"$LINENO"; then :
2371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2380 } # ac_fn_cxx_check_type
2382 # ac_fn_c_find_intX_t LINENO BITS VAR
2383 # -----------------------------------
2384 # Finds a signed integer type with width BITS, setting cache variable VAR
2386 ac_fn_c_find_intX_t
()
2388 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2390 $as_echo_n "checking for int$2_t... " >&6; }
2391 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2395 for ac_type
in int
$2_t 'int' 'long int' \
2396 'long long int' 'short int' 'signed char'; do
2397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $ac_includes_default
2403 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2410 if ac_fn_cxx_try_compile
"$LINENO"; then :
2411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2417 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2418 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2425 if ac_fn_cxx_try_compile
"$LINENO"; then :
2432 eval "$3=\$ac_type" ;;
2435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2439 if test "x$as_val" = x
""no
; then :
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2451 } # ac_fn_c_find_intX_t
2453 # ac_fn_cxx_try_link LINENO
2454 # -------------------------
2455 # Try to link conftest.$ac_ext, and return whether this succeeded.
2456 ac_fn_cxx_try_link
()
2458 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2459 rm -f conftest.
$ac_objext conftest
$ac_exeext
2460 if { { ac_try
="$ac_link"
2462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_link") 2>conftest.err
2469 if test -s conftest.err; then
2470 grep -v '^ *+' conftest.err >conftest.er1
2471 cat conftest.er1 >&5
2472 mv -f conftest.er1 conftest.err
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && {
2476 test -z "$ac_cxx_werror_flag" ||
2477 test ! -s conftest.err
2478 } && test -s conftest$ac_exeext && {
2479 test "$cross_compiling" = yes ||
2480 $as_test_x conftest$ac_exeext
2484 $as_echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2489 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2490 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2491 # interfere with the next link command; also delete a directory that is
2492 # left behind by Apple's compiler. We do this before executing the actions.
2493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2497 } # ac_fn_cxx_try_link
2499 # ac_fn_c_find_uintX_t LINENO BITS VAR
2500 # ------------------------------------
2501 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2503 ac_fn_c_find_uintX_t ()
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2507 $as_echo_n "checking for uint$2_t... " >&6; }
2508 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2509 $as_echo_n "(cached) " >&6
2512 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2513 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 $ac_includes_default
2520 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2532 eval "$3=\$ac_type" ;;
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537 if test "x$as_val" = x""no; then :
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_c_find_uintX_t
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2571 rm -f conftest.err conftest.$ac_ext
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 } # ac_fn_cxx_check_header_preproc
2580 # ac_fn_cxx_check_func LINENO FUNC VAR
2581 # ------------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_cxx_check_func ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2603 # include <limits.h>
2605 # include <assert.h>
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2632 if ac_fn_cxx_try_link "$LINENO"; then :
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 } # ac_fn_cxx_check_func
2647 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2648 # --------------------------------------
2649 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2650 ac_fn_cxx_check_decl ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2654 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2658 $as_echo_n "(cached) " >&6
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2666 #ifndef $as_decl_name
2668 (void) $as_decl_use;
2670 (void) $as_decl_name;
2678 if ac_fn_cxx_try_compile "$LINENO"; then :
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690 } # ac_fn_cxx_check_decl
2692 # ac_fn_c_try_link LINENO
2693 # -----------------------
2694 # Try to link conftest.$ac_ext, and return whether this succeeded.
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 rm -f conftest.$ac_objext conftest$ac_exeext
2699 if { { ac_try="$ac_link"
2701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2702 *) ac_try_echo
=$ac_try;;
2704 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_link") 2>conftest.err
2708 if test -s conftest.err
; then
2709 grep -v '^ *+' conftest.err
>conftest.er1
2710 cat conftest.er1
>&5
2711 mv -f conftest.er1 conftest.err
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest
$ac_exeext && {
2718 test "$cross_compiling" = yes ||
2719 $as_test_x conftest
$ac_exeext
2723 $as_echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.
$ac_ext >&5
2728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2730 # interfere with the next link command; also delete a directory that is
2731 # left behind by Apple's compiler. We do this before executing the actions.
2732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2736 } # ac_fn_c_try_link
2738 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2739 # ----------------------------------------------
2740 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2741 ac_fn_c_check_header_preproc
()
2743 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2747 $as_echo_n "(cached) " >&6
2749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2753 if ac_fn_c_try_cpp
"$LINENO"; then :
2758 rm -f conftest.err conftest.
$ac_ext
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2765 } # ac_fn_c_check_header_preproc
2767 # ac_fn_c_check_func LINENO FUNC VAR
2768 # ----------------------------------
2769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2770 ac_fn_c_check_func
()
2772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2776 $as_echo_n "(cached) " >&6
2778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2782 #define $2 innocuous_$2
2784 /* System header to define __stub macros and hopefully few prototypes,
2785 which can conflict with char $2 (); below.
2786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787 <limits.h> exists even on freestanding compilers. */
2790 # include <limits.h>
2792 # include <assert.h>
2797 /* Override any GCC internal prototype to avoid an error.
2798 Use char because int might match the return type of a GCC
2799 builtin and then its argument prototype would still apply. */
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined __stub_$2 || defined __stub___$2
2819 if ac_fn_c_try_link
"$LINENO"; then :
2824 rm -f core conftest.err conftest.
$ac_objext \
2825 conftest
$ac_exeext conftest.
$ac_ext
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2832 } # ac_fn_c_check_func
2833 cat >config.log
<<_ACEOF
2834 This file contains any messages produced by compilers while
2835 running configure, to aid debugging if configure makes a mistake.
2837 It was created by $as_me, which was
2838 generated by GNU Autoconf 2.64. Invocation command line was
2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir
=.
2874 $as_echo "PATH: $as_dir"
2890 # Keep a trace of the command line.
2891 # Strip out --no-create and --no-recursion so they do not pile up.
2892 # Strip out --silent because we don't want to record it for future runs.
2893 # Also quote any args containing shell meta-characters.
2894 # Make two passes to allow for proper duplicate-argument suppression.
2898 ac_must_keep_next
=false
2904 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2905 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2906 |
-silent |
--silent |
--silen |
--sile |
--sil)
2909 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2912 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2914 as_fn_append ac_configure_args1
" '$ac_arg'"
2915 if test $ac_must_keep_next = true
; then
2916 ac_must_keep_next
=false
# Got value, back to normal.
2919 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2920 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2921 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2922 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2923 case "$ac_configure_args0 " in
2924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2927 -* ) ac_must_keep_next
=true
;;
2930 as_fn_append ac_configure_args
" '$ac_arg'"
2935 { ac_configure_args0
=; unset ac_configure_args0
;}
2936 { ac_configure_args1
=; unset ac_configure_args1
;}
2938 # When interrupted or exit'd, cleanup temporary files, and complete
2939 # config.log. We remove comments because anyway the quotes in there
2940 # would cause problems or look ugly.
2941 # WARNING: Use '\'' to represent an apostrophe within the trap.
2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2943 trap 'exit_status=$?
2944 # Save into config.log some information that might help in debugging.
2949 ## ---------------- ##
2950 ## Cache variables. ##
2951 ## ---------------- ##
2954 # The following way of writing the cache mishandles newlines in values,
2956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2957 eval ac_val=\$$ac_var
2961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2965 _ | IFS | as_nl) ;; #(
2966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2967 *) { eval $ac_var=; unset $ac_var;} ;;
2972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2973 *${as_nl}ac_space=\ *)
2975 "s/'\''/'\''\\\\'\'''\''/g;
2976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2987 ## ----------------- ##
2988 ## Output variables. ##
2989 ## ----------------- ##
2992 for ac_var in $ac_subst_vars
2994 eval ac_val=\$$ac_var
2996 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998 $as_echo "$ac_var='\''$ac_val'\''"
3002 if test -n "$ac_subst_files"; then
3004 ## ------------------- ##
3005 ## File substitutions. ##
3006 ## ------------------- ##
3009 for ac_var
in $ac_subst_files
3011 eval ac_val
=\$
$ac_var
3013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3015 $as_echo "$ac_var='\''$ac_val'\''"
3020 if test -s confdefs.h; then
3030 test "$ac_signal" != 0 &&
3031 $as_echo "$as_me: caught signal $ac_signal"
3032 $as_echo "$as_me: exit $exit_status"
3034 rm -f core *.core core.conftest.* &&
3035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3038 for ac_signal
in 1 2 13 15; do
3039 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3044 rm -f -r conftest
* confdefs.h
3046 $as_echo "/* confdefs.h */" > confdefs.h
3048 # Predefined preprocessor variables.
3050 cat >>confdefs.h
<<_ACEOF
3051 #define PACKAGE_NAME "$PACKAGE_NAME"
3054 cat >>confdefs.h
<<_ACEOF
3055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3058 cat >>confdefs.h
<<_ACEOF
3059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3062 cat >>confdefs.h
<<_ACEOF
3063 #define PACKAGE_STRING "$PACKAGE_STRING"
3066 cat >>confdefs.h
<<_ACEOF
3067 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3070 cat >>confdefs.h
<<_ACEOF
3071 #define PACKAGE_URL "$PACKAGE_URL"
3075 # Let the site file select an alternate cache file if it wants to.
3076 # Prefer an explicitly selected file to automatically selected ones.
3079 if test -n "$CONFIG_SITE"; then
3080 ac_site_file1
=$CONFIG_SITE
3081 elif test "x$prefix" != xNONE
; then
3082 ac_site_file1
=$prefix/share
/config.site
3083 ac_site_file2
=$prefix/etc
/config.site
3085 ac_site_file1
=$ac_default_prefix/share
/config.site
3086 ac_site_file2
=$ac_default_prefix/etc
/config.site
3088 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3090 test "x$ac_site_file" = xNONE
&& continue
3091 if test -r "$ac_site_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3094 sed 's/^/| /' "$ac_site_file" >&5
3099 if test -r "$cache_file"; then
3100 # Some versions of bash will fail to source /dev/null (special
3101 # files actually), so we avoid doing that.
3102 if test -f "$cache_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3104 $as_echo "$as_me: loading cache $cache_file" >&6;}
3106 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3107 *) .
"./$cache_file";;
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3112 $as_echo "$as_me: creating cache $cache_file" >&6;}
3116 # Check that the precious variables saved in the cache have kept the same
3118 ac_cache_corrupted
=false
3119 for ac_var
in $ac_precious_vars; do
3120 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3121 eval ac_new_set
=\
$ac_env_${ac_var}_set
3122 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3123 eval ac_new_val
=\
$ac_env_${ac_var}_value
3124 case $ac_old_set,$ac_new_set in
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3128 ac_cache_corrupted
=: ;;
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3132 ac_cache_corrupted
=: ;;
3135 if test "x$ac_old_val" != "x$ac_new_val"; then
3136 # differences in whitespace do not lead to failure.
3137 ac_old_val_w
=`echo x $ac_old_val`
3138 ac_new_val_w
=`echo x $ac_new_val`
3139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3142 ac_cache_corrupted
=:
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3146 eval $ac_var=\
$ac_old_val
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3154 # Pass precious variables to config.status.
3155 if test "$ac_new_set" = set; then
3157 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3158 *) ac_arg
=$ac_var=$ac_new_val ;;
3160 case " $ac_configure_args " in
3161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3162 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3166 if $ac_cache_corrupted; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3171 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3173 ## -------------------- ##
3174 ## Main body of script. ##
3175 ## -------------------- ##
3178 ac_cpp
='$CPP $CPPFLAGS'
3179 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3188 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3191 gcc_version
=`cat $srcdir/BASE-VER`
3193 # Determine the host, build, and target systems
3195 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3196 for ac_t
in install-sh
install.sh shtool
; do
3197 if test -f "$ac_dir/$ac_t"; then
3199 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3204 if test -z "$ac_aux_dir"; then
3205 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3208 # These three variables are undocumented and unsupported,
3209 # and are intended to be withdrawn in a future Autoconf release.
3210 # They can cause serious problems if a builder's source tree is in a directory
3211 # whose full name contains unusual characters.
3212 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3213 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3214 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3217 # Make sure we can run config.sub.
3218 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3219 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3222 $as_echo_n "checking build system type... " >&6; }
3223 if test "${ac_cv_build+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3226 ac_build_alias
=$build_alias
3227 test "x$ac_build_alias" = x
&&
3228 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3229 test "x$ac_build_alias" = x
&&
3230 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3231 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3232 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3236 $as_echo "$ac_cv_build" >&6; }
3237 case $ac_cv_build in
3239 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3242 ac_save_IFS
=$IFS; IFS
='-'
3248 # Remember, the first character of IFS is used to create $*,
3249 # except with old shells:
3252 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3256 $as_echo_n "checking host system type... " >&6; }
3257 if test "${ac_cv_host+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3260 if test "x$host_alias" = x
; then
3261 ac_cv_host
=$ac_cv_build
3263 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3264 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3269 $as_echo "$ac_cv_host" >&6; }
3272 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3275 ac_save_IFS
=$IFS; IFS
='-'
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3285 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3289 $as_echo_n "checking target system type... " >&6; }
3290 if test "${ac_cv_target+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3293 if test "x$target_alias" = x
; then
3294 ac_cv_target
=$ac_cv_host
3296 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3297 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3302 $as_echo "$ac_cv_target" >&6; }
3303 case $ac_cv_target in
3305 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3307 target
=$ac_cv_target
3308 ac_save_IFS
=$IFS; IFS
='-'
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3318 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3321 # The aliases save the names the user supplied, while $host etc.
3322 # will get canonicalized.
3323 test -n "$target_alias" &&
3324 test "$program_prefix$program_suffix$program_transform_name" = \
3326 program_prefix
=${target_alias}-
3328 # Determine the noncanonical host name, for Ada.
3329 case ${build_alias} in
3330 "") build_noncanonical
=${build} ;;
3331 *) build_noncanonical
=${build_alias} ;;
3334 case ${host_alias} in
3335 "") host_noncanonical
=${build_noncanonical} ;;
3336 *) host_noncanonical
=${host_alias} ;;
3342 # Determine the noncanonical target name, for directory use.
3343 case ${target_alias} in
3344 "") target_noncanonical
=${host_noncanonical} ;;
3345 *) target_noncanonical
=${target_alias} ;;
3351 # Used for constructing correct paths for offload compilers.
3352 real_target_noncanonical
=${target_noncanonical}
3355 # Determine the target- and build-specific subdirectories
3357 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3358 # have matching libraries, they should use host libraries: Makefile.tpl
3359 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3360 # However, they still use the build modules, because the corresponding
3361 # host modules (e.g. bison) are only built for the host when bootstrap
3363 # - build_subdir is where we find build modules, and never changes.
3364 # - build_libsubdir is where we find build libraries, and can be overridden.
3366 # Prefix 'build-' so this never conflicts with target_subdir.
3367 build_subdir
="build-${build_noncanonical}"
3369 # Check whether --with-build-libsubdir was given.
3370 if test "${with_build_libsubdir+set}" = set; then :
3371 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3373 build_libsubdir
="$build_subdir"
3376 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3377 if ( test $srcdir = .
&& test -d gcc
) \
3378 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3379 host_subdir
="host-${host_noncanonical}"
3384 target_subdir
=${target_noncanonical}
3387 # Set program_transform_name
3388 test "$program_prefix" != NONE
&&
3389 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE
&&
3392 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3399 # Check for bogus environment variables.
3400 # Test if LIBRARY_PATH contains the notation for the current directory
3401 # since this would lead to problems installing/building glibc.
3402 # LIBRARY_PATH contains the current directory if one of the following
3404 # - one of the terminals (":" and ";") is the first or last sign
3405 # - two terminals occur directly after each other
3406 # - the path contains an element with a dot in it
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3408 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3409 case ${LIBRARY_PATH} in
3410 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3411 library_path_setting
="contains current directory"
3414 library_path_setting
="ok"
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3418 $as_echo "$library_path_setting" >&6; }
3419 if test "$library_path_setting" != "ok"; then
3421 *** LIBRARY_PATH shouldn't contain the current directory when
3422 *** building gcc. Please change the environment variable
3423 *** and run configure again." "$LINENO" 5
3426 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3427 # since this would lead to problems installing/building glibc.
3428 # GCC_EXEC_PREFIX contains the current directory if one of the following
3430 # - one of the terminals (":" and ";") is the first or last sign
3431 # - two terminals occur directly after each other
3432 # - the path contains an element with a dot in it
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3434 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3435 case ${GCC_EXEC_PREFIX} in
3436 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3437 gcc_exec_prefix_setting
="contains current directory"
3440 gcc_exec_prefix_setting
="ok"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3444 $as_echo "$gcc_exec_prefix_setting" >&6; }
3445 if test "$gcc_exec_prefix_setting" != "ok"; then
3447 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3448 *** building gcc. Please change the environment variable
3449 *** and run configure again." "$LINENO" 5
3456 # Specify the local prefix
3459 # Check whether --with-local-prefix was given.
3460 if test "${with_local_prefix+set}" = set; then :
3461 withval
=$with_local_prefix; case "${withval}" in
3462 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3464 *) local_prefix
=$with_local_prefix ;;
3469 # Default local prefix if it is empty
3470 if test x
$local_prefix = x
; then
3471 local_prefix
=/usr
/local
3475 # Check whether --with-native-system-header-dir was given.
3476 if test "${with_native_system_header_dir+set}" = set; then :
3477 withval
=$with_native_system_header_dir;
3478 case ${with_native_system_header_dir} in
3479 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3480 /* |
[A-Za-z
]:[\\/]*) ;;
3481 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3483 configured_native_system_header_dir
="${withval}"
3486 configured_native_system_header_dir
=
3491 # Check whether --with-build-sysroot was given.
3492 if test "${with_build_sysroot+set}" = set; then :
3493 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3494 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3497 SYSROOT_CFLAGS_FOR_TARGET
=
3502 if test "x$prefix" = xNONE
; then
3503 test_prefix
=/usr
/local
3507 if test "x$exec_prefix" = xNONE
; then
3508 test_exec_prefix
=$test_prefix
3510 test_exec_prefix
=$exec_prefix
3514 # Check whether --with-sysroot was given.
3515 if test "${with_sysroot+set}" = set; then :
3516 withval
=$with_sysroot;
3517 case ${with_sysroot} in
3519 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3521 case ${with_sysroot} in
3522 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3523 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3526 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3527 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3529 case ${TARGET_SYSTEM_ROOT} in
3530 "${test_prefix}"|
"${test_prefix}/"*|\
3531 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3532 '${prefix}'|
'${prefix}/'*|\
3533 '${exec_prefix}'|
'${exec_prefix}/'*)
3534 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3535 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3542 TARGET_SYSTEM_ROOT_DEFINE
=
3543 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3551 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3552 # passed in by the toplevel make and thus we'd get different behavior
3553 # depending on where we built the sources.
3554 gcc_gxx_include_dir
=
3555 # Specify the g++ header file directory
3557 # Check whether --with-gxx-include-dir was given.
3558 if test "${with_gxx_include_dir+set}" = set; then :
3559 withval
=$with_gxx_include_dir; case "${withval}" in
3560 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3562 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3567 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3568 if test x
${gcc_gxx_include_dir} = x
; then
3569 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3570 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3572 libstdcxx_incdir
='include/c++/$(version)'
3573 if test x
$host != x
$target; then
3574 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3576 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3580 gcc_gxx_include_dir_add_sysroot
=0
3581 if test "${with_sysroot+set}" = set; then
3582 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3583 if test "${gcc_gxx_without_sysroot}"; then
3584 if test x
${with_sysroot} != x
/; then
3585 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3587 gcc_gxx_include_dir_add_sysroot
=1
3592 # Check whether --with-cpp_install_dir was given.
3593 if test "${with_cpp_install_dir+set}" = set; then :
3594 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3595 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3596 elif test x
$withval != xno
; then
3597 cpp_install_dir
=$withval
3602 # We would like to our source tree to be readonly. However when releases or
3603 # pre-releases are generated, the flex/bison generated files as well as the
3604 # various formats of manuals need to be included along with the rest of the
3605 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3609 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3610 # Check whether --enable-generated-files-in-srcdir was given.
3611 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3612 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3614 generated_files_in_srcdir
=no
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3619 $as_echo "$generated_files_in_srcdir" >&6; }
3621 if test "$generated_files_in_srcdir" = "yes"; then
3628 # -------------------
3629 # Find default linker
3630 # -------------------
3634 # Check whether --with-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then :
3636 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3643 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3647 # With pre-defined ld
3649 # Check whether --with-ld was given.
3650 if test "${with_ld+set}" = set; then :
3651 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3654 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3655 if test ! -x "$DEFAULT_LINKER"; then
3656 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3657 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3659 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3663 cat >>confdefs.h
<<_ACEOF
3664 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3670 $as_echo_n "checking whether a default linker was specified... " >&6; }
3671 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3672 if test x
"$gnu_ld_flag" = x
"no"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3674 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3677 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3684 # With demangler in GNU ld
3686 # Check whether --with-demangler-in-ld was given.
3687 if test "${with_demangler_in_ld+set}" = set; then :
3688 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3694 # ----------------------
3695 # Find default assembler
3696 # ----------------------
3700 # Check whether --with-gnu-as was given.
3701 if test "${with_gnu_as+set}" = set; then :
3702 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3709 # Check whether --with-as was given.
3710 if test "${with_as+set}" = set; then :
3711 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3714 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3715 if test ! -x "$DEFAULT_ASSEMBLER"; then
3716 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3717 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3721 cat >>confdefs.h
<<_ACEOF
3722 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3728 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3729 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3730 if test x
"$gas_flag" = x
"no"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3732 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3735 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3746 # If a non-executable a.out is present (e.g. created by GNU as above even if
3747 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3748 # file, even when creating an executable, so an execution test fails.
3749 # Remove possible default executable files to avoid this.
3751 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3752 # Autoconf includes it.
3753 rm -f a.out a.exe b.out
3755 # Find the native compiler
3757 ac_cpp
='$CPP $CPPFLAGS'
3758 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3763 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if test "${ac_cv_prog_CC+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3769 if test -n "$CC"; then
3770 ac_cv_prog_CC
="$CC" # Let the user override the test.
3772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir
=.
3777 for ac_exec_ext
in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 if test -n "$CC"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3792 $as_echo "$CC" >&6; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3800 if test -z "$ac_cv_prog_CC"; then
3802 # Extract the first word of "gcc", so it can be a program name with args.
3803 set dummy gcc
; ac_word
=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3809 if test -n "$ac_ct_CC"; then
3810 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3816 test -z "$as_dir" && as_dir
=.
3817 for ac_exec_ext
in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 ac_cv_prog_ac_ct_CC
="gcc"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3830 if test -n "$ac_ct_CC"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3832 $as_echo "$ac_ct_CC" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3838 if test "x$ac_ct_CC" = x
; then
3841 case $cross_compiling:$ac_tool_warned in
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned
=yes ;;
3853 if test -z "$CC"; then
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3856 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if test "${ac_cv_prog_CC+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
3862 if test -n "$CC"; then
3863 ac_cv_prog_CC
="$CC" # Let the user override the test.
3865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3869 test -z "$as_dir" && as_dir
=.
3870 for ac_exec_ext
in '' $ac_executable_extensions; do
3871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 if test -n "$CC"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3885 $as_echo "$CC" >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3894 if test -z "$CC"; then
3895 # Extract the first word of "cc", so it can be a program name with args.
3896 set dummy cc
; ac_word
=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if test "${ac_cv_prog_CC+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC
="$CC" # Let the user override the test.
3906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir
=.
3911 for ac_exec_ext
in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3914 ac_prog_rejected
=yes
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 if test $ac_prog_rejected = yes; then
3926 # We found a bogon in the path, so make sure we never use it.
3927 set dummy
$ac_cv_prog_CC
3929 if test $# != 0; then
3930 # We chose a different compiler from the bogus one.
3931 # However, it has the same basename, so the bogon will be chosen
3932 # first if we set CC to just the basename; use the full file name.
3934 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3940 if test -n "$CC"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942 $as_echo "$CC" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3950 if test -z "$CC"; then
3951 if test -n "$ac_tool_prefix"; then
3952 for ac_prog
in cl.exe
3954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if test "${ac_cv_prog_CC+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3961 if test -n "$CC"; then
3962 ac_cv_prog_CC
="$CC" # Let the user override the test.
3964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3968 test -z "$as_dir" && as_dir
=.
3969 for ac_exec_ext
in '' $ac_executable_extensions; do
3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 if test -n "$CC"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3984 $as_echo "$CC" >&6; }
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3991 test -n "$CC" && break
3994 if test -z "$CC"; then
3996 for ac_prog
in cl.exe
3998 # Extract the first word of "$ac_prog", so it can be a program name with args.
3999 set dummy
$ac_prog; ac_word
=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4005 if test -n "$ac_ct_CC"; then
4006 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4012 test -z "$as_dir" && as_dir
=.
4013 for ac_exec_ext
in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_prog_ac_ct_CC
="$ac_prog"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4026 if test -n "$ac_ct_CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4028 $as_echo "$ac_ct_CC" >&6; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4035 test -n "$ac_ct_CC" && break
4038 if test "x$ac_ct_CC" = x
; then
4041 case $cross_compiling:$ac_tool_warned in
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045 ac_tool_warned
=yes ;;
4054 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error
"no acceptable C compiler found in \$PATH
4057 See \`config.log' for more details." "$LINENO" 5; }
4059 # Provide some information about the compiler.
4060 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4063 for ac_option
in --version -v -V -qversion; do
4064 { { ac_try
="$ac_compiler $ac_option >&5"
4066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 $as_echo "$ac_try_echo"; } >&5
4071 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4073 if test -s conftest.err; then
4075 ... rest of stderr output deleted ...
4076 10q' conftest.err >conftest.er1
4077 cat conftest.er1 >&5
4078 rm -f conftest.er1 conftest.err
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4095 ac_clean_files_save=$ac_clean_files
4096 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4097 # Try to create an executable without -o first, disregard a.out.
4098 # It will help us diagnose broken compilers, and finding out an intuition
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4101 $as_echo_n "checking for C compiler default output file name... " >&6; }
4102 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4104 # The possible output files:
4105 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4108 for ac_file in $ac_files
4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4112 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4117 if { { ac_try="$ac_link_default"
4119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4120 *) ac_try_echo
=$ac_try;;
4122 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123 $as_echo "$ac_try_echo"; } >&5
4124 (eval "$ac_link_default") 2>&5
4126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127 test $ac_status = 0; }; then :
4128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4130 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4131 # so that the user can short-circuit this test for compilers unknown to
4133 for ac_file
in $ac_files ''
4135 test -f "$ac_file" ||
continue
4137 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4140 # We found the default executable, but exeext='' is most
4144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4146 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4148 # We set ac_cv_exeext here because the later test for it is not
4149 # safe: cross compilers may not add the suffix if given an `-o'
4150 # argument, so we may need to know it at that point already.
4151 # Even if this section looks crufty: it has the advantage of
4158 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4164 $as_echo "$ac_file" >&6; }
4165 if test -z "$ac_file"; then :
4166 $as_echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.
$ac_ext >&5
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 { as_fn_set_status
77
4172 as_fn_error
"C compiler cannot create executables
4173 See \`config.log' for more details." "$LINENO" 5; }; }
4175 ac_exeext
=$ac_cv_exeext
4177 # Check that the compiler produces executables we can run. If not, either
4178 # the compiler is broken, or we cross compile.
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4180 $as_echo_n "checking whether the C compiler works... " >&6; }
4181 # If not cross compiling, check that we can run a simple program.
4182 if test "$cross_compiling" != yes; then
4183 if { ac_try
='./$ac_file'
4184 { { case "(($ac_try" in
4185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189 $as_echo "$ac_try_echo"; } >&5
4190 (eval "$ac_try") 2>&5
4192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; }; }; then
4196 if test "$cross_compiling" = maybe; then
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error "cannot run C compiled programs.
4202 If you meant to cross compile
, use \
`--host'.
4203 See \`config.log
' for more details." "$LINENO" 5; }
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4208 $as_echo "yes" >&6; }
4210 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4211 ac_clean_files=$ac_clean_files_save
4212 # Check that the compiler produces executables we can run. If not, either
4213 # the compiler is broken, or we cross compile.
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4215 $as_echo_n "checking whether we are cross compiling... " >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4217 $as_echo "$cross_compiling" >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4220 $as_echo_n "checking for suffix of executables... " >&6; }
4221 if { { ac_try="$ac_link"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_link") 2>&5
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }; then :
4232 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4233 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4234 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4236 for ac_file
in conftest.exe conftest conftest.
*; do
4237 test -f "$ac_file" ||
continue
4239 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4240 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4248 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4249 See \`config.log' for more details." "$LINENO" 5; }
4251 rm -f conftest
$ac_cv_exeext
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4253 $as_echo "$ac_cv_exeext" >&6; }
4255 rm -f conftest.
$ac_ext
4256 EXEEXT
=$ac_cv_exeext
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4259 $as_echo_n "checking for suffix of object files... " >&6; }
4260 if test "${ac_cv_objext+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4274 rm -f conftest.o conftest.obj
4275 if { { ac_try
="$ac_compile"
4277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282 (eval "$ac_compile") 2>&5
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }; then :
4286 for ac_file in conftest.o conftest.obj conftest.*; do
4287 test -f "$ac_file" || continue;
4289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error "cannot compute suffix of object files
: cannot compile
4301 See \
`config.log' for more details." "$LINENO" 5; }
4303 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4306 $as_echo "$ac_cv_objext" >&6; }
4307 OBJEXT=$ac_cv_objext
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4311 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4328 if ac_fn_c_try_compile "$LINENO"; then :
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4339 if test $ac_compiler_gnu = yes; then
4344 ac_test_CFLAGS=${CFLAGS+set}
4345 ac_save_CFLAGS=$CFLAGS
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4348 if test "${ac_cv_prog_cc_g+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4351 ac_save_c_werror_flag=$ac_c_werror_flag
4352 ac_c_werror_flag=yes
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4366 if ac_fn_c_try_compile "$LINENO"; then :
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4381 if ac_fn_c_try_compile "$LINENO"; then :
4384 ac_c_werror_flag=$ac_save_c_werror_flag
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4397 if ac_fn_c_try_compile "$LINENO"; then :
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 ac_c_werror_flag=$ac_save_c_werror_flag
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4408 $as_echo "$ac_cv_prog_cc_g" >&6; }
4409 if test "$ac_test_CFLAGS" = set; then
4410 CFLAGS=$ac_save_CFLAGS
4411 elif test $ac_cv_prog_cc_g = yes; then
4412 if test "$GCC" = yes; then
4418 if test "$GCC" = yes; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4426 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4429 ac_cv_prog_cc_c89=no
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4435 #include <sys/types.h>
4436 #include <sys/stat.h>
4437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4438 struct buf { int x; };
4439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4440 static char *e (p, i)
4446 static char *f (char * (*g) (char **, int), char **p, ...)
4451 s = g (p, va_arg (v,int));
4456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4457 function prototypes and stuff, but not '\xHH' hex character constants.
4458 These don't provoke an error unfortunately, instead are silently treated
4459 as 'x'. The following induces an error, until -std is added to get
4460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4461 array size at least. It's necessary to write '\x00'==0 to get something
4462 that's true only with -std. */
4463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4466 inside strings and character constants. */
4468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4470 int test (int i, double x);
4471 struct s1 {int (*f) (int a);};
4472 struct s2 {int (*f) (double a);};
4473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4487 CC="$ac_save_CC $ac_arg"
4488 if ac_fn_c_try_compile "$LINENO"; then :
4489 ac_cv_prog_cc_c89=$ac_arg
4491 rm -f core conftest.err conftest.$ac_objext
4492 test "x$ac_cv_prog_cc_c89" != "xno" && break
4494 rm -f conftest.$ac_ext
4499 case "x$ac_cv_prog_cc_c89" in
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4502 $as_echo "none needed" >&6; } ;;
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4505 $as_echo "unsupported" >&6; } ;;
4507 CC="$CC $ac_cv_prog_cc_c89"
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4511 if test "x$ac_cv_prog_cc_c89" != xno; then :
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 ac_cpp='$CXXCPP $CPPFLAGS'
4523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526 if test -z "$CXX"; then
4527 if test -n "$CCC"; then
4530 if test -n "$ac_tool_prefix"; then
4531 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_CXX+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -n "$CXX"; then
4541 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 if test -n "$CXX"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4563 $as_echo "$CXX" >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4570 test -n "$CXX" && break
4573 if test -z "$CXX"; then
4575 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4577 # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580 $as_echo_n "checking for $ac_word... " >&6; }
4581 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4584 if test -n "$ac_ct_CXX"; then
4585 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_ac_ct_CXX="$ac_prog"
4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4605 if test -n "$ac_ct_CXX"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4607 $as_echo "$ac_ct_CXX" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4614 test -n "$ac_ct_CXX" && break
4617 if test "x$ac_ct_CXX" = x; then
4620 case $cross_compiling:$ac_tool_warned in
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624 ac_tool_warned=yes ;;
4632 # Provide some information about the compiler.
4633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4636 for ac_option in --version -v -V -qversion; do
4637 { { ac_try="$ac_compiler $ac_option >&5"
4639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4640 *) ac_try_echo
=$ac_try;;
4642 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643 $as_echo "$ac_try_echo"; } >&5
4644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4646 if test -s conftest.err
; then
4648 ... rest of stderr output deleted ...
4649 10q' conftest.err
>conftest.er1
4650 cat conftest.er1
>&5
4651 rm -f conftest.er1 conftest.err
4653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654 test $ac_status = 0; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4658 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4659 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4676 if ac_fn_cxx_try_compile
"$LINENO"; then :
4681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4682 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4686 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4687 if test $ac_compiler_gnu = yes; then
4692 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4693 ac_save_CXXFLAGS
=$CXXFLAGS
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4695 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4696 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4699 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4700 ac_cxx_werror_flag
=yes
4703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4714 if ac_fn_cxx_try_compile
"$LINENO"; then :
4715 ac_cv_prog_cxx_g
=yes
4718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4729 if ac_fn_cxx_try_compile
"$LINENO"; then :
4732 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4745 if ac_fn_cxx_try_compile
"$LINENO"; then :
4746 ac_cv_prog_cxx_g
=yes
4748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4753 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4756 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4757 if test "$ac_test_CXXFLAGS" = set; then
4758 CXXFLAGS
=$ac_save_CXXFLAGS
4759 elif test $ac_cv_prog_cxx_g = yes; then
4760 if test "$GXX" = yes; then
4766 if test "$GXX" = yes; then
4773 ac_cpp
='$CPP $CPPFLAGS'
4774 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4781 if test -n "$ac_tool_prefix"; then
4782 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4783 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -n "$GNATBIND"; then
4790 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir
=.
4797 for ac_exec_ext
in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 GNATBIND
=$ac_cv_prog_GNATBIND
4810 if test -n "$GNATBIND"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4812 $as_echo "$GNATBIND" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4820 if test -z "$ac_cv_prog_GNATBIND"; then
4821 ac_ct_GNATBIND
=$GNATBIND
4822 # Extract the first word of "gnatbind", so it can be a program name with args.
4823 set dummy gnatbind
; ac_word
=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4829 if test -n "$ac_ct_GNATBIND"; then
4830 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir
=.
4837 for ac_exec_ext
in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4850 if test -n "$ac_ct_GNATBIND"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4852 $as_echo "$ac_ct_GNATBIND" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4858 if test "x$ac_ct_GNATBIND" = x
; then
4861 case $cross_compiling:$ac_tool_warned in
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865 ac_tool_warned
=yes ;;
4867 GNATBIND
=$ac_ct_GNATBIND
4870 GNATBIND
="$ac_cv_prog_GNATBIND"
4873 if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4875 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4881 if test -n "$GNATMAKE"; then
4882 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir
=.
4889 for ac_exec_ext
in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 GNATMAKE
=$ac_cv_prog_GNATMAKE
4902 if test -n "$GNATMAKE"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4904 $as_echo "$GNATMAKE" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4912 if test -z "$ac_cv_prog_GNATMAKE"; then
4913 ac_ct_GNATMAKE
=$GNATMAKE
4914 # Extract the first word of "gnatmake", so it can be a program name with args.
4915 set dummy gnatmake
; ac_word
=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -n "$ac_ct_GNATMAKE"; then
4922 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir
=.
4929 for ac_exec_ext
in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4942 if test -n "$ac_ct_GNATMAKE"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4944 $as_echo "$ac_ct_GNATMAKE" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4950 if test "x$ac_ct_GNATMAKE" = x
; then
4953 case $cross_compiling:$ac_tool_warned in
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957 ac_tool_warned
=yes ;;
4959 GNATMAKE
=$ac_ct_GNATMAKE
4962 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4966 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4967 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4970 cat >conftest.adb
<<EOF
4971 procedure conftest is begin null; end conftest;
4973 acx_cv_cc_gcc_supports_ada
=no
4974 # There is a bug in old released versions of GCC which causes the
4975 # driver to exit successfully when the appropriate language module
4976 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4977 # Therefore we must check for the error message as well as an
4978 # unsuccessful exit.
4979 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4980 # given a .adb file, but produce no object file. So we must check
4981 # if an object file was really produced to guard against this.
4982 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4983 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4984 acx_cv_cc_gcc_supports_ada
=yes
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4989 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4991 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4998 # Do configure tests with the C++ compiler, since that's what we build with.
5000 ac_cpp
='$CXXCPP $CPPFLAGS'
5001 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5006 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5007 # optimizations to be activated explicitly by the toplevel.
5009 */prev-gcc
/xgcc
*) ;;
5010 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5011 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5016 # Determine PICFLAG for target gnatlib.
5022 # PIC is the default on some targets or must not be used.
5024 # For darwin, common symbols are not allowed in MH_DYLIB files
5026 # If we are using a compiler supporting mdynamic-no-pic
5027 # and the option has been tested as safe to add, then cancel
5028 # it here, since the code generated is incompatible with shared
5030 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5031 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5035 # PIC is the default.
5038 # PIC is the default for 64-bit PA HP-UX.
5040 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5042 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5044 i
[34567]86-*-interix[3-9]*)
5045 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5046 # Instead, we relocate shared libraries at runtime.
5048 i
[34567]86-*-nto-qnx*)
5049 # QNX uses GNU C++, but need to define -shared option too, otherwise
5051 PICFLAG_FOR_TARGET
='-fPIC -shared'
5053 i
[34567]86-pc-msdosdjgpp*)
5054 # DJGPP does not support shared libraries at all.
5057 # On IA64 HP-UX, PIC is the default but the pic flag
5058 # sets the default TLS model and affects inlining.
5059 PICFLAG_FOR_TARGET
=-fPIC
5062 # PIC is the default.
5064 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5065 # All AIX code is PIC.
5068 # Some targets support both -fPIC and -fpic, but prefer the latter.
5070 i
[34567]86-*-* | x86_64-
*-*)
5071 PICFLAG_FOR_TARGET
=-fpic
5073 # FIXME: Override -fPIC default in libgcc only?
5074 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5075 PICFLAG_FOR_TARGET
=-fpic
5077 # FIXME: Simplify to sh*-*-netbsd*?
5078 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5079 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5080 PICFLAG_FOR_TARGET
=-fpic
5082 # Default to -fPIC unless specified otherwise.
5084 PICFLAG_FOR_TARGET
=-fPIC
5088 # If the user explicitly uses -fpic/-fPIC, keep that.
5089 case "${CFLAGS_FOR_TARGET}" in
5091 PICFLAG_FOR_TARGET
=-fpic
5094 PICFLAG_FOR_TARGET
=-fPIC
5100 # -------------------------
5101 # Check C compiler features
5102 # -------------------------
5106 ac_cpp
='$CXXCPP $CPPFLAGS'
5107 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5111 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5112 if test -z "$CXXCPP"; then
5113 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5116 # Double quotes because CXXCPP needs to be expanded
5117 for CXXCPP
in "$CXX -E" "/lib/cpp"
5120 for ac_cxx_preproc_warn_flag
in '' yes
5122 # Use a header file that comes with gcc, so configuring glibc
5123 # with a fresh cross-compiler works.
5124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5125 # <limits.h> exists even on freestanding compilers.
5126 # On the NeXT, cc -E runs the code through the compiler's parser,
5127 # not just through cpp. "Syntax error" is here to catch this case.
5128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5131 # include <limits.h>
5133 # include <assert.h>
5137 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5140 # Broken: fails on valid input.
5143 rm -f conftest.err conftest.
$ac_ext
5145 # OK, works on sane cases. Now check whether nonexistent headers
5146 # can be detected and how.
5147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149 #include <ac_nonexistent.h>
5151 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5152 # Broken: success on invalid input.
5155 # Passes both tests.
5159 rm -f conftest.err conftest.
$ac_ext
5162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5163 rm -f conftest.err conftest.
$ac_ext
5164 if $ac_preproc_ok; then :
5169 ac_cv_prog_CXXCPP
=$CXXCPP
5172 CXXCPP
=$ac_cv_prog_CXXCPP
5174 ac_cv_prog_CXXCPP
=$CXXCPP
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5177 $as_echo "$CXXCPP" >&6; }
5179 for ac_cxx_preproc_warn_flag
in '' yes
5181 # Use a header file that comes with gcc, so configuring glibc
5182 # with a fresh cross-compiler works.
5183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5184 # <limits.h> exists even on freestanding compilers.
5185 # On the NeXT, cc -E runs the code through the compiler's parser,
5186 # not just through cpp. "Syntax error" is here to catch this case.
5187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5190 # include <limits.h>
5192 # include <assert.h>
5196 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5199 # Broken: fails on valid input.
5202 rm -f conftest.err conftest.
$ac_ext
5204 # OK, works on sane cases. Now check whether nonexistent headers
5205 # can be detected and how.
5206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 #include <ac_nonexistent.h>
5210 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5211 # Broken: success on invalid input.
5214 # Passes both tests.
5218 rm -f conftest.err conftest.
$ac_ext
5221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5222 rm -f conftest.err conftest.
$ac_ext
5223 if $ac_preproc_ok; then :
5226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5228 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5229 See \`config.log' for more details." "$LINENO" 5; }
5233 ac_cpp
='$CXXCPP $CPPFLAGS'
5234 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5240 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5241 if test "${ac_cv_path_GREP+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5244 if test -z "$GREP"; then
5245 ac_path_GREP_found
=false
5246 # Loop through the user's path and test for each of PROGNAME-LIST
5247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5248 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5251 test -z "$as_dir" && as_dir
=.
5252 for ac_prog
in grep ggrep
; do
5253 for ac_exec_ext
in '' $ac_executable_extensions; do
5254 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5255 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5256 # Check for GNU ac_path_GREP and select it if it is found.
5257 # Check for GNU $ac_path_GREP
5258 case `"$ac_path_GREP" --version 2>&1` in
5260 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5263 $as_echo_n 0123456789 >"conftest.in"
5266 cat "conftest.in" "conftest.in" >"conftest.tmp"
5267 mv "conftest.tmp" "conftest.in"
5268 cp "conftest.in" "conftest.nl"
5269 $as_echo 'GREP' >> "conftest.nl"
5270 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5271 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5272 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5273 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5274 # Best one so far, save it but keep looking for a better one
5275 ac_cv_path_GREP
="$ac_path_GREP"
5276 ac_path_GREP_max
=$ac_count
5278 # 10*(2^10) chars as input seems more than enough
5279 test $ac_count -gt 10 && break
5281 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5284 $ac_path_GREP_found && break 3
5289 if test -z "$ac_cv_path_GREP"; then
5290 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5293 ac_cv_path_GREP
=$GREP
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5298 $as_echo "$ac_cv_path_GREP" >&6; }
5299 GREP
="$ac_cv_path_GREP"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5303 $as_echo_n "checking for egrep... " >&6; }
5304 if test "${ac_cv_path_EGREP+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5307 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5308 then ac_cv_path_EGREP
="$GREP -E"
5310 if test -z "$EGREP"; then
5311 ac_path_EGREP_found
=false
5312 # Loop through the user's path and test for each of PROGNAME-LIST
5313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5314 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5317 test -z "$as_dir" && as_dir
=.
5318 for ac_prog
in egrep; do
5319 for ac_exec_ext
in '' $ac_executable_extensions; do
5320 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5321 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5322 # Check for GNU ac_path_EGREP and select it if it is found.
5323 # Check for GNU $ac_path_EGREP
5324 case `"$ac_path_EGREP" --version 2>&1` in
5326 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5329 $as_echo_n 0123456789 >"conftest.in"
5332 cat "conftest.in" "conftest.in" >"conftest.tmp"
5333 mv "conftest.tmp" "conftest.in"
5334 cp "conftest.in" "conftest.nl"
5335 $as_echo 'EGREP' >> "conftest.nl"
5336 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5337 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5338 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5339 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5340 # Best one so far, save it but keep looking for a better one
5341 ac_cv_path_EGREP
="$ac_path_EGREP"
5342 ac_path_EGREP_max
=$ac_count
5344 # 10*(2^10) chars as input seems more than enough
5345 test $ac_count -gt 10 && break
5347 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5350 $ac_path_EGREP_found && break 3
5355 if test -z "$ac_cv_path_EGREP"; then
5356 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5359 ac_cv_path_EGREP
=$EGREP
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5365 $as_echo "$ac_cv_path_EGREP" >&6; }
5366 EGREP
="$ac_cv_path_EGREP"
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5370 $as_echo_n "checking for ANSI C header files... " >&6; }
5371 if test "${ac_cv_header_stdc+set}" = set; then :
5372 $as_echo_n "(cached) " >&6
5374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5389 if ac_fn_cxx_try_compile
"$LINENO"; then :
5390 ac_cv_header_stdc
=yes
5392 ac_cv_header_stdc
=no
5394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5396 if test $ac_cv_header_stdc = yes; then
5397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5404 $EGREP "memchr" >/dev
/null
2>&1; then :
5407 ac_cv_header_stdc
=no
5413 if test $ac_cv_header_stdc = yes; then
5414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5421 $EGREP "free" >/dev
/null
2>&1; then :
5424 ac_cv_header_stdc
=no
5430 if test $ac_cv_header_stdc = yes; then
5431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5432 if test "$cross_compiling" = yes; then :
5435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5439 #if ((' ' & 0x0FF) == 0x020)
5440 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5441 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5443 # define ISLOWER(c) \
5444 (('a' <= (c) && (c) <= 'i') \
5445 || ('j' <= (c) && (c) <= 'r') \
5446 || ('s' <= (c) && (c) <= 'z'))
5447 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5450 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5455 for (i = 0; i < 256; i++)
5456 if (XOR (islower (i), ISLOWER (i))
5457 || toupper (i) != TOUPPER (i))
5462 if ac_fn_cxx_try_run
"$LINENO"; then :
5465 ac_cv_header_stdc
=no
5467 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5468 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5474 $as_echo "$ac_cv_header_stdc" >&6; }
5475 if test $ac_cv_header_stdc = yes; then
5477 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5482 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5483 inttypes.h stdint.h unistd.h
5485 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5488 eval as_val
=\$
$as_ac_Header
5489 if test "x$as_val" = x
""yes; then :
5490 cat >>confdefs.h
<<_ACEOF
5491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5501 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5508 if test "$MINIX" = yes; then
5510 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5513 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5516 $as_echo "#define _MINIX 1" >>confdefs.h
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5522 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5523 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5529 # define __EXTENSIONS__ 1
5530 $ac_includes_default
5539 if ac_fn_cxx_try_compile
"$LINENO"; then :
5540 ac_cv_safe_to_define___extensions__
=yes
5542 ac_cv_safe_to_define___extensions__
=no
5544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5547 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5548 test $ac_cv_safe_to_define___extensions__ = yes &&
5549 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5551 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5553 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5555 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5557 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5561 ac_cpp
='$CPP $CPPFLAGS'
5562 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5566 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5567 # On Suns, sometimes $CPP names a directory.
5568 if test -n "$CPP" && test -d "$CPP"; then
5571 if test -z "$CPP"; then
5572 if test "${ac_cv_prog_CPP+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5575 # Double quotes because CPP needs to be expanded
5576 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5579 for ac_c_preproc_warn_flag
in '' yes
5581 # Use a header file that comes with gcc, so configuring glibc
5582 # with a fresh cross-compiler works.
5583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584 # <limits.h> exists even on freestanding compilers.
5585 # On the NeXT, cc -E runs the code through the compiler's parser,
5586 # not just through cpp. "Syntax error" is here to catch this case.
5587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5590 # include <limits.h>
5592 # include <assert.h>
5596 if ac_fn_c_try_cpp
"$LINENO"; then :
5599 # Broken: fails on valid input.
5602 rm -f conftest.err conftest.
$ac_ext
5604 # OK, works on sane cases. Now check whether nonexistent headers
5605 # can be detected and how.
5606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #include <ac_nonexistent.h>
5610 if ac_fn_c_try_cpp
"$LINENO"; then :
5611 # Broken: success on invalid input.
5614 # Passes both tests.
5618 rm -f conftest.err conftest.
$ac_ext
5621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5622 rm -f conftest.err conftest.
$ac_ext
5623 if $ac_preproc_ok; then :
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5636 $as_echo "$CPP" >&6; }
5638 for ac_c_preproc_warn_flag
in '' yes
5640 # Use a header file that comes with gcc, so configuring glibc
5641 # with a fresh cross-compiler works.
5642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5643 # <limits.h> exists even on freestanding compilers.
5644 # On the NeXT, cc -E runs the code through the compiler's parser,
5645 # not just through cpp. "Syntax error" is here to catch this case.
5646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5649 # include <limits.h>
5651 # include <assert.h>
5655 if ac_fn_c_try_cpp
"$LINENO"; then :
5658 # Broken: fails on valid input.
5661 rm -f conftest.err conftest.
$ac_ext
5663 # OK, works on sane cases. Now check whether nonexistent headers
5664 # can be detected and how.
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <ac_nonexistent.h>
5669 if ac_fn_c_try_cpp
"$LINENO"; then :
5670 # Broken: success on invalid input.
5673 # Passes both tests.
5677 rm -f conftest.err conftest.
$ac_ext
5680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5681 rm -f conftest.err conftest.
$ac_ext
5682 if $ac_preproc_ok; then :
5685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5687 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5688 See \`config.log' for more details." "$LINENO" 5; }
5692 ac_cpp
='$CXXCPP $CPPFLAGS'
5693 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5698 $as_echo_n "checking for inline... " >&6; }
5699 if test "${ac_cv_c_inline+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5703 for ac_kw
in inline __inline__ __inline
; do
5704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5708 static $ac_kw foo_t static_foo () {return 0; }
5709 $ac_kw foo_t foo () {return 0; }
5713 if ac_fn_cxx_try_compile
"$LINENO"; then :
5714 ac_cv_c_inline
=$ac_kw
5716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5717 test "$ac_cv_c_inline" != no
&& break
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5722 $as_echo "$ac_cv_c_inline" >&6; }
5724 case $ac_cv_c_inline in
5727 case $ac_cv_c_inline in
5729 *) ac_val
=$ac_cv_c_inline;;
5731 cat >>confdefs.h
<<_ACEOF
5733 #define inline $ac_val
5740 # Check whether --enable-largefile was given.
5741 if test "${enable_largefile+set}" = set; then :
5742 enableval
=$enable_largefile;
5745 if test "$enable_largefile" != no
; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5748 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5749 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5752 ac_cv_sys_largefile_CC
=no
5753 if test "$GCC" != yes; then
5756 # IRIX 6.2 and later do not support large files by default,
5757 # so use the C compiler's -n32 option if that helps.
5758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5777 if ac_fn_cxx_try_compile
"$LINENO"; then :
5780 rm -f core conftest.err conftest.
$ac_objext
5782 if ac_fn_cxx_try_compile
"$LINENO"; then :
5783 ac_cv_sys_largefile_CC
=' -n32'; break
5785 rm -f core conftest.err conftest.
$ac_objext
5789 rm -f conftest.
$ac_ext
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5793 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5794 if test "$ac_cv_sys_largefile_CC" != no
; then
5795 CC
=$CC$ac_cv_sys_largefile_CC
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5799 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5800 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #include <sys/types.h>
5807 /* Check that off_t can represent 2**63 - 1 correctly.
5808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5809 since some C++ compilers masquerading as C compilers
5810 incorrectly reject 9223372036854775807. */
5811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5813 && LARGE_OFF_T % 2147483647 == 1)
5823 if ac_fn_cxx_try_compile
"$LINENO"; then :
5824 ac_cv_sys_file_offset_bits
=no
; break
5826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #define _FILE_OFFSET_BITS 64
5830 #include <sys/types.h>
5831 /* Check that off_t can represent 2**63 - 1 correctly.
5832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5833 since some C++ compilers masquerading as C compilers
5834 incorrectly reject 9223372036854775807. */
5835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5837 && LARGE_OFF_T % 2147483647 == 1)
5847 if ac_fn_cxx_try_compile
"$LINENO"; then :
5848 ac_cv_sys_file_offset_bits
=64; break
5850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5851 ac_cv_sys_file_offset_bits
=unknown
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5856 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5857 case $ac_cv_sys_file_offset_bits in #(
5860 cat >>confdefs.h
<<_ACEOF
5861 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5866 if test $ac_cv_sys_file_offset_bits = unknown
; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5868 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5869 if test "${ac_cv_sys_large_files+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 #include <sys/types.h>
5876 /* Check that off_t can represent 2**63 - 1 correctly.
5877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5878 since some C++ compilers masquerading as C compilers
5879 incorrectly reject 9223372036854775807. */
5880 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5882 && LARGE_OFF_T % 2147483647 == 1)
5892 if ac_fn_cxx_try_compile
"$LINENO"; then :
5893 ac_cv_sys_large_files
=no
; break
5895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #define _LARGE_FILES 1
5899 #include <sys/types.h>
5900 /* Check that off_t can represent 2**63 - 1 correctly.
5901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5902 since some C++ compilers masquerading as C compilers
5903 incorrectly reject 9223372036854775807. */
5904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5906 && LARGE_OFF_T % 2147483647 == 1)
5916 if ac_fn_cxx_try_compile
"$LINENO"; then :
5917 ac_cv_sys_large_files
=1; break
5919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5920 ac_cv_sys_large_files
=unknown
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5925 $as_echo "$ac_cv_sys_large_files" >&6; }
5926 case $ac_cv_sys_large_files in #(
5929 cat >>confdefs.h
<<_ACEOF
5930 #define _LARGE_FILES $ac_cv_sys_large_files
5939 # sizeof(char) is 1 by definition.
5940 # The cast to long int works around a bug in the HP C Compiler
5941 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5942 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5943 # This bug is HP SR number 8606223364.
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5945 $as_echo_n "checking size of void *... " >&6; }
5946 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5947 $as_echo_n "(cached) " >&6
5949 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5952 if test "$ac_cv_type_void_p" = yes; then
5953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5955 { as_fn_set_status
77
5956 as_fn_error
"cannot compute sizeof (void *)
5957 See \`config.log' for more details." "$LINENO" 5; }; }
5959 ac_cv_sizeof_void_p
=0
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5965 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5969 cat >>confdefs.h
<<_ACEOF
5970 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5974 # The cast to long int works around a bug in the HP C Compiler
5975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5977 # This bug is HP SR number 8606223364.
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5979 $as_echo_n "checking size of short... " >&6; }
5980 if test "${ac_cv_sizeof_short+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5983 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5986 if test "$ac_cv_type_short" = yes; then
5987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5989 { as_fn_set_status
77
5990 as_fn_error
"cannot compute sizeof (short)
5991 See \`config.log' for more details." "$LINENO" 5; }; }
5993 ac_cv_sizeof_short
=0
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5999 $as_echo "$ac_cv_sizeof_short" >&6; }
6003 cat >>confdefs.h
<<_ACEOF
6004 #define SIZEOF_SHORT $ac_cv_sizeof_short
6008 # The cast to long int works around a bug in the HP C Compiler
6009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6011 # This bug is HP SR number 8606223364.
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6013 $as_echo_n "checking size of int... " >&6; }
6014 if test "${ac_cv_sizeof_int+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6017 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6020 if test "$ac_cv_type_int" = yes; then
6021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6023 { as_fn_set_status
77
6024 as_fn_error
"cannot compute sizeof (int)
6025 See \`config.log' for more details." "$LINENO" 5; }; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6033 $as_echo "$ac_cv_sizeof_int" >&6; }
6037 cat >>confdefs.h
<<_ACEOF
6038 #define SIZEOF_INT $ac_cv_sizeof_int
6042 # The cast to long int works around a bug in the HP C Compiler
6043 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6044 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6045 # This bug is HP SR number 8606223364.
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6047 $as_echo_n "checking size of long... " >&6; }
6048 if test "${ac_cv_sizeof_long+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6051 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6054 if test "$ac_cv_type_long" = yes; then
6055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6057 { as_fn_set_status
77
6058 as_fn_error
"cannot compute sizeof (long)
6059 See \`config.log' for more details." "$LINENO" 5; }; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6067 $as_echo "$ac_cv_sizeof_long" >&6; }
6071 cat >>confdefs.h
<<_ACEOF
6072 #define SIZEOF_LONG $ac_cv_sizeof_long
6076 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6077 if test "x$ac_cv_type_long_long" = x
""yes; then :
6079 cat >>confdefs.h
<<_ACEOF
6080 #define HAVE_LONG_LONG 1
6083 # The cast to long int works around a bug in the HP C Compiler
6084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6086 # This bug is HP SR number 8606223364.
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6088 $as_echo_n "checking size of long long... " >&6; }
6089 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6090 $as_echo_n "(cached) " >&6
6092 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6095 if test "$ac_cv_type_long_long" = yes; then
6096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6098 { as_fn_set_status
77
6099 as_fn_error
"cannot compute sizeof (long long)
6100 See \`config.log' for more details." "$LINENO" 5; }; }
6102 ac_cv_sizeof_long_long
=0
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6108 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6112 cat >>confdefs.h
<<_ACEOF
6113 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6119 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6120 case $ac_cv_c_int8_t in #(
6124 cat >>confdefs.h
<<_ACEOF
6125 #define int8_t $ac_cv_c_int8_t
6130 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6131 case $ac_cv_c_int16_t in #(
6135 cat >>confdefs.h
<<_ACEOF
6136 #define int16_t $ac_cv_c_int16_t
6141 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6142 case $ac_cv_c_int32_t in #(
6146 cat >>confdefs.h
<<_ACEOF
6147 #define int32_t $ac_cv_c_int32_t
6152 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6153 case $ac_cv_c_int64_t in #(
6157 cat >>confdefs.h
<<_ACEOF
6158 #define int64_t $ac_cv_c_int64_t
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6165 $as_echo_n "checking for long long int... " >&6; }
6166 if test "${ac_cv_type_long_long_int+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6172 /* For now, do not test the preprocessor; as of 2007 there are too many
6173 implementations with broken preprocessors. Perhaps this can
6174 be revisited in 2012. In the meantime, code should not expect
6175 #if to work with literals wider than 32 bits. */
6176 /* Test literals. */
6177 long long int ll = 9223372036854775807ll;
6178 long long int nll = -9223372036854775807LL;
6179 unsigned long long int ull = 18446744073709551615ULL;
6180 /* Test constant expressions. */
6181 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6183 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6189 /* Test availability of runtime routines for shift and division. */
6190 long long int llmax = 9223372036854775807ll;
6191 unsigned long long int ullmax = 18446744073709551615ull;
6192 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6193 | (llmax / ll) | (llmax % ll)
6194 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6195 | (ullmax / ull) | (ullmax % ull));
6201 if ac_fn_cxx_try_link
"$LINENO"; then :
6202 if test "$cross_compiling" = yes; then :
6203 ac_cv_type_long_long_int
=yes
6205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6210 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6211 # define LLONG_MAX (HALF - 1 + HALF)
6216 long long int n = 1;
6220 long long int m = n << i;
6223 if (LLONG_MAX / 2 < m)
6231 if ac_fn_cxx_try_run
"$LINENO"; then :
6232 ac_cv_type_long_long_int
=yes
6234 ac_cv_type_long_long_int
=no
6236 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6237 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6241 ac_cv_type_long_long_int
=no
6243 rm -f core conftest.err conftest.
$ac_objext \
6244 conftest
$ac_exeext conftest.
$ac_ext
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6247 $as_echo "$ac_cv_type_long_long_int" >&6; }
6248 if test $ac_cv_type_long_long_int = yes; then
6250 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6256 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6257 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6259 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6262 test $ac_cv_type_long_long_int = yes \
6263 && ac_type
='long long int' \
6264 || ac_type
='long int'
6266 cat >>confdefs.h
<<_ACEOF
6267 #define intmax_t $ac_type
6274 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6275 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6277 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6280 for ac_type
in 'int' 'long int' 'long long int'; do
6281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 $ac_includes_default
6287 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6294 if ac_fn_cxx_try_compile
"$LINENO"; then :
6296 cat >>confdefs.h
<<_ACEOF
6297 #define intptr_t $ac_type
6302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6303 test -z "$ac_type" && break
6308 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6309 case $ac_cv_c_uint8_t in #(
6313 $as_echo "#define _UINT8_T 1" >>confdefs.h
6316 cat >>confdefs.h
<<_ACEOF
6317 #define uint8_t $ac_cv_c_uint8_t
6322 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6323 case $ac_cv_c_uint16_t in #(
6328 cat >>confdefs.h
<<_ACEOF
6329 #define uint16_t $ac_cv_c_uint16_t
6334 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6335 case $ac_cv_c_uint32_t in #(
6339 $as_echo "#define _UINT32_T 1" >>confdefs.h
6342 cat >>confdefs.h
<<_ACEOF
6343 #define uint32_t $ac_cv_c_uint32_t
6348 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6349 case $ac_cv_c_uint64_t in #(
6353 $as_echo "#define _UINT64_T 1" >>confdefs.h
6356 cat >>confdefs.h
<<_ACEOF
6357 #define uint64_t $ac_cv_c_uint64_t
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6364 $as_echo_n "checking for unsigned long long int... " >&6; }
6365 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6366 $as_echo_n "(cached) " >&6
6368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6371 /* For now, do not test the preprocessor; as of 2007 there are too many
6372 implementations with broken preprocessors. Perhaps this can
6373 be revisited in 2012. In the meantime, code should not expect
6374 #if to work with literals wider than 32 bits. */
6375 /* Test literals. */
6376 long long int ll = 9223372036854775807ll;
6377 long long int nll = -9223372036854775807LL;
6378 unsigned long long int ull = 18446744073709551615ULL;
6379 /* Test constant expressions. */
6380 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6382 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6388 /* Test availability of runtime routines for shift and division. */
6389 long long int llmax = 9223372036854775807ll;
6390 unsigned long long int ullmax = 18446744073709551615ull;
6391 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6392 | (llmax / ll) | (llmax % ll)
6393 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6394 | (ullmax / ull) | (ullmax % ull));
6400 if ac_fn_cxx_try_link
"$LINENO"; then :
6401 ac_cv_type_unsigned_long_long_int
=yes
6403 ac_cv_type_unsigned_long_long_int
=no
6405 rm -f core conftest.err conftest.
$ac_objext \
6406 conftest
$ac_exeext conftest.
$ac_ext
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6409 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6410 if test $ac_cv_type_unsigned_long_long_int = yes; then
6412 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6418 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6419 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6421 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6424 test $ac_cv_type_unsigned_long_long_int = yes \
6425 && ac_type
='unsigned long long int' \
6426 || ac_type
='unsigned long int'
6428 cat >>confdefs.h
<<_ACEOF
6429 #define uintmax_t $ac_type
6436 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6437 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6439 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6442 for ac_type
in 'unsigned int' 'unsigned long int' \
6443 'unsigned long long int'; do
6444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 $ac_includes_default
6450 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6457 if ac_fn_cxx_try_compile
"$LINENO"; then :
6459 cat >>confdefs.h
<<_ACEOF
6460 #define uintptr_t $ac_type
6465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6466 test -z "$ac_type" && break
6483 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6484 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6487 # check what underlying integer type int64_t uses
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6489 $as_echo_n "checking for int64_t underlying type... " >&6; }
6490 if test "${ac_cv_int64_t_type+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6497 #ifdef HAVE_STDINT_H
6500 template <typename T> struct X { };
6502 struct X<long> { typedef long t; };
6512 if ac_fn_cxx_try_compile
"$LINENO"; then :
6513 ac_cv_int64_t_type
=long
6515 ac_cv_int64_t_type
="long long"
6517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6520 $as_echo "$ac_cv_int64_t_type" >&6; }
6521 if test "$ac_cv_int64_t_type" = "long"; then
6523 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6529 #ifdef HAVE_STDINT_H
6532 template <typename T> struct X { };
6534 struct X<long long> { typedef long long t; };
6544 if ac_fn_cxx_try_compile
"$LINENO"; then :
6547 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6553 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6554 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6566 int a, b; std::swap(a,b);
6571 if ac_fn_cxx_try_compile
"$LINENO"; then :
6572 ac_cv_std_swap_in_utility
=yes
6574 ac_cv_std_swap_in_utility
=no
6576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6579 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6580 if test $ac_cv_std_swap_in_utility = yes; then
6582 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6586 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6587 # If the host compiler is affected by the bug, and we build with optimization
6588 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6589 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6590 # Since there is no reliable feature check for the presence of this bug,
6591 # we simply use a GCC version number check. (This should never trigger for
6592 # stages 2 or 3 of a native bootstrap.)
6594 if test "$GCC" = yes; then
6595 saved_CXXFLAGS
="$CXXFLAGS"
6597 # The following test compilation will succeed if and only if $CXX accepts
6598 # -fno-strict-aliasing *and* is older than GCC 4.3.
6599 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6601 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6605 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6606 #error compiler not affected by placement new aliasing bug
6610 if ac_fn_cxx_try_compile
"$LINENO"; then :
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6612 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6619 CXXFLAGS
="$saved_CXXFLAGS"
6625 # ---------------------
6626 # Warnings and checking
6627 # ---------------------
6629 # Check $CC warning features (if it's GCC).
6630 # We want to use -pedantic, but we don't want warnings about
6633 # * overlong strings
6634 # * C++11 narrowing conversions in { }
6635 # So, we only use -pedantic if we can disable those warnings.
6637 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6638 # Check whether --enable-build-format-warnings was given.
6639 if test "${enable_build_format_warnings+set}" = set; then :
6640 enableval
=$enable_build_format_warnings;
6642 enable_build_format_warnings
=yes
6645 if test $enable_build_format_warnings = no
; then :
6651 ac_cpp
='$CXXCPP $CPPFLAGS'
6652 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6657 save_CXXFLAGS
="$CXXFLAGS"
6658 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6659 # Do the check with the no- prefix removed since gcc silently
6660 # accepts any -Wno-* option on purpose
6661 case $real_option in
6662 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6663 *) option
=$real_option ;;
6665 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6668 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6669 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6670 $as_echo_n "(cached) " >&6
6673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6684 if ac_fn_cxx_try_compile
"$LINENO"; then :
6685 eval "$as_acx_Woption=yes"
6687 eval "$as_acx_Woption=no"
6689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6692 eval ac_res
=\$
$as_acx_Woption
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6694 $as_echo "$ac_res" >&6; }
6695 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6696 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6699 CXXFLAGS
="$save_CXXFLAGS"
6701 ac_cpp
='$CXXCPP $CPPFLAGS'
6702 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6709 ac_cpp
='$CPP $CPPFLAGS'
6710 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6715 save_CFLAGS
="$CFLAGS"
6716 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6717 # Do the check with the no- prefix removed since gcc silently
6718 # accepts any -Wno-* option on purpose
6719 case $real_option in
6720 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6721 *) option
=$real_option ;;
6723 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6726 $as_echo_n "checking whether $CC supports $option... " >&6; }
6727 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6728 $as_echo_n "(cached) " >&6
6731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6742 if ac_fn_c_try_compile
"$LINENO"; then :
6743 eval "$as_acx_Woption=yes"
6745 eval "$as_acx_Woption=no"
6747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6750 eval ac_res
=\$
$as_acx_Woption
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6752 $as_echo "$ac_res" >&6; }
6753 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6754 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6757 CFLAGS
="$save_CFLAGS"
6759 ac_cpp
='$CXXCPP $CPPFLAGS'
6760 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6761 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6762 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6766 ac_cpp
='$CXXCPP $CPPFLAGS'
6767 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6772 save_CXXFLAGS
="$CXXFLAGS"
6773 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6774 # Do the check with the no- prefix removed since gcc silently
6775 # accepts any -Wno-* option on purpose
6776 case $real_option in
6777 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6778 *) option
=$real_option ;;
6780 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6783 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6784 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6785 $as_echo_n "(cached) " >&6
6788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6799 if ac_fn_cxx_try_compile
"$LINENO"; then :
6800 eval "$as_acx_Woption=yes"
6802 eval "$as_acx_Woption=no"
6804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6807 eval ac_res
=\$
$as_acx_Woption
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6809 $as_echo "$ac_res" >&6; }
6810 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6811 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6814 CXXFLAGS
="$save_CXXFLAGS"
6816 ac_cpp
='$CXXCPP $CPPFLAGS'
6817 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6823 ac_cpp
='$CPP $CPPFLAGS'
6824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6829 save_CFLAGS
="$CFLAGS"
6830 for real_option
in -Wold-style-definition -Wc++-compat; do
6831 # Do the check with the no- prefix removed since gcc silently
6832 # accepts any -Wno-* option on purpose
6833 case $real_option in
6834 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6835 *) option
=$real_option ;;
6837 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6840 $as_echo_n "checking whether $CC supports $option... " >&6; }
6841 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6842 $as_echo_n "(cached) " >&6
6845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6856 if ac_fn_c_try_compile
"$LINENO"; then :
6857 eval "$as_acx_Woption=yes"
6859 eval "$as_acx_Woption=no"
6861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6864 eval ac_res
=\$
$as_acx_Woption
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6866 $as_echo "$ac_res" >&6; }
6867 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6868 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6871 CFLAGS
="$save_CFLAGS"
6873 ac_cpp
='$CXXCPP $CPPFLAGS'
6874 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6875 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6876 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6880 ac_cpp
='$CXXCPP $CPPFLAGS'
6881 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6885 # Do the check with the no- prefix removed from the warning options
6886 # since gcc silently accepts any -Wno-* option on purpose
6887 if test "$GXX" = yes; then :
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6889 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6890 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6893 save_CXXFLAGS
="$CXXFLAGS"
6894 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6906 if ac_fn_cxx_try_compile
"$LINENO"; then :
6907 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6909 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6912 CXXFLAGS
="$save_CXXFLAGS"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6915 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6916 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6917 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6922 ac_cpp
='$CXXCPP $CPPFLAGS'
6923 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6929 ac_cpp
='$CXXCPP $CPPFLAGS'
6930 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6934 # Check whether --enable-werror-always was given.
6935 if test "${enable_werror_always+set}" = set; then :
6936 enableval
=$enable_werror_always;
6938 enable_werror_always
=no
6941 if test $enable_werror_always = yes; then :
6942 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6946 ac_cpp
='$CXXCPP $CPPFLAGS'
6947 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6953 # The above macros do nothing if the compiler is not GCC. However, the
6954 # Makefile has more goo to add other flags, so these variables are used
6955 # to enable warnings only for GCC.
6958 if test "x$GCC" = "xyes"; then
6959 warn_cflags
='$(GCC_WARN_CFLAGS)'
6960 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6965 # Disable exceptions and RTTI if building with g++
6967 ac_cpp
='$CPP $CPPFLAGS'
6968 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6973 save_CFLAGS
="$CFLAGS"
6974 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6975 # Do the check with the no- prefix removed since gcc silently
6976 # accepts any -Wno-* option on purpose
6977 case $real_option in
6978 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6979 *) option
=$real_option ;;
6981 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6984 $as_echo_n "checking whether $CC supports $option... " >&6; }
6985 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6986 $as_echo_n "(cached) " >&6
6989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
7000 if ac_fn_c_try_compile
"$LINENO"; then :
7001 eval "$as_acx_Woption=yes"
7003 eval "$as_acx_Woption=no"
7005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7008 eval ac_res
=\$
$as_acx_Woption
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7010 $as_echo "$ac_res" >&6; }
7011 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7012 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7015 CFLAGS
="$save_CFLAGS"
7017 ac_cpp
='$CXXCPP $CPPFLAGS'
7018 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7024 # Enable expensive internal checks
7026 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7030 # Check whether --enable-checking was given.
7031 if test "${enable_checking+set}" = set; then :
7032 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7035 # Determine the default checks.
7036 if test x
$is_release = x
; then
7037 ac_checking_flags
=yes,extra
7039 ac_checking_flags
=release
7043 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7044 for check
in release
$ac_checking_flags
7047 # these set all the flags to specific states
7048 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7049 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7050 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7051 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7052 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7053 ac_types_checking
=1 ;;
7054 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7055 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7056 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7057 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7058 ac_tree_checking
= ; ac_valgrind_checking
= ;
7059 ac_types_checking
= ;;
7060 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7061 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7062 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7063 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7064 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7065 ac_types_checking
=1 ;;
7066 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7067 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7068 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7069 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7070 ac_tree_checking
= ; ac_valgrind_checking
= ;
7071 ac_types_checking
= ;;
7072 # these enable particular checks
7073 assert
) ac_assert_checking
=1 ;;
7074 df
) ac_df_checking
=1 ;;
7075 extra
) ac_extra_checking
=1 ;;
7076 fold) ac_fold_checking
=1 ;;
7077 gc
) ac_gc_checking
=1 ;;
7078 gcac
) ac_gc_always_collect
=1 ;;
7079 gimple
) ac_gimple_checking
=1 ;;
7080 misc
) ac_checking
=1 ;;
7081 rtl
) ac_rtl_checking
=1 ;;
7082 rtlflag
) ac_rtlflag_checking
=1 ;;
7083 runtime
) ac_runtime_checking
=1 ;;
7084 tree
) ac_tree_checking
=1 ;;
7085 types
) ac_types_checking
=1 ;;
7086 valgrind
) ac_valgrind_checking
=1 ;;
7087 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7093 if test x
$ac_checking != x
; then
7095 $as_echo "#define CHECKING_P 1" >>confdefs.h
7097 nocommon_flag
=-fno-common
7099 $as_echo "#define CHECKING_P 0" >>confdefs.h
7103 if test x
$ac_extra_checking != x
; then
7105 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7108 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7111 if test x
$ac_df_checking != x
; then
7113 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7116 if test x
$ac_assert_checking != x
; then
7118 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7121 if test x
$ac_gimple_checking != x
; then
7123 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7127 if test x
$ac_runtime_checking != x
; then
7129 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7132 if test x
$ac_tree_checking != x
; then
7134 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7138 if test x
$ac_types_checking != x
; then
7140 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7144 if test x
$ac_rtl_checking != x
; then
7146 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7149 if test x
$ac_rtlflag_checking != x
; then
7151 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7154 if test x
$ac_gc_checking != x
; then
7156 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7159 if test x
$ac_gc_always_collect != x
; then
7161 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7164 if test x
$ac_fold_checking != x
; then
7166 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7169 valgrind_path_defines
=
7172 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7173 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7181 # It is certainly possible that there's valgrind but no valgrind.h.
7182 # GCC relies on making annotations so we must have both.
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7184 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 #include <valgrind/memcheck.h>
7188 #ifndef VALGRIND_DISCARD
7189 #error VALGRIND_DISCARD not defined
7192 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7193 gcc_cv_header_valgrind_memcheck_h
=yes
7195 gcc_cv_header_valgrind_memcheck_h
=no
7197 rm -f conftest.err conftest.
$ac_ext
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7199 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7201 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 #include <memcheck.h>
7205 #ifndef VALGRIND_DISCARD
7206 #error VALGRIND_DISCARD not defined
7209 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7210 gcc_cv_header_memcheck_h
=yes
7212 gcc_cv_header_memcheck_h
=no
7214 rm -f conftest.err conftest.
$ac_ext
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7216 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7217 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7219 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7222 if test $gcc_cv_header_memcheck_h = yes; then
7224 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7228 if test x
$ac_valgrind_checking != x
; then
7230 # Prepare PATH_SEPARATOR.
7231 # The user is always right.
7232 if test "${PATH_SEPARATOR+set}" != set; then
7233 echo "#! /bin/sh" >conf$$.sh
7234 echo "exit 0" >>conf$$.sh
7236 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7244 # Find out how to test for executable files. Don't use a zero-byte file,
7245 # as systems may use methods other than mode bits to determine executability.
7246 cat >conf$$.
file <<_ASEOF
7250 chmod +x conf$$.
file
7251 if test -x conf$$.
file >/dev
/null
2>&1; then
7252 ac_executable_p
="test -x"
7254 ac_executable_p
="test -f"
7258 # Extract the first word of "valgrind", so it can be a program name with args.
7259 set dummy valgrind
; ac_word
=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7265 case "$valgrind_path" in
7267 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7270 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7271 for ac_dir
in $PATH; do
7273 test -z "$ac_dir" && ac_dir
=.
7274 for ac_exec_ext
in '' $ac_executable_extensions; do
7275 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7276 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7277 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7287 valgrind_path
="$ac_cv_path_valgrind_path"
7288 if test -n "$valgrind_path"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7290 $as_echo "$valgrind_path" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7296 if test "x$valgrind_path" = "x" \
7297 ||
(test $have_valgrind_h = no \
7298 && test $gcc_cv_header_memcheck_h = no \
7299 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7300 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7302 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7303 valgrind_command
="$valgrind_path -q"
7305 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7311 # Enable code coverage collection
7312 # Check whether --enable-coverage was given.
7313 if test "${enable_coverage+set}" = set; then :
7314 enableval
=$enable_coverage; case "${enableval}" in
7316 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7319 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7322 # a.k.a. --disable-coverage
7326 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7335 # Check whether --enable-gather-detailed-mem-stats was given.
7336 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7337 enableval
=$enable_gather_detailed_mem_stats;
7339 enable_gather_detailed_mem_stats
=no
7342 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7344 cat >>confdefs.h
<<_ACEOF
7345 #define GATHER_STATISTICS $gather_stats
7349 # Check whether --enable-valgrind-annotations was given.
7350 if test "${enable_valgrind_annotations+set}" = set; then :
7351 enableval
=$enable_valgrind_annotations;
7353 enable_valgrind_annotations
=no
7356 if test x
$enable_valgrind_annotations != xno \
7357 ||
test x
$ac_valgrind_checking != x
; then
7358 if (test $have_valgrind_h = no \
7359 && test $gcc_cv_header_memcheck_h = no \
7360 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7361 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7364 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7368 # -------------------------------
7369 # Miscenalleous configure options
7370 # -------------------------------
7374 # Check whether --with-stabs was given.
7375 if test "${with_stabs+set}" = set; then :
7376 withval
=$with_stabs; stabs
="$with_stabs"
7382 # Determine whether or not multilibs are enabled.
7383 # Check whether --enable-multilib was given.
7384 if test "${enable_multilib+set}" = set; then :
7385 enableval
=$enable_multilib;
7392 # Determine whether or not multiarch is enabled.
7393 # Check whether --enable-multiarch was given.
7394 if test "${enable_multiarch+set}" = set; then :
7395 enableval
=$enable_multiarch; case "${enableval}" in
7396 yes|no|auto
) enable_multiarch
=$enableval;;
7397 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7400 enable_multiarch
=auto
7403 if test x
${enable_multiarch} = xauto
; then
7404 if test x
${with_native_system_header_dir} != x
; then
7405 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7408 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7409 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7414 $as_echo_n "checking for multiarch configuration... " >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7417 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7419 # needed for setting the multiarch name for soft-float/hard-float ABIs
7423 # Enable __cxa_atexit for C++.
7424 # Check whether --enable-__cxa_atexit was given.
7425 if test "${enable___cxa_atexit+set}" = set; then :
7426 enableval
=$enable___cxa_atexit;
7430 # Enable C extension for decimal float if target supports it.
7432 # Check whether --enable-decimal-float was given.
7433 if test "${enable_decimal_float+set}" = set; then :
7434 enableval
=$enable_decimal_float;
7435 case $enable_decimal_float in
7436 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7437 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7438 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7444 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7445 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7446 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7447 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7448 enable_decimal_float
=yes
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7452 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7453 enable_decimal_float
=no
7460 # x86's use BID format instead of DPD
7461 case x
$enable_decimal_float in
7464 i?
86*-*-* | x86_64
*-*-*)
7465 enable_decimal_float
=bid
7468 enable_decimal_float
=dpd
7471 default_decimal_float
=$enable_decimal_float
7474 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7475 # dependency on libdecnumber.
7476 default_decimal_float
=dpd
7483 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7485 cat >>confdefs.h
<<_ACEOF
7486 #define ENABLE_DECIMAL_FLOAT $dfp
7490 # Use default_decimal_float for dependency.
7491 enable_decimal_float
=$default_decimal_float
7493 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7495 cat >>confdefs.h
<<_ACEOF
7496 #define ENABLE_DECIMAL_BID_FORMAT $bid
7500 # Enable C extension for fixed-point arithmetic.
7501 # Check whether --enable-fixed-point was given.
7502 if test "${enable_fixed_point+set}" = set; then :
7503 enableval
=$enable_fixed_point;
7508 enable_fixed_point
=yes
7512 enable_fixed_point
=yes
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7516 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7517 enable_fixed_point
=no
7525 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7527 cat >>confdefs.h
<<_ACEOF
7528 #define ENABLE_FIXED_POINT $fixedpoint
7533 # Pass with no value to take the default
7534 # Pass with a value to specify a thread package
7535 # Check whether --enable-threads was given.
7536 if test "${enable_threads+set}" = set; then :
7537 enableval
=$enable_threads;
7543 # Check whether --enable-tls was given.
7544 if test "${enable_tls+set}" = set; then :
7545 enableval
=$enable_tls;
7548 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7549 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7557 # Check whether --enable-vtable-verify was given.
7558 if test "${enable_vtable_verify+set}" = set; then :
7559 enableval
=$enable_vtable_verify;
7561 enable_vtable_verify
=no
7564 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7566 cat >>confdefs.h
<<_ACEOF
7567 #define ENABLE_VTABLE_VERIFY $vtable_verify
7571 # Check whether --enable-objc-gc was given.
7572 if test "${enable_objc_gc+set}" = set; then :
7573 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7584 # Check whether --with-dwarf2 was given.
7585 if test "${with_dwarf2+set}" = set; then :
7586 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7592 # Check whether --enable-shared was given.
7593 if test "${enable_shared+set}" = set; then :
7594 enableval
=$enable_shared;
7595 case $enable_shared in
7599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7600 for pkg
in $enableval; do
7601 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7616 # Check whether --with-specs was given.
7617 if test "${with_specs+set}" = set; then :
7618 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7628 # Check whether --with-pkgversion was given.
7629 if test "${with_pkgversion+set}" = set; then :
7630 withval
=$with_pkgversion; case "$withval" in
7631 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7633 *) PKGVERSION
="($withval) " ;;
7644 # Check whether --with-bugurl was given.
7645 if test "${with_bugurl+set}" = set; then :
7646 withval
=$with_bugurl; case "$withval" in
7647 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7650 *) BUGURL
="$withval"
7654 BUGURL
="http://gcc.gnu.org/bugs.html"
7664 REPORT_BUGS_TO
="<$BUGURL>"
7665 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7672 # Sanity check enable_languages in case someone does not run the toplevel
7673 # configure # script.
7674 # Check whether --enable-languages was given.
7675 if test "${enable_languages+set}" = set; then :
7676 enableval
=$enable_languages; case ,${enable_languages}, in
7678 # go safe -- we cannot be much sure without the toplevel
7680 # analysis of which target libs are present and usable
7684 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7689 enable_languages
=c
,${enable_languages}
7697 if test x
"$enable_as_accelerator_for" != x
; then
7699 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7701 enable_as_accelerator
=yes
7704 # In this case we expect offload compiler to be built as native, so we
7705 # need to rename the driver to avoid clashes with host's drivers.
7706 program_transform_name
="s&^&${target}-&" ;;
7708 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7709 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7710 accel_dir_suffix
=/accel
/${target_noncanonical}
7711 real_target_noncanonical
=${enable_as_accelerator_for}
7717 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7718 tgt
=`echo $tgt | sed 's/=.*//'`
7720 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7726 if test x
"$offload_targets" = x
; then
7727 offload_targets
=$tgt
7729 offload_targets
="$offload_targets,$tgt"
7733 cat >>confdefs.h
<<_ACEOF
7734 #define OFFLOAD_TARGETS "$offload_targets"
7737 if test x
"$enable_offloading" != x
; then
7739 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7743 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7747 if test x
"$enable_hsa" = x1
; then
7749 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7754 # Check whether --with-multilib-list was given.
7755 if test "${with_multilib_list+set}" = set; then :
7756 withval
=$with_multilib_list; :
7758 with_multilib_list
=default
7762 # -------------------------
7763 # Checks for other programs
7764 # -------------------------
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7767 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7769 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7770 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7771 $as_echo_n "(cached) " >&6
7773 cat >conftest.
make <<\_ACEOF
7776 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7781 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7783 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7787 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7789 $as_echo "yes" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 SET_MAKE
="MAKE=${MAKE-make}"
7798 # Find some useful tools
7799 for ac_prog
in gawk mawk nawk
awk
7801 # Extract the first word of "$ac_prog", so it can be a program name with args.
7802 set dummy
$ac_prog; ac_word
=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if test "${ac_cv_prog_AWK+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7808 if test -n "$AWK"; then
7809 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7815 test -z "$as_dir" && as_dir
=.
7816 for ac_exec_ext
in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7818 ac_cv_prog_AWK
="$ac_prog"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 if test -n "$AWK"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7831 $as_echo "$AWK" >&6; }
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7838 test -n "$AWK" && break
7841 # We need awk to create options.c and options.h.
7842 # Bail out if it's missing.
7844 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7848 $as_echo_n "checking whether ln -s works... " >&6; }
7849 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7852 rm -f conftestdata_t
7853 echo >conftestdata_f
7854 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7856 gcc_cv_prog_LN_S
="ln -s"
7858 if ln conftestdata_f conftestdata_t
2>/dev
/null
7862 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7864 gcc_cv_prog_LN_S
="cp -p"
7870 rm -f conftestdata_f conftestdata_t
7873 LN_S
="$gcc_cv_prog_LN_S"
7874 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7876 $as_echo "yes" >&6; }
7878 if test "$gcc_cv_prog_LN_S" = "ln"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7880 $as_echo "no, using ln" >&6; }
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7883 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7888 $as_echo_n "checking whether ln works... " >&6; }
7889 if test "${acx_cv_prog_LN+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7892 rm -f conftestdata_t
7893 echo >conftestdata_f
7894 if ln conftestdata_f conftestdata_t
2>/dev
/null
7900 rm -f conftestdata_f conftestdata_t
7903 if test $acx_cv_prog_LN = no
; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7906 $as_echo "no, using $LN" >&6; }
7908 LN
="$acx_cv_prog_LN"
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910 $as_echo "yes" >&6; }
7913 if test -n "$ac_tool_prefix"; then
7914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7915 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7921 if test -n "$RANLIB"; then
7922 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir
=.
7929 for ac_exec_ext
in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 RANLIB
=$ac_cv_prog_RANLIB
7942 if test -n "$RANLIB"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7944 $as_echo "$RANLIB" >&6; }
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7952 if test -z "$ac_cv_prog_RANLIB"; then
7953 ac_ct_RANLIB
=$RANLIB
7954 # Extract the first word of "ranlib", so it can be a program name with args.
7955 set dummy ranlib
; ac_word
=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7961 if test -n "$ac_ct_RANLIB"; then
7962 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7968 test -z "$as_dir" && as_dir
=.
7969 for ac_exec_ext
in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7982 if test -n "$ac_ct_RANLIB"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7984 $as_echo "$ac_ct_RANLIB" >&6; }
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7990 if test "x$ac_ct_RANLIB" = x
; then
7993 case $cross_compiling:$ac_tool_warned in
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7997 ac_tool_warned
=yes ;;
7999 RANLIB
=$ac_ct_RANLIB
8002 RANLIB
="$ac_cv_prog_RANLIB"
8008 # Find a good install program. We prefer a C program (faster),
8009 # so one script is as good as another. But avoid the broken or
8010 # incompatible versions:
8011 # SysV /etc/install, /usr/sbin/install
8012 # SunOS /usr/etc/install
8013 # IRIX /sbin/install
8015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8017 # ./install, which can be erroneously created by make from ./install.sh.
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8019 $as_echo_n "checking for a BSD compatible install... " >&6; }
8020 if test -z "$INSTALL"; then
8021 if test "${ac_cv_path_install+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
8024 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8025 for ac_dir
in $PATH; do
8026 # Account for people who put trailing slashes in PATH elements.
8028 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8030 # OSF1 and SCO ODT 3.0 have their own names for install.
8031 for ac_prog
in ginstall scoinst
install; do
8032 if test -f $ac_dir/$ac_prog; then
8033 if test $ac_prog = install &&
8034 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8035 # AIX install. It has an incompatible calling convention.
8036 # OSF/1 installbsd also uses dspmsg, but is usable.
8039 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8050 if test "${ac_cv_path_install+set}" = set; then
8051 INSTALL
="$ac_cv_path_install"
8053 # As a last resort, use the slow shell script. We don't cache a
8054 # path for INSTALL within a source directory, because that will
8055 # break other packages using the cache if that directory is
8056 # removed, or if the path is relative.
8057 INSTALL
="$ac_install_sh"
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8061 $as_echo "$INSTALL" >&6; }
8063 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8064 # It thinks the first close brace ends the variable substitution.
8065 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8067 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8070 # See if cmp has --ignore-initial.
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8072 $as_echo_n "checking for cmp's capabilities... " >&6; }
8073 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8078 gcc_cv_prog_cmp_skip
=slowcompare
8079 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8080 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8083 gcc_cv_prog_cmp_skip
=gnucompare
8086 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8087 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8088 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8091 gcc_cv_prog_cmp_skip
=fastcompare
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8099 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8100 make_compare_target
=$gcc_cv_prog_cmp_skip
8104 # See if we have the mktemp command.
8105 # Extract the first word of "mktemp", so it can be a program name with args.
8106 set dummy mktemp
; ac_word
=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8112 if test -n "$have_mktemp_command"; then
8113 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8119 test -z "$as_dir" && as_dir
=.
8120 for ac_exec_ext
in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_prog_have_mktemp_command
="yes"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8133 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8134 if test -n "$have_mktemp_command"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8136 $as_echo "$have_mktemp_command" >&6; }
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8144 # See if makeinfo has been installed and is modern enough
8145 # that we can use it.
8147 # Extract the first word of "makeinfo", so it can be a program name with args.
8148 set dummy makeinfo
; ac_word
=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8154 if test -n "$MAKEINFO"; then
8155 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8161 test -z "$as_dir" && as_dir
=.
8162 for ac_exec_ext
in '' $ac_executable_extensions; do
8163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8164 ac_cv_prog_MAKEINFO
="makeinfo"
8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 MAKEINFO
=$ac_cv_prog_MAKEINFO
8175 if test -n "$MAKEINFO"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8177 $as_echo "$MAKEINFO" >&6; }
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8184 if test -n "$MAKEINFO"; then
8185 # Found it, now check the version.
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8187 $as_echo_n "checking for modern makeinfo... " >&6; }
8188 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8191 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8192 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8194 case $ac_prog_version in
8195 '') gcc_cv_prog_makeinfo_modern
=no
;;
8196 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8197 *) gcc_cv_prog_makeinfo_modern
=no
;;
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8202 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8204 gcc_cv_prog_makeinfo_modern
=no
8206 if test $gcc_cv_prog_makeinfo_modern = no
; then
8207 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8210 if test $gcc_cv_prog_makeinfo_modern = no
; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8212 *** Makeinfo is missing or too old.
8213 *** Info documentation will not be built." >&5
8214 $as_echo "$as_me: WARNING:
8215 *** Makeinfo is missing or too old.
8216 *** Info documentation will not be built." >&2;}
8223 # Is pod2man recent enough to regenerate manpages?
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8225 $as_echo_n "checking for recent Pod::Man... " >&6; }
8226 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8228 $as_echo "yes" >&6; }
8229 GENERATED_MANPAGES
=generated-manpages
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8237 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8242 # Extract the first word of "$ac_prog", so it can be a program name with args.
8243 set dummy
$ac_prog; ac_word
=$2
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 $as_echo_n "checking for $ac_word... " >&6; }
8246 if test "${ac_cv_prog_FLEX+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8249 if test -n "$FLEX"; then
8250 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8256 test -z "$as_dir" && as_dir
=.
8257 for ac_exec_ext
in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8259 ac_cv_prog_FLEX
="$ac_prog"
8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 FLEX
=$ac_cv_prog_FLEX
8270 if test -n "$FLEX"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8272 $as_echo "$FLEX" >&6; }
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8279 test -n "$FLEX" && break
8281 test -n "$FLEX" || FLEX
="$MISSING flex"
8285 for ac_prog
in bison
8287 # Extract the first word of "$ac_prog", so it can be a program name with args.
8288 set dummy
$ac_prog; ac_word
=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if test "${ac_cv_prog_BISON+set}" = set; then :
8292 $as_echo_n "(cached) " >&6
8294 if test -n "$BISON"; then
8295 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8301 test -z "$as_dir" && as_dir
=.
8302 for ac_exec_ext
in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_prog_BISON
="$ac_prog"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 BISON
=$ac_cv_prog_BISON
8315 if test -n "$BISON"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8317 $as_echo "$BISON" >&6; }
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8324 test -n "$BISON" && break
8326 test -n "$BISON" || BISON
="$MISSING bison"
8329 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8330 # check for build == host before using them.
8333 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8334 && test -d ..
/binutils
; then
8335 NM
='${objdir}/../binutils/nm-new'
8337 # Extract the first word of "nm", so it can be a program name with args.
8338 set dummy nm
; ac_word
=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if test "${ac_cv_prog_NM+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
8344 if test -n "$NM"; then
8345 ac_cv_prog_NM
="$NM" # Let the user override the test.
8347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir
=.
8352 for ac_exec_ext
in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8366 if test -n "$NM"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8368 $as_echo "$NM" >&6; }
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8378 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8379 && test -d ..
/binutils
; then
8380 AR
='${objdir}/../binutils/ar'
8382 # Extract the first word of "ar", so it can be a program name with args.
8383 set dummy
ar; ac_word
=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if test "${ac_cv_prog_AR+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8389 if test -n "$AR"; then
8390 ac_cv_prog_AR
="$AR" # Let the user override the test.
8392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8396 test -z "$as_dir" && as_dir
=.
8397 for ac_exec_ext
in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8411 if test -n "$AR"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8413 $as_echo "$AR" >&6; }
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8422 # The jit documentation looks better if built with sphinx, but can be
8423 # built with texinfo if sphinx is not available.
8424 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8425 # Extract the first word of "sphinx-build", so it can be a program name with args.
8426 set dummy sphinx-build
; ac_word
=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8430 $as_echo_n "(cached) " >&6
8432 if test -n "$doc_build_sys"; then
8433 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8439 test -z "$as_dir" && as_dir
=.
8440 for ac_exec_ext
in '' $ac_executable_extensions; do
8441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8442 ac_cv_prog_doc_build_sys
="sphinx"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8453 doc_build_sys
=$ac_cv_prog_doc_build_sys
8454 if test -n "$doc_build_sys"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8456 $as_echo "$doc_build_sys" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8464 # --------------------
8465 # Checks for C headers
8466 # --------------------
8468 # Need to reject headers which give warnings, so that the -Werror bootstrap
8469 # works later. *sigh* This needs to come before all header checks.
8471 ac_c_preproc_warn_flag
=yes
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8474 $as_echo_n "checking for ANSI C header files... " >&6; }
8475 if test "${ac_cv_header_stdc+set}" = set; then :
8476 $as_echo_n "(cached) " >&6
8478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8493 if ac_fn_cxx_try_compile
"$LINENO"; then :
8494 ac_cv_header_stdc
=yes
8496 ac_cv_header_stdc
=no
8498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8500 if test $ac_cv_header_stdc = yes; then
8501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8508 $EGREP "memchr" >/dev
/null
2>&1; then :
8511 ac_cv_header_stdc
=no
8517 if test $ac_cv_header_stdc = yes; then
8518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8525 $EGREP "free" >/dev
/null
2>&1; then :
8528 ac_cv_header_stdc
=no
8534 if test $ac_cv_header_stdc = yes; then
8535 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8536 if test "$cross_compiling" = yes; then :
8539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8543 #if ((' ' & 0x0FF) == 0x020)
8544 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8545 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8547 # define ISLOWER(c) \
8548 (('a' <= (c) && (c) <= 'i') \
8549 || ('j' <= (c) && (c) <= 'r') \
8550 || ('s' <= (c) && (c) <= 'z'))
8551 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8559 for (i = 0; i < 256; i++)
8560 if (XOR (islower (i), ISLOWER (i))
8561 || toupper (i) != TOUPPER (i))
8566 if ac_fn_cxx_try_run
"$LINENO"; then :
8569 ac_cv_header_stdc
=no
8571 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8572 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8578 $as_echo "$ac_cv_header_stdc" >&6; }
8579 if test $ac_cv_header_stdc = yes; then
8581 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8586 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8587 if test "${ac_cv_header_time+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #include <sys/types.h>
8593 #include <sys/time.h>
8599 if ((struct tm *) 0)
8605 if ac_fn_cxx_try_compile
"$LINENO"; then :
8606 ac_cv_header_time
=yes
8608 ac_cv_header_time
=no
8610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8613 $as_echo "$ac_cv_header_time" >&6; }
8614 if test $ac_cv_header_time = yes; then
8616 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8621 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8622 if test "${gcc_cv_header_string+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8628 #include <strings.h>
8637 if ac_fn_cxx_try_compile
"$LINENO"; then :
8638 gcc_cv_header_string
=yes
8640 gcc_cv_header_string
=no
8642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8645 $as_echo "$gcc_cv_header_string" >&6; }
8646 if test $gcc_cv_header_string = yes; then
8648 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8653 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8654 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 #include <sys/types.h>
8660 #include <sys/wait.h>
8662 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8665 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8673 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8678 if ac_fn_cxx_try_compile
"$LINENO"; then :
8679 ac_cv_header_sys_wait_h
=yes
8681 ac_cv_header_sys_wait_h
=no
8683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8686 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8687 if test $ac_cv_header_sys_wait_h = yes; then
8689 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8694 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8695 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 #include <sys/types.h>
8701 #include <termios.h>
8707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8708 $EGREP "yes" >/dev
/null
2>&1; then :
8709 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8711 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8717 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8719 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8721 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8722 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8723 $as_echo_n "(cached) " >&6
8725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 #include <sys/types.h>
8728 #include <sys/ioctl.h>
8734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8735 $EGREP "yes" >/dev
/null
2>&1; then :
8736 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8738 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8744 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8746 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8748 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8753 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8754 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8755 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8756 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8758 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8759 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8760 eval as_val
=\$
$as_ac_Header
8761 if test "x$as_val" = x
""yes; then :
8762 cat >>confdefs.h
<<_ACEOF
8763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8770 # Check for thread headers.
8771 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8772 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8778 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8779 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8786 # These tests can't be done till we know if we have limits.h.
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8788 $as_echo_n "checking for CHAR_BIT... " >&6; }
8789 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 #ifdef HAVE_LIMITS_H
8801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8802 $EGREP "found" >/dev
/null
2>&1; then :
8803 gcc_cv_decl_char_bit
=yes
8805 gcc_cv_decl_char_bit
=no
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8812 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8813 if test $gcc_cv_decl_char_bit = no
; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8815 $as_echo_n "checking number of bits in a byte... " >&6; }
8816 if test "${gcc_cv_c_nbby+set}" = set; then :
8817 $as_echo_n "(cached) " >&6
8821 while test $i -lt 65; do
8822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8829 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8830 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8836 if ac_fn_cxx_try_compile
"$LINENO"; then :
8837 gcc_cv_c_nbby
=$i; break
8839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8842 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8846 $as_echo "$gcc_cv_c_nbby" >&6; }
8847 if test $gcc_cv_c_nbby = failed
; then
8848 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8851 cat >>confdefs.h
<<_ACEOF
8852 #define CHAR_BIT $gcc_cv_c_nbby
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8858 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8859 if test "${ac_cv_c_bigendian+set}" = set; then :
8860 $as_echo_n "(cached) " >&6
8862 ac_cv_c_bigendian
=unknown
8863 # See if we're dealing with a universal compiler.
8864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #ifndef __APPLE_CC__
8867 not a universal capable compiler
8872 if ac_fn_cxx_try_compile
"$LINENO"; then :
8874 # Check for potential -arch flags. It is not universal unless
8875 # there are at least two -arch flags with different values.
8878 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8879 if test -n "$ac_prev"; then
8881 i?
86 | x86_64 | ppc | ppc64
)
8882 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8885 ac_cv_c_bigendian
=universal
8891 elif test "x$ac_word" = "x-arch"; then
8896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8897 if test $ac_cv_c_bigendian = unknown
; then
8898 # See if sys/param.h defines the BYTE_ORDER macro.
8899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 #include <sys/types.h>
8902 #include <sys/param.h>
8907 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8908 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8917 if ac_fn_cxx_try_compile
"$LINENO"; then :
8918 # It does; now see whether it defined to BIG_ENDIAN or not.
8919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 #include <sys/types.h>
8922 #include <sys/param.h>
8927 #if BYTE_ORDER != BIG_ENDIAN
8935 if ac_fn_cxx_try_compile
"$LINENO"; then :
8936 ac_cv_c_bigendian
=yes
8938 ac_cv_c_bigendian
=no
8940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8944 if test $ac_cv_c_bigendian = unknown
; then
8945 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8953 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8961 if ac_fn_cxx_try_compile
"$LINENO"; then :
8962 # It does; now see whether it defined to _BIG_ENDIAN or not.
8963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8978 if ac_fn_cxx_try_compile
"$LINENO"; then :
8979 ac_cv_c_bigendian
=yes
8981 ac_cv_c_bigendian
=no
8983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8987 if test $ac_cv_c_bigendian = unknown
; then
8988 # Compile a test program.
8989 if test "$cross_compiling" = yes; then :
8990 # Try to guess by grepping values from an object file.
8991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993 short int ascii_mm[] =
8994 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8995 short int ascii_ii[] =
8996 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8997 int use_ascii (int i) {
8998 return ascii_mm[i] + ascii_ii[i];
9000 short int ebcdic_ii[] =
9001 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9002 short int ebcdic_mm[] =
9003 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9004 int use_ebcdic (int i) {
9005 return ebcdic_mm[i] + ebcdic_ii[i];
9012 return use_ascii (foo) == use_ebcdic (foo);
9017 if ac_fn_cxx_try_compile
"$LINENO"; then :
9018 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9019 ac_cv_c_bigendian
=yes
9021 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9022 if test "$ac_cv_c_bigendian" = unknown
; then
9023 ac_cv_c_bigendian
=no
9025 # finding both strings is unlikely to happen, but who knows?
9026 ac_cv_c_bigendian
=unknown
9030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 $ac_includes_default
9039 /* Are we little or big endian? From Harbison&Steele. */
9043 char c[sizeof (long int)];
9046 return u.c[sizeof (long int) - 1] == 1;
9052 if ac_fn_cxx_try_run
"$LINENO"; then :
9053 ac_cv_c_bigendian
=no
9055 ac_cv_c_bigendian
=yes
9057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9058 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9064 $as_echo "$ac_cv_c_bigendian" >&6; }
9065 case $ac_cv_c_bigendian in #(
9067 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9073 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9077 as_fn_error
"unknown endianness
9078 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9082 # ----------------------
9083 # Checks for C++ headers
9084 # ----------------------
9087 ac_cpp
='$CXXCPP $CPPFLAGS'
9088 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9089 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9090 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9092 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9093 if test -z "$CXXCPP"; then
9094 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
9097 # Double quotes because CXXCPP needs to be expanded
9098 for CXXCPP
in "$CXX -E" "/lib/cpp"
9101 for ac_cxx_preproc_warn_flag
in '' yes
9103 # Use a header file that comes with gcc, so configuring glibc
9104 # with a fresh cross-compiler works.
9105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9106 # <limits.h> exists even on freestanding compilers.
9107 # On the NeXT, cc -E runs the code through the compiler's parser,
9108 # not just through cpp. "Syntax error" is here to catch this case.
9109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9112 # include <limits.h>
9114 # include <assert.h>
9118 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9121 # Broken: fails on valid input.
9124 rm -f conftest.err conftest.
$ac_ext
9126 # OK, works on sane cases. Now check whether nonexistent headers
9127 # can be detected and how.
9128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130 #include <ac_nonexistent.h>
9132 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9133 # Broken: success on invalid input.
9136 # Passes both tests.
9140 rm -f conftest.err conftest.
$ac_ext
9143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9144 rm -f conftest.err conftest.
$ac_ext
9145 if $ac_preproc_ok; then :
9150 ac_cv_prog_CXXCPP
=$CXXCPP
9153 CXXCPP
=$ac_cv_prog_CXXCPP
9155 ac_cv_prog_CXXCPP
=$CXXCPP
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9158 $as_echo "$CXXCPP" >&6; }
9160 for ac_cxx_preproc_warn_flag
in '' yes
9162 # Use a header file that comes with gcc, so configuring glibc
9163 # with a fresh cross-compiler works.
9164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9165 # <limits.h> exists even on freestanding compilers.
9166 # On the NeXT, cc -E runs the code through the compiler's parser,
9167 # not just through cpp. "Syntax error" is here to catch this case.
9168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9171 # include <limits.h>
9173 # include <assert.h>
9177 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9180 # Broken: fails on valid input.
9183 rm -f conftest.err conftest.
$ac_ext
9185 # OK, works on sane cases. Now check whether nonexistent headers
9186 # can be detected and how.
9187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189 #include <ac_nonexistent.h>
9191 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9192 # Broken: success on invalid input.
9195 # Passes both tests.
9199 rm -f conftest.err conftest.
$ac_ext
9202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9203 rm -f conftest.err conftest.
$ac_ext
9204 if $ac_preproc_ok; then :
9207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9210 See \`config.log' for more details." >&5
9211 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9212 See \`config.log' for more details." >&2;}; }
9216 ac_cpp
='$CXXCPP $CPPFLAGS'
9217 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9218 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9219 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9222 for ac_header
in unordered_map
9224 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9225 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9226 cat >>confdefs.h
<<_ACEOF
9227 #define HAVE_UNORDERED_MAP 1
9233 for ac_header
in tr1/unordered_map
9235 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9236 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9237 cat >>confdefs.h
<<_ACEOF
9238 #define HAVE_TR1_UNORDERED_MAP 1
9244 for ac_header
in ext
/hash_map
9246 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9247 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9248 cat >>confdefs.h
<<_ACEOF
9249 #define HAVE_EXT_HASH_MAP 1
9257 # Dependency checking.
9260 rm -rf .tst
2>/dev
/null
9261 mkdir .tst
2>/dev
/null
9262 if test -d .tst
; then
9267 rmdir .tst
2>/dev
/null
9269 DEPDIR
="${am__leading_dot}deps"
9271 ac_config_commands
="$ac_config_commands depdir"
9274 ac_config_commands
="$ac_config_commands gccdepdir"
9277 depcc
="$CXX" am_compiler_list
=
9279 am_depcomp
=$ac_aux_dir/depcomp
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9281 $as_echo_n "checking dependency style of $depcc... " >&6; }
9282 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
9285 if test -f "$am_depcomp"; then
9286 # We make a subdir and do the tests there. Otherwise we can end up
9287 # making bogus files that we don't know about and never remove. For
9288 # instance it was reported that on HP-UX the gcc test will end up
9289 # making a dummy file named `D' -- because `-MD' means `put the output
9292 # Copy depcomp to subdir because otherwise we won't find it if we're
9293 # using a relative directory.
9294 cp "$am_depcomp" conftest.dir
9296 # We will build objects and dependencies in a subdirectory because
9297 # it helps to detect inapplicable dependency modes. For instance
9298 # both Tru64's cc and ICC support -MD to output dependencies as a
9299 # side effect of compilation, but ICC will put the dependencies in
9300 # the current directory while Tru64 will put them in the object
9304 am_cv_CXX_dependencies_compiler_type
=none
9305 if test "$am_compiler_list" = ""; then
9306 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9308 for depmode
in $am_compiler_list; do
9309 if test $depmode = none
; then break; fi
9311 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9312 # Setup a source with many dependencies, because some compilers
9313 # like to wrap large dependency lists on column 80 (with \), and
9314 # we should not choose a depcomp mode which is confused by this.
9316 # We need to recreate these files for each test, as the compiler may
9317 # overwrite some of them when testing with obscure command lines.
9318 # This happens at least with the AIX C compiler.
9320 for i
in 1 2 3 4 5 6; do
9321 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9322 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9323 # Solaris 8's {/usr,}/bin/sh.
9324 touch sub
/conftst
$i.h
9326 echo "include sub/conftest.Po" > confmf
9328 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9329 # mode. It turns out that the SunPro C++ compiler does not properly
9330 # handle `-M -o', and we need to detect this.
9331 depcmd
="depmode=$depmode \
9332 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9334 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9335 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9336 if env
$depcmd > conftest.err
2>&1 &&
9337 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9338 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9339 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9340 # icc doesn't choke on unknown options, it will just issue warnings
9341 # or remarks (even with -Werror). So we grep stderr for any message
9342 # that says an option was ignored or not supported.
9343 # When given -MP, icc 7.0 and 7.1 complain thusly:
9344 # icc: Command line warning: ignoring option '-M'; no argument required
9345 # The diagnosis changed in icc 8.0:
9346 # icc: Command line remark: option '-MP' not supported
9347 if (grep 'ignoring option' conftest.err ||
9348 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9349 am_cv_CXX_dependencies_compiler_type
=$depmode
9350 $as_echo "$as_me:$LINENO: success" >&5
9354 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9355 sed -e 's/^/| /' < conftest.err
>&5
9361 am_cv_CXX_dependencies_compiler_type
=none
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9366 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9367 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9368 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9369 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9379 # These libraries may be used by collect2.
9380 # We may need a special search path to get them linked.
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9382 $as_echo_n "checking for collect2 libraries... " >&6; }
9383 if test "${gcc_cv_collect2_libs+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9387 for libs
in '' -lld -lmld \
9388 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9389 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9395 /* Override any GCC internal prototype to avoid an error.
9396 Use char because int might match the return type of a GCC
9397 builtin and then its argument prototype would still apply. */
9410 if ac_fn_cxx_try_link
"$LINENO"; then :
9411 gcc_cv_collect2_libs
="$libs"; break
9413 rm -f core conftest.err conftest.
$ac_objext \
9414 conftest
$ac_exeext conftest.
$ac_ext
9417 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9420 $as_echo "$gcc_cv_collect2_libs" >&6; }
9421 case $gcc_cv_collect2_libs in
9423 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9427 # When building Ada code on Alpha, we need exc_resume which is usually in
9428 # -lexc. So test for it.
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9432 $as_echo_n "checking for library containing exc_resume... " >&6; }
9433 if test "${ac_cv_search_exc_resume+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9436 ac_func_search_save_LIBS
=$LIBS
9437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9440 /* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
9450 return exc_resume ();
9455 for ac_lib
in '' exc
; do
9456 if test -z "$ac_lib"; then
9457 ac_res
="none required"
9460 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9462 if ac_fn_cxx_try_link
"$LINENO"; then :
9463 ac_cv_search_exc_resume
=$ac_res
9465 rm -f core conftest.err conftest.
$ac_objext \
9467 if test "${ac_cv_search_exc_resume+set}" = set; then :
9471 if test "${ac_cv_search_exc_resume+set}" = set; then :
9474 ac_cv_search_exc_resume
=no
9477 LIBS
=$ac_func_search_save_LIBS
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9480 $as_echo "$ac_cv_search_exc_resume" >&6; }
9481 ac_res
=$ac_cv_search_exc_resume
9482 if test "$ac_res" != no
; then :
9483 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9491 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9495 $as_echo_n "checking for library containing kstat_open... " >&6; }
9496 if test "${ac_cv_search_kstat_open+set}" = set; then :
9497 $as_echo_n "(cached) " >&6
9499 ac_func_search_save_LIBS
=$LIBS
9500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9503 /* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9513 return kstat_open ();
9518 for ac_lib
in '' kstat
; do
9519 if test -z "$ac_lib"; then
9520 ac_res
="none required"
9523 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9525 if ac_fn_cxx_try_link
"$LINENO"; then :
9526 ac_cv_search_kstat_open
=$ac_res
9528 rm -f core conftest.err conftest.
$ac_objext \
9530 if test "${ac_cv_search_kstat_open+set}" = set; then :
9534 if test "${ac_cv_search_kstat_open+set}" = set; then :
9537 ac_cv_search_kstat_open
=no
9540 LIBS
=$ac_func_search_save_LIBS
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9543 $as_echo "$ac_cv_search_kstat_open" >&6; }
9544 ac_res
=$ac_cv_search_kstat_open
9545 if test "$ac_res" != no
; then :
9546 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9550 EXTRA_GCC_LIBS
="$LIBS"
9554 # Some systems put ldexp and frexp in libm instead of libc; assume
9555 # they're both in the same place. jcf-dump needs them.
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9559 $as_echo_n "checking for library containing ldexp... " >&6; }
9560 if test "${ac_cv_search_ldexp+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9563 ac_func_search_save_LIBS
=$LIBS
9564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9582 for ac_lib
in '' m
; do
9583 if test -z "$ac_lib"; then
9584 ac_res
="none required"
9587 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9589 if ac_fn_cxx_try_link
"$LINENO"; then :
9590 ac_cv_search_ldexp
=$ac_res
9592 rm -f core conftest.err conftest.
$ac_objext \
9594 if test "${ac_cv_search_ldexp+set}" = set; then :
9598 if test "${ac_cv_search_ldexp+set}" = set; then :
9601 ac_cv_search_ldexp
=no
9604 LIBS
=$ac_func_search_save_LIBS
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9607 $as_echo "$ac_cv_search_ldexp" >&6; }
9608 ac_res
=$ac_cv_search_ldexp
9609 if test "$ac_res" != no
; then :
9610 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9618 # Use <inttypes.h> only if it exists,
9619 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9622 $as_echo_n "checking for inttypes.h... " >&6; }
9623 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9624 $as_echo_n "(cached) " >&6
9626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 #define __STDC_FORMAT_MACROS
9629 #include <sys/types.h>
9630 #include <inttypes.h>
9642 if ac_fn_cxx_try_compile
"$LINENO"; then :
9643 gcc_cv_header_inttypes_h
=yes
9645 gcc_cv_header_inttypes_h
=no
9647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9651 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9652 if test $gcc_cv_header_inttypes_h = yes; then
9654 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9660 for ac_func
in times clock kill getrlimit setrlimit atoq \
9661 popen sysconf strsignal getrusage nl_langinfo \
9662 gettimeofday mbstowcs wcswidth mmap setlocale \
9663 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
9665 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9666 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9667 eval as_val
=\$
$as_ac_var
9668 if test "x$as_val" = x
""yes; then :
9669 cat >>confdefs.h
<<_ACEOF
9670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9677 if test x
$ac_cv_func_mbstowcs = xyes
; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9679 $as_echo_n "checking whether mbstowcs works... " >&6; }
9680 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
9683 if test "$cross_compiling" = yes; then :
9684 gcc_cv_func_mbstowcs_works
=yes
9686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9695 if ac_fn_cxx_try_run
"$LINENO"; then :
9696 gcc_cv_func_mbstowcs_works
=yes
9698 gcc_cv_func_mbstowcs_works
=no
9700 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9701 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9706 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9707 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9709 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9714 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9715 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9719 cat >>confdefs.h
<<_ACEOF
9725 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9726 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9730 cat >>confdefs.h
<<_ACEOF
9731 #define caddr_t char *
9738 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9739 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9740 gcc_header_sys_mman_h
=yes
9742 gcc_header_sys_mman_h
=no
9745 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9746 if test "x$ac_cv_func_mmap" = x
""yes; then :
9752 if test "$gcc_header_sys_mman_h" != yes \
9753 ||
test "$gcc_func_mmap" != yes; then
9754 gcc_cv_func_mmap_file
=no
9755 gcc_cv_func_mmap_dev_zero
=no
9756 gcc_cv_func_mmap_anon
=no
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9759 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9760 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9763 # Add a system to this blacklist if
9764 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9765 # memory area containing the same data that you'd get if you applied
9766 # read() to the same fd. The only system known to have a problem here
9767 # is VMS, where text files have record structure.
9770 gcc_cv_func_mmap_file
=no
;;
9772 gcc_cv_func_mmap_file
=yes;;
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9776 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9778 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9779 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
9782 # Add a system to this blacklist if it has mmap() but /dev/zero
9783 # does not exist, or if mmapping /dev/zero does not give anonymous
9784 # zeroed pages with both the following properties:
9785 # 1. If you map N consecutive pages in with one call, and then
9786 # unmap any subset of those pages, the pages that were not
9787 # explicitly unmapped remain accessible.
9788 # 2. If you map two adjacent blocks of memory and then unmap them
9789 # both at once, they must both go away.
9790 # Systems known to be in this category are Windows (all variants),
9793 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9794 gcc_cv_func_mmap_dev_zero
=no
;;
9796 gcc_cv_func_mmap_dev_zero
=yes;;
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9800 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9802 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9804 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9805 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9810 #include <sys/types.h>
9811 #include <sys/mman.h>
9814 #ifndef MAP_ANONYMOUS
9815 #define MAP_ANONYMOUS MAP_ANON
9821 int n = MAP_ANONYMOUS;
9826 if ac_fn_cxx_try_compile
"$LINENO"; then :
9827 gcc_cv_decl_map_anon
=yes
9829 gcc_cv_decl_map_anon
=no
9831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9834 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9836 if test $gcc_cv_decl_map_anon = no
; then
9837 gcc_cv_func_mmap_anon
=no
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9840 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9841 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
9844 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9845 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9846 # doesn't give anonymous zeroed pages with the same properties listed
9847 # above for use of /dev/zero.
9848 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9850 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9851 gcc_cv_func_mmap_anon
=no
;;
9853 gcc_cv_func_mmap_anon
=yes;;
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9857 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9861 if test $gcc_cv_func_mmap_file = yes; then
9863 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9866 if test $gcc_cv_func_mmap_dev_zero = yes; then
9868 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9871 if test $gcc_cv_func_mmap_anon = yes; then
9873 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9880 # Under VMS, vfork works very differently than on Unix. The standard test
9881 # won't work, and it isn't easily adaptable. It makes more sense to
9883 ac_cv_func_vfork_works
=yes
9886 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9887 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9891 cat >>confdefs.h
<<_ACEOF
9897 for ac_header
in vfork.h
9899 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9900 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9901 cat >>confdefs.h
<<_ACEOF
9902 #define HAVE_VFORK_H 1
9908 for ac_func
in fork vfork
9910 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9911 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9912 eval as_val
=\$
$as_ac_var
9913 if test "x$as_val" = x
""yes; then :
9914 cat >>confdefs.h
<<_ACEOF
9915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9921 if test "x$ac_cv_func_fork" = xyes
; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9923 $as_echo_n "checking for working fork... " >&6; }
9924 if test "${ac_cv_func_fork_works+set}" = set; then :
9925 $as_echo_n "(cached) " >&6
9927 if test "$cross_compiling" = yes; then :
9928 ac_cv_func_fork_works
=cross
9930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9932 $ac_includes_default
9937 /* By Ruediger Kuhlmann. */
9944 if ac_fn_cxx_try_run
"$LINENO"; then :
9945 ac_cv_func_fork_works
=yes
9947 ac_cv_func_fork_works
=no
9949 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9950 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9955 $as_echo "$ac_cv_func_fork_works" >&6; }
9958 ac_cv_func_fork_works
=$ac_cv_func_fork
9960 if test "x$ac_cv_func_fork_works" = xcross
; then
9962 *-*-amigaos* |
*-*-msdosdjgpp*)
9963 # Override, as these systems have only a dummy fork() stub
9964 ac_cv_func_fork_works
=no
9967 ac_cv_func_fork_works
=yes
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9971 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9973 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9974 if test "x$ac_cv_func_vfork" = xyes
; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9976 $as_echo_n "checking for working vfork... " >&6; }
9977 if test "${ac_cv_func_vfork_works+set}" = set; then :
9978 $as_echo_n "(cached) " >&6
9980 if test "$cross_compiling" = yes; then :
9981 ac_cv_func_vfork_works
=cross
9983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9985 /* Thanks to Paul Eggert for this test. */
9986 $ac_includes_default
9987 #include <sys/wait.h>
9991 /* On some sparc systems, changes by the child to local and incoming
9992 argument registers are propagated back to the parent. The compiler
9993 is told about this with #include <vfork.h>, but some compilers
9994 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9995 static variable whose address is put into a register that is
9996 clobbered by the vfork. */
9999 sparc_address_test (int arg)
10001 sparc_address_test (arg) int arg;
10004 static pid_t child;
10022 pid_t parent = getpid ();
10025 sparc_address_test (0);
10030 /* Here is another test for sparc vfork register problems. This
10031 test uses lots of local variables, at least as many local
10032 variables as main has allocated so far including compiler
10033 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10034 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10035 reuse the register of parent for one of the local variables,
10036 since it will think that parent can't possibly be used any more
10037 in this routine. Assigning to the local variable will thus
10038 munge parent in the parent process. */
10040 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10041 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10042 /* Convince the compiler that p..p7 are live; otherwise, it might
10043 use the same hardware register for all 8 local variables. */
10044 if (p != p1 || p != p2 || p != p3 || p != p4
10045 || p != p5 || p != p6 || p != p7)
10048 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10049 from child file descriptors. If the child closes a descriptor
10050 before it execs or exits, this munges the parent's descriptor
10051 as well. Test for this by closing stdout in the child. */
10052 _exit(close(fileno(stdout)) != 0);
10057 while (wait(&status) != child)
10060 /* Was there some problem with vforking? */
10063 /* Did the child fail? (This shouldn't happen.) */
10066 /* Did the vfork/compiler bug occur? */
10067 || parent != getpid()
10069 /* Did the file descriptor bug occur? */
10070 || fstat(fileno(stdout), &st) != 0
10075 if ac_fn_cxx_try_run
"$LINENO"; then :
10076 ac_cv_func_vfork_works
=yes
10078 ac_cv_func_vfork_works
=no
10080 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10081 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10086 $as_echo "$ac_cv_func_vfork_works" >&6; }
10089 if test "x$ac_cv_func_fork_works" = xcross
; then
10090 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10092 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10095 if test "x$ac_cv_func_vfork_works" = xyes
; then
10097 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10101 $as_echo "#define vfork fork" >>confdefs.h
10104 if test "x$ac_cv_func_fork_works" = xyes
; then
10106 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10112 if test "X$prefix" = "XNONE"; then
10113 acl_final_prefix
="$ac_default_prefix"
10115 acl_final_prefix
="$prefix"
10117 if test "X$exec_prefix" = "XNONE"; then
10118 acl_final_exec_prefix
='${prefix}'
10120 acl_final_exec_prefix
="$exec_prefix"
10122 acl_save_prefix
="$prefix"
10123 prefix
="$acl_final_prefix"
10124 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10125 prefix
="$acl_save_prefix"
10128 # Check whether --with-gnu-ld was given.
10129 if test "${with_gnu_ld+set}" = set; then :
10130 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10135 # Prepare PATH_SEPARATOR.
10136 # The user is always right.
10137 if test "${PATH_SEPARATOR+set}" != set; then
10138 echo "#! /bin/sh" >conf$$.sh
10139 echo "exit 0" >>conf$$.sh
10141 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10149 if test "$GCC" = yes; then
10150 # Check if gcc -print-prog-name=ld gives a path.
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10152 $as_echo_n "checking for ld used by GCC... " >&6; }
10155 # gcc leaves a trailing carriage return which upsets mingw
10156 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10158 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10161 # Accept absolute paths.
10162 [\\/]* |
[A-Za-z
]:[\\/]*)
10163 re_direlt
='/[^/][^/]*/\.\./'
10164 # Canonicalize the path of ld
10165 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10166 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10167 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10169 test -z "$LD" && LD
="$ac_prog"
10172 # If it fails, then pretend we aren't using GCC.
10176 # If it is relative, then search for the first ld in PATH.
10177 with_gnu_ld
=unknown
10180 elif test "$with_gnu_ld" = yes; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10182 $as_echo_n "checking for GNU ld... " >&6; }
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10185 $as_echo_n "checking for non-GNU ld... " >&6; }
10187 if test "${acl_cv_path_LD+set}" = set; then :
10188 $as_echo_n "(cached) " >&6
10190 if test -z "$LD"; then
10191 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10192 for ac_dir
in $PATH; do
10193 test -z "$ac_dir" && ac_dir
=.
10194 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10195 acl_cv_path_LD
="$ac_dir/$ac_prog"
10196 # Check to see if the program is GNU ld. I'd rather use --version,
10197 # but apparently some GNU ld's only accept -v.
10198 # Break only if it was the GNU/non-GNU ld that we prefer.
10199 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10200 test "$with_gnu_ld" != no
&& break
10202 test "$with_gnu_ld" != yes && break
10208 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10212 LD
="$acl_cv_path_LD"
10213 if test -n "$LD"; then
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10215 $as_echo "$LD" >&6; }
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218 $as_echo "no" >&6; }
10220 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10222 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10223 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10224 $as_echo_n "(cached) " >&6
10226 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10227 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10228 acl_cv_prog_gnu_ld
=yes
10230 acl_cv_prog_gnu_ld
=no
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10234 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10235 with_gnu_ld
=$acl_cv_prog_gnu_ld
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10240 $as_echo_n "checking for shared library run path origin... " >&6; }
10241 if test "${acl_cv_rpath+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10245 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10246 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10248 rm -f .
/conftest.sh
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10253 $as_echo "$acl_cv_rpath" >&6; }
10255 libext
="$acl_cv_libext"
10256 shlibext
="$acl_cv_shlibext"
10257 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10258 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10259 hardcode_direct
="$acl_cv_hardcode_direct"
10260 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10261 # Check whether --enable-rpath was given.
10262 if test "${enable_rpath+set}" = set; then :
10263 enableval
=$enable_rpath; :
10277 acl_save_prefix
="$prefix"
10278 prefix
="$acl_final_prefix"
10279 acl_save_exec_prefix
="$exec_prefix"
10280 exec_prefix
="$acl_final_exec_prefix"
10282 eval additional_includedir
=\"$includedir\"
10283 eval additional_libdir
=\"$libdir\"
10285 exec_prefix
="$acl_save_exec_prefix"
10286 prefix
="$acl_save_prefix"
10289 # Check whether --with-libiconv-prefix was given.
10290 if test "${with_libiconv_prefix+set}" = set; then :
10291 withval
=$with_libiconv_prefix;
10292 if test "X$withval" = "Xno"; then
10295 if test "X$withval" = "X"; then
10297 acl_save_prefix
="$prefix"
10298 prefix
="$acl_final_prefix"
10299 acl_save_exec_prefix
="$exec_prefix"
10300 exec_prefix
="$acl_final_exec_prefix"
10302 eval additional_includedir
=\"$includedir\"
10303 eval additional_libdir
=\"$libdir\"
10305 exec_prefix
="$acl_save_exec_prefix"
10306 prefix
="$acl_save_prefix"
10309 additional_includedir
="$withval/include"
10310 additional_libdir
="$withval/lib"
10321 names_already_handled
=
10322 names_next_round
='iconv '
10323 while test -n "$names_next_round"; do
10324 names_this_round
="$names_next_round"
10326 for name
in $names_this_round; do
10328 for n
in $names_already_handled; do
10329 if test "$n" = "$name"; then
10330 already_handled
=yes
10334 if test -z "$already_handled"; then
10335 names_already_handled
="$names_already_handled $name"
10336 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10337 eval value
=\"\
$HAVE_LIB$uppername\"
10338 if test -n "$value"; then
10339 if test "$value" = yes; then
10340 eval value
=\"\
$LIB$uppername\"
10341 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10342 eval value
=\"\
$LTLIB$uppername\"
10343 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10352 if test $use_additional = yes; then
10353 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10354 found_dir
="$additional_libdir"
10355 found_so
="$additional_libdir/lib$name.$shlibext"
10356 if test -f "$additional_libdir/lib$name.la"; then
10357 found_la
="$additional_libdir/lib$name.la"
10360 if test -f "$additional_libdir/lib$name.$libext"; then
10361 found_dir
="$additional_libdir"
10362 found_a
="$additional_libdir/lib$name.$libext"
10363 if test -f "$additional_libdir/lib$name.la"; then
10364 found_la
="$additional_libdir/lib$name.la"
10369 if test "X$found_dir" = "X"; then
10370 for x
in $LDFLAGS $LTLIBICONV; do
10372 acl_save_prefix
="$prefix"
10373 prefix
="$acl_final_prefix"
10374 acl_save_exec_prefix
="$exec_prefix"
10375 exec_prefix
="$acl_final_exec_prefix"
10377 exec_prefix
="$acl_save_exec_prefix"
10378 prefix
="$acl_save_prefix"
10382 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10383 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10385 found_so
="$dir/lib$name.$shlibext"
10386 if test -f "$dir/lib$name.la"; then
10387 found_la
="$dir/lib$name.la"
10390 if test -f "$dir/lib$name.$libext"; then
10392 found_a
="$dir/lib$name.$libext"
10393 if test -f "$dir/lib$name.la"; then
10394 found_la
="$dir/lib$name.la"
10400 if test "X$found_dir" != "X"; then
10405 if test "X$found_dir" != "X"; then
10406 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10407 if test "X$found_so" != "X"; then
10408 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10409 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10412 for x
in $ltrpathdirs; do
10413 if test "X$x" = "X$found_dir"; then
10418 if test -z "$haveit"; then
10419 ltrpathdirs
="$ltrpathdirs $found_dir"
10421 if test "$hardcode_direct" = yes; then
10422 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10424 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10425 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10427 for x
in $rpathdirs; do
10428 if test "X$x" = "X$found_dir"; then
10433 if test -z "$haveit"; then
10434 rpathdirs
="$rpathdirs $found_dir"
10438 for x
in $LDFLAGS $LIBICONV; do
10440 acl_save_prefix
="$prefix"
10441 prefix
="$acl_final_prefix"
10442 acl_save_exec_prefix
="$exec_prefix"
10443 exec_prefix
="$acl_final_exec_prefix"
10445 exec_prefix
="$acl_save_exec_prefix"
10446 prefix
="$acl_save_prefix"
10448 if test "X$x" = "X-L$found_dir"; then
10453 if test -z "$haveit"; then
10454 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10456 if test "$hardcode_minus_L" != no
; then
10457 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10459 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10465 if test "X$found_a" != "X"; then
10466 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10468 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10471 additional_includedir
=
10472 case "$found_dir" in
10474 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10475 additional_includedir
="$basedir/include"
10478 if test "X$additional_includedir" != "X"; then
10479 if test "X$additional_includedir" != "X/usr/include"; then
10481 if test "X$additional_includedir" = "X/usr/local/include"; then
10482 if test -n "$GCC"; then
10484 linux
*) haveit
=yes;;
10488 if test -z "$haveit"; then
10489 for x
in $CPPFLAGS $INCICONV; do
10491 acl_save_prefix
="$prefix"
10492 prefix
="$acl_final_prefix"
10493 acl_save_exec_prefix
="$exec_prefix"
10494 exec_prefix
="$acl_final_exec_prefix"
10496 exec_prefix
="$acl_save_exec_prefix"
10497 prefix
="$acl_save_prefix"
10499 if test "X$x" = "X-I$additional_includedir"; then
10504 if test -z "$haveit"; then
10505 if test -d "$additional_includedir"; then
10506 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10512 if test -n "$found_la"; then
10513 save_libdir
="$libdir"
10514 case "$found_la" in
10515 */* |
*\\*) .
"$found_la" ;;
10516 *) .
"./$found_la" ;;
10518 libdir
="$save_libdir"
10519 for dep
in $dependency_libs; do
10522 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10523 if test "X$additional_libdir" != "X/usr/lib"; then
10525 if test "X$additional_libdir" = "X/usr/local/lib"; then
10526 if test -n "$GCC"; then
10528 linux
*) haveit
=yes;;
10532 if test -z "$haveit"; then
10534 for x
in $LDFLAGS $LIBICONV; do
10536 acl_save_prefix
="$prefix"
10537 prefix
="$acl_final_prefix"
10538 acl_save_exec_prefix
="$exec_prefix"
10539 exec_prefix
="$acl_final_exec_prefix"
10541 exec_prefix
="$acl_save_exec_prefix"
10542 prefix
="$acl_save_prefix"
10544 if test "X$x" = "X-L$additional_libdir"; then
10549 if test -z "$haveit"; then
10550 if test -d "$additional_libdir"; then
10551 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10555 for x
in $LDFLAGS $LTLIBICONV; do
10557 acl_save_prefix
="$prefix"
10558 prefix
="$acl_final_prefix"
10559 acl_save_exec_prefix
="$exec_prefix"
10560 exec_prefix
="$acl_final_exec_prefix"
10562 exec_prefix
="$acl_save_exec_prefix"
10563 prefix
="$acl_save_prefix"
10565 if test "X$x" = "X-L$additional_libdir"; then
10570 if test -z "$haveit"; then
10571 if test -d "$additional_libdir"; then
10572 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10579 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10580 if test "$enable_rpath" != no
; then
10582 for x
in $rpathdirs; do
10583 if test "X$x" = "X$dir"; then
10588 if test -z "$haveit"; then
10589 rpathdirs
="$rpathdirs $dir"
10592 for x
in $ltrpathdirs; do
10593 if test "X$x" = "X$dir"; then
10598 if test -z "$haveit"; then
10599 ltrpathdirs
="$ltrpathdirs $dir"
10604 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10607 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10610 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10611 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10617 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10618 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10624 if test "X$rpathdirs" != "X"; then
10625 if test -n "$hardcode_libdir_separator"; then
10627 for found_dir
in $rpathdirs; do
10628 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10630 acl_save_libdir
="$libdir"
10632 eval flag
=\"$hardcode_libdir_flag_spec\"
10633 libdir
="$acl_save_libdir"
10634 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10636 for found_dir
in $rpathdirs; do
10637 acl_save_libdir
="$libdir"
10638 libdir
="$found_dir"
10639 eval flag
=\"$hardcode_libdir_flag_spec\"
10640 libdir
="$acl_save_libdir"
10641 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10645 if test "X$ltrpathdirs" != "X"; then
10646 for found_dir
in $ltrpathdirs; do
10647 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10658 $as_echo_n "checking for iconv... " >&6; }
10659 if test "${am_cv_func_iconv+set}" = set; then :
10660 $as_echo_n "(cached) " >&6
10663 am_cv_func_iconv
="no, consider installing GNU libiconv"
10665 am_save_CPPFLAGS
="$CPPFLAGS"
10666 CPPFLAGS
="$CPPFLAGS $INCICONV"
10667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #include <stdlib.h>
10674 iconv_t cd = iconv_open("","");
10675 iconv(cd,NULL,NULL,NULL,NULL);
10681 if ac_fn_cxx_try_link
"$LINENO"; then :
10682 am_cv_func_iconv
=yes
10684 rm -f core conftest.err conftest.
$ac_objext \
10685 conftest
$ac_exeext conftest.
$ac_ext
10686 CPPFLAGS
="$am_save_CPPFLAGS"
10688 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10689 for _libs
in .libs _libs
; do
10690 am_save_CPPFLAGS
="$CPPFLAGS"
10691 am_save_LIBS
="$LIBS"
10692 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10693 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696 #include <stdlib.h>
10701 iconv_t cd = iconv_open("","");
10702 iconv(cd,NULL,NULL,NULL,NULL);
10708 if ac_fn_cxx_try_link
"$LINENO"; then :
10709 INCICONV
="-I../libiconv/include"
10710 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10711 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10712 am_cv_lib_iconv
=yes
10713 am_cv_func_iconv
=yes
10715 rm -f core conftest.err conftest.
$ac_objext \
10716 conftest
$ac_exeext conftest.
$ac_ext
10717 CPPFLAGS
="$am_save_CPPFLAGS"
10718 LIBS
="$am_save_LIBS"
10719 if test "$am_cv_func_iconv" = "yes"; then
10725 if test "$am_cv_func_iconv" != yes; then
10726 am_save_CPPFLAGS
="$CPPFLAGS"
10727 am_save_LIBS
="$LIBS"
10728 CPPFLAGS
="$LIBS $INCICONV"
10729 LIBS
="$LIBS $LIBICONV"
10730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732 #include <stdlib.h>
10737 iconv_t cd = iconv_open("","");
10738 iconv(cd,NULL,NULL,NULL,NULL);
10744 if ac_fn_cxx_try_link
"$LINENO"; then :
10745 am_cv_lib_iconv
=yes
10746 am_cv_func_iconv
=yes
10748 rm -f core conftest.err conftest.
$ac_objext \
10749 conftest
$ac_exeext conftest.
$ac_ext
10750 CPPFLAGS
="$am_save_CPPFLAGS"
10751 LIBS
="$am_save_LIBS"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10756 $as_echo "$am_cv_func_iconv" >&6; }
10757 if test "$am_cv_func_iconv" = yes; then
10759 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10762 if test "$am_cv_lib_iconv" = yes; then
10764 for element
in $INCICONV; do
10766 for x
in $CPPFLAGS; do
10768 acl_save_prefix
="$prefix"
10769 prefix
="$acl_final_prefix"
10770 acl_save_exec_prefix
="$exec_prefix"
10771 exec_prefix
="$acl_final_exec_prefix"
10773 exec_prefix
="$acl_save_exec_prefix"
10774 prefix
="$acl_save_prefix"
10776 if test "X$x" = "X$element"; then
10781 if test -z "$haveit"; then
10782 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10787 $as_echo_n "checking how to link with libiconv... " >&6; }
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10789 $as_echo "$LIBICONV" >&6; }
10797 if test "$am_cv_func_iconv" = yes; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10799 $as_echo_n "checking for iconv declaration... " >&6; }
10800 if test "${am_cv_proto_iconv+set}" = set; then :
10801 $as_echo_n "(cached) " >&6
10804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10807 #include <stdlib.h>
10813 #if defined(__STDC__) || defined(__cplusplus)
10814 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10827 if ac_fn_cxx_try_compile
"$LINENO"; then :
10828 am_cv_proto_iconv_arg1
=""
10830 am_cv_proto_iconv_arg1
="const"
10832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10833 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);"
10836 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10838 }$am_cv_proto_iconv" >&5
10840 }$am_cv_proto_iconv" >&6; }
10842 cat >>confdefs.h
<<_ACEOF
10843 #define ICONV_CONST $am_cv_proto_iconv_arg1
10849 # Until we have in-tree GNU iconv:
10851 if test -f "$LTLIBICONV"; then
10852 LIBICONV_DEP
=$LTLIBICONV
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10858 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10859 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 #include <locale.h>
10873 if ac_fn_cxx_try_link
"$LINENO"; then :
10874 am_cv_val_LC_MESSAGES
=yes
10876 am_cv_val_LC_MESSAGES
=no
10878 rm -f core conftest.err conftest.
$ac_objext \
10879 conftest
$ac_exeext conftest.
$ac_ext
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10882 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10883 if test $am_cv_val_LC_MESSAGES = yes; then
10885 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10892 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10893 if test "${am_cv_langinfo_codeset+set}" = set; then :
10894 $as_echo_n "(cached) " >&6
10896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h. */
10898 #include <langinfo.h>
10902 char* cs = nl_langinfo(CODESET);
10907 if ac_fn_cxx_try_link
"$LINENO"; then :
10908 am_cv_langinfo_codeset
=yes
10910 am_cv_langinfo_codeset
=no
10912 rm -f core conftest.err conftest.
$ac_objext \
10913 conftest
$ac_exeext conftest.
$ac_ext
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10917 $as_echo "$am_cv_langinfo_codeset" >&6; }
10918 if test $am_cv_langinfo_codeset = yes; then
10920 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10925 # We will need to find libiberty.h and ansidecl.h
10926 saved_CFLAGS
="$CFLAGS"
10927 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10928 saved_CXXFLAGS
="$CXXFLAGS"
10929 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10931 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10932 # normal autoconf function for these. But force definition of
10933 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10934 # basename handling in libiberty.h.
10935 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10936 #undef HAVE_DECL_BASENAME
10937 #define HAVE_DECL_BASENAME 1
10938 #include \"ansidecl.h\"
10939 #include \"system.h\"
10941 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10947 cat >>confdefs.h
<<_ACEOF
10948 #define HAVE_DECL_BASENAME $ac_have_decl
10950 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10951 #undef HAVE_DECL_BASENAME
10952 #define HAVE_DECL_BASENAME 1
10953 #include \"ansidecl.h\"
10954 #include \"system.h\"
10956 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10962 cat >>confdefs.h
<<_ACEOF
10963 #define HAVE_DECL_STRSTR $ac_have_decl
10967 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10968 madvise stpcpy strnlen strsignal strverscmp \
10969 strtol strtoul strtoll strtoull setenv unsetenv \
10970 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10971 free getopt
clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10973 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10975 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10976 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10977 $as_echo_n "(cached) " >&6
10979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10982 #define $ac_tr_decl 1
10984 #include "ansidecl.h"
10985 #include "system.h"
10991 char *(*pfn) = (char *(*)) $ac_func ;
10997 if ac_fn_cxx_try_compile
"$LINENO"; then :
10998 eval "gcc_cv_have_decl_$ac_func=yes"
11000 eval "gcc_cv_have_decl_$ac_func=no"
11002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11005 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11007 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11008 #define $ac_tr_decl 1
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11014 #define $ac_tr_decl 0
11022 for ac_func
in getrlimit setrlimit getrusage
11024 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11026 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11027 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11028 $as_echo_n "(cached) " >&6
11030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 #define $ac_tr_decl 1
11035 #include "ansidecl.h"
11036 #include "system.h"
11037 #ifdef HAVE_SYS_RESOURCE_H
11038 #include <sys/resource.h>
11046 char *(*pfn) = (char *(*)) $ac_func ;
11052 if ac_fn_cxx_try_compile
"$LINENO"; then :
11053 eval "gcc_cv_have_decl_$ac_func=yes"
11055 eval "gcc_cv_have_decl_$ac_func=no"
11057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11060 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11062 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11063 #define $ac_tr_decl 1
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11069 #define $ac_tr_decl 0
11077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11080 #include "ansidecl.h"
11081 #include "system.h"
11082 #ifdef HAVE_SYS_RESOURCE_H
11083 #include <sys/resource.h>
11094 if ac_fn_cxx_try_compile
"$LINENO"; then :
11098 $as_echo "#define rlim_t long" >>confdefs.h
11101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11103 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11104 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11105 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11106 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11107 for ac_func
in ldgetname
11109 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11111 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11112 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11113 $as_echo_n "(cached) " >&6
11115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11118 #define $ac_tr_decl 1
11120 #include "ansidecl.h"
11121 #include "system.h"
11122 #ifdef HAVE_LDFCN_H
11133 char *(*pfn) = (char *(*)) $ac_func ;
11139 if ac_fn_cxx_try_compile
"$LINENO"; then :
11140 eval "gcc_cv_have_decl_$ac_func=yes"
11142 eval "gcc_cv_have_decl_$ac_func=no"
11144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11147 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11149 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11150 #define $ac_tr_decl 1
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11156 #define $ac_tr_decl 0
11164 for ac_func
in times
11166 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11168 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11169 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11170 $as_echo_n "(cached) " >&6
11172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h. */
11175 #define $ac_tr_decl 1
11177 #include "ansidecl.h"
11178 #include "system.h"
11179 #ifdef HAVE_SYS_TIMES_H
11180 #include <sys/times.h>
11188 char *(*pfn) = (char *(*)) $ac_func ;
11194 if ac_fn_cxx_try_compile
"$LINENO"; then :
11195 eval "gcc_cv_have_decl_$ac_func=yes"
11197 eval "gcc_cv_have_decl_$ac_func=no"
11199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11202 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11204 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11205 #define $ac_tr_decl 1
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11211 #define $ac_tr_decl 0
11219 for ac_func
in sigaltstack
11221 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11223 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11224 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11225 $as_echo_n "(cached) " >&6
11227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11230 #define $ac_tr_decl 1
11232 #include "ansidecl.h"
11233 #include "system.h"
11234 #include <signal.h>
11241 char *(*pfn) = (char *(*)) $ac_func ;
11247 if ac_fn_cxx_try_compile
"$LINENO"; then :
11248 eval "gcc_cv_have_decl_$ac_func=yes"
11250 eval "gcc_cv_have_decl_$ac_func=no"
11252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11255 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11257 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11258 #define $ac_tr_decl 1
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11264 #define $ac_tr_decl 0
11272 # More time-related stuff.
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11274 $as_echo_n "checking for struct tms... " >&6; }
11275 if test "${ac_cv_struct_tms+set}" = set; then :
11276 $as_echo_n "(cached) " >&6
11279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11282 #include "ansidecl.h"
11283 #include "system.h"
11284 #ifdef HAVE_SYS_TIMES_H
11285 #include <sys/times.h>
11296 if ac_fn_cxx_try_compile
"$LINENO"; then :
11297 ac_cv_struct_tms
=yes
11299 ac_cv_struct_tms
=no
11301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11304 $as_echo "$ac_cv_struct_tms" >&6; }
11305 if test $ac_cv_struct_tms = yes; then
11307 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11311 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11312 # revisit after autoconf 2.50.
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11314 $as_echo_n "checking for clock_t... " >&6; }
11315 if test "${gcc_cv_type_clock_t+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11322 #include "ansidecl.h"
11323 #include "system.h"
11333 if ac_fn_cxx_try_compile
"$LINENO"; then :
11334 gcc_cv_type_clock_t
=yes
11336 gcc_cv_type_clock_t
=no
11338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11341 $as_echo "$gcc_cv_type_clock_t" >&6; }
11342 if test $gcc_cv_type_clock_t = yes; then
11344 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11348 # Check if F_SETLKW is supported by fcntl.
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11350 $as_echo_n "checking for F_SETLKW... " >&6; }
11351 if test "${ac_cv_f_setlkw+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11368 return fcntl (1, F_SETLKW, &fl);
11373 if ac_fn_cxx_try_compile
"$LINENO"; then :
11378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11381 $as_echo "$ac_cv_f_setlkw" >&6; }
11382 if test $ac_cv_f_setlkw = yes; then
11384 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11388 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11389 CFLAGS
="$saved_CFLAGS"
11390 CXXFLAGS
="$saved_CXXFLAGS"
11392 # mkdir takes a single argument on some systems.
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11394 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11395 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11401 #include <sys/types.h>
11402 #ifdef HAVE_SYS_STAT_H
11403 # include <sys/stat.h>
11405 #ifdef HAVE_UNISTD_H
11406 # include <unistd.h>
11408 #ifdef HAVE_DIRECT_H
11409 # include <direct.h>
11419 if ac_fn_cxx_try_compile
"$LINENO"; then :
11420 gcc_cv_mkdir_takes_one_arg
=no
11422 gcc_cv_mkdir_takes_one_arg
=yes
11424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11427 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11428 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11430 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11441 # With Setjmp/Longjmp based exception handling.
11442 # Check whether --enable-sjlj-exceptions was given.
11443 if test "${enable_sjlj_exceptions+set}" = set; then :
11444 enableval
=$enable_sjlj_exceptions; case $target in
11446 if test $enableval != yes; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11448 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11453 force_sjlj_exceptions
=yes
11457 force_sjlj_exceptions
=yes
11461 force_sjlj_exceptions
=yes
11465 force_sjlj_exceptions
=no
11470 if test $force_sjlj_exceptions = yes; then
11471 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11473 cat >>confdefs.h
<<_ACEOF
11474 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11479 # --------------------------------------------------------
11480 # Build, host, and target specific configuration fragments
11481 # --------------------------------------------------------
11483 # Collect build-machine-specific information.
11484 .
${srcdir}/config.build
11486 # Collect host-machine-specific information.
11487 .
${srcdir}/config.
host
11491 # Collect target-machine-specific information.
11492 .
${srcdir}/config.gcc
11494 extra_objs
="${host_extra_objs} ${extra_objs}"
11495 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11497 # Default the target-machine variables that were not explicitly set.
11498 if test x
"$tm_file" = x
11499 then tm_file
=$cpu_type/$cpu_type.h
; fi
11501 if test x
"$extra_headers" = x
11502 then extra_headers
=; fi
11504 if test x
$md_file = x
11505 then md_file
=$cpu_type/$cpu_type.md
; fi
11507 if test x
$out_file = x
11508 then out_file
=$cpu_type/$cpu_type.c
; fi
11510 if test x
"$tmake_file" = x
11511 then tmake_file
=$cpu_type/t-
$cpu_type
11514 # Support --enable-initfini-array.
11515 if test x
$enable_initfini_array != xno
; then
11516 tm_file
="${tm_file} initfini-array.h"
11519 if test x
"$dwarf2" = xyes
11520 then tm_file
="$tm_file tm-dwarf2.h"
11523 # Say what files are being used for the output code and MD file.
11524 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11525 echo "Using \`$srcdir/config/$md_file' as machine description file."
11527 # If any of the xm_file variables contain nonexistent files, warn
11528 # about them and drop them.
11531 for x
in $build_xm_file; do
11532 if test -f $srcdir/config
/$x
11534 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11535 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11538 build_xm_file
="$bx"
11541 for x
in $host_xm_file; do
11542 if test -f $srcdir/config
/$x
11544 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11545 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11551 for x
in $xm_file; do
11552 if test -f $srcdir/config
/$x
11554 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11555 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11561 for f
in $tm_file; do
11564 if test $count = ax
; then
11565 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11567 echo "Using the following target machine macro files:"
11568 for f
in $tm_file; do
11569 echo " $srcdir/config/$f"
11573 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11575 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11579 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11581 cat >>confdefs.h
<<_ACEOF
11582 #define HAVE_GNU_LD $gnu_ld_bool
11586 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11588 cat >>confdefs.h
<<_ACEOF
11589 #define HAVE_GNU_AS $gnu_as_bool
11594 for f
in $host_xm_file; do
11597 if test $count = a
; then
11599 elif test $count = ax
; then
11600 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11602 echo "Using the following host machine macro files:"
11603 for f
in $host_xm_file; do
11604 echo " $srcdir/config/$f"
11607 echo "Using ${out_host_hook_obj} for host machine hooks."
11609 if test "$host_xm_file" != "$build_xm_file"; then
11611 for f
in $build_xm_file; do
11614 if test $count = a
; then
11616 elif test $count = ax
; then
11617 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11619 echo "Using the following build machine macro files:"
11620 for f
in $build_xm_file; do
11621 echo " $srcdir/config/$f"
11626 if test -n "$configured_native_system_header_dir"; then
11627 native_system_header_dir
=$configured_native_system_header_dir
11629 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11633 powerpc
*-*-darwin*)
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11635 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11636 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11642 #include <sys/cdefs.h>
11643 #include <sys/signal.h>
11644 #include <ucontext.h>
11645 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11648 if ac_fn_cxx_try_compile
"$LINENO"; then :
11649 gcc_cv_mcontext_underscores
=no
11651 gcc_cv_mcontext_underscores
=yes
11653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11656 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11657 if test $gcc_cv_mcontext_underscores = yes; then
11659 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11669 # Check if a valid thread package
11670 case ${enable_threads} in
11673 target_thread_file
='single'
11677 target_thread_file
='single'
11679 aix | dce | lynx | mipssde | posix | rtems | \
11680 single | tpf | vxworks | win32
)
11681 target_thread_file
=${enable_threads}
11684 echo "${enable_threads} is an unknown thread package" 1>&2
11689 if test x
${thread_file} = x
; then
11690 # No thread file set by target-specific clauses in config.gcc,
11691 # so use file chosen by default logic above
11692 thread_file
=${target_thread_file}
11700 if test x
$enable___cxa_atexit = xyes || \
11701 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11702 if test x
$host = x
$target; then
11704 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11705 # keyed to flag_use_cxa_atexit
11713 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11714 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11717 echo "__cxa_atexit can't be enabled on this target"
11723 # We can't check for __cxa_atexit when building a cross, so assume
11727 if test x
$use_cxa_atexit = xyes
; then
11729 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11734 # Look for a file containing extra machine modes.
11735 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11736 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11739 cat >>confdefs.h
<<_ACEOF
11740 #define EXTRA_MODES_FILE "config/$extra_modes"
11745 # Convert extra_options into a form suitable for Makefile use.
11748 for f
in $extra_options; do
11749 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11750 all_opt_files
="$all_opt_files $srcdir/config/$f"
11754 # auto-host.h is the file containing items generated by autoconf and is
11755 # the first file included by config.h.
11756 # If host=build, it is correct to have bconfig include auto-host.h
11757 # as well. If host!=build, we are in error and need to do more
11758 # work to find out the build config parameters.
11759 if test x
$host = x
$build
11761 build_auto
=auto-host.h
11763 # We create a subdir, then run autoconf in the subdir.
11764 # To prevent recursion we set host and build for the new
11765 # invocation of configure to the build for this invocation
11772 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11773 *) realsrcdir
=..
/${srcdir};;
11775 # Clearing GMPINC is necessary to prevent host headers being
11776 # used by the build compiler. Defining GENERATOR_FILE stops
11777 # system.h from including gmp.h.
11778 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11779 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11780 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11781 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11782 ${realsrcdir}/configure \
11783 --enable-languages=${enable_languages-all} \
11784 --target=$target_alias --host=$build_alias --build=$build_alias
11786 # We just finished tests for the build machine, so rename
11787 # the file auto-build.h in the gcc directory.
11788 mv auto-host.h ..
/auto-build.h
11791 build_auto
=auto-build.h
11795 tm_file
="${tm_file} defaults.h"
11796 tm_p_file
="${tm_p_file} tm-preds.h"
11797 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11798 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11799 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11800 # put this back in temporarily.
11801 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11807 # Compile in configure arguments.
11808 if test -f configargs.h
; then
11809 # Being re-configured.
11810 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11811 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11813 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11816 # Double all backslashes and backslash all quotes to turn
11817 # gcc_config_arguments into a C string.
11818 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11819 $gcc_config_arguments
11821 gcc_config_arguments_str
=`cat conftest.out`
11824 cat > configargs.h
<<EOF
11825 /* Generated automatically. */
11826 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11827 static const char thread_model[] = "$thread_file";
11829 static const struct {
11830 const char *name, *value;
11831 } configure_default_options[] = $configure_default_options;
11834 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11835 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11836 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11837 if test -f $srcdir/REVISION
; then
11838 gcc_REVISION
=`cat $srcdir/REVISION`
11842 cat > plugin-version.h
<<EOF
11843 #include "configargs.h"
11845 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11846 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11847 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11848 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11850 static char basever[] = "$gcc_BASEVER";
11851 static char datestamp[] = "$gcc_DATESTAMP";
11852 static char devphase[] = "$gcc_DEVPHASE";
11853 static char revision[] = "$gcc_REVISION";
11855 /* FIXME plugins: We should make the version information more precise.
11856 One way to do is to add a checksum. */
11858 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11859 devphase, revision,
11860 configuration_arguments};
11863 # Internationalization
11864 # If we haven't got the data from the intl directory,
11865 # assume NLS is disabled.
11874 if test -f ..
/intl
/config.intl
; then
11875 . ..
/intl
/config.intl
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11878 $as_echo_n "checking whether NLS is requested... " >&6; }
11879 if test x
"$USE_NLS" != xyes
; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11884 $as_echo "yes" >&6; }
11886 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11890 $as_echo_n "checking for catalogs to be installed... " >&6; }
11891 # Look for .po and .gmo files in the source directory.
11894 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11895 # If there aren't any .gmo files the shell will give us the
11896 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11898 case "$cat" in *\
**)
11901 # The quadruple backslash is collapsed to a double backslash
11902 # by the backticks, then collapsed again by the double quotes,
11903 # leaving us with one backslash in the sed expression (right
11904 # before the dot that mustn't act as a wildcard).
11905 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11906 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11907 # The user is allowed to set LINGUAS to a list of languages to
11908 # install catalogs for. If it's empty that means "all of them."
11909 if test "x$LINGUAS" = x
; then
11910 CATALOGS
="$CATALOGS $cat"
11911 XLINGUAS
="$XLINGUAS $lang"
11913 case "$LINGUAS" in *$lang*)
11914 CATALOGS
="$CATALOGS $cat"
11915 XLINGUAS
="$XLINGUAS $lang"
11920 LINGUAS
="$XLINGUAS"
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11922 $as_echo "$LINGUAS" >&6; }
11935 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11936 # -liconv on the link line twice.
11937 case "$LIBINTL" in *$LIBICONV*)
11941 # Check whether --enable-secureplt was given.
11942 if test "${enable_secureplt+set}" = set; then :
11943 enableval
=$enable_secureplt;
11947 # Check whether --enable-leading-mingw64-underscores was given.
11948 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11949 enableval
=$enable_leading_mingw64_underscores;
11952 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11954 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11958 # Check whether --enable-cld was given.
11959 if test "${enable_cld+set}" = set; then :
11960 enableval
=$enable_cld;
11966 # Check whether --enable-frame-pointer was given.
11967 if test "${enable_frame_pointer+set}" = set; then :
11968 enableval
=$enable_frame_pointer;
11972 linux
* | darwin
[8912]*)
11973 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11975 enable_frame_pointer
=no
11978 enable_frame_pointer
=yes
11985 # Windows32 Registry support for specifying GCC installation paths.
11986 # Check whether --enable-win32-registry was given.
11987 if test "${enable_win32_registry+set}" = set; then :
11988 enableval
=$enable_win32_registry;
11993 win32 | pe | cygwin
* | mingw32
*)
11994 if test "x$enable_win32_registry" != xno
; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11996 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11997 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
12000 ac_func_search_save_LIBS
=$LIBS
12001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12004 /* Override any GCC internal prototype to avoid an error.
12005 Use char because int might match the return type of a GCC
12006 builtin and then its argument prototype would still apply. */
12010 char RegOpenKeyExA ();
12014 return RegOpenKeyExA ();
12019 for ac_lib
in '' advapi32
; do
12020 if test -z "$ac_lib"; then
12021 ac_res
="none required"
12024 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12026 if ac_fn_cxx_try_link
"$LINENO"; then :
12027 ac_cv_search_RegOpenKeyExA
=$ac_res
12029 rm -f core conftest.err conftest.
$ac_objext \
12031 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12035 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12038 ac_cv_search_RegOpenKeyExA
=no
12040 rm conftest.
$ac_ext
12041 LIBS
=$ac_func_search_save_LIBS
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12044 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12045 ac_res
=$ac_cv_search_RegOpenKeyExA
12046 if test "$ac_res" != no
; then :
12047 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12050 enable_win32_registry
=no
12055 if test "x$enable_win32_registry" != xno
; then
12057 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12060 if test "x$enable_win32_registry" != xyes \
12061 && test "x$enable_win32_registry" != x
; then
12063 cat >>confdefs.h
<<_ACEOF
12064 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12072 # Get an absolute path to the GCC top-level source directory
12073 holddir
=`${PWDCMD-pwd}`
12075 topdir
=`${PWDCMD-pwd}`
12078 # Conditionalize the makefile for this host machine.
12080 for f
in ${host_xmake_file}
12082 if test -f ${srcdir}/config
/$f
12084 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12088 # Conditionalize the makefile for this target machine.
12090 for f
in ${tmake_file}
12092 if test -f ${srcdir}/config
/$f
12094 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12097 tmake_file
="${tmake_file_}"
12099 out_object_file
=`basename $out_file .c`.o
12100 common_out_object_file
=`basename $common_out_file .c`.o
12102 tm_file_list
="options.h"
12103 tm_include_list
="options.h insn-constants.h"
12104 for f
in $tm_file; do
12107 f
=`echo $f | sed 's/^..//'`
12108 tm_file_list
="${tm_file_list} $f"
12109 tm_include_list
="${tm_include_list} $f"
12112 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12113 tm_include_list
="${tm_include_list} $f"
12116 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12117 tm_include_list
="${tm_include_list} config/$f"
12124 for f
in $tm_p_file; do
12127 tm_p_file_list
="${tm_p_file_list} $f"
12128 tm_p_include_list
="${tm_p_include_list} $f"
12131 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12132 tm_p_include_list
="${tm_p_include_list} config/$f"
12138 for f
in $xm_file; do
12141 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12142 xm_include_list
="${xm_include_list} $f"
12145 xm_file_list
="${xm_file_list} $f"
12146 xm_include_list
="${xm_include_list} $f"
12149 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12150 xm_include_list
="${xm_include_list} config/$f"
12156 host_xm_include_list
=
12157 for f
in $host_xm_file; do
12160 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12161 host_xm_include_list
="${host_xm_include_list} $f"
12164 host_xm_file_list
="${host_xm_file_list} $f"
12165 host_xm_include_list
="${host_xm_include_list} $f"
12168 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12169 host_xm_include_list
="${host_xm_include_list} config/$f"
12174 build_xm_file_list
=
12175 for f
in $build_xm_file; do
12178 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12179 build_xm_include_list
="${build_xm_include_list} $f"
12181 auto-build.h | auto-host.h
)
12182 build_xm_file_list
="${build_xm_file_list} $f"
12183 build_xm_include_list
="${build_xm_include_list} $f"
12186 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12187 build_xm_include_list
="${build_xm_include_list} config/$f"
12192 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12193 # cross-compiler which does not use the native headers and libraries.
12194 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12197 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12199 if test "x$with_build_sysroot" != x
; then
12200 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12202 # This value is used, even on a native system, because
12203 # CROSS_SYSTEM_HEADER_DIR is just
12204 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12205 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12208 if test x
$host != x
$target
12210 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12212 SYSTEM_HEADER_DIR
=$build_system_header_dir
12215 if test "x$with_headers" = x
; then
12222 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12223 SYSTEM_HEADER_DIR
=$build_system_header_dir
12226 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12227 if test "x$with_headers" != x
&& test "x$with_headers" != xyes
; then
12228 target_header_dir
=$with_headers
12229 elif test "x$with_sysroot" = x
; then
12230 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12231 elif test "x$with_build_sysroot" != "x"; then
12232 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12233 elif test "x$with_sysroot" = xyes
; then
12234 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12236 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12239 target_header_dir
=${native_system_header_dir}
12242 # If this is a cross-compiler that does not
12243 # have its own set of headers then define
12246 # If this is using newlib, without having the headers available now,
12247 # then define inhibit_libc in LIBGCC2_CFLAGS.
12248 # This prevents libgcc2 from containing any code which requires libc
12250 : ${inhibit_libc=false}
12251 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12252 test x
$with_newlib = xyes
; } &&
12253 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12258 # When building gcc with a cross-compiler, we need to adjust things so
12259 # that the generator programs are still built with the native compiler.
12260 # Also, we cannot run fixincludes.
12262 # These are the normal (build=host) settings:
12263 CC_FOR_BUILD
='$(CC)'
12264 CXX_FOR_BUILD
='$(CXX)'
12265 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12266 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12267 BUILD_LDFLAGS
='$(LDFLAGS)'
12268 STMP_FIXINC
=stmp-fixinc
12270 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12271 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12273 # And these apply if build != host, or we are generating coverage data
12274 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12276 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12277 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12278 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12280 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12281 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12282 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12283 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12288 # Expand extra_headers to include complete path.
12289 # This substitutes for lots of t-* files.
12290 extra_headers_list
=
12291 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12292 for file in ${extra_headers} ; do
12293 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12296 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12297 if test x
"$use_gcc_tgmath" = xyes
12298 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12301 # Define collect2 in Makefile.
12302 case $host_can_use_collect2 in
12304 *) collect2
='collect2$(exeext)' ;;
12308 # Add a definition of USE_COLLECT2 if system wants one.
12309 case $use_collect2 in
12310 no
) use_collect2
= ;;
12313 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12314 xm_defines
="${xm_defines} USE_COLLECT2"
12315 case $host_can_use_collect2 in
12317 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12324 cat >>confdefs.h
<<_ACEOF
12325 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12329 # ---------------------------
12330 # Assembler & linker features
12331 # ---------------------------
12333 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12334 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12335 # However when ld-new is first executed from the build tree, libtool will
12336 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12337 # to the build tree. While doing this we need to use the previous-stage
12338 # linker, or we have an infinite loop. The presence of a shell script as
12339 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12340 # the gcc/collect-ld script. So we need to know how libtool works, or
12341 # exec-tool will fail.
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12347 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12352 macro_version
='2.2.7a'
12353 macro_revision
='1.3134'
12367 ltmain
="$ac_aux_dir/ltmain.sh"
12369 # Backslashify metacharacters that are still active within
12370 # double-quoted strings.
12371 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12373 # Same as above, but do not quote variable references.
12374 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12376 # Sed substitution to delay expansion of an escaped shell variable in a
12377 # double_quote_subst'ed string.
12378 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12380 # Sed substitution to delay expansion of an escaped single quote.
12381 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12383 # Sed substitution to avoid accidental globbing in evaled expressions
12384 no_glob_subst
='s/\*/\\\*/g'
12386 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12387 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12388 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12391 $as_echo_n "checking how to print strings... " >&6; }
12392 # Test print first, because it will be a builtin if present.
12393 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12394 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12396 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12399 # Use this function as a fallback that always works.
12400 func_fallback_echo ()
12402 eval 'cat <<_LTECHO_EOF
12406 ECHO='func_fallback_echo
'
12409 # func_echo_all arg...
12410 # Invoke $ECHO with all args, space-separated.
12417 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12418 $as_echo "printf" >&6; } ;;
12419 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12420 $as_echo "print -r" >&6; } ;;
12421 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12422 $as_echo "cat" >&6; } ;;
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12439 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12440 if test "${ac_cv_path_SED+set}" = set; then :
12441 $as_echo_n "(cached) " >&6
12443 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12444 for ac_i in 1 2 3 4 5 6 7; do
12445 ac_script="$ac_script$as_nl$ac_script"
12447 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12448 { ac_script=; unset ac_script;}
12449 if test -z "$SED"; then
12450 ac_path_SED_found=false
12451 # Loop through the user's path and
test for each of PROGNAME-LIST
12452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12453 for as_dir
in $PATH
12456 test -z "$as_dir" && as_dir
=.
12457 for ac_prog
in sed gsed
; do
12458 for ac_exec_ext
in '' $ac_executable_extensions; do
12459 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12460 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12461 # Check for GNU ac_path_SED and select it if it is found.
12462 # Check for GNU $ac_path_SED
12463 case `"$ac_path_SED" --version 2>&1` in
12465 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12468 $as_echo_n 0123456789 >"conftest.in"
12471 cat "conftest.in" "conftest.in" >"conftest.tmp"
12472 mv "conftest.tmp" "conftest.in"
12473 cp "conftest.in" "conftest.nl"
12474 $as_echo '' >> "conftest.nl"
12475 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12476 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12477 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12478 if test $ac_count -gt ${ac_path_SED_max-0}; then
12479 # Best one so far, save it but keep looking for a better one
12480 ac_cv_path_SED
="$ac_path_SED"
12481 ac_path_SED_max
=$ac_count
12483 # 10*(2^10) chars as input seems more than enough
12484 test $ac_count -gt 10 && break
12486 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12489 $ac_path_SED_found && break 3
12494 if test -z "$ac_cv_path_SED"; then
12495 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12498 ac_cv_path_SED
=$SED
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12503 $as_echo "$ac_cv_path_SED" >&6; }
12504 SED
="$ac_cv_path_SED"
12507 test -z "$SED" && SED
=sed
12508 Xsed
="$SED -e 1s/^X//"
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12521 $as_echo_n "checking for fgrep... " >&6; }
12522 if test "${ac_cv_path_FGREP+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12525 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12526 then ac_cv_path_FGREP
="$GREP -F"
12528 if test -z "$FGREP"; then
12529 ac_path_FGREP_found
=false
12530 # Loop through the user's path and test for each of PROGNAME-LIST
12531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12532 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12535 test -z "$as_dir" && as_dir
=.
12536 for ac_prog
in fgrep
; do
12537 for ac_exec_ext
in '' $ac_executable_extensions; do
12538 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12539 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12540 # Check for GNU ac_path_FGREP and select it if it is found.
12541 # Check for GNU $ac_path_FGREP
12542 case `"$ac_path_FGREP" --version 2>&1` in
12544 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12547 $as_echo_n 0123456789 >"conftest.in"
12550 cat "conftest.in" "conftest.in" >"conftest.tmp"
12551 mv "conftest.tmp" "conftest.in"
12552 cp "conftest.in" "conftest.nl"
12553 $as_echo 'FGREP' >> "conftest.nl"
12554 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12555 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12556 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12557 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12558 # Best one so far, save it but keep looking for a better one
12559 ac_cv_path_FGREP
="$ac_path_FGREP"
12560 ac_path_FGREP_max
=$ac_count
12562 # 10*(2^10) chars as input seems more than enough
12563 test $ac_count -gt 10 && break
12565 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12568 $ac_path_FGREP_found && break 3
12573 if test -z "$ac_cv_path_FGREP"; then
12574 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12577 ac_cv_path_FGREP
=$FGREP
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12583 $as_echo "$ac_cv_path_FGREP" >&6; }
12584 FGREP
="$ac_cv_path_FGREP"
12587 test -z "$GREP" && GREP
=grep
12607 # Check whether --with-gnu-ld was given.
12608 if test "${with_gnu_ld+set}" = set; then :
12609 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12615 if test "$GCC" = yes; then
12616 # Check if gcc -print-prog-name=ld gives a path.
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12618 $as_echo_n "checking for ld used by $CC... " >&6; }
12621 # gcc leaves a trailing carriage return which upsets mingw
12622 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12624 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12627 # Accept absolute paths.
12629 re_direlt
='/[^/][^/]*/\.\./'
12630 # Canonicalize the pathname of ld
12631 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12632 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12633 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12635 test -z "$LD" && LD
="$ac_prog"
12638 # If it fails, then pretend we aren't using GCC.
12642 # If it is relative, then search for the first ld in PATH.
12643 with_gnu_ld
=unknown
12646 elif test "$with_gnu_ld" = yes; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12648 $as_echo_n "checking for GNU ld... " >&6; }
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12651 $as_echo_n "checking for non-GNU ld... " >&6; }
12653 if test "${lt_cv_path_LD+set}" = set; then :
12654 $as_echo_n "(cached) " >&6
12656 if test -z "$LD"; then
12657 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12658 for ac_dir
in $PATH; do
12660 test -z "$ac_dir" && ac_dir
=.
12661 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12662 lt_cv_path_LD
="$ac_dir/$ac_prog"
12663 # Check to see if the program is GNU ld. I'd rather use --version,
12664 # but apparently some variants of GNU ld only accept -v.
12665 # Break only if it was the GNU/non-GNU ld that we prefer.
12666 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12667 *GNU
* |
*'with BFD'*)
12668 test "$with_gnu_ld" != no
&& break
12671 test "$with_gnu_ld" != yes && break
12678 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12682 LD
="$lt_cv_path_LD"
12683 if test -n "$LD"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12685 $as_echo "$LD" >&6; }
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12690 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12692 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12693 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
12696 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12697 case `$LD -v 2>&1 </dev/null` in
12698 *GNU
* |
*'with BFD'*)
12699 lt_cv_prog_gnu_ld
=yes
12702 lt_cv_prog_gnu_ld
=no
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12707 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12708 with_gnu_ld
=$lt_cv_prog_gnu_ld
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12719 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12720 if test "${lt_cv_path_NM+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12723 if test -n "$NM"; then
12724 # Let the user override the test.
12725 lt_cv_path_NM
="$NM"
12727 lt_nm_to_check
="${ac_tool_prefix}nm"
12728 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12729 lt_nm_to_check
="$lt_nm_to_check nm"
12731 for lt_tmp_nm
in $lt_nm_to_check; do
12732 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12733 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12735 test -z "$ac_dir" && ac_dir
=.
12736 tmp_nm
="$ac_dir/$lt_tmp_nm"
12737 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12738 # Check to see if the nm accepts a BSD-compat flag.
12739 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12740 # nm: unknown option "B" ignored
12741 # Tru64's nm complains that /dev/null is an invalid object file
12742 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12743 */dev
/null
* |
*'Invalid file or object type'*)
12744 lt_cv_path_NM
="$tmp_nm -B"
12748 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12750 lt_cv_path_NM
="$tmp_nm -p"
12754 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12755 continue # so that we can try to find one that supports BSD flags
12764 : ${lt_cv_path_NM=no}
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12768 $as_echo "$lt_cv_path_NM" >&6; }
12769 if test "$lt_cv_path_NM" != "no"; then
12770 NM
="$lt_cv_path_NM"
12772 # Didn't find any BSD compatible name lister, look for dumpbin.
12773 if test -n "$DUMPBIN"; then :
12774 # Let the user override the test.
12776 if test -n "$ac_tool_prefix"; then
12777 for ac_prog
in dumpbin
"link -dump"
12779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12780 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12782 $as_echo_n "checking for $ac_word... " >&6; }
12783 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12786 if test -n "$DUMPBIN"; then
12787 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12790 for as_dir
in $PATH
12793 test -z "$as_dir" && as_dir
=.
12794 for ac_exec_ext
in '' $ac_executable_extensions; do
12795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12796 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12806 DUMPBIN
=$ac_cv_prog_DUMPBIN
12807 if test -n "$DUMPBIN"; then
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12809 $as_echo "$DUMPBIN" >&6; }
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12816 test -n "$DUMPBIN" && break
12819 if test -z "$DUMPBIN"; then
12820 ac_ct_DUMPBIN
=$DUMPBIN
12821 for ac_prog
in dumpbin
"link -dump"
12823 # Extract the first word of "$ac_prog", so it can be a program name with args.
12824 set dummy
$ac_prog; ac_word
=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12830 if test -n "$ac_ct_DUMPBIN"; then
12831 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12834 for as_dir
in $PATH
12837 test -z "$as_dir" && as_dir
=.
12838 for ac_exec_ext
in '' $ac_executable_extensions; do
12839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12840 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12851 if test -n "$ac_ct_DUMPBIN"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12853 $as_echo "$ac_ct_DUMPBIN" >&6; }
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12860 test -n "$ac_ct_DUMPBIN" && break
12863 if test "x$ac_ct_DUMPBIN" = x
; then
12866 case $cross_compiling:$ac_tool_warned in
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12870 ac_tool_warned
=yes ;;
12872 DUMPBIN
=$ac_ct_DUMPBIN
12876 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12878 DUMPBIN
="$DUMPBIN -symbols"
12886 if test "$DUMPBIN" != ":"; then
12890 test -z "$NM" && NM
=nm
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12898 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12899 if test "${lt_cv_nm_interface+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12902 lt_cv_nm_interface
="BSD nm"
12903 echo "int some_variable = 0;" > conftest.
$ac_ext
12904 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12905 (eval "$ac_compile" 2>conftest.err
)
12906 cat conftest.err
>&5
12907 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12908 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12909 cat conftest.err
>&5
12910 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12911 cat conftest.out
>&5
12912 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12913 lt_cv_nm_interface
="MS dumpbin"
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12918 $as_echo "$lt_cv_nm_interface" >&6; }
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12921 $as_echo_n "checking whether ln -s works... " >&6; }
12923 if test "$LN_S" = "ln -s"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12925 $as_echo "yes" >&6; }
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12928 $as_echo "no, using $LN_S" >&6; }
12931 # find the maximum length of command line arguments
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12933 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12934 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12942 # On DJGPP, this test can blow up pretty badly due to problems in libc
12943 # (any single argument exceeding 2000 bytes causes a buffer overrun
12944 # during glob expansion). Even if it were fixed, the result of this
12945 # check would be larger than it should be.
12946 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12950 # Under GNU Hurd, this test is not required because there is
12951 # no limit to the length of command line arguments.
12952 # Libtool will interpret -1 as no limit whatsoever
12953 lt_cv_sys_max_cmd_len
=-1;
12956 cygwin
* | mingw
* | cegcc
*)
12957 # On Win9x/ME, this test blows up -- it succeeds, but takes
12958 # about 5 minutes as the teststring grows exponentially.
12959 # Worse, since 9x/ME are not pre-emptively multitasking,
12960 # you end up with a "frozen" computer, even though with patience
12961 # the test eventually succeeds (with a max line length of 256k).
12962 # Instead, let's just punt: use the minimum linelength reported by
12963 # all of the supported platforms: 8192 (on NT/2K/XP).
12964 lt_cv_sys_max_cmd_len
=8192;
12968 # On MiNT this can take a long time and run out of memory.
12969 lt_cv_sys_max_cmd_len
=8192;
12973 # On AmigaOS with pdksh, this test takes hours, literally.
12974 # So we just punt and use a minimum line length of 8192.
12975 lt_cv_sys_max_cmd_len
=8192;
12978 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12979 # This has been around since 386BSD, at least. Likely further.
12980 if test -x /sbin
/sysctl
; then
12981 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12982 elif test -x /usr
/sbin
/sysctl
; then
12983 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12985 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12987 # And add a safety zone
12988 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12989 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12993 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12994 lt_cv_sys_max_cmd_len
=196608
12998 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12999 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13000 # nice to cause kernel panics so lets avoid the loop below.
13001 # First set a reasonable default.
13002 lt_cv_sys_max_cmd_len
=16384
13004 if test -x /sbin
/sysconfig
; then
13005 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13006 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13011 lt_cv_sys_max_cmd_len
=102400
13013 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13014 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13015 if test -n "$kargmax"; then
13016 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13018 lt_cv_sys_max_cmd_len
=32768
13022 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13023 if test -n "$lt_cv_sys_max_cmd_len"; then
13024 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13025 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13027 # Make teststring a little bigger before we do anything with it.
13028 # a 1K string should be a reasonable start.
13029 for i
in 1 2 3 4 5 6 7 8 ; do
13030 teststring
=$teststring$teststring
13032 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13033 # If test is not a shell built-in, we'll probably end up computing a
13034 # maximum length that is only half of the actual maximum length, but
13036 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13037 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13038 test $i != 17 # 1/2 MB should be enough
13041 teststring
=$teststring$teststring
13043 # Only check the string length outside the loop.
13044 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13046 # Add a significant safety factor because C++ compilers can tack on
13047 # massive amounts of additional arguments before passing them to the
13048 # linker. It appears as though 1/2 is a usable value.
13049 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13056 if test -n $lt_cv_sys_max_cmd_len ; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13058 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13061 $as_echo "none" >&6; }
13063 max_cmd_len
=$lt_cv_sys_max_cmd_len
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13075 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13076 # Try some XSI features
13078 ( _lt_dummy
="a/b/c"
13079 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13081 && eval 'test $(( 1 + 1 )) -eq 2 \
13082 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13085 $as_echo "$xsi_shell" >&6; }
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13089 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13091 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13093 && lt_shell_append=yes
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13095 $as_echo "$lt_shell_append" >&6; }
13098 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13108 # test EBCDIC or ASCII
13109 case `echo X|tr X '\101'` in
13110 A) # ASCII based system
13111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13112 lt_SP2NL='tr \040 \012'
13113 lt_NL2SP='tr \015\012 \040\040'
13115 *) # EBCDIC based system
13116 lt_SP2NL='tr \100 \n'
13117 lt_NL2SP='tr \r\n \100\100'
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13130 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13131 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13132 $as_echo_n "(cached
) " >&6
13134 lt_cv_ld_reload_flag='-r'
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13137 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13138 reload_flag=$lt_cv_ld_reload_flag
13139 case $reload_flag in
13141 *) reload_flag=" $reload_flag" ;;
13143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13146 if test "$GCC" = yes; then
13147 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13162 if test -n "$ac_tool_prefix"; then
13163 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13164 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13166 $as_echo_n "checking
for $ac_word...
" >&6; }
13167 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13168 $as_echo_n "(cached
) " >&6
13170 if test -n "$OBJDUMP"; then
13171 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13181 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13190 OBJDUMP=$ac_cv_prog_OBJDUMP
13191 if test -n "$OBJDUMP"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13193 $as_echo "$OBJDUMP" >&6; }
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13196 $as_echo "no
" >&6; }
13201 if test -z "$ac_cv_prog_OBJDUMP"; then
13202 ac_ct_OBJDUMP=$OBJDUMP
13203 # Extract the first word of "objdump
", so it can be a program name with args.
13204 set dummy objdump; ac_word=$2
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13206 $as_echo_n "checking
for $ac_word...
" >&6; }
13207 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13208 $as_echo_n "(cached
) " >&6
13210 if test -n "$ac_ct_OBJDUMP"; then
13211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214 for as_dir in $PATH
13217 test -z "$as_dir" && as_dir=.
13218 for ac_exec_ext in '' $ac_executable_extensions; do
13219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13220 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13221 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13230 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13231 if test -n "$ac_ct_OBJDUMP"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13233 $as_echo "$ac_ct_OBJDUMP" >&6; }
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13236 $as_echo "no
" >&6; }
13239 if test "x
$ac_ct_OBJDUMP" = x; then
13242 case $cross_compiling:$ac_tool_warned in
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13245 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13246 ac_tool_warned=yes ;;
13248 OBJDUMP=$ac_ct_OBJDUMP
13251 OBJDUMP="$ac_cv_prog_OBJDUMP"
13254 test -z "$OBJDUMP" && OBJDUMP=objdump
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13265 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13266 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13267 $as_echo_n "(cached
) " >&6
13269 lt_cv_file_magic_cmd='$MAGIC_CMD'
13270 lt_cv_file_magic_test_file=
13271 lt_cv_deplibs_check_method='unknown'
13272 # Need to set the preceding variable on all platforms that support
13273 # interlibrary dependencies.
13274 # 'none' -- dependencies not supported.
13275 # `unknown' -- same as none, but documents that we really don't know.
13276 # 'pass_all' -- all dependencies passed with no checks.
13277 # 'test_compile' -- check by making test program.
13278 # 'file_magic [[regex]]' -- check by looking for files in library path
13279 # which responds to the $file_magic_cmd with a given extended regex.
13280 # If you have `file' or equivalent on your system and you're not sure
13281 # whether `pass_all' will *always* work, you probably want this one.
13285 lt_cv_deplibs_check_method=pass_all
13289 lt_cv_deplibs_check_method=pass_all
13293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13294 lt_cv_file_magic_cmd='/usr/bin/file -L'
13295 lt_cv_file_magic_test_file=/shlib/libc.so
13299 # func_win32_libid is a shell function defined in ltmain.sh
13300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13301 lt_cv_file_magic_cmd='func_win32_libid'
13305 # Base MSYS/MinGW do not provide the 'file' command needed by
13306 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13307 # unless we find 'file', for example because we are cross-compiling.
13308 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13309 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13310 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13311 lt_cv_file_magic_cmd='func_win32_libid'
13313 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13314 lt_cv_file_magic_cmd='$OBJDUMP -f'
13319 # use the weaker test based on 'objdump'. See mingw*.
13320 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13321 lt_cv_file_magic_cmd='$OBJDUMP -f'
13324 darwin* | rhapsody*)
13325 lt_cv_deplibs_check_method=pass_all
13328 freebsd* | dragonfly*)
13329 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13332 # Not sure whether the presence of OpenBSD here was a mistake.
13333 # Let's accept both of them until this is cleared up.
13334 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13335 lt_cv_file_magic_cmd=/usr/bin/file
13336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13340 lt_cv_deplibs_check_method=pass_all
13345 lt_cv_deplibs_check_method=pass_all
13349 lt_cv_deplibs_check_method=pass_all
13352 hpux10.20* | hpux11*)
13353 lt_cv_file_magic_cmd=/usr/bin/file
13356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13357 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13360 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]'
13361 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13365 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13371 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13375 irix5* | irix6* | nonstopux*)
13377 *-32|*"-32 ") libmagic=32-bit;;
13378 *-n32|*"-n32 ") libmagic=N32;;
13379 *-64|*"-64 ") libmagic=64-bit;;
13380 *) libmagic=never-match;;
13382 lt_cv_deplibs_check_method=pass_all
13385 # This must be Linux ELF.
13386 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13387 lt_cv_deplibs_check_method=pass_all
13391 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13400 lt_cv_file_magic_cmd=/usr/bin/file
13401 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13405 lt_cv_deplibs_check_method=pass_all
13409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13416 osf3* | osf4* | osf5*)
13417 lt_cv_deplibs_check_method=pass_all
13421 lt_cv_deplibs_check_method=pass_all
13425 lt_cv_deplibs_check_method=pass_all
13428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13429 lt_cv_deplibs_check_method=pass_all
13433 case $host_vendor in
13435 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]'
13436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13439 lt_cv_deplibs_check_method=pass_all
13442 lt_cv_file_magic_cmd='/bin/file'
13443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13446 lt_cv_file_magic_cmd='/bin/file'
13447 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13448 lt_cv_file_magic_test_file=/lib/libc.so
13451 lt_cv_deplibs_check_method=pass_all
13454 lt_cv_deplibs_check_method=pass_all
13460 lt_cv_deplibs_check_method=pass_all
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13466 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13467 file_magic_cmd=$lt_cv_file_magic_cmd
13468 deplibs_check_method=$lt_cv_deplibs_check_method
13469 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13482 if test -n "$ac_tool_prefix"; then
13483 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13484 set dummy ${ac_tool_prefix}ar; ac_word=$2
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13486 $as_echo_n "checking
for $ac_word...
" >&6; }
13487 if test "${ac_cv_prog_AR+set}" = set; then :
13488 $as_echo_n "(cached
) " >&6
13490 if test -n "$AR"; then
13491 ac_cv_prog_AR="$AR" # Let the user override the test.
13493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13494 for as_dir in $PATH
13497 test -z "$as_dir" && as_dir=.
13498 for ac_exec_ext in '' $ac_executable_extensions; do
13499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13500 ac_cv_prog_AR="${ac_tool_prefix}ar"
13501 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13511 if test -n "$AR"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13513 $as_echo "$AR" >&6; }
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13516 $as_echo "no
" >&6; }
13521 if test -z "$ac_cv_prog_AR"; then
13523 # Extract the first word of "ar", so it can be a program name with args.
13524 set dummy ar; ac_word=$2
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13526 $as_echo_n "checking
for $ac_word...
" >&6; }
13527 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13528 $as_echo_n "(cached
) " >&6
13530 if test -n "$ac_ct_AR"; then
13531 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534 for as_dir in $PATH
13537 test -z "$as_dir" && as_dir=.
13538 for ac_exec_ext in '' $ac_executable_extensions; do
13539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13540 ac_cv_prog_ac_ct_AR="ar"
13541 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13550 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13551 if test -n "$ac_ct_AR"; then
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13553 $as_echo "$ac_ct_AR" >&6; }
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13556 $as_echo "no
" >&6; }
13559 if test "x
$ac_ct_AR" = x; then
13562 case $cross_compiling:$ac_tool_warned in
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13565 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13566 ac_tool_warned=yes ;;
13571 AR="$ac_cv_prog_AR"
13574 test -z "$AR" && AR=ar
13575 test -z "$AR_FLAGS" && AR_FLAGS=cru
13587 if test -n "$ac_tool_prefix"; then
13588 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13589 set dummy ${ac_tool_prefix}strip; ac_word=$2
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13591 $as_echo_n "checking
for $ac_word...
" >&6; }
13592 if test "${ac_cv_prog_STRIP+set}" = set; then :
13593 $as_echo_n "(cached
) " >&6
13595 if test -n "$STRIP"; then
13596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599 for as_dir in $PATH
13602 test -z "$as_dir" && as_dir=.
13603 for ac_exec_ext in '' $ac_executable_extensions; do
13604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13605 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13606 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13615 STRIP=$ac_cv_prog_STRIP
13616 if test -n "$STRIP"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13618 $as_echo "$STRIP" >&6; }
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13621 $as_echo "no
" >&6; }
13626 if test -z "$ac_cv_prog_STRIP"; then
13628 # Extract the first word of "strip
", so it can be a program name with args.
13629 set dummy strip; ac_word=$2
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13631 $as_echo_n "checking
for $ac_word...
" >&6; }
13632 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13633 $as_echo_n "(cached
) " >&6
13635 if test -n "$ac_ct_STRIP"; then
13636 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639 for as_dir in $PATH
13642 test -z "$as_dir" && as_dir=.
13643 for ac_exec_ext in '' $ac_executable_extensions; do
13644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13645 ac_cv_prog_ac_ct_STRIP="strip
"
13646 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13655 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13656 if test -n "$ac_ct_STRIP"; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13658 $as_echo "$ac_ct_STRIP" >&6; }
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13661 $as_echo "no
" >&6; }
13664 if test "x
$ac_ct_STRIP" = x; then
13667 case $cross_compiling:$ac_tool_warned in
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13670 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13671 ac_tool_warned=yes ;;
13676 STRIP="$ac_cv_prog_STRIP"
13679 test -z "$STRIP" && STRIP=:
13686 if test -n "$ac_tool_prefix"; then
13687 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13690 $as_echo_n "checking
for $ac_word...
" >&6; }
13691 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13692 $as_echo_n "(cached
) " >&6
13694 if test -n "$RANLIB"; then
13695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698 for as_dir in $PATH
13701 test -z "$as_dir" && as_dir=.
13702 for ac_exec_ext in '' $ac_executable_extensions; do
13703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13705 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13714 RANLIB=$ac_cv_prog_RANLIB
13715 if test -n "$RANLIB"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13717 $as_echo "$RANLIB" >&6; }
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13720 $as_echo "no
" >&6; }
13725 if test -z "$ac_cv_prog_RANLIB"; then
13726 ac_ct_RANLIB=$RANLIB
13727 # Extract the first word of "ranlib
", so it can be a program name with args.
13728 set dummy ranlib; ac_word=$2
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13730 $as_echo_n "checking
for $ac_word...
" >&6; }
13731 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13732 $as_echo_n "(cached
) " >&6
13734 if test -n "$ac_ct_RANLIB"; then
13735 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13738 for as_dir in $PATH
13741 test -z "$as_dir" && as_dir=.
13742 for ac_exec_ext in '' $ac_executable_extensions; do
13743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13744 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13745 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13754 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13755 if test -n "$ac_ct_RANLIB"; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13757 $as_echo "$ac_ct_RANLIB" >&6; }
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13760 $as_echo "no
" >&6; }
13763 if test "x
$ac_ct_RANLIB" = x; then
13766 case $cross_compiling:$ac_tool_warned in
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13769 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13770 ac_tool_warned=yes ;;
13772 RANLIB=$ac_ct_RANLIB
13775 RANLIB="$ac_cv_prog_RANLIB"
13778 test -z "$RANLIB" && RANLIB=:
13785 # Determine commands to create old-style static archives.
13786 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13787 old_postinstall_cmds='chmod 644 $oldlib'
13788 old_postuninstall_cmds=
13790 if test -n "$RANLIB"; then
13793 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13796 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13799 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13804 lock_old_archive_extraction=yes ;;
13806 lock_old_archive_extraction=no ;;
13847 # If no C compiler was specified, use CC.
13850 # If no C compiler flags were specified, use CFLAGS.
13851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13853 # Allow CC to be a program name with arguments.
13857 # Check for command to grab the raw symbol name followed by C symbol from nm.
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13859 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13860 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13861 $as_echo_n "(cached
) " >&6
13864 # These are sane defaults that work on at least a few old systems.
13865 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13867 # Character class describing NM global symbol codes.
13868 symcode='[BCDEGRST]'
13870 # Regexp to match symbols that can be accessed directly from C.
13871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13873 # Define system-specific variables.
13878 cygwin* | mingw* | pw32* | cegcc*)
13879 symcode='[ABCDGISTW]'
13882 if test "$host_cpu" = ia64; then
13883 symcode='[ABCDEGRST]'
13886 irix* | nonstopux*)
13887 symcode='[BCDEGRST]'
13890 symcode='[BCDEGQRST]'
13901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13909 # If we're using GNU nm, then use its standard symbol codes.
13910 case `$NM -V 2>&1` in
13911 *GNU* | *'with BFD'*)
13912 symcode='[ABCDGIRSTW]' ;;
13915 # Transform an extracted symbol line into a proper C declaration.
13916 # Some systems (esp. on ia64) link data and code symbols differently,
13917 # so use this general approach.
13918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13920 # Transform an extracted symbol line into symbol name and symbol address
13921 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13922 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'"
13924 # Handle CRLF in mingw tool chain
13928 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13932 # Try without a prefix underscore, then with it.
13933 for ac_symprfx in "" "_
"; do
13935 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13936 symxfrm="\\1 $ac_symprfx\\2 \\2"
13938 # Write the raw and C identifiers.
13939 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13940 # Fake it for dumpbin and say T for any non-static function
13941 # and D for any global variable.
13942 # Also find C++ and __fastcall symbols from MSVC++,
13943 # which start with @ or ?.
13944 lt_cv_sys_global_symbol_pipe="$AWK '"\
13945 " {last_section=section; section=\$ 3};"\
13946 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13947 " \$ 0!~/External *\|/{next};"\
13948 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13949 " {if(hide[section]) next};"\
13950 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13951 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13952 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13953 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13954 " ' prfx
=^
$ac_symprfx"
13956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13959 # Check to see that the pipe works correctly.
13963 cat > conftest.$ac_ext <<_LT_EOF
13968 void nm_test_func(void);
13969 void nm_test_func(void){}
13973 int main(){nm_test_var='a';nm_test_func();return(0);}
13976 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13977 (eval $ac_compile) 2>&5
13979 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13980 test $ac_status = 0; }; then
13981 # Now try to grab the symbols.
13983 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13984 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13986 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13987 test $ac_status = 0; } && test -s "$nlist"; then
13988 # Try sorting and uniquifying the output.
13989 if sort "$nlist" | uniq > "$nlist"T; then
13990 mv -f "$nlist"T "$nlist"
13995 # Make sure that we snagged all the symbols we need.
13996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13998 cat <<_LT_EOF > conftest.$ac_ext
14004 # Now generate the symbol file.
14005 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14007 cat <<_LT_EOF >> conftest.$ac_ext
14009 /* The mapping between symbol names and symbols. */
14014 lt__PROGRAM__LTX_preloaded_symbols[] =
14016 { "@PROGRAM@
", (void *) 0 },
14018 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14019 cat <<\_LT_EOF >> conftest.$ac_ext
14023 /* This works around a problem in FreeBSD linker */
14024 #ifdef FREEBSD_WORKAROUND
14025 static const void *lt_preloaded_setup() {
14026 return lt__PROGRAM__LTX_preloaded_symbols;
14034 # Now try linking the two files.
14035 mv conftest.$ac_objext conftstm.$ac_objext
14036 lt_save_LIBS="$LIBS"
14037 lt_save_CFLAGS="$CFLAGS"
14038 LIBS="conftstm.
$ac_objext"
14039 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14040 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14041 (eval $ac_link) 2>&5
14043 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14044 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14047 LIBS="$lt_save_LIBS"
14048 CFLAGS="$lt_save_CFLAGS"
14050 echo "cannot
find nm_test_func
in $nlist" >&5
14053 echo "cannot
find nm_test_var
in $nlist" >&5
14056 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14059 echo "$progname: failed program was
:" >&5
14060 cat conftest.$ac_ext >&5
14062 rm -rf conftest* conftst*
14064 # Do not use the global_symbol_pipe unless it works.
14065 if test "$pipe_works" = yes; then
14068 lt_cv_sys_global_symbol_pipe=
14074 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14075 lt_cv_sys_global_symbol_to_cdecl=
14077 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14079 $as_echo "failed
" >&6; }
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14082 $as_echo "ok
" >&6; }
14106 # Check whether --enable-libtool-lock was given.
14107 if test "${enable_libtool_lock+set}" = set; then :
14108 enableval=$enable_libtool_lock;
14111 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14113 # Some flags need to be propagated to the compiler or linker for good
14117 # Find out which ABI we are using.
14118 echo 'int i;' > conftest.$ac_ext
14119 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14120 (eval $ac_compile) 2>&5
14122 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14123 test $ac_status = 0; }; then
14124 case `/usr/bin/file conftest.$ac_objext` in
14126 HPUX_IA64_MODE="32"
14129 HPUX_IA64_MODE="64"
14136 # Find out which ABI we are using.
14137 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14138 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14139 (eval $ac_compile) 2>&5
14141 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14142 test $ac_status = 0; }; then
14143 if test "$lt_cv_prog_gnu_ld" = yes; then
14144 case `/usr/bin/file conftest.$ac_objext` in
14146 LD="${LD-ld} -melf32bsmip"
14149 LD="${LD-ld} -melf32bmipn32"
14152 LD="${LD-ld} -melf64bmip"
14156 case `/usr/bin/file conftest.$ac_objext` in
14172 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14173 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14174 # Find out which ABI we are using.
14175 echo 'int i;' > conftest.$ac_ext
14176 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14177 (eval $ac_compile) 2>&5
14179 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14180 test $ac_status = 0; }; then
14181 case `/usr/bin/file conftest.o` in
14184 x86_64-*kfreebsd*-gnu)
14185 LD="${LD-ld} -m elf_i386_fbsd
"
14188 case `/usr/bin/file conftest.o` in
14190 LD="${LD-ld} -m elf32_x86_64
"
14193 LD="${LD-ld} -m elf_i386
"
14197 powerpc64le-*linux*)
14198 LD="${LD-ld} -m elf32lppclinux
"
14201 LD="${LD-ld} -m elf32ppclinux
"
14204 LD="${LD-ld} -m elf_s390
"
14207 LD="${LD-ld} -m elf32_sparc
"
14213 x86_64-*kfreebsd*-gnu)
14214 LD="${LD-ld} -m elf_x86_64_fbsd
"
14217 LD="${LD-ld} -m elf_x86_64
"
14220 LD="${LD-ld} -m elf64lppc
"
14223 LD="${LD-ld} -m elf64ppc
"
14225 s390*-*linux*|s390*-*tpf*)
14226 LD="${LD-ld} -m elf64_s390
"
14229 LD="${LD-ld} -m elf64_sparc
"
14239 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14240 SAVE_CFLAGS="$CFLAGS"
14241 CFLAGS="$CFLAGS -belf"
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14243 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14244 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14245 $as_echo_n "(cached
) " >&6
14248 ac_cpp='$CPP $CPPFLAGS'
14249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14264 if ac_fn_c_try_link "$LINENO"; then :
14265 lt_cv_cc_needs_belf=yes
14267 lt_cv_cc_needs_belf=no
14269 rm -f core conftest.err conftest.$ac_objext \
14270 conftest$ac_exeext conftest.$ac_ext
14272 ac_cpp='$CPP $CPPFLAGS'
14273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14279 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14280 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14281 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14282 CFLAGS="$SAVE_CFLAGS"
14286 # Find out which ABI we are using.
14287 echo 'int i;' > conftest.$ac_ext
14288 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14289 (eval $ac_compile) 2>&5
14291 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14292 test $ac_status = 0; }; then
14293 case `/usr/bin/file conftest.o` in
14295 case $lt_cv_prog_gnu_ld in
14296 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14298 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14310 need_locks="$enable_libtool_lock"
14314 rhapsody* | darwin*)
14315 if test -n "$ac_tool_prefix"; then
14316 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14317 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14319 $as_echo_n "checking
for $ac_word...
" >&6; }
14320 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14321 $as_echo_n "(cached
) " >&6
14323 if test -n "$DSYMUTIL"; then
14324 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14330 test -z "$as_dir" && as_dir=.
14331 for ac_exec_ext in '' $ac_executable_extensions; do
14332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14333 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14334 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14343 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14344 if test -n "$DSYMUTIL"; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14346 $as_echo "$DSYMUTIL" >&6; }
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14349 $as_echo "no
" >&6; }
14354 if test -z "$ac_cv_prog_DSYMUTIL"; then
14355 ac_ct_DSYMUTIL=$DSYMUTIL
14356 # Extract the first word of "dsymutil
", so it can be a program name with args.
14357 set dummy dsymutil; ac_word=$2
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14359 $as_echo_n "checking
for $ac_word...
" >&6; }
14360 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14361 $as_echo_n "(cached
) " >&6
14363 if test -n "$ac_ct_DSYMUTIL"; then
14364 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14367 for as_dir in $PATH
14370 test -z "$as_dir" && as_dir=.
14371 for ac_exec_ext in '' $ac_executable_extensions; do
14372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14373 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14374 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14383 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14384 if test -n "$ac_ct_DSYMUTIL"; then
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14386 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14389 $as_echo "no
" >&6; }
14392 if test "x
$ac_ct_DSYMUTIL" = x; then
14395 case $cross_compiling:$ac_tool_warned in
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14398 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14399 ac_tool_warned=yes ;;
14401 DSYMUTIL=$ac_ct_DSYMUTIL
14404 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14407 if test -n "$ac_tool_prefix"; then
14408 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14409 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14411 $as_echo_n "checking
for $ac_word...
" >&6; }
14412 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14413 $as_echo_n "(cached
) " >&6
14415 if test -n "$NMEDIT"; then
14416 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
14424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14425 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14426 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14435 NMEDIT=$ac_cv_prog_NMEDIT
14436 if test -n "$NMEDIT"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14438 $as_echo "$NMEDIT" >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14441 $as_echo "no
" >&6; }
14446 if test -z "$ac_cv_prog_NMEDIT"; then
14447 ac_ct_NMEDIT=$NMEDIT
14448 # Extract the first word of "nmedit
", so it can be a program name with args.
14449 set dummy nmedit; ac_word=$2
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14451 $as_echo_n "checking
for $ac_word...
" >&6; }
14452 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14453 $as_echo_n "(cached
) " >&6
14455 if test -n "$ac_ct_NMEDIT"; then
14456 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459 for as_dir in $PATH
14462 test -z "$as_dir" && as_dir=.
14463 for ac_exec_ext in '' $ac_executable_extensions; do
14464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14465 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14466 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14475 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14476 if test -n "$ac_ct_NMEDIT"; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14478 $as_echo "$ac_ct_NMEDIT" >&6; }
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14481 $as_echo "no
" >&6; }
14484 if test "x
$ac_ct_NMEDIT" = x; then
14487 case $cross_compiling:$ac_tool_warned in
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14490 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14491 ac_tool_warned=yes ;;
14493 NMEDIT=$ac_ct_NMEDIT
14496 NMEDIT="$ac_cv_prog_NMEDIT"
14499 if test -n "$ac_tool_prefix"; then
14500 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14501 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14503 $as_echo_n "checking
for $ac_word...
" >&6; }
14504 if test "${ac_cv_prog_LIPO+set}" = set; then :
14505 $as_echo_n "(cached
) " >&6
14507 if test -n "$LIPO"; then
14508 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511 for as_dir in $PATH
14514 test -z "$as_dir" && as_dir=.
14515 for ac_exec_ext in '' $ac_executable_extensions; do
14516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14517 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14518 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14527 LIPO=$ac_cv_prog_LIPO
14528 if test -n "$LIPO"; then
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14530 $as_echo "$LIPO" >&6; }
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14533 $as_echo "no
" >&6; }
14538 if test -z "$ac_cv_prog_LIPO"; then
14540 # Extract the first word of "lipo
", so it can be a program name with args.
14541 set dummy lipo; ac_word=$2
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14543 $as_echo_n "checking
for $ac_word...
" >&6; }
14544 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14545 $as_echo_n "(cached
) " >&6
14547 if test -n "$ac_ct_LIPO"; then
14548 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14551 for as_dir in $PATH
14554 test -z "$as_dir" && as_dir=.
14555 for ac_exec_ext in '' $ac_executable_extensions; do
14556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14557 ac_cv_prog_ac_ct_LIPO="lipo
"
14558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14567 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14568 if test -n "$ac_ct_LIPO"; then
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14570 $as_echo "$ac_ct_LIPO" >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14573 $as_echo "no
" >&6; }
14576 if test "x
$ac_ct_LIPO" = x; then
14579 case $cross_compiling:$ac_tool_warned in
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14582 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14583 ac_tool_warned=yes ;;
14588 LIPO="$ac_cv_prog_LIPO"
14591 if test -n "$ac_tool_prefix"; then
14592 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14593 set dummy ${ac_tool_prefix}otool; ac_word=$2
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14595 $as_echo_n "checking
for $ac_word...
" >&6; }
14596 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14597 $as_echo_n "(cached
) " >&6
14599 if test -n "$OTOOL"; then
14600 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14603 for as_dir in $PATH
14606 test -z "$as_dir" && as_dir=.
14607 for ac_exec_ext in '' $ac_executable_extensions; do
14608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14609 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14610 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14619 OTOOL=$ac_cv_prog_OTOOL
14620 if test -n "$OTOOL"; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14622 $as_echo "$OTOOL" >&6; }
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14625 $as_echo "no
" >&6; }
14630 if test -z "$ac_cv_prog_OTOOL"; then
14632 # Extract the first word of "otool
", so it can be a program name with args.
14633 set dummy otool; ac_word=$2
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14635 $as_echo_n "checking
for $ac_word...
" >&6; }
14636 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14637 $as_echo_n "(cached
) " >&6
14639 if test -n "$ac_ct_OTOOL"; then
14640 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14643 for as_dir in $PATH
14646 test -z "$as_dir" && as_dir=.
14647 for ac_exec_ext in '' $ac_executable_extensions; do
14648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14649 ac_cv_prog_ac_ct_OTOOL="otool
"
14650 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14659 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14660 if test -n "$ac_ct_OTOOL"; then
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14662 $as_echo "$ac_ct_OTOOL" >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14665 $as_echo "no
" >&6; }
14668 if test "x
$ac_ct_OTOOL" = x; then
14671 case $cross_compiling:$ac_tool_warned in
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14674 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14675 ac_tool_warned=yes ;;
14680 OTOOL="$ac_cv_prog_OTOOL"
14683 if test -n "$ac_tool_prefix"; then
14684 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14685 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14687 $as_echo_n "checking
for $ac_word...
" >&6; }
14688 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14689 $as_echo_n "(cached
) " >&6
14691 if test -n "$OTOOL64"; then
14692 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14695 for as_dir in $PATH
14698 test -z "$as_dir" && as_dir=.
14699 for ac_exec_ext in '' $ac_executable_extensions; do
14700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14701 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14702 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14711 OTOOL64=$ac_cv_prog_OTOOL64
14712 if test -n "$OTOOL64"; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14714 $as_echo "$OTOOL64" >&6; }
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14717 $as_echo "no
" >&6; }
14722 if test -z "$ac_cv_prog_OTOOL64"; then
14723 ac_ct_OTOOL64=$OTOOL64
14724 # Extract the first word of "otool64
", so it can be a program name with args.
14725 set dummy otool64; ac_word=$2
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14727 $as_echo_n "checking
for $ac_word...
" >&6; }
14728 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14729 $as_echo_n "(cached
) " >&6
14731 if test -n "$ac_ct_OTOOL64"; then
14732 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735 for as_dir in $PATH
14738 test -z "$as_dir" && as_dir=.
14739 for ac_exec_ext in '' $ac_executable_extensions; do
14740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14741 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14751 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14752 if test -n "$ac_ct_OTOOL64"; then
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14754 $as_echo "$ac_ct_OTOOL64" >&6; }
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14757 $as_echo "no
" >&6; }
14760 if test "x
$ac_ct_OTOOL64" = x; then
14763 case $cross_compiling:$ac_tool_warned in
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14766 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14767 ac_tool_warned=yes ;;
14769 OTOOL64=$ac_ct_OTOOL64
14772 OTOOL64="$ac_cv_prog_OTOOL64"
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14802 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14803 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14804 $as_echo_n "(cached
) " >&6
14806 lt_cv_apple_cc_single_mod=no
14807 if test -z "${LT_MULTI_MODULE}"; then
14808 # By default we will add the -single_module flag. You can override
14809 # by either setting the environment variable LT_MULTI_MODULE
14810 # non-empty at configure time, or by adding -multi_module to the
14812 rm -rf libconftest.dylib*
14813 echo "int foo
(void
){return 1;}" > conftest.c
14814 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14815 -dynamiclib -Wl,-single_module conftest.c
" >&5
14816 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14817 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14819 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14820 lt_cv_apple_cc_single_mod=yes
14822 cat conftest.err >&5
14824 rm -rf libconftest.dylib*
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14829 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14831 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14832 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14833 $as_echo_n "(cached
) " >&6
14835 lt_cv_ld_exported_symbols_list=no
14836 save_LDFLAGS=$LDFLAGS
14837 echo "_main
" > conftest.sym
14838 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14850 if ac_fn_c_try_link "$LINENO"; then :
14851 lt_cv_ld_exported_symbols_list=yes
14853 lt_cv_ld_exported_symbols_list=no
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LDFLAGS="$save_LDFLAGS"
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14861 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14863 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14864 if test "${lt_cv_ld_force_load+set}" = set; then :
14865 $as_echo_n "(cached
) " >&6
14867 lt_cv_ld_force_load=no
14868 cat > conftest.c << _LT_EOF
14869 int forced_loaded() { return 2;}
14871 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14872 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14873 echo "$AR cru libconftest.a conftest.o
" >&5
14874 $AR cru libconftest.a conftest.o 2>&5
14875 cat > conftest.c << _LT_EOF
14876 int main() { return 0;}
14878 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14879 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14881 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14882 lt_cv_ld_force_load=yes
14884 cat conftest.err >&5
14886 rm -f conftest.err libconftest.a conftest conftest.c
14887 rm -rf conftest.dSYM
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14891 $as_echo "$lt_cv_ld_force_load" >&6; }
14893 rhapsody* | darwin1.[012])
14894 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14896 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14897 darwin*) # darwin 5.x on
14898 # if running on 10.5 or later, the deployment target defaults
14899 # to the OS version, if on x86, and 10.4, the deployment
14900 # target defaults to 10.4. Don't you love it?
14901 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14902 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14903 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14905 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14907 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14911 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14912 _lt_dar_single_mod='$single_module'
14914 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14915 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14917 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14919 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14920 _lt_dsymutil='~$DSYMUTIL $lib || :'
14928 for ac_header in dlfcn.h
14930 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14931 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14932 cat >>confdefs.h <<_ACEOF
14933 #define HAVE_DLFCN_H 1
14950 enable_win32_dll=no
14953 # Check whether --enable-shared was given.
14954 if test "${enable_shared+set}" = set; then :
14955 enableval=$enable_shared; p=${PACKAGE-default}
14957 yes) enable_shared=yes ;;
14958 no) enable_shared=no ;;
14961 # Look at the argument we got. We use all the common list separators.
14962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14963 for pkg in $enableval; do
14965 if test "X
$pkg" = "X
$p"; then
14984 # Check whether --enable-static was given.
14985 if test "${enable_static+set}" = set; then :
14986 enableval=$enable_static; p=${PACKAGE-default}
14988 yes) enable_static=yes ;;
14989 no) enable_static=no ;;
14992 # Look at the argument we got. We use all the common list separators.
14993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14994 for pkg in $enableval; do
14996 if test "X
$pkg" = "X
$p"; then
15016 # Check whether --with-pic was given.
15017 if test "${with_pic+set}" = set; then :
15018 withval=$with_pic; pic_mode="$withval"
15024 test -z "$pic_mode" && pic_mode=default
15032 # Check whether --enable-fast-install was given.
15033 if test "${enable_fast_install+set}" = set; then :
15034 enableval=$enable_fast_install; p=${PACKAGE-default}
15036 yes) enable_fast_install=yes ;;
15037 no) enable_fast_install=no ;;
15039 enable_fast_install=no
15040 # Look at the argument we got. We use all the common list separators.
15041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15042 for pkg in $enableval; do
15044 if test "X
$pkg" = "X
$p"; then
15045 enable_fast_install=yes
15052 enable_fast_install=yes
15065 # This can be used to rebuild libtool when needed
15066 LIBTOOL_DEPS="$ltmain"
15068 # Always use our own libtool.
15069 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15096 test -z "$LN_S" && LN_S="ln -s"
15111 if test -n "${ZSH_VERSION+set}" ; then
15112 setopt NO_GLOB_SUBST
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15116 $as_echo_n "checking
for objdir...
" >&6; }
15117 if test "${lt_cv_objdir+set}" = set; then :
15118 $as_echo_n "(cached
) " >&6
15120 rm -f .libs 2>/dev/null
15121 mkdir .libs 2>/dev/null
15122 if test -d .libs; then
15125 # MS-DOS does not allow filenames that begin with a dot.
15128 rmdir .libs 2>/dev/null
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15131 $as_echo "$lt_cv_objdir" >&6; }
15132 objdir=$lt_cv_objdir
15138 cat >>confdefs.h <<_ACEOF
15139 #define LT_OBJDIR "$lt_cv_objdir/"
15147 # AIX sometimes has problems with the GCC collect2 program. For some
15148 # reason, if we set the COLLECT_NAMES environment variable, the problems
15149 # vanish in a puff of smoke.
15150 if test "X
${COLLECT_NAMES+set}" != Xset; then
15152 export COLLECT_NAMES
15157 # Global variables:
15159 can_build_shared=yes
15161 # All known linkers require a `.a' archive for static linking (except MSVC,
15162 # which needs '.lib').
15165 with_gnu_ld="$lt_cv_prog_gnu_ld"
15168 old_CFLAGS="$CFLAGS"
15170 # Set sane defaults for various variables
15171 test -z "$CC" && CC=cc
15172 test -z "$LTCC" && LTCC=$CC
15173 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15174 test -z "$LD" && LD=ld
15175 test -z "$ac_objext" && ac_objext=o
15177 for cc_temp in $compiler""; do
15179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15185 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15188 # Only perform the check for file, if the check method requires it
15189 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15190 case $deplibs_check_method in
15192 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15194 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15196 $as_echo_n "(cached
) " >&6
15200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15203 lt_save_MAGIC_CMD="$MAGIC_CMD"
15204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15205 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15206 for ac_dir in $ac_dummy; do
15208 test -z "$ac_dir" && ac_dir=.
15209 if test -f $ac_dir/${ac_tool_prefix}file; then
15210 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15211 if test -n "$file_magic_test_file"; then
15212 case $deplibs_check_method in
15214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15217 $EGREP "$file_magic_regex" > /dev/null; then
15222 *** Warning: the command libtool uses to detect shared libraries,
15223 *** $file_magic_cmd, produces output that libtool cannot recognize.
15224 *** The result is that libtool may fail to recognize shared libraries
15225 *** as such. This will affect the creation of libtool libraries that
15226 *** depend on shared libraries, but programs linked with such libtool
15227 *** libraries will work regardless of this problem. Nevertheless, you
15228 *** may want to report the problem to your system manager and/or to
15229 *** bug-libtool@gnu.org
15239 MAGIC_CMD="$lt_save_MAGIC_CMD"
15244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15245 if test -n "$MAGIC_CMD"; then
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15247 $as_echo "$MAGIC_CMD" >&6; }
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15250 $as_echo "no
" >&6; }
15257 if test -z "$lt_cv_path_MAGIC_CMD"; then
15258 if test -n "$ac_tool_prefix"; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15260 $as_echo_n "checking
for file...
" >&6; }
15261 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15262 $as_echo_n "(cached
) " >&6
15266 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15269 lt_save_MAGIC_CMD="$MAGIC_CMD"
15270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15271 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15272 for ac_dir in $ac_dummy; do
15274 test -z "$ac_dir" && ac_dir=.
15275 if test -f $ac_dir/file; then
15276 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15277 if test -n "$file_magic_test_file"; then
15278 case $deplibs_check_method in
15280 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15282 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15283 $EGREP "$file_magic_regex" > /dev/null; then
15288 *** Warning: the command libtool uses to detect shared libraries,
15289 *** $file_magic_cmd, produces output that libtool cannot recognize.
15290 *** The result is that libtool may fail to recognize shared libraries
15291 *** as such. This will affect the creation of libtool libraries that
15292 *** depend on shared libraries, but programs linked with such libtool
15293 *** libraries will work regardless of this problem. Nevertheless, you
15294 *** may want to report the problem to your system manager and/or to
15295 *** bug-libtool@gnu.org
15305 MAGIC_CMD="$lt_save_MAGIC_CMD"
15310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15311 if test -n "$MAGIC_CMD"; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15313 $as_echo "$MAGIC_CMD" >&6; }
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15316 $as_echo "no
" >&6; }
15329 # Use C for the default configuration in the libtool script
15333 ac_cpp='$CPP $CPPFLAGS'
15334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15339 # Source file extension for C test sources.
15342 # Object file extension for compiled C test sources.
15346 # Code to be used in simple compile tests
15347 lt_simple_compile_test_code="int some_variable
= 0;"
15349 # Code to be used in simple link tests
15350 lt_simple_link_test_code='int main(){return(0);}'
15358 # If no C compiler was specified, use CC.
15361 # If no C compiler flags were specified, use CFLAGS.
15362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15364 # Allow CC to be a program name with arguments.
15367 # Save the default compiler, since it gets overwritten when the other
15368 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15369 compiler_DEFAULT=$CC
15371 # save warnings/boilerplate of simple test code
15372 ac_outfile=conftest.$ac_objext
15373 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15374 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15375 _lt_compiler_boilerplate=`cat conftest.err`
15378 ac_outfile=conftest.$ac_objext
15379 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15380 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15381 _lt_linker_boilerplate=`cat conftest.err`
15386 ## There is no encapsulation within the following macros, do not change
15387 ## the running order or otherwise move them around unless you know exactly
15388 ## what you are doing...
15389 if test -n "$compiler"; then
15391 lt_prog_compiler_no_builtin_flag=
15393 if test "$GCC" = yes; then
15394 case $cc_basename in
15396 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15398 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15402 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15403 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15404 $as_echo_n "(cached
) " >&6
15406 lt_cv_prog_compiler_rtti_exceptions=no
15407 ac_outfile=conftest.$ac_objext
15408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15409 lt_compiler_flag="-fno-rtti -fno-exceptions"
15410 # Insert the option either (1) after the last *FLAGS variable, or
15411 # (2) before a word containing "conftest.
", or (3) at the end.
15412 # Note that $ac_compile itself does not contain backslashes and begins
15413 # with a dollar sign (not a hyphen), so the echo should work correctly.
15414 # The option is referenced via a variable to avoid confusing sed.
15415 lt_compile=`echo "$ac_compile" | $SED \
15416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15418 -e 's:$: $lt_compiler_flag:'`
15419 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15420 (eval "$lt_compile" 2>conftest.err)
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15424 if (exit $ac_status) && test -s "$ac_outfile"; then
15425 # The compiler can only warn and ignore the option if not recognized
15426 # So say no if there are warnings other than the usual output.
15427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15430 lt_cv_prog_compiler_rtti_exceptions=yes
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15437 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15439 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15440 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15452 lt_prog_compiler_wl=
15453 lt_prog_compiler_pic=
15454 lt_prog_compiler_static=
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15457 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15459 if test "$GCC" = yes; then
15460 lt_prog_compiler_wl='-Wl,'
15461 lt_prog_compiler_static='-static'
15465 # All AIX code is PIC.
15466 if test "$host_cpu" = ia64; then
15467 # AIX 5 now supports IA64 processor
15468 lt_prog_compiler_static='-Bstatic'
15470 lt_prog_compiler_pic='-fPIC'
15476 # see comment about AmigaOS4 .so support
15477 lt_prog_compiler_pic='-fPIC'
15480 # FIXME: we need at least 68020 code to build shared libraries, but
15481 # adding the `-m68020' flag to GCC prevents building anything better,
15483 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15488 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15489 # PIC is the default for these OSes.
15492 mingw* | cygwin* | pw32* | os2* | cegcc*)
15493 # This hack is so that the source file can tell whether it is being
15494 # built for inclusion in a dll (and should export symbols for example).
15495 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15496 # (--disable-auto-import) libraries
15497 lt_prog_compiler_pic='-DDLL_EXPORT'
15500 darwin* | rhapsody*)
15501 # PIC is the default on this platform
15502 # Common symbols not allowed in MH_DYLIB files
15503 lt_prog_compiler_pic='-fno-common'
15507 # PIC is the default for Haiku.
15508 # The "-static" flag exists, but is broken.
15509 lt_prog_compiler_static=
15513 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15514 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15515 # sets the default TLS model and affects inlining.
15521 lt_prog_compiler_pic='-fPIC'
15527 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15528 # Instead, we relocate shared libraries at runtime.
15532 # Just because we use GCC doesn't mean we suddenly get shared libraries
15533 # on systems that don't support them.
15534 lt_prog_compiler_can_build_shared=no
15539 # QNX uses GNU C++, but need to define -shared option too, otherwise
15540 # it will coredump.
15541 lt_prog_compiler_pic='-fPIC -shared'
15545 if test -d /usr/nec; then
15546 lt_prog_compiler_pic=-Kconform_pic
15551 lt_prog_compiler_pic='-fPIC'
15555 case $cc_basename in
15556 nvcc*) # Cuda Compiler Driver 2.2
15557 lt_prog_compiler_wl='-Xlinker '
15558 lt_prog_compiler_pic='-Xcompiler -fPIC'
15562 # PORTME Check for flag to pass linker flags through the system compiler.
15565 lt_prog_compiler_wl='-Wl,'
15566 if test "$host_cpu" = ia64; then
15567 # AIX 5 now supports IA64 processor
15568 lt_prog_compiler_static='-Bstatic'
15570 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15574 mingw* | cygwin* | pw32* | os2* | cegcc*)
15575 # This hack is so that the source file can tell whether it is being
15576 # built for inclusion in a dll (and should export symbols for example).
15577 lt_prog_compiler_pic='-DDLL_EXPORT'
15580 hpux9* | hpux10* | hpux11*)
15581 lt_prog_compiler_wl='-Wl,'
15582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15583 # not for PA HP-UX.
15589 lt_prog_compiler_pic='+Z'
15592 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15593 lt_prog_compiler_static='${wl}-a ${wl}archive'
15596 irix5* | irix6* | nonstopux*)
15597 lt_prog_compiler_wl='-Wl,'
15598 # PIC (with -KPIC) is the default.
15599 lt_prog_compiler_static='-non_shared'
15602 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15603 case $cc_basename in
15604 # old Intel for x86_64 which still supported -KPIC.
15606 lt_prog_compiler_wl='-Wl,'
15607 lt_prog_compiler_pic='-KPIC'
15608 lt_prog_compiler_static='-static'
15610 # icc used to be incompatible with GCC.
15611 # ICC 10 doesn't accept -KPIC any more.
15613 lt_prog_compiler_wl='-Wl,'
15614 lt_prog_compiler_pic='-fPIC'
15615 lt_prog_compiler_static='-static'
15617 # Lahey Fortran 8.1.
15619 lt_prog_compiler_wl='-Wl,'
15620 lt_prog_compiler_pic='--shared'
15621 lt_prog_compiler_static='--static'
15623 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15624 # Portland Group compilers (*not* the Pentium gcc compiler,
15625 # which looks to be a dead project)
15626 lt_prog_compiler_wl='-Wl,'
15627 lt_prog_compiler_pic='-fpic'
15628 lt_prog_compiler_static='-Bstatic'
15631 lt_prog_compiler_wl='-Wl,'
15632 # All Alpha code is PIC.
15633 lt_prog_compiler_static='-non_shared'
15635 xl* | bgxl* | bgf* | mpixl*)
15636 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15637 lt_prog_compiler_wl='-Wl,'
15638 lt_prog_compiler_pic='-qpic'
15639 lt_prog_compiler_static='-qstaticlink'
15642 case `$CC -V 2>&1 | sed 5q` in
15643 *Sun\ F* | *Sun*Fortran*)
15644 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15645 lt_prog_compiler_pic='-KPIC'
15646 lt_prog_compiler_static='-Bstatic'
15647 lt_prog_compiler_wl=''
15651 lt_prog_compiler_pic='-KPIC'
15652 lt_prog_compiler_static='-Bstatic'
15653 lt_prog_compiler_wl='-Wl,'
15661 lt_prog_compiler_pic='-KPIC'
15662 lt_prog_compiler_static='-Bstatic'
15666 # QNX uses GNU C++, but need to define -shared option too, otherwise
15667 # it will coredump.
15668 lt_prog_compiler_pic='-fPIC -shared'
15671 osf3* | osf4* | osf5*)
15672 lt_prog_compiler_wl='-Wl,'
15673 # All OSF/1 code is PIC.
15674 lt_prog_compiler_static='-non_shared'
15678 lt_prog_compiler_static='-non_shared'
15682 lt_prog_compiler_pic='-KPIC'
15683 lt_prog_compiler_static='-Bstatic'
15684 case $cc_basename in
15685 f77* | f90* | f95*)
15686 lt_prog_compiler_wl='-Qoption ld ';;
15688 lt_prog_compiler_wl='-Wl,';;
15693 lt_prog_compiler_wl='-Qoption ld '
15694 lt_prog_compiler_pic='-PIC'
15695 lt_prog_compiler_static='-Bstatic'
15698 sysv4 | sysv4.2uw2* | sysv4.3*)
15699 lt_prog_compiler_wl='-Wl,'
15700 lt_prog_compiler_pic='-KPIC'
15701 lt_prog_compiler_static='-Bstatic'
15705 if test -d /usr/nec ;then
15706 lt_prog_compiler_pic='-Kconform_pic'
15707 lt_prog_compiler_static='-Bstatic'
15711 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15712 lt_prog_compiler_wl='-Wl,'
15713 lt_prog_compiler_pic='-KPIC'
15714 lt_prog_compiler_static='-Bstatic'
15718 lt_prog_compiler_wl='-Wl,'
15719 lt_prog_compiler_can_build_shared=no
15723 lt_prog_compiler_pic='-pic'
15724 lt_prog_compiler_static='-Bstatic'
15728 lt_prog_compiler_can_build_shared=no
15734 # For platforms which do not support PIC, -DPIC is meaningless:
15736 lt_prog_compiler_pic=
15739 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15743 $as_echo "$lt_prog_compiler_pic" >&6; }
15751 # Check to make sure the PIC flag actually works.
15753 if test -n "$lt_prog_compiler_pic"; then
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15755 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15756 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15757 $as_echo_n "(cached
) " >&6
15759 lt_cv_prog_compiler_pic_works=no
15760 ac_outfile=conftest.$ac_objext
15761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15762 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15763 # Insert the option either (1) after the last *FLAGS variable, or
15764 # (2) before a word containing "conftest.
", or (3) at the end.
15765 # Note that $ac_compile itself does not contain backslashes and begins
15766 # with a dollar sign (not a hyphen), so the echo should work correctly.
15767 # The option is referenced via a variable to avoid confusing sed.
15768 lt_compile=`echo "$ac_compile" | $SED \
15769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15771 -e 's:$: $lt_compiler_flag:'`
15772 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15773 (eval "$lt_compile" 2>conftest.err)
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15777 if (exit $ac_status) && test -s "$ac_outfile"; then
15778 # The compiler can only warn and ignore the option if not recognized
15779 # So say no if there are warnings other than the usual output.
15780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15783 lt_cv_prog_compiler_pic_works=yes
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15790 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15792 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15793 case $lt_prog_compiler_pic in
15795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15798 lt_prog_compiler_pic=
15799 lt_prog_compiler_can_build_shared=no
15810 # Check to make sure the static flag actually works.
15812 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15814 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15815 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15816 $as_echo_n "(cached
) " >&6
15818 lt_cv_prog_compiler_static_works=no
15819 save_LDFLAGS="$LDFLAGS"
15820 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15823 # The linker can only warn and ignore the option if not recognized
15824 # So say no if there are warnings
15825 if test -s conftest.err; then
15826 # Append any errors to the config.log.
15827 cat conftest.err 1>&5
15828 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15830 if diff conftest.exp conftest.er2 >/dev/null; then
15831 lt_cv_prog_compiler_static_works=yes
15834 lt_cv_prog_compiler_static_works=yes
15838 LDFLAGS="$save_LDFLAGS"
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15842 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15844 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15847 lt_prog_compiler_static=
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15857 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15858 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15859 $as_echo_n "(cached
) " >&6
15861 lt_cv_prog_compiler_c_o=no
15862 $RM -r conftest 2>/dev/null
15866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15868 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15869 # Insert the option either (1) after the last *FLAGS variable, or
15870 # (2) before a word containing "conftest.
", or (3) at the end.
15871 # Note that $ac_compile itself does not contain backslashes and begins
15872 # with a dollar sign (not a hyphen), so the echo should work correctly.
15873 lt_compile=`echo "$ac_compile" | $SED \
15874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15876 -e 's:$: $lt_compiler_flag:'`
15877 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15878 (eval "$lt_compile" 2>out/conftest.err)
15880 cat out/conftest.err >&5
15881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15882 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15884 # The compiler can only warn and ignore the option if not recognized
15885 # So say no if there are warnings
15886 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15887 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15888 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15889 lt_cv_prog_compiler_c_o=yes
15894 # SGI C++ compiler will create directory out/ii_files/ for
15895 # template instantiation
15896 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15897 $RM out/* && rmdir out
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15904 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15912 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15913 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15914 $as_echo_n "(cached
) " >&6
15916 lt_cv_prog_compiler_c_o=no
15917 $RM -r conftest 2>/dev/null
15921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15923 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15924 # Insert the option either (1) after the last *FLAGS variable, or
15925 # (2) before a word containing "conftest.
", or (3) at the end.
15926 # Note that $ac_compile itself does not contain backslashes and begins
15927 # with a dollar sign (not a hyphen), so the echo should work correctly.
15928 lt_compile=`echo "$ac_compile" | $SED \
15929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15931 -e 's:$: $lt_compiler_flag:'`
15932 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15933 (eval "$lt_compile" 2>out/conftest.err)
15935 cat out/conftest.err >&5
15936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15939 # The compiler can only warn and ignore the option if not recognized
15940 # So say no if there are warnings
15941 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15944 lt_cv_prog_compiler_c_o=yes
15949 # SGI C++ compiler will create directory out/ii_files/ for
15950 # template instantiation
15951 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15952 $RM out/* && rmdir out
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15959 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15964 hard_links="nottested
"
15965 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15966 # do not overwrite the value of need_locks provided by the user
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15968 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15971 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15973 ln conftest.a conftest.b 2>&5 || hard_links=no
15974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15976 $as_echo "$hard_links" >&6; }
15977 if test "$hard_links" = no; then
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15979 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15992 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15995 allow_undefined_flag=
15996 always_export_symbols=no
15998 archive_expsym_cmds=
15999 compiler_needs_object=no
16000 enable_shared_with_static_runtimes=no
16001 export_dynamic_flag_spec=
16002 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16003 hardcode_automatic=no
16005 hardcode_direct_absolute=no
16006 hardcode_libdir_flag_spec=
16007 hardcode_libdir_flag_spec_ld=
16008 hardcode_libdir_separator=
16009 hardcode_minus_L=no
16010 hardcode_shlibpath_var=unsupported
16012 link_all_deplibs=unknown
16014 module_expsym_cmds=
16015 old_archive_from_new_cmds=
16016 old_archive_from_expsyms_cmds=
16017 thread_safe_flag_spec=
16018 whole_archive_flag_spec=
16019 # include_expsyms should be a list of space-separated symbols to be *always*
16020 # included in the symbol list
16022 # exclude_expsyms can be an extended regexp of symbols to exclude
16023 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16024 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16025 # as well as any symbol that contains `d'.
16026 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16027 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16028 # platforms (ab)use it in PIC code, but their linkers get confused if
16029 # the symbol is explicitly referenced. Since portable code cannot
16030 # rely on this symbol name, it's probably fine to never include it in
16031 # preloaded symbol tables.
16032 # Exclude shared library initialization/finalization symbols.
16033 extract_expsyms_cmds=
16036 cygwin* | mingw* | pw32* | cegcc*)
16037 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16038 # When not using gcc, we currently assume that we are using
16039 # Microsoft Visual C++.
16040 if test "$GCC" != yes; then
16045 # we just hope/assume this is gcc and not c89 (= MSVC++)
16055 # On some targets, GNU ld is compatible enough with the native linker
16056 # that we're better off using the native interface for both.
16057 lt_use_gnu_ld_interface=no
16058 if test "$with_gnu_ld" = yes; then
16061 # The AIX port of GNU ld has always aspired to compatibility
16062 # with the native linker. However, as the warning in the GNU ld
16063 # block says, versions before 2.19.5* couldn't really create working
16064 # shared libraries, regardless of the interface used.
16065 case `$LD -v 2>&1` in
16066 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16067 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16068 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16070 lt_use_gnu_ld_interface=yes
16075 lt_use_gnu_ld_interface=yes
16080 if test "$lt_use_gnu_ld_interface" = yes; then
16081 # If archive_cmds runs LD, not CC, wlarc should be empty
16084 # Set some defaults for GNU ld with shared library support. These
16085 # are reset later if shared libraries are not supported. Putting them
16086 # here allows them to be overridden if necessary.
16087 runpath_var=LD_RUN_PATH
16088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16089 export_dynamic_flag_spec='${wl}--export-dynamic'
16090 # ancient GNU ld didn't support --whole-archive et. al.
16091 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16092 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16094 whole_archive_flag_spec=
16096 supports_anon_versioning=no
16097 case `$LD -v 2>&1` in
16098 *GNU\ gold*) supports_anon_versioning=yes ;;
16099 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16100 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16101 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16102 *\ 2.11.*) ;; # other 2.11 versions
16103 *) supports_anon_versioning=yes ;;
16106 # See if GNU ld supports shared libraries.
16109 # On AIX/PPC, the GNU linker is very broken
16110 if test "$host_cpu" != ia64; then
16114 *** Warning: the GNU linker, at least up to release 2.19, is reported
16115 *** to be unable to reliably create shared libraries on AIX.
16116 *** Therefore, libtool is disabling shared libraries support. If you
16117 *** really care for shared libraries, you may want to install binutils
16118 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16119 *** You will then need to restart the configuration process.
16128 # see comment about AmigaOS4 .so support
16129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16130 archive_expsym_cmds=''
16133 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)'
16134 hardcode_libdir_flag_spec
='-L$libdir'
16135 hardcode_minus_L
=yes
16141 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16142 allow_undefined_flag
=unsupported
16143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16144 # support --undefined. This deserves some investigation. FIXME
16145 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16151 cygwin
* | mingw
* | pw32
* | cegcc
*)
16152 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16153 # as there is no search path for DLLs.
16154 hardcode_libdir_flag_spec
='-L$libdir'
16155 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16156 allow_undefined_flag
=unsupported
16157 always_export_symbols
=no
16158 enable_shared_with_static_runtimes
=yes
16159 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16161 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16162 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16163 # If the export-symbols file already is a .def file (1st line
16164 # is EXPORTS), use it as is; otherwise, prepend...
16165 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16166 cp $export_symbols $output_objdir/$soname.def;
16168 echo EXPORTS > $output_objdir/$soname.def;
16169 cat $export_symbols >> $output_objdir/$soname.def;
16171 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16178 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16179 link_all_deplibs
=yes
16184 hardcode_shlibpath_var
=no
16185 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16186 export_dynamic_flag_spec
='${wl}-E'
16187 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16188 # Instead, shared libraries are loaded at an image base (0x10000000 by
16189 # default) and relocated if they conflict, which is a slow very memory
16190 # consuming and fragmenting process. To avoid this, we pick a random,
16191 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16192 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16193 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16194 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'
16197 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16199 if test "$host_os" = linux-dietlibc
; then
16200 case $cc_basename in
16201 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16204 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16205 && test "$tmp_diet" = no
16207 tmp_addflag
=' $pic_flag'
16208 tmp_sharedflag
='-shared'
16209 case $cc_basename,$host_cpu in
16210 pgcc
*) # Portland Group C compiler
16211 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'
16212 tmp_addflag
=' $pic_flag'
16214 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16215 # Portland Group f77 and f90 compilers
16216 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'
16217 tmp_addflag
=' $pic_flag -Mnomain' ;;
16218 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16219 tmp_addflag
=' -i_dynamic' ;;
16220 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16221 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16222 ifc
* | ifort
*) # Intel Fortran compiler
16223 tmp_addflag
=' -nofor_main' ;;
16224 lf95
*) # Lahey Fortran 8.1
16225 whole_archive_flag_spec
=
16226 tmp_sharedflag
='--shared' ;;
16227 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16228 tmp_sharedflag
='-qmkshrobj'
16230 nvcc
*) # Cuda Compiler Driver 2.2
16231 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'
16232 compiler_needs_object
=yes
16235 case `$CC -V 2>&1 | sed 5q` in
16236 *Sun\ C
*) # Sun C 5.9
16237 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'
16238 compiler_needs_object
=yes
16239 tmp_sharedflag
='-G' ;;
16240 *Sun\ F
*) # Sun Fortran 8.3
16241 tmp_sharedflag
='-G' ;;
16243 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16245 if test "x$supports_anon_versioning" = xyes
; then
16246 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16248 echo "local: *; };" >> $output_objdir/$libname.ver~
16249 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16252 case $cc_basename in
16253 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16254 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16255 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16256 hardcode_libdir_flag_spec
=
16257 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16258 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16259 if test "x$supports_anon_versioning" = xyes
; then
16260 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16261 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16262 echo "local: *; };" >> $output_objdir/$libname.ver~
16263 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16273 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16274 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16277 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16278 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16283 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16287 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16288 *** create shared libraries on Solaris systems. Therefore, libtool
16289 *** is disabling shared libraries support. We urge you to upgrade GNU
16290 *** binutils to release 2.9.1 or newer. Another option is to modify
16291 *** your PATH or compiler configuration so that the native linker is
16292 *** used, and then restart.
16295 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16296 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16297 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16303 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16304 case `$LD -v 2>&1` in
16305 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16309 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16310 *** reliably create shared libraries on SCO systems. Therefore, libtool
16311 *** is disabling shared libraries support. We urge you to upgrade GNU
16312 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16313 *** your PATH or compiler configuration so that the native linker is
16314 *** used, and then restart.
16319 # For security reasons, it is highly recommended that you always
16320 # use absolute paths for naming shared libraries, and exclude the
16321 # DT_RUNPATH tag from executables and libraries. But doing so
16322 # requires that you compile everything twice, which is a pain.
16323 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16324 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16325 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16326 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16335 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16337 hardcode_direct
=yes
16338 hardcode_shlibpath_var
=no
16342 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16343 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16344 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16351 if test "$ld_shlibs" = no
; then
16353 hardcode_libdir_flag_spec
=
16354 export_dynamic_flag_spec
=
16355 whole_archive_flag_spec
=
16358 # PORTME fill in a description of your system's linker (not GNU ld)
16361 allow_undefined_flag
=unsupported
16362 always_export_symbols
=yes
16363 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'
16364 # Note: this linker hardcodes the directories in LIBPATH if there
16365 # are no directories specified by -L.
16366 hardcode_minus_L
=yes
16367 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16368 # Neither direct hardcoding nor static linking is supported with a
16370 hardcode_direct
=unsupported
16375 if test "$host_cpu" = ia64
; then
16376 # On IA64, the linker does run time linking by default, so we don't
16377 # have to do anything special.
16378 aix_use_runtimelinking
=no
16379 exp_sym_flag
='-Bexport'
16382 # If we're using GNU nm, then we don't want the "-C" option.
16383 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16384 # Also, AIX nm treats weak defined symbols like other global
16385 # defined symbols, whereas GNU nm marks them as "W".
16386 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16387 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'
16389 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16391 aix_use_runtimelinking
=no
16393 # Test if we are trying to use run time linking or normal
16394 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16395 # need to do runtime linking.
16396 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16397 for ld_flag
in $LDFLAGS; do
16398 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16399 aix_use_runtimelinking
=yes
16406 exp_sym_flag
='-bexport'
16407 no_entry_flag
='-bnoentry'
16410 # When large executables or shared objects are built, AIX ld can
16411 # have problems creating the table of contents. If linking a library
16412 # or program results in "error TOC overflow" add -mminimal-toc to
16413 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16414 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16417 hardcode_direct
=yes
16418 hardcode_direct_absolute
=yes
16419 hardcode_libdir_separator
=':'
16420 link_all_deplibs
=yes
16421 file_list_spec
='${wl}-f,'
16423 if test "$GCC" = yes; then
16424 case $host_os in aix4.
[012]|aix4.
[012].
*)
16425 # We only want to do this on AIX 4.2 and lower, the check
16426 # below for broken collect2 doesn't work under 4.3+
16427 collect2name
=`${CC} -print-prog-name=collect2`
16428 if test -f "$collect2name" &&
16429 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16431 # We have reworked collect2
16434 # We have old collect2
16435 hardcode_direct
=unsupported
16436 # It fails to find uninstalled libraries when the uninstalled
16437 # path is not listed in the libpath. Setting hardcode_minus_L
16438 # to unsupported forces relinking
16439 hardcode_minus_L
=yes
16440 hardcode_libdir_flag_spec
='-L$libdir'
16441 hardcode_libdir_separator
=
16445 shared_flag
='-shared'
16446 if test "$aix_use_runtimelinking" = yes; then
16447 shared_flag
="$shared_flag "'${wl}-G'
16451 if test "$host_cpu" = ia64
; then
16452 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16453 # chokes on -Wl,-G. The following line is correct:
16456 if test "$aix_use_runtimelinking" = yes; then
16457 shared_flag
='${wl}-G'
16459 shared_flag
='${wl}-bM:SRE'
16464 export_dynamic_flag_spec
='${wl}-bexpall'
16465 # It seems that -bexpall does not export symbols beginning with
16466 # underscore (_), so it is better to generate a list of symbols to export.
16467 always_export_symbols
=yes
16468 if test "$aix_use_runtimelinking" = yes; then
16469 # Warning - without using the other runtime loading flags (-brtl),
16470 # -berok will link without error, but may produce a broken library.
16471 allow_undefined_flag
='-berok'
16472 # Determine the default libpath from the value encoded in an
16473 # empty executable.
16474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h. */
16485 if ac_fn_c_try_link
"$LINENO"; then :
16487 lt_aix_libpath_sed
='
16488 /Import File Strings/,/^$/ {
16494 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16495 # Check for a 64-bit object if we didn't find anything.
16496 if test -z "$aix_libpath"; then
16497 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16500 rm -f core conftest.err conftest.
$ac_objext \
16501 conftest
$ac_exeext conftest.
$ac_ext
16502 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16504 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16505 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"
16507 if test "$host_cpu" = ia64
; then
16508 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16509 allow_undefined_flag
="-z nodefs"
16510 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"
16512 # Determine the default libpath from the value encoded in an
16513 # empty executable.
16514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16525 if ac_fn_c_try_link
"$LINENO"; then :
16527 lt_aix_libpath_sed
='
16528 /Import File Strings/,/^$/ {
16534 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16535 # Check for a 64-bit object if we didn't find anything.
16536 if test -z "$aix_libpath"; then
16537 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16540 rm -f core conftest.err conftest.
$ac_objext \
16541 conftest
$ac_exeext conftest.
$ac_ext
16542 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16544 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16545 # Warning - without using the other run time loading flags,
16546 # -berok will link without error, but may produce a broken library.
16547 no_undefined_flag
=' ${wl}-bernotok'
16548 allow_undefined_flag
=' ${wl}-berok'
16549 if test "$with_gnu_ld" = yes; then
16550 # We only use this code for GNU lds that support --whole-archive.
16551 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16553 # Exported symbols can be pulled into shared objects from archives
16554 whole_archive_flag_spec
='$convenience'
16556 archive_cmds_need_lc
=yes
16557 # This is similar to how AIX traditionally builds its shared libraries.
16558 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'
16566 # see comment about AmigaOS4 .so support
16567 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16568 archive_expsym_cmds
=''
16571 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)'
16572 hardcode_libdir_flag_spec
='-L$libdir'
16573 hardcode_minus_L
=yes
16579 export_dynamic_flag_spec
=-rdynamic
16582 cygwin
* | mingw
* | pw32
* | cegcc
*)
16583 # When not using gcc, we currently assume that we are using
16584 # Microsoft Visual C++.
16585 # hardcode_libdir_flag_spec is actually meaningless, as there is
16586 # no search path for DLLs.
16587 hardcode_libdir_flag_spec
=' '
16588 allow_undefined_flag
=unsupported
16589 # Tell ltmain to make .lib files, not .a files.
16591 # Tell ltmain to make .dll files, not .so files.
16593 # FIXME: Setting linknames here is a bad hack.
16594 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16595 # The linker will automatically build a .lib file if we build a DLL.
16596 old_archive_from_new_cmds
='true'
16597 # FIXME: Should let the user specify the lib program.
16598 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16599 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16600 enable_shared_with_static_runtimes
=yes
16603 darwin
* | rhapsody
*)
16606 archive_cmds_need_lc
=no
16608 hardcode_automatic
=yes
16609 hardcode_shlibpath_var
=unsupported
16610 if test "$lt_cv_ld_force_load" = "yes"; then
16611 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\"`'
16613 whole_archive_flag_spec
=''
16615 link_all_deplibs
=yes
16616 allow_undefined_flag
="$_lt_dar_allow_undefined"
16617 case $cc_basename in
16618 ifort
*) _lt_dar_can_shared
=yes ;;
16619 *) _lt_dar_can_shared
=$GCC ;;
16621 if test "$_lt_dar_can_shared" = "yes"; then
16622 output_verbose_link_cmd
=func_echo_all
16623 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16624 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16625 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}"
16626 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}"
16635 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636 hardcode_libdir_flag_spec
='-L$libdir'
16637 hardcode_shlibpath_var
=no
16640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16641 # support. Future versions do this automatically, but an explicit c++rt0.o
16642 # does not break anything, and helps significantly (at the cost of a little
16645 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16646 hardcode_libdir_flag_spec
='-R$libdir'
16647 hardcode_direct
=yes
16648 hardcode_shlibpath_var
=no
16651 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16653 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_direct
=yes
16655 hardcode_minus_L
=yes
16656 hardcode_shlibpath_var
=no
16659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16660 freebsd
* | dragonfly
*)
16661 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16662 hardcode_libdir_flag_spec
='-R$libdir'
16663 hardcode_direct
=yes
16664 hardcode_shlibpath_var
=no
16668 if test "$GCC" = yes; then
16669 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'
16671 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'
16673 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16674 hardcode_libdir_separator
=:
16675 hardcode_direct
=yes
16677 # hardcode_minus_L: Not really in the search PATH,
16678 # but as the default location of the library.
16679 hardcode_minus_L
=yes
16680 export_dynamic_flag_spec
='${wl}-E'
16684 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16685 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16687 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16689 if test "$with_gnu_ld" = no
; then
16690 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16691 hardcode_libdir_flag_spec_ld
='+b $libdir'
16692 hardcode_libdir_separator
=:
16693 hardcode_direct
=yes
16694 hardcode_direct_absolute
=yes
16695 export_dynamic_flag_spec
='${wl}-E'
16696 # hardcode_minus_L: Not really in the search PATH,
16697 # but as the default location of the library.
16698 hardcode_minus_L
=yes
16703 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16706 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16709 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16712 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16718 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16725 # Older versions of the 11.00 compiler do not understand -b yet
16726 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16728 $as_echo_n "checking if $CC understands -b... " >&6; }
16729 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16730 $as_echo_n "(cached) " >&6
16732 lt_cv_prog_compiler__b
=no
16733 save_LDFLAGS
="$LDFLAGS"
16734 LDFLAGS
="$LDFLAGS -b"
16735 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16736 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16737 # The linker can only warn and ignore the option if not recognized
16738 # So say no if there are warnings
16739 if test -s conftest.err
; then
16740 # Append any errors to the config.log.
16741 cat conftest.err
1>&5
16742 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16743 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16744 if diff conftest.exp conftest.er2
>/dev
/null
; then
16745 lt_cv_prog_compiler__b
=yes
16748 lt_cv_prog_compiler__b
=yes
16752 LDFLAGS
="$save_LDFLAGS"
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16756 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16758 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16759 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16761 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16767 if test "$with_gnu_ld" = no
; then
16768 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16769 hardcode_libdir_separator
=:
16774 hardcode_shlibpath_var
=no
16777 hardcode_direct
=yes
16778 hardcode_direct_absolute
=yes
16779 export_dynamic_flag_spec
='${wl}-E'
16781 # hardcode_minus_L: Not really in the search PATH,
16782 # but as the default location of the library.
16783 hardcode_minus_L
=yes
16789 irix5
* | irix6
* | nonstopux
*)
16790 if test "$GCC" = yes; then
16791 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'
16792 # Try to use the -exported_symbol ld option, if it does not
16793 # work, assume that -exports_file does not work either and
16794 # implicitly export all symbols.
16795 save_LDFLAGS
="$LDFLAGS"
16796 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16798 /* end confdefs.h. */
16801 if ac_fn_c_try_link
"$LINENO"; then :
16802 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'
16805 rm -f core conftest.err conftest.
$ac_objext \
16806 conftest
$ac_exeext conftest.
$ac_ext
16807 LDFLAGS
="$save_LDFLAGS"
16809 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'
16810 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'
16812 archive_cmds_need_lc
='no'
16813 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16814 hardcode_libdir_separator
=:
16816 link_all_deplibs
=yes
16820 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16821 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16823 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16825 hardcode_libdir_flag_spec
='-R$libdir'
16826 hardcode_direct
=yes
16827 hardcode_shlibpath_var
=no
16831 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832 hardcode_direct
=yes
16833 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16834 hardcode_libdir_separator
=:
16835 hardcode_shlibpath_var
=no
16842 if test -f /usr
/libexec
/ld.so
; then
16843 hardcode_direct
=yes
16844 hardcode_shlibpath_var
=no
16845 hardcode_direct_absolute
=yes
16846 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16847 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16848 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16849 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16850 export_dynamic_flag_spec
='${wl}-E'
16853 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16854 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16855 hardcode_libdir_flag_spec
='-R$libdir'
16858 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16859 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16869 hardcode_libdir_flag_spec
='-L$libdir'
16870 hardcode_minus_L
=yes
16871 allow_undefined_flag
=unsupported
16872 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'
16873 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16877 if test "$GCC" = yes; then
16878 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16879 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'
16881 allow_undefined_flag
=' -expect_unresolved \*'
16882 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'
16884 archive_cmds_need_lc
='no'
16885 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16886 hardcode_libdir_separator
=:
16889 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16890 if test "$GCC" = yes; then
16891 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16892 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'
16893 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16895 allow_undefined_flag
=' -expect_unresolved \*'
16896 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'
16897 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~
16898 $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'
16900 # Both c and cxx compiler support -rpath directly
16901 hardcode_libdir_flag_spec
='-rpath $libdir'
16903 archive_cmds_need_lc
='no'
16904 hardcode_libdir_separator
=:
16908 no_undefined_flag
=' -z defs'
16909 if test "$GCC" = yes; then
16911 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16912 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16913 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16915 case `$CC -V 2>&1` in
16918 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16919 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16920 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16924 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16925 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16926 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16930 hardcode_libdir_flag_spec
='-R$libdir'
16931 hardcode_shlibpath_var
=no
16933 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16935 # The compiler driver will combine and reorder linker options,
16936 # but understands `-z linker_flag'. GCC discards it without `$wl',
16937 # but is careful enough not to reorder.
16938 # Supported since Solaris 2.6 (maybe 2.5.1?)
16939 if test "$GCC" = yes; then
16940 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16942 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16946 link_all_deplibs
=yes
16950 if test "x$host_vendor" = xsequent
; then
16951 # Use $CC to link under sequent, because it throws in some extra .o
16952 # files that make .init and .fini sections work.
16953 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16955 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16957 hardcode_libdir_flag_spec
='-L$libdir'
16958 hardcode_direct
=yes
16959 hardcode_minus_L
=yes
16960 hardcode_shlibpath_var
=no
16964 case $host_vendor in
16966 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16967 hardcode_direct
=yes # is this really true???
16970 ## LD is ld it makes a PLAMLIB
16971 ## CC just makes a GrossModule.
16972 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16973 reload_cmds
='$CC -r -o $output$reload_objs'
16977 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16978 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16981 runpath_var
='LD_RUN_PATH'
16982 hardcode_shlibpath_var
=no
16986 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16987 hardcode_shlibpath_var
=no
16988 export_dynamic_flag_spec
='-Bexport'
16992 if test -d /usr
/nec
; then
16993 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16994 hardcode_shlibpath_var
=no
16995 runpath_var
=LD_RUN_PATH
16996 hardcode_runpath_var
=yes
17001 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17002 no_undefined_flag
='${wl}-z,text'
17003 archive_cmds_need_lc
=no
17004 hardcode_shlibpath_var
=no
17005 runpath_var
='LD_RUN_PATH'
17007 if test "$GCC" = yes; then
17008 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17009 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17011 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17012 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17016 sysv5
* | sco3.2v5
* | sco5v6
*)
17017 # Note: We can NOT use -z defs as we might desire, because we do not
17018 # link with -lc, and that would cause any symbols used from libc to
17019 # always be unresolved, which means just about no library would
17020 # ever link correctly. If we're not using GNU ld we use -z text
17021 # though, which does catch some bad symbols but isn't as heavy-handed
17023 no_undefined_flag
='${wl}-z,text'
17024 allow_undefined_flag
='${wl}-z,nodefs'
17025 archive_cmds_need_lc
=no
17026 hardcode_shlibpath_var
=no
17027 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17028 hardcode_libdir_separator
=':'
17029 link_all_deplibs
=yes
17030 export_dynamic_flag_spec
='${wl}-Bexport'
17031 runpath_var
='LD_RUN_PATH'
17033 if test "$GCC" = yes; then
17034 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17035 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17037 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17038 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17044 hardcode_libdir_flag_spec
='-L$libdir'
17045 hardcode_shlibpath_var
=no
17053 if test x
$host_vendor = xsni
; then
17055 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17056 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17063 $as_echo "$ld_shlibs" >&6; }
17064 test "$ld_shlibs" = no
&& can_build_shared
=no
17066 with_gnu_ld
=$with_gnu_ld
17083 # Do we need to explicitly link libc?
17085 case "x$archive_cmds_need_lc" in
17087 # Assume -lc should be added
17088 archive_cmds_need_lc
=yes
17090 if test "$enable_shared" = yes && test "$GCC" = yes; then
17091 case $archive_cmds in
17093 # FIXME: we may have to deal with multi-command sequences.
17096 # Test whether the compiler implicitly links with -lc since on some
17097 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17098 # to ld, don't add -lc before -lgcc.
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17100 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17101 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17102 $as_echo_n "(cached) " >&6
17105 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17108 (eval $ac_compile) 2>&5
17110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17111 test $ac_status = 0; } 2>conftest.err
; then
17114 libobjs
=conftest.
$ac_objext
17116 wl
=$lt_prog_compiler_wl
17117 pic_flag
=$lt_prog_compiler_pic
17123 lt_save_allow_undefined_flag
=$allow_undefined_flag
17124 allow_undefined_flag
=
17125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17126 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17129 test $ac_status = 0; }
17131 lt_cv_archive_cmds_need_lc
=no
17133 lt_cv_archive_cmds_need_lc
=yes
17135 allow_undefined_flag
=$lt_save_allow_undefined_flag
17137 cat conftest.err
1>&5
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17143 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17144 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17308 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17310 if test "$GCC" = yes; then
17312 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17313 *) lt_awk_arg
="/^libraries:/" ;;
17316 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17317 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17319 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17320 case $lt_search_path_spec in
17322 # if the path contains ";" then we assume it to be the separator
17323 # otherwise default to the standard path separator (i.e. ":") - it is
17324 # assumed that no part of a normal pathname contains ";" but that should
17325 # okay in the real world where ";" in dirpaths is itself problematic.
17326 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17329 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17332 # Ok, now we have the path, separated by spaces, we can step through it
17333 # and add multilib dir if necessary.
17334 lt_tmp_lt_search_path_spec
=
17335 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17336 for lt_sys_path
in $lt_search_path_spec; do
17337 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17338 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17340 test -d "$lt_sys_path" && \
17341 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17344 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17345 BEGIN {RS=" "; FS="/|\n";} {
17348 for (lt_i = NF; lt_i > 0; lt_i--) {
17349 if ($lt_i != "" && $lt_i != ".") {
17350 if ($lt_i == "..") {
17353 if (lt_count == 0) {
17354 lt_foo="/" $lt_i lt_foo;
17361 if (lt_foo != "") { lt_freq[lt_foo]++; }
17362 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17364 # AWK program above erroneously prepends '/' to C:/dos/paths
17367 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17368 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17370 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17372 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17374 library_names_spec
=
17375 libname_spec
='lib$name'
17379 postuninstall_cmds
=
17383 shlibpath_overrides_runpath
=unknown
17385 dynamic_linker
="$host_os ld.so"
17386 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17387 need_lib_prefix
=unknown
17388 hardcode_into_libs
=no
17390 # when you set need_version to no, make sure it does not cause -set_version
17391 # flags to be left without arguments
17392 need_version
=unknown
17397 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17398 shlibpath_var
=LIBPATH
17400 # AIX 3 has no versioning support, so we append a major version to the name.
17401 soname_spec
='${libname}${release}${shared_ext}$major'
17408 hardcode_into_libs
=yes
17409 if test "$host_cpu" = ia64
; then
17410 # AIX 5 supports IA64
17411 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17412 shlibpath_var
=LD_LIBRARY_PATH
17414 # With GCC up to 2.95.x, collect2 would create an import file
17415 # for dependence libraries. The import file would start with
17416 # the line `#! .'. This would cause the generated library to
17417 # depend on `.', always an invalid library. This was fixed in
17418 # development snapshots of GCC prior to 3.0.
17420 aix4 | aix4.
[01] | aix4.
[01].
*)
17421 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17423 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17426 can_build_shared
=no
17430 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17431 # soname into executable. Probably we can add versioning support to
17432 # collect2, so additional links can be useful in future.
17433 if test "$aix_use_runtimelinking" = yes; then
17434 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17435 # instead of lib<name>.a to let people know that these are not
17436 # typical AIX shared libraries.
17437 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17439 # We preserve .a as extension for shared libraries through AIX4.2
17440 # and later when we are not doing run time linking.
17441 library_names_spec
='${libname}${release}.a $libname.a'
17442 soname_spec
='${libname}${release}${shared_ext}$major'
17444 shlibpath_var
=LIBPATH
17451 # Since July 2007 AmigaOS4 officially supports .so libraries.
17452 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17456 library_names_spec
='$libname.ixlibrary $libname.a'
17457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17458 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'
17464 library_names_spec
='${libname}${shared_ext}'
17465 dynamic_linker
="$host_os ld.so"
17466 shlibpath_var
=LIBRARY_PATH
17472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17473 soname_spec
='${libname}${release}${shared_ext}$major'
17474 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17475 shlibpath_var
=LD_LIBRARY_PATH
17476 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17477 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17478 # the default ld.so.conf also contains /usr/contrib/lib and
17479 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17480 # libtool to hard-code these into programs
17483 cygwin
* | mingw
* | pw32
* | cegcc
*)
17484 version_type
=windows
17489 case $GCC,$host_os in
17490 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17491 library_names_spec
='$libname.dll.a'
17492 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17493 postinstall_cmds
='base_file=`basename \${file}`~
17494 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17495 dldir=$destdir/`dirname \$dlpath`~
17496 test -d \$dldir || mkdir -p \$dldir~
17497 $install_prog $dir/$dlname \$dldir/$dlname~
17498 chmod a+x \$dldir/$dlname~
17499 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17500 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17502 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17503 dlpath=$dir/\$dldll~
17505 shlibpath_overrides_runpath
=yes
17509 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17510 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17512 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17515 # MinGW DLLs use traditional 'lib' prefix
17516 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17519 # pw32 DLLs use 'pw' prefix rather than 'lib'
17520 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17526 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17529 dynamic_linker
='Win32 ld.exe'
17530 # FIXME: first we should search . and the directory the executable is in
17534 darwin
* | rhapsody
*)
17535 dynamic_linker
="$host_os dyld"
17536 version_type
=darwin
17539 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17540 soname_spec
='${libname}${release}${major}$shared_ext'
17541 shlibpath_overrides_runpath
=yes
17542 shlibpath_var
=DYLD_LIBRARY_PATH
17543 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17545 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17546 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17553 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17554 soname_spec
='${libname}${release}${shared_ext}$major'
17555 shlibpath_var
=LD_LIBRARY_PATH
17558 freebsd
* | dragonfly
*)
17559 # DragonFly does not have aout. When/if they implement a new
17560 # versioning mechanism, adjust this.
17561 if test -x /usr
/bin
/objformat
; then
17562 objformat
=`/usr/bin/objformat`
17565 freebsd
[23].
*) objformat
=aout
;;
17566 *) objformat
=elf
;;
17569 version_type
=freebsd-
$objformat
17570 case $version_type in
17572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17577 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17581 shlibpath_var
=LD_LIBRARY_PATH
17584 shlibpath_overrides_runpath
=yes
17586 freebsd3.
[01]* | freebsdelf3.
[01]*)
17587 shlibpath_overrides_runpath
=yes
17588 hardcode_into_libs
=yes
17590 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17591 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17592 shlibpath_overrides_runpath
=no
17593 hardcode_into_libs
=yes
17595 *) # from 4.6 on, and DragonFly
17596 shlibpath_overrides_runpath
=yes
17597 hardcode_into_libs
=yes
17606 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17607 soname_spec
='${libname}${release}${shared_ext}$major'
17608 shlibpath_var
=LD_LIBRARY_PATH
17609 hardcode_into_libs
=yes
17616 dynamic_linker
="$host_os runtime_loader"
17617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17618 soname_spec
='${libname}${release}${shared_ext}$major'
17619 shlibpath_var
=LIBRARY_PATH
17620 shlibpath_overrides_runpath
=yes
17621 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17622 hardcode_into_libs
=yes
17625 hpux9
* | hpux10
* | hpux11
*)
17626 # Give a soname corresponding to the major version so that dld.sl refuses to
17627 # link against other versions.
17634 hardcode_into_libs
=yes
17635 dynamic_linker
="$host_os dld.so"
17636 shlibpath_var
=LD_LIBRARY_PATH
17637 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17639 soname_spec
='${libname}${release}${shared_ext}$major'
17640 if test "X$HPUX_IA64_MODE" = X32
; then
17641 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17643 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17645 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17649 hardcode_into_libs
=yes
17650 dynamic_linker
="$host_os dld.sl"
17651 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17652 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17654 soname_spec
='${libname}${release}${shared_ext}$major'
17655 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17656 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17660 dynamic_linker
="$host_os dld.sl"
17661 shlibpath_var
=SHLIB_PATH
17662 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17663 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664 soname_spec
='${libname}${release}${shared_ext}$major'
17667 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17668 postinstall_cmds
='chmod 555 $lib'
17669 # or fails outright, so override atomically:
17670 install_override_mode
=555
17677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17678 soname_spec
='${libname}${release}${shared_ext}$major'
17679 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17680 shlibpath_var
=LD_LIBRARY_PATH
17681 shlibpath_overrides_runpath
=no
17682 hardcode_into_libs
=yes
17685 irix5
* | irix6
* | nonstopux
*)
17687 nonstopux
*) version_type
=nonstopux
;;
17689 if test "$lt_cv_prog_gnu_ld" = yes; then
17697 soname_spec
='${libname}${release}${shared_ext}$major'
17698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17700 irix5
* | nonstopux
*)
17701 libsuff
= shlibsuff
=
17704 case $LD in # libtool.m4 will add one of these switches to LD
17705 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17706 libsuff
= shlibsuff
= libmagic
=32-bit;;
17707 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17708 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17709 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17710 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17711 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17715 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17716 shlibpath_overrides_runpath
=no
17717 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17718 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17719 hardcode_into_libs
=yes
17722 # No shared lib support for Linux oldld, aout, or coff.
17723 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17727 # This must be Linux ELF.
17728 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17733 soname_spec
='${libname}${release}${shared_ext}$major'
17734 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17735 shlibpath_var
=LD_LIBRARY_PATH
17736 shlibpath_overrides_runpath
=no
17738 # Some binutils ld are patched to set DT_RUNPATH
17739 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17740 $as_echo_n "(cached) " >&6
17742 lt_cv_shlibpath_overrides_runpath
=no
17743 save_LDFLAGS
=$LDFLAGS
17744 save_libdir
=$libdir
17745 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17746 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17748 /* end confdefs.h. */
17758 if ac_fn_c_try_link
"$LINENO"; then :
17759 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17760 lt_cv_shlibpath_overrides_runpath
=yes
17763 rm -f core conftest.err conftest.
$ac_objext \
17764 conftest
$ac_exeext conftest.
$ac_ext
17765 LDFLAGS
=$save_LDFLAGS
17766 libdir
=$save_libdir
17770 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17772 # This implies no fast_install, which is unacceptable.
17773 # Some rework will be needed to allow for fast_install
17774 # before this can be enabled.
17775 hardcode_into_libs
=yes
17777 # Append ld.so.conf contents to the search path
17778 if test -f /etc
/ld.so.conf
; then
17779 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' ' '`
17780 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17783 # We used to test for /lib/ld.so.1 and disable shared libraries on
17784 # powerpc, because MkLinux only supported shared libraries with the
17785 # GNU dynamic linker. Since this was broken with cross compilers,
17786 # most powerpc-linux boxes support dynamic linking these days and
17787 # people can always --disable-shared, the test was removed, and we
17788 # assume the GNU/Linux dynamic linker is in use.
17789 dynamic_linker
='GNU/Linux ld.so'
17796 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17798 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17799 dynamic_linker
='NetBSD (a.out) ld.so'
17801 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17802 soname_spec
='${libname}${release}${shared_ext}$major'
17803 dynamic_linker
='NetBSD ld.elf_so'
17805 shlibpath_var
=LD_LIBRARY_PATH
17806 shlibpath_overrides_runpath
=yes
17807 hardcode_into_libs
=yes
17812 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17813 shlibpath_var
=LD_LIBRARY_PATH
17814 shlibpath_overrides_runpath
=yes
17821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822 soname_spec
='${libname}${release}${shared_ext}$major'
17823 shlibpath_var
=LD_LIBRARY_PATH
17824 shlibpath_overrides_runpath
=no
17825 hardcode_into_libs
=yes
17826 dynamic_linker
='ldqnx.so'
17831 sys_lib_dlsearch_path_spec
="/usr/lib"
17833 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17835 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17836 *) need_version
=no
;;
17838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17839 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17840 shlibpath_var
=LD_LIBRARY_PATH
17841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17843 openbsd2.
[89] | openbsd2.
[89].
*)
17844 shlibpath_overrides_runpath
=no
17847 shlibpath_overrides_runpath
=yes
17851 shlibpath_overrides_runpath
=yes
17856 libname_spec
='$name'
17859 library_names_spec
='$libname${shared_ext} $libname.a'
17860 dynamic_linker
='OS/2 ld.exe'
17861 shlibpath_var
=LIBPATH
17864 osf3
* | osf4
* | osf5
*)
17868 soname_spec
='${libname}${release}${shared_ext}$major'
17869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870 shlibpath_var
=LD_LIBRARY_PATH
17871 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17872 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17884 soname_spec
='${libname}${release}${shared_ext}$major'
17885 shlibpath_var
=LD_LIBRARY_PATH
17886 shlibpath_overrides_runpath
=yes
17887 hardcode_into_libs
=yes
17888 # ldd complains unless libraries are executable
17889 postinstall_cmds
='chmod +x $lib'
17894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17895 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17896 shlibpath_var
=LD_LIBRARY_PATH
17897 shlibpath_overrides_runpath
=yes
17898 if test "$with_gnu_ld" = yes; then
17906 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907 soname_spec
='${libname}${release}${shared_ext}$major'
17908 shlibpath_var
=LD_LIBRARY_PATH
17909 case $host_vendor in
17911 shlibpath_overrides_runpath
=no
17913 runpath_var
=LD_RUN_PATH
17921 shlibpath_overrides_runpath
=no
17922 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17928 if test -d /usr
/nec
;then
17930 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17931 soname_spec
='$libname${shared_ext}.$major'
17932 shlibpath_var
=LD_LIBRARY_PATH
17936 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17937 version_type
=freebsd-elf
17940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17941 soname_spec
='${libname}${release}${shared_ext}$major'
17942 shlibpath_var
=LD_LIBRARY_PATH
17943 shlibpath_overrides_runpath
=yes
17944 hardcode_into_libs
=yes
17945 if test "$with_gnu_ld" = yes; then
17946 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17948 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17951 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17955 sys_lib_dlsearch_path_spec
='/usr/lib'
17959 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17964 shlibpath_var
=LD_LIBRARY_PATH
17965 shlibpath_overrides_runpath
=no
17966 hardcode_into_libs
=yes
17971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 soname_spec
='${libname}${release}${shared_ext}$major'
17973 shlibpath_var
=LD_LIBRARY_PATH
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17981 $as_echo "$dynamic_linker" >&6; }
17982 test "$dynamic_linker" = no
&& can_build_shared
=no
17984 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17985 if test "$GCC" = yes; then
17986 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17989 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17990 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17992 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17993 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18088 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18090 if test -n "$hardcode_libdir_flag_spec" ||
18091 test -n "$runpath_var" ||
18092 test "X$hardcode_automatic" = "Xyes" ; then
18094 # We can hardcode non-existent directories.
18095 if test "$hardcode_direct" != no
&&
18096 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18097 # have to relink, otherwise we might link with an installed library
18098 # when we should be linking with a yet-to-be-installed one
18099 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18100 test "$hardcode_minus_L" != no
; then
18101 # Linking always hardcodes the temporary library directory.
18102 hardcode_action
=relink
18104 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18105 hardcode_action
=immediate
18108 # We cannot hardcode anything, or else we can only hardcode existing
18110 hardcode_action
=unsupported
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18113 $as_echo "$hardcode_action" >&6; }
18115 if test "$hardcode_action" = relink ||
18116 test "$inherit_rpath" = yes; then
18117 # Fast installation is not supported
18118 enable_fast_install
=no
18119 elif test "$shlibpath_overrides_runpath" = yes ||
18120 test "$enable_shared" = no
; then
18121 # Fast installation is not necessary
18122 enable_fast_install
=needless
18130 if test "x$enable_dlopen" != xyes
; then
18131 enable_dlopen
=unknown
18132 enable_dlopen_self
=unknown
18133 enable_dlopen_self_static
=unknown
18140 lt_cv_dlopen
="load_add_on"
18142 lt_cv_dlopen_self
=yes
18145 mingw
* | pw32
* | cegcc
*)
18146 lt_cv_dlopen
="LoadLibrary"
18151 lt_cv_dlopen
="dlopen"
18156 # if libdl is installed we need to link against it
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18158 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18159 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18160 $as_echo_n "(cached) " >&6
18162 ac_check_lib_save_LIBS
=$LIBS
18164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h. */
18167 /* Override any GCC internal prototype to avoid an error.
18168 Use char because int might match the return type of a GCC
18169 builtin and then its argument prototype would still apply. */
18182 if ac_fn_c_try_link
"$LINENO"; then :
18183 ac_cv_lib_dl_dlopen
=yes
18185 ac_cv_lib_dl_dlopen
=no
18187 rm -f core conftest.err conftest.
$ac_objext \
18188 conftest
$ac_exeext conftest.
$ac_ext
18189 LIBS
=$ac_check_lib_save_LIBS
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18192 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18193 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18194 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18197 lt_cv_dlopen
="dyld"
18199 lt_cv_dlopen_self
=yes
18206 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18207 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18208 lt_cv_dlopen
="shl_load"
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18211 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18212 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18213 $as_echo_n "(cached) " >&6
18215 ac_check_lib_save_LIBS
=$LIBS
18217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18218 /* end confdefs.h. */
18220 /* Override any GCC internal prototype to avoid an error.
18221 Use char because int might match the return type of a GCC
18222 builtin and then its argument prototype would still apply. */
18230 return shl_load ();
18235 if ac_fn_c_try_link
"$LINENO"; then :
18236 ac_cv_lib_dld_shl_load
=yes
18238 ac_cv_lib_dld_shl_load
=no
18240 rm -f core conftest.err conftest.
$ac_objext \
18241 conftest
$ac_exeext conftest.
$ac_ext
18242 LIBS
=$ac_check_lib_save_LIBS
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18246 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18247 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18249 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18250 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18251 lt_cv_dlopen
="dlopen"
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18256 $as_echo_n "(cached) " >&6
18258 ac_check_lib_save_LIBS
=$LIBS
18260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h. */
18263 /* Override any GCC internal prototype to avoid an error.
18264 Use char because int might match the return type of a GCC
18265 builtin and then its argument prototype would still apply. */
18278 if ac_fn_c_try_link
"$LINENO"; then :
18279 ac_cv_lib_dl_dlopen
=yes
18281 ac_cv_lib_dl_dlopen
=no
18283 rm -f core conftest.err conftest.
$ac_objext \
18284 conftest
$ac_exeext conftest.
$ac_ext
18285 LIBS
=$ac_check_lib_save_LIBS
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18289 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18290 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18293 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18294 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18295 $as_echo_n "(cached) " >&6
18297 ac_check_lib_save_LIBS
=$LIBS
18298 LIBS
="-lsvld $LIBS"
18299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18302 /* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18317 if ac_fn_c_try_link
"$LINENO"; then :
18318 ac_cv_lib_svld_dlopen
=yes
18320 ac_cv_lib_svld_dlopen
=no
18322 rm -f core conftest.err conftest.
$ac_objext \
18323 conftest
$ac_exeext conftest.
$ac_ext
18324 LIBS
=$ac_check_lib_save_LIBS
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18327 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18328 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18329 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18332 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18333 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18334 $as_echo_n "(cached) " >&6
18336 ac_check_lib_save_LIBS
=$LIBS
18338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18341 /* Override any GCC internal prototype to avoid an error.
18342 Use char because int might match the return type of a GCC
18343 builtin and then its argument prototype would still apply. */
18351 return dld_link ();
18356 if ac_fn_c_try_link
"$LINENO"; then :
18357 ac_cv_lib_dld_dld_link
=yes
18359 ac_cv_lib_dld_dld_link
=no
18361 rm -f core conftest.err conftest.
$ac_objext \
18362 conftest
$ac_exeext conftest.
$ac_ext
18363 LIBS
=$ac_check_lib_save_LIBS
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18366 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18367 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18368 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18389 if test "x$lt_cv_dlopen" != xno
; then
18395 case $lt_cv_dlopen in
18397 save_CPPFLAGS
="$CPPFLAGS"
18398 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18400 save_LDFLAGS
="$LDFLAGS"
18401 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18404 LIBS
="$lt_cv_dlopen_libs $LIBS"
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18407 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18408 if test "${lt_cv_dlopen_self+set}" = set; then :
18409 $as_echo_n "(cached) " >&6
18411 if test "$cross_compiling" = yes; then :
18412 lt_cv_dlopen_self
=cross
18414 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18415 lt_status
=$lt_dlunknown
18416 cat > conftest.
$ac_ext <<_LT_EOF
18417 #line 18417 "configure"
18418 #include "confdefs.h"
18427 # define LT_DLGLOBAL RTLD_GLOBAL
18430 # define LT_DLGLOBAL DL_GLOBAL
18432 # define LT_DLGLOBAL 0
18436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18437 find out it does not work in some platform. */
18438 #ifndef LT_DLLAZY_OR_NOW
18440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18443 # define LT_DLLAZY_OR_NOW DL_LAZY
18446 # define LT_DLLAZY_OR_NOW RTLD_NOW
18449 # define LT_DLLAZY_OR_NOW DL_NOW
18451 # define LT_DLLAZY_OR_NOW 0
18458 /* When -fvisbility=hidden is used, assume the code has been annotated
18459 correspondingly for the symbols needed. */
18460 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18461 void fnord () __attribute__((visibility("default")));
18464 void fnord () { int i=42; }
18467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18468 int status = $lt_dlunknown;
18472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18475 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18476 else puts (dlerror ());
18478 /* dlclose (self); */
18486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18487 (eval $ac_link) 2>&5
18489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18490 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18491 (.
/conftest
; exit; ) >&5 2>/dev
/null
18493 case x
$lt_status in
18494 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18495 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18496 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18499 # compilation failed
18500 lt_cv_dlopen_self
=no
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18508 $as_echo "$lt_cv_dlopen_self" >&6; }
18510 if test "x$lt_cv_dlopen_self" = xyes
; then
18511 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18514 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18515 $as_echo_n "(cached) " >&6
18517 if test "$cross_compiling" = yes; then :
18518 lt_cv_dlopen_self_static
=cross
18520 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18521 lt_status
=$lt_dlunknown
18522 cat > conftest.
$ac_ext <<_LT_EOF
18523 #line 18523 "configure"
18524 #include "confdefs.h"
18533 # define LT_DLGLOBAL RTLD_GLOBAL
18536 # define LT_DLGLOBAL DL_GLOBAL
18538 # define LT_DLGLOBAL 0
18542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18543 find out it does not work in some platform. */
18544 #ifndef LT_DLLAZY_OR_NOW
18546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18549 # define LT_DLLAZY_OR_NOW DL_LAZY
18552 # define LT_DLLAZY_OR_NOW RTLD_NOW
18555 # define LT_DLLAZY_OR_NOW DL_NOW
18557 # define LT_DLLAZY_OR_NOW 0
18564 /* When -fvisbility=hidden is used, assume the code has been annotated
18565 correspondingly for the symbols needed. */
18566 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18567 void fnord () __attribute__((visibility("default")));
18570 void fnord () { int i=42; }
18573 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18574 int status = $lt_dlunknown;
18578 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18581 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18582 else puts (dlerror ());
18584 /* dlclose (self); */
18592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18593 (eval $ac_link) 2>&5
18595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18596 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18597 (.
/conftest
; exit; ) >&5 2>/dev
/null
18599 case x
$lt_status in
18600 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18601 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18602 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18605 # compilation failed
18606 lt_cv_dlopen_self_static
=no
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18614 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18617 CPPFLAGS
="$save_CPPFLAGS"
18618 LDFLAGS
="$save_LDFLAGS"
18623 case $lt_cv_dlopen_self in
18624 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18625 *) enable_dlopen_self
=unknown
;;
18628 case $lt_cv_dlopen_self_static in
18629 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18630 *) enable_dlopen_self_static
=unknown
;;
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18653 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18654 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18655 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18656 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18658 $as_echo "yes" >&6; }
18660 # FIXME - insert some real tests, host_os isn't really good enough
18663 if test -n "$STRIP" ; then
18664 striplib
="$STRIP -x"
18665 old_striplib
="$STRIP -S"
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18667 $as_echo "yes" >&6; }
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18670 $as_echo "no" >&6; }
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675 $as_echo "no" >&6; }
18691 # Report which library types will actually be built
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18693 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18695 $as_echo "$can_build_shared" >&6; }
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18698 $as_echo_n "checking whether to build shared libraries... " >&6; }
18699 test "$can_build_shared" = "no" && enable_shared
=no
18701 # On AIX, shared libraries and static libraries use the same namespace, and
18702 # are all built from PIC.
18705 test "$enable_shared" = yes && enable_static
=no
18706 if test -n "$RANLIB"; then
18707 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18708 postinstall_cmds
='$RANLIB $lib'
18713 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18714 test "$enable_shared" = yes && enable_static
=no
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18719 $as_echo "$enable_shared" >&6; }
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18722 $as_echo_n "checking whether to build static libraries... " >&6; }
18723 # Make sure either enable_shared or enable_static is yes.
18724 test "$enable_shared" = yes || enable_static
=yes
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18726 $as_echo "$enable_static" >&6; }
18733 ac_cpp
='$CXXCPP $CPPFLAGS'
18734 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18735 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18736 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18740 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18741 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18742 (test "X$CXX" != "Xg++"))) ; then
18744 ac_cpp
='$CXXCPP $CPPFLAGS'
18745 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18746 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18747 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18749 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18750 if test -z "$CXXCPP"; then
18751 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18752 $as_echo_n "(cached) " >&6
18754 # Double quotes because CXXCPP needs to be expanded
18755 for CXXCPP
in "$CXX -E" "/lib/cpp"
18757 ac_preproc_ok
=false
18758 for ac_cxx_preproc_warn_flag
in '' yes
18760 # Use a header file that comes with gcc, so configuring glibc
18761 # with a fresh cross-compiler works.
18762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18763 # <limits.h> exists even on freestanding compilers.
18764 # On the NeXT, cc -E runs the code through the compiler's parser,
18765 # not just through cpp. "Syntax error" is here to catch this case.
18766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18769 # include <limits.h>
18771 # include <assert.h>
18775 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18778 # Broken: fails on valid input.
18781 rm -f conftest.err conftest.
$ac_ext
18783 # OK, works on sane cases. Now check whether nonexistent headers
18784 # can be detected and how.
18785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18787 #include <ac_nonexistent.h>
18789 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18790 # Broken: success on invalid input.
18793 # Passes both tests.
18797 rm -f conftest.err conftest.
$ac_ext
18800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18801 rm -f conftest.err conftest.
$ac_ext
18802 if $ac_preproc_ok; then :
18807 ac_cv_prog_CXXCPP
=$CXXCPP
18810 CXXCPP
=$ac_cv_prog_CXXCPP
18812 ac_cv_prog_CXXCPP
=$CXXCPP
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18815 $as_echo "$CXXCPP" >&6; }
18816 ac_preproc_ok
=false
18817 for ac_cxx_preproc_warn_flag
in '' yes
18819 # Use a header file that comes with gcc, so configuring glibc
18820 # with a fresh cross-compiler works.
18821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18822 # <limits.h> exists even on freestanding compilers.
18823 # On the NeXT, cc -E runs the code through the compiler's parser,
18824 # not just through cpp. "Syntax error" is here to catch this case.
18825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18826 /* end confdefs.h. */
18828 # include <limits.h>
18830 # include <assert.h>
18834 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18837 # Broken: fails on valid input.
18840 rm -f conftest.err conftest.
$ac_ext
18842 # OK, works on sane cases. Now check whether nonexistent headers
18843 # can be detected and how.
18844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18845 /* end confdefs.h. */
18846 #include <ac_nonexistent.h>
18848 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18849 # Broken: success on invalid input.
18852 # Passes both tests.
18856 rm -f conftest.err conftest.
$ac_ext
18859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18860 rm -f conftest.err conftest.
$ac_ext
18861 if $ac_preproc_ok; then :
18864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18866 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18867 See \`config.log' for more details." "$LINENO" 5; }
18871 ac_cpp
='$CXXCPP $CPPFLAGS'
18872 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18873 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18874 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18877 _lt_caught_CXX_error
=yes
18881 ac_cpp
='$CXXCPP $CPPFLAGS'
18882 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18883 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18884 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18886 archive_cmds_need_lc_CXX
=no
18887 allow_undefined_flag_CXX
=
18888 always_export_symbols_CXX
=no
18889 archive_expsym_cmds_CXX
=
18890 compiler_needs_object_CXX
=no
18891 export_dynamic_flag_spec_CXX
=
18892 hardcode_direct_CXX
=no
18893 hardcode_direct_absolute_CXX
=no
18894 hardcode_libdir_flag_spec_CXX
=
18895 hardcode_libdir_flag_spec_ld_CXX
=
18896 hardcode_libdir_separator_CXX
=
18897 hardcode_minus_L_CXX
=no
18898 hardcode_shlibpath_var_CXX
=unsupported
18899 hardcode_automatic_CXX
=no
18900 inherit_rpath_CXX
=no
18902 module_expsym_cmds_CXX
=
18903 link_all_deplibs_CXX
=unknown
18904 old_archive_cmds_CXX
=$old_archive_cmds
18905 reload_flag_CXX
=$reload_flag
18906 reload_cmds_CXX
=$reload_cmds
18907 no_undefined_flag_CXX
=
18908 whole_archive_flag_spec_CXX
=
18909 enable_shared_with_static_runtimes_CXX
=no
18911 # Source file extension for C++ test sources.
18914 # Object file extension for compiled C++ test sources.
18918 # No sense in running all these tests if we already determined that
18919 # the CXX compiler isn't working. Some variables (like enable_shared)
18920 # are currently assumed to apply to all compilers on this platform,
18921 # and will be corrupted by setting them based on a non-working compiler.
18922 if test "$_lt_caught_CXX_error" != yes; then
18923 # Code to be used in simple compile tests
18924 lt_simple_compile_test_code
="int some_variable = 0;"
18926 # Code to be used in simple link tests
18927 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18929 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18936 # If no C compiler was specified, use CC.
18939 # If no C compiler flags were specified, use CFLAGS.
18940 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18942 # Allow CC to be a program name with arguments.
18946 # save warnings/boilerplate of simple test code
18947 ac_outfile
=conftest.
$ac_objext
18948 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18949 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18950 _lt_compiler_boilerplate
=`cat conftest.err`
18953 ac_outfile
=conftest.
$ac_objext
18954 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18955 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18956 _lt_linker_boilerplate
=`cat conftest.err`
18960 # Allow CC to be a program name with arguments.
18965 lt_save_with_gnu_ld
=$with_gnu_ld
18966 lt_save_path_LD
=$lt_cv_path_LD
18967 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18968 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18970 $as_unset lt_cv_prog_gnu_ld
18972 if test -n "${lt_cv_path_LDCXX+set}"; then
18973 lt_cv_path_LD
=$lt_cv_path_LDCXX
18975 $as_unset lt_cv_path_LD
18977 test -z "${LDCXX+set}" || LD
=$LDCXX
18981 for cc_temp
in $compiler""; do
18983 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18984 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18989 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18992 if test -n "$compiler"; then
18993 # We don't want -fno-exception when compiling C++ code, so set the
18994 # no_builtin_flag separately
18995 if test "$GXX" = yes; then
18996 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18998 lt_prog_compiler_no_builtin_flag_CXX
=
19001 if test "$GXX" = yes; then
19002 # Set up default GNU C++ configuration
19006 # Check whether --with-gnu-ld was given.
19007 if test "${with_gnu_ld+set}" = set; then :
19008 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19014 if test "$GCC" = yes; then
19015 # Check if gcc -print-prog-name=ld gives a path.
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19017 $as_echo_n "checking for ld used by $CC... " >&6; }
19020 # gcc leaves a trailing carriage return which upsets mingw
19021 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19023 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19026 # Accept absolute paths.
19028 re_direlt
='/[^/][^/]*/\.\./'
19029 # Canonicalize the pathname of ld
19030 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19031 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19032 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19034 test -z "$LD" && LD
="$ac_prog"
19037 # If it fails, then pretend we aren't using GCC.
19041 # If it is relative, then search for the first ld in PATH.
19042 with_gnu_ld
=unknown
19045 elif test "$with_gnu_ld" = yes; then
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19047 $as_echo_n "checking for GNU ld... " >&6; }
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19050 $as_echo_n "checking for non-GNU ld... " >&6; }
19052 if test "${lt_cv_path_LD+set}" = set; then :
19053 $as_echo_n "(cached) " >&6
19055 if test -z "$LD"; then
19056 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19057 for ac_dir
in $PATH; do
19059 test -z "$ac_dir" && ac_dir
=.
19060 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19061 lt_cv_path_LD
="$ac_dir/$ac_prog"
19062 # Check to see if the program is GNU ld. I'd rather use --version,
19063 # but apparently some variants of GNU ld only accept -v.
19064 # Break only if it was the GNU/non-GNU ld that we prefer.
19065 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19066 *GNU
* |
*'with BFD'*)
19067 test "$with_gnu_ld" != no
&& break
19070 test "$with_gnu_ld" != yes && break
19077 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19081 LD
="$lt_cv_path_LD"
19082 if test -n "$LD"; then
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19084 $as_echo "$LD" >&6; }
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19087 $as_echo "no" >&6; }
19089 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19091 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19092 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19093 $as_echo_n "(cached) " >&6
19095 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19096 case `$LD -v 2>&1 </dev/null` in
19097 *GNU
* |
*'with BFD'*)
19098 lt_cv_prog_gnu_ld
=yes
19101 lt_cv_prog_gnu_ld
=no
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19106 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19107 with_gnu_ld
=$lt_cv_prog_gnu_ld
19115 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19116 # archiving commands below assume that GNU ld is being used.
19117 if test "$with_gnu_ld" = yes; then
19118 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19119 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19121 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19122 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19124 # If archive_cmds runs LD, not CC, wlarc should be empty
19125 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19126 # investigate it a little bit more. (MM)
19129 # ancient GNU ld didn't support --whole-archive et. al.
19130 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19131 $GREP 'no-whole-archive' > /dev
/null
; then
19132 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19134 whole_archive_flag_spec_CXX
=
19140 # A generic and very simple default shared library creation
19141 # command for GNU C++ for the case where it uses the native
19142 # linker, instead of GNU ld. If possible, this setting should
19143 # overridden to take advantage of the native linker features on
19144 # the platform it is being used on.
19145 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19148 # Commands to make compiler produce verbose output that lists
19149 # what "hidden" libraries, object files and flags are used when
19150 # linking a shared library.
19151 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19159 # PORTME: fill in a description of your system's C++ link characteristics
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19161 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19165 # FIXME: insert proper C++ library support
19169 if test "$host_cpu" = ia64
; then
19170 # On IA64, the linker does run time linking by default, so we don't
19171 # have to do anything special.
19172 aix_use_runtimelinking
=no
19173 exp_sym_flag
='-Bexport'
19176 aix_use_runtimelinking
=no
19178 # Test if we are trying to use run time linking or normal
19179 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19180 # need to do runtime linking.
19181 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19182 for ld_flag
in $LDFLAGS; do
19185 aix_use_runtimelinking
=yes
19193 exp_sym_flag
='-bexport'
19194 no_entry_flag
='-bnoentry'
19197 # When large executables or shared objects are built, AIX ld can
19198 # have problems creating the table of contents. If linking a library
19199 # or program results in "error TOC overflow" add -mminimal-toc to
19200 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19201 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19203 archive_cmds_CXX
=''
19204 hardcode_direct_CXX
=yes
19205 hardcode_direct_absolute_CXX
=yes
19206 hardcode_libdir_separator_CXX
=':'
19207 link_all_deplibs_CXX
=yes
19208 file_list_spec_CXX
='${wl}-f,'
19210 if test "$GXX" = yes; then
19211 case $host_os in aix4.
[012]|aix4.
[012].
*)
19212 # We only want to do this on AIX 4.2 and lower, the check
19213 # below for broken collect2 doesn't work under 4.3+
19214 collect2name
=`${CC} -print-prog-name=collect2`
19215 if test -f "$collect2name" &&
19216 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19218 # We have reworked collect2
19221 # We have old collect2
19222 hardcode_direct_CXX
=unsupported
19223 # It fails to find uninstalled libraries when the uninstalled
19224 # path is not listed in the libpath. Setting hardcode_minus_L
19225 # to unsupported forces relinking
19226 hardcode_minus_L_CXX
=yes
19227 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19228 hardcode_libdir_separator_CXX
=
19231 shared_flag
='-shared'
19232 if test "$aix_use_runtimelinking" = yes; then
19233 shared_flag
="$shared_flag "'${wl}-G'
19237 if test "$host_cpu" = ia64
; then
19238 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19239 # chokes on -Wl,-G. The following line is correct:
19242 if test "$aix_use_runtimelinking" = yes; then
19243 shared_flag
='${wl}-G'
19245 shared_flag
='${wl}-bM:SRE'
19250 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19251 # It seems that -bexpall does not export symbols beginning with
19252 # underscore (_), so it is better to generate a list of symbols to
19254 always_export_symbols_CXX
=yes
19255 if test "$aix_use_runtimelinking" = yes; then
19256 # Warning - without using the other runtime loading flags (-brtl),
19257 # -berok will link without error, but may produce a broken library.
19258 allow_undefined_flag_CXX
='-berok'
19259 # Determine the default libpath from the value encoded in an empty
19261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h. */
19272 if ac_fn_cxx_try_link
"$LINENO"; then :
19274 lt_aix_libpath_sed
='
19275 /Import File Strings/,/^$/ {
19281 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19282 # Check for a 64-bit object if we didn't find anything.
19283 if test -z "$aix_libpath"; then
19284 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19287 rm -f core conftest.err conftest.
$ac_objext \
19288 conftest
$ac_exeext conftest.
$ac_ext
19289 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19291 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19293 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"
19295 if test "$host_cpu" = ia64
; then
19296 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19297 allow_undefined_flag_CXX
="-z nodefs"
19298 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"
19300 # Determine the default libpath from the value encoded in an
19301 # empty executable.
19302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19303 /* end confdefs.h. */
19313 if ac_fn_cxx_try_link
"$LINENO"; then :
19315 lt_aix_libpath_sed
='
19316 /Import File Strings/,/^$/ {
19322 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19323 # Check for a 64-bit object if we didn't find anything.
19324 if test -z "$aix_libpath"; then
19325 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19328 rm -f core conftest.err conftest.
$ac_objext \
19329 conftest
$ac_exeext conftest.
$ac_ext
19330 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19332 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19333 # Warning - without using the other run time loading flags,
19334 # -berok will link without error, but may produce a broken library.
19335 no_undefined_flag_CXX
=' ${wl}-bernotok'
19336 allow_undefined_flag_CXX
=' ${wl}-berok'
19337 if test "$with_gnu_ld" = yes; then
19338 # We only use this code for GNU lds that support --whole-archive.
19339 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19341 # Exported symbols can be pulled into shared objects from archives
19342 whole_archive_flag_spec_CXX
='$convenience'
19344 archive_cmds_need_lc_CXX
=yes
19345 # This is similar to how AIX traditionally builds its shared
19347 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'
19353 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19354 allow_undefined_flag_CXX
=unsupported
19355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19356 # support --undefined. This deserves some investigation. FIXME
19357 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19364 case $cc_basename in
19366 # FIXME: insert proper C++ library support
19372 cygwin
* | mingw
* | pw32
* | cegcc
*)
19373 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19374 # as there is no search path for DLLs.
19375 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19376 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19377 allow_undefined_flag_CXX
=unsupported
19378 always_export_symbols_CXX
=no
19379 enable_shared_with_static_runtimes_CXX
=yes
19381 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19382 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'
19383 # If the export-symbols file already is a .def file (1st line
19384 # is EXPORTS), use it as is; otherwise, prepend...
19385 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19386 cp $export_symbols $output_objdir/$soname.def;
19388 echo EXPORTS > $output_objdir/$soname.def;
19389 cat $export_symbols >> $output_objdir/$soname.def;
19391 $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'
19396 darwin
* | rhapsody
*)
19399 archive_cmds_need_lc_CXX
=no
19400 hardcode_direct_CXX
=no
19401 hardcode_automatic_CXX
=yes
19402 hardcode_shlibpath_var_CXX
=unsupported
19403 if test "$lt_cv_ld_force_load" = "yes"; then
19404 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\"`'
19406 whole_archive_flag_spec_CXX
=''
19408 link_all_deplibs_CXX
=yes
19409 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19410 case $cc_basename in
19411 ifort
*) _lt_dar_can_shared
=yes ;;
19412 *) _lt_dar_can_shared
=$GCC ;;
19414 if test "$_lt_dar_can_shared" = "yes"; then
19415 output_verbose_link_cmd
=func_echo_all
19416 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}"
19417 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19418 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}"
19419 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}"
19420 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19421 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}"
19422 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}"
19432 case $cc_basename in
19434 # FIXME: insert proper C++ library support
19438 # Green Hills C++ Compiler
19439 # FIXME: insert proper C++ library support
19443 # FIXME: insert proper C++ library support
19450 # C++ shared libraries reported to be fairly broken before
19456 archive_cmds_need_lc_CXX
=no
19459 freebsd
* | dragonfly
*)
19460 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19469 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19470 link_all_deplibs_CXX
=yes
19474 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19475 hardcode_libdir_separator_CXX
=:
19476 export_dynamic_flag_spec_CXX
='${wl}-E'
19477 hardcode_direct_CXX
=yes
19478 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19479 # but as the default
19480 # location of the library.
19482 case $cc_basename in
19484 # FIXME: insert proper C++ library support
19488 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'
19489 # Commands to make compiler produce verbose output that lists
19490 # what "hidden" libraries, object files and flags are used when
19491 # linking a shared library.
19493 # There doesn't appear to be a way to prevent this compiler from
19494 # explicitly linking system object files so we need to strip them
19495 # from the output so that they don't get included in the library
19497 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"'
19500 if test "$GXX" = yes; then
19501 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'
19503 # FIXME: insert proper C++ library support
19511 if test $with_gnu_ld = no
; then
19512 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19513 hardcode_libdir_separator_CXX
=:
19519 export_dynamic_flag_spec_CXX
='${wl}-E'
19525 hardcode_direct_CXX
=no
19526 hardcode_shlibpath_var_CXX
=no
19529 hardcode_direct_CXX
=yes
19530 hardcode_direct_absolute_CXX
=yes
19531 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19532 # but as the default
19533 # location of the library.
19537 case $cc_basename in
19539 # FIXME: insert proper C++ library support
19545 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19548 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19551 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19554 # Commands to make compiler produce verbose output that lists
19555 # what "hidden" libraries, object files and flags are used when
19556 # linking a shared library.
19558 # There doesn't appear to be a way to prevent this compiler from
19559 # explicitly linking system object files so we need to strip them
19560 # from the output so that they don't get included in the library
19562 output_verbose_link_cmd
='templist=`($CC -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"'
19565 if test "$GXX" = yes; then
19566 if test $with_gnu_ld = no
; then
19569 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19572 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19575 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'
19580 # FIXME: insert proper C++ library support
19588 hardcode_direct_CXX
=no
19589 hardcode_shlibpath_var_CXX
=no
19590 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19591 export_dynamic_flag_spec_CXX
='${wl}-E'
19592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19593 # Instead, shared libraries are loaded at an image base (0x10000000 by
19594 # default) and relocated if they conflict, which is a slow very memory
19595 # consuming and fragmenting process. To avoid this, we pick a random,
19596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19598 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'
19599 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'
19602 case $cc_basename in
19605 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'
19607 # Archives containing C++ object files must be created using
19608 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19609 # necessary to make sure instantiated templates are included
19611 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19614 if test "$GXX" = yes; then
19615 if test "$with_gnu_ld" = no
; then
19616 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'
19618 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'
19621 link_all_deplibs_CXX
=yes
19624 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19625 hardcode_libdir_separator_CXX
=:
19626 inherit_rpath_CXX
=yes
19629 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19630 case $cc_basename in
19632 # Kuck and Associates, Inc. (KAI) C++ Compiler
19634 # KCC will only create a shared library if the output file
19635 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19636 # to its proper name (with version) after linking.
19637 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'
19638 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'
19639 # Commands to make compiler produce verbose output that lists
19640 # what "hidden" libraries, object files and flags are used when
19641 # linking a shared library.
19643 # There doesn't appear to be a way to prevent this compiler from
19644 # explicitly linking system object files so we need to strip them
19645 # from the output so that they don't get included in the library
19647 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"'
19649 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19650 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19652 # Archives containing C++ object files must be created using
19653 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19654 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19659 # version 8.0 and above of icpc choke on multiply defined symbols
19660 # if we add $predep_objects and $postdep_objects, however 7.1 and
19661 # earlier do not add the objects themselves.
19662 case `$CC -V 2>&1` in
19664 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19665 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'
19667 *) # Version 8.0 or newer
19670 ia64
*) tmp_idyn
=' -i_dynamic';;
19672 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19673 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'
19676 archive_cmds_need_lc_CXX
=no
19677 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19678 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19679 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19682 # Portland Group C++ compiler
19684 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19685 prelink_cmds_CXX
='tpldir=Template.dir~
19687 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19688 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19689 old_archive_cmds_CXX
='tpldir=Template.dir~
19691 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19692 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19694 archive_cmds_CXX
='tpldir=Template.dir~
19696 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19697 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19698 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19700 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19701 $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'
19703 *) # Version 6 and above use weak symbols
19704 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19705 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'
19709 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19710 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19711 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'
19715 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19716 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'
19718 runpath_var
=LD_RUN_PATH
19719 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19720 hardcode_libdir_separator_CXX
=:
19722 # Commands to make compiler produce verbose output that lists
19723 # what "hidden" libraries, object files and flags are used when
19724 # linking a shared library.
19726 # There doesn't appear to be a way to prevent this compiler from
19727 # explicitly linking system object files so we need to strip them
19728 # from the output so that they don't get included in the library
19730 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'
19732 xl
* | mpixl
* | bgxl
*)
19733 # IBM XL 8.0 on PPC, with GNU ld
19734 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19735 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19736 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19737 if test "x$supports_anon_versioning" = xyes
; then
19738 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19739 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19740 echo "local: *; };" >> $output_objdir/$libname.ver~
19741 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19745 case `$CC -V 2>&1 | sed 5q` in
19748 no_undefined_flag_CXX
=' -zdefs'
19749 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19750 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'
19751 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19752 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'
19753 compiler_needs_object_CXX
=yes
19755 # Not sure whether something based on
19756 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19758 output_verbose_link_cmd
='func_echo_all'
19760 # Archives containing C++ object files must be created using
19761 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19762 # necessary to make sure instantiated templates are included
19764 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19772 # FIXME: insert proper C++ library support
19777 # FIXME: insert proper C++ library support
19782 case $cc_basename in
19784 # FIXME: insert proper C++ library support
19788 # FIXME: insert proper C++ library support
19795 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19796 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19798 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19799 hardcode_direct_CXX
=yes
19800 hardcode_shlibpath_var_CXX
=no
19802 # Workaround some broken pre-1.5 toolchains
19803 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19811 # C++ shared libraries are fairly broken
19816 if test -f /usr
/libexec
/ld.so
; then
19817 hardcode_direct_CXX
=yes
19818 hardcode_shlibpath_var_CXX
=no
19819 hardcode_direct_absolute_CXX
=yes
19820 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19821 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19823 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19824 export_dynamic_flag_spec_CXX
='${wl}-E'
19825 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19827 output_verbose_link_cmd
=func_echo_all
19833 osf3
* | osf4
* | osf5
*)
19834 case $cc_basename in
19836 # Kuck and Associates, Inc. (KAI) C++ Compiler
19838 # KCC will only create a shared library if the output file
19839 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19840 # to its proper name (with version) after linking.
19841 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'
19843 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19844 hardcode_libdir_separator_CXX
=:
19846 # Archives containing C++ object files must be created using
19847 # the KAI C++ compiler.
19849 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19850 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19854 # Rational C++ 2.4.1
19855 # FIXME: insert proper C++ library support
19861 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19862 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'
19863 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19866 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19867 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'
19868 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19869 echo "-hidden">> $lib.exp~
19870 $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~
19872 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19876 hardcode_libdir_separator_CXX
=:
19878 # Commands to make compiler produce verbose output that lists
19879 # what "hidden" libraries, object files and flags are used when
19880 # linking a shared library.
19882 # There doesn't appear to be a way to prevent this compiler from
19883 # explicitly linking system object files so we need to strip them
19884 # from the output so that they don't get included in the library
19886 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"'
19889 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19890 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19893 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'
19896 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'
19900 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19901 hardcode_libdir_separator_CXX
=:
19903 # Commands to make compiler produce verbose output that lists
19904 # what "hidden" libraries, object files and flags are used when
19905 # linking a shared library.
19906 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19909 # FIXME: insert proper C++ library support
19917 # FIXME: insert proper C++ library support
19922 case $cc_basename in
19925 # FIXME: insert proper C++ library support
19930 # FIXME: insert proper C++ library support
19934 # FIXME: insert proper C++ library support
19941 case $cc_basename in
19943 # Sun C++ 4.2, 5.x and Centerline C++
19944 archive_cmds_need_lc_CXX
=yes
19945 no_undefined_flag_CXX
=' -zdefs'
19946 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19947 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19948 $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'
19950 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19951 hardcode_shlibpath_var_CXX
=no
19953 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19955 # The compiler driver will combine and reorder linker options,
19956 # but understands `-z linker_flag'.
19957 # Supported since Solaris 2.6 (maybe 2.5.1?)
19958 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19961 link_all_deplibs_CXX
=yes
19963 output_verbose_link_cmd
='func_echo_all'
19965 # Archives containing C++ object files must be created using
19966 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19967 # necessary to make sure instantiated templates are included
19969 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19972 # Green Hills C++ Compiler
19973 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19975 # The C++ compiler must be used to create the archive.
19976 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19979 # GNU C++ compiler with Solaris linker
19980 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19981 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19982 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19983 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19984 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19985 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19987 # Commands to make compiler produce verbose output that lists
19988 # what "hidden" libraries, object files and flags are used when
19989 # linking a shared library.
19990 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19992 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19994 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19995 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19996 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19998 # Commands to make compiler produce verbose output that lists
19999 # what "hidden" libraries, object files and flags are used when
20000 # linking a shared library.
20001 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20004 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20006 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20008 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20016 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20017 no_undefined_flag_CXX
='${wl}-z,text'
20018 archive_cmds_need_lc_CXX
=no
20019 hardcode_shlibpath_var_CXX
=no
20020 runpath_var
='LD_RUN_PATH'
20022 case $cc_basename in
20024 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20025 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20028 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20029 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20034 sysv5
* | sco3.2v5
* | sco5v6
*)
20035 # Note: We can NOT use -z defs as we might desire, because we do not
20036 # link with -lc, and that would cause any symbols used from libc to
20037 # always be unresolved, which means just about no library would
20038 # ever link correctly. If we're not using GNU ld we use -z text
20039 # though, which does catch some bad symbols but isn't as heavy-handed
20041 no_undefined_flag_CXX
='${wl}-z,text'
20042 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20043 archive_cmds_need_lc_CXX
=no
20044 hardcode_shlibpath_var_CXX
=no
20045 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20046 hardcode_libdir_separator_CXX
=':'
20047 link_all_deplibs_CXX
=yes
20048 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20049 runpath_var
='LD_RUN_PATH'
20051 case $cc_basename in
20053 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20054 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20055 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20056 '"$old_archive_cmds_CXX"
20057 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20058 '"$reload_cmds_CXX"
20061 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20062 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20068 case $cc_basename in
20070 # NonStop-UX NCC 3.20
20071 # FIXME: insert proper C++ library support
20075 # FIXME: insert proper C++ library support
20082 # FIXME: insert proper C++ library support
20087 # FIXME: insert proper C++ library support
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20093 $as_echo "$ld_shlibs_CXX" >&6; }
20094 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20100 ## There is no encapsulation within the following macros, do not change
20101 ## the running order or otherwise move them around unless you know exactly
20102 ## what you are doing...
20103 # Dependencies to place before and after the object being linked:
20104 predep_objects_CXX
=
20105 postdep_objects_CXX
=
20108 compiler_lib_search_path_CXX
=
20110 cat > conftest.
$ac_ext <<_LT_EOF
20114 Foo (void) { a = 0; }
20120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20121 (eval $ac_compile) 2>&5
20123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20124 test $ac_status = 0; }; then
20125 # Parse the compiler output and extract the necessary
20126 # objects, libraries and library flags.
20128 # Sentinel used to keep track of whether or not we are before
20129 # the conftest object file.
20130 pre_test_object_deps_done
=no
20132 for p
in `eval "$output_verbose_link_cmd"`; do
20136 # Some compilers place space between "-{L,R}" and the path.
20137 # Remove the space.
20138 if test $p = "-L" ||
20139 test $p = "-R"; then
20146 if test "$pre_test_object_deps_done" = no
; then
20149 # Internal compiler library paths should come after those
20150 # provided the user. The postdeps already come after the
20151 # user supplied libs so there is no need to process them.
20152 if test -z "$compiler_lib_search_path_CXX"; then
20153 compiler_lib_search_path_CXX
="${prev}${p}"
20155 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20158 # The "-l" case would never come before the object being
20159 # linked, so don't bother handling this case.
20162 if test -z "$postdeps_CXX"; then
20163 postdeps_CXX
="${prev}${p}"
20165 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20171 # This assumes that the test object file only shows up
20172 # once in the compiler output.
20173 if test "$p" = "conftest.$objext"; then
20174 pre_test_object_deps_done
=yes
20178 if test "$pre_test_object_deps_done" = no
; then
20179 if test -z "$predep_objects_CXX"; then
20180 predep_objects_CXX
="$p"
20182 predep_objects_CXX
="$predep_objects_CXX $p"
20185 if test -z "$postdep_objects_CXX"; then
20186 postdep_objects_CXX
="$p"
20188 postdep_objects_CXX
="$postdep_objects_CXX $p"
20193 *) ;; # Ignore the rest.
20201 echo "libtool.m4: error: problem compiling CXX test program"
20204 $RM -f confest.
$objext
20206 # PORTME: override above test on systems where it is broken
20209 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20210 # hack all around it, let's just trust "g++" to DTRT.
20211 predep_objects_CXX
=
20212 postdep_objects_CXX
=
20217 case `$CC -V 2>&1 | sed 5q` in
20221 # The more standards-conforming stlport4 library is
20222 # incompatible with the Cstd library. Avoid specifying
20223 # it if it's in CXXFLAGS. Ignore libCrun as
20224 # -library=stlport4 depends on it.
20225 case " $CXX $CXXFLAGS " in
20226 *" -library=stlport4 "*)
20227 solaris_use_stlport4
=yes
20231 if test "$solaris_use_stlport4" != yes; then
20232 postdeps_CXX
='-library=Cstd -library=Crun'
20239 case $cc_basename in
20241 # The more standards-conforming stlport4 library is
20242 # incompatible with the Cstd library. Avoid specifying
20243 # it if it's in CXXFLAGS. Ignore libCrun as
20244 # -library=stlport4 depends on it.
20245 case " $CXX $CXXFLAGS " in
20246 *" -library=stlport4 "*)
20247 solaris_use_stlport4
=yes
20251 # Adding this requires a known-good setup of shared libraries for
20252 # Sun compiler versions before 5.6, else PIC objects from an old
20253 # archive will be linked into the output, leading to subtle bugs.
20254 if test "$solaris_use_stlport4" != yes; then
20255 postdeps_CXX
='-library=Cstd -library=Crun'
20263 case " $postdeps_CXX " in
20264 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20266 compiler_lib_search_dirs_CXX
=
20267 if test -n "${compiler_lib_search_path_CXX}"; then
20268 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20301 lt_prog_compiler_wl_CXX
=
20302 lt_prog_compiler_pic_CXX
=
20303 lt_prog_compiler_static_CXX
=
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20306 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20308 # C++ specific cases for pic, static, wl, etc.
20309 if test "$GXX" = yes; then
20310 lt_prog_compiler_wl_CXX
='-Wl,'
20311 lt_prog_compiler_static_CXX
='-static'
20315 # All AIX code is PIC.
20316 if test "$host_cpu" = ia64
; then
20317 # AIX 5 now supports IA64 processor
20318 lt_prog_compiler_static_CXX
='-Bstatic'
20320 lt_prog_compiler_pic_CXX
='-fPIC'
20326 # see comment about AmigaOS4 .so support
20327 lt_prog_compiler_pic_CXX
='-fPIC'
20330 # FIXME: we need at least 68020 code to build shared libraries, but
20331 # adding the `-m68020' flag to GCC prevents building anything better,
20333 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20338 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20339 # PIC is the default for these OSes.
20341 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20342 # This hack is so that the source file can tell whether it is being
20343 # built for inclusion in a dll (and should export symbols for example).
20344 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20345 # (--disable-auto-import) libraries
20346 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20348 darwin
* | rhapsody
*)
20349 # PIC is the default on this platform
20350 # Common symbols not allowed in MH_DYLIB files
20351 lt_prog_compiler_pic_CXX
='-fno-common'
20354 # DJGPP does not support shared libraries at all
20355 lt_prog_compiler_pic_CXX
=
20358 # PIC is the default for Haiku.
20359 # The "-static" flag exists, but is broken.
20360 lt_prog_compiler_static_CXX
=
20363 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20364 # Instead, we relocate shared libraries at runtime.
20367 if test -d /usr
/nec
; then
20368 lt_prog_compiler_pic_CXX
=-Kconform_pic
20372 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20373 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20374 # sets the default TLS model and affects inlining.
20379 lt_prog_compiler_pic_CXX
='-fPIC'
20384 # QNX uses GNU C++, but need to define -shared option too, otherwise
20385 # it will coredump.
20386 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20389 lt_prog_compiler_pic_CXX
='-fPIC'
20395 # All AIX code is PIC.
20396 if test "$host_cpu" = ia64
; then
20397 # AIX 5 now supports IA64 processor
20398 lt_prog_compiler_static_CXX
='-Bstatic'
20400 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20404 case $cc_basename in
20406 # Green Hills C++ Compiler
20407 # _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"
20412 case $cc_basename in
20414 lt_prog_compiler_pic_CXX
='-KPIC'
20417 # Green Hills C++ Compiler
20418 lt_prog_compiler_pic_CXX
='-pic'
20424 freebsd
* | dragonfly
*)
20425 # FreeBSD uses GNU C++
20427 hpux9
* | hpux10
* | hpux11
*)
20428 case $cc_basename in
20430 lt_prog_compiler_wl_CXX
='-Wl,'
20431 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20432 if test "$host_cpu" != ia64
; then
20433 lt_prog_compiler_pic_CXX
='+Z'
20437 lt_prog_compiler_wl_CXX
='-Wl,'
20438 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20444 lt_prog_compiler_pic_CXX
='+Z'
20453 # This is c89, which is MS Visual C++ (no shared libs)
20454 # Anyone wants to do a port?
20456 irix5
* | irix6
* | nonstopux
*)
20457 case $cc_basename in
20459 lt_prog_compiler_wl_CXX
='-Wl,'
20460 lt_prog_compiler_static_CXX
='-non_shared'
20461 # CC pic flag -KPIC is the default.
20467 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20468 case $cc_basename in
20471 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20472 lt_prog_compiler_pic_CXX
='-fPIC'
20475 # old Intel C++ for x86_64 which still supported -KPIC.
20476 lt_prog_compiler_wl_CXX
='-Wl,'
20477 lt_prog_compiler_pic_CXX
='-KPIC'
20478 lt_prog_compiler_static_CXX
='-static'
20481 # Intel C++, used to be incompatible with GCC.
20482 # ICC 10 doesn't accept -KPIC any more.
20483 lt_prog_compiler_wl_CXX
='-Wl,'
20484 lt_prog_compiler_pic_CXX
='-fPIC'
20485 lt_prog_compiler_static_CXX
='-static'
20488 # Portland Group C++ compiler
20489 lt_prog_compiler_wl_CXX
='-Wl,'
20490 lt_prog_compiler_pic_CXX
='-fpic'
20491 lt_prog_compiler_static_CXX
='-Bstatic'
20495 # Make sure the PIC flag is empty. It appears that all Alpha
20496 # Linux and Compaq Tru64 Unix objects are PIC.
20497 lt_prog_compiler_pic_CXX
=
20498 lt_prog_compiler_static_CXX
='-non_shared'
20500 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20501 # IBM XL 8.0, 9.0 on PPC and BlueGene
20502 lt_prog_compiler_wl_CXX
='-Wl,'
20503 lt_prog_compiler_pic_CXX
='-qpic'
20504 lt_prog_compiler_static_CXX
='-qstaticlink'
20507 case `$CC -V 2>&1 | sed 5q` in
20510 lt_prog_compiler_pic_CXX
='-KPIC'
20511 lt_prog_compiler_static_CXX
='-Bstatic'
20512 lt_prog_compiler_wl_CXX
='-Qoption ld '
20523 case $cc_basename in
20525 lt_prog_compiler_pic_CXX
='-W c,exportall'
20534 # QNX uses GNU C++, but need to define -shared option too, otherwise
20535 # it will coredump.
20536 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20538 osf3
* | osf4
* | osf5
*)
20539 case $cc_basename in
20541 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20544 # Rational C++ 2.4.1
20545 lt_prog_compiler_pic_CXX
='-pic'
20548 # Digital/Compaq C++
20549 lt_prog_compiler_wl_CXX
='-Wl,'
20550 # Make sure the PIC flag is empty. It appears that all Alpha
20551 # Linux and Compaq Tru64 Unix objects are PIC.
20552 lt_prog_compiler_pic_CXX
=
20553 lt_prog_compiler_static_CXX
='-non_shared'
20562 case $cc_basename in
20564 # Sun C++ 4.2, 5.x and Centerline C++
20565 lt_prog_compiler_pic_CXX
='-KPIC'
20566 lt_prog_compiler_static_CXX
='-Bstatic'
20567 lt_prog_compiler_wl_CXX
='-Qoption ld '
20570 # Green Hills C++ Compiler
20571 lt_prog_compiler_pic_CXX
='-PIC'
20578 case $cc_basename in
20581 lt_prog_compiler_pic_CXX
='-pic'
20582 lt_prog_compiler_static_CXX
='-Bstatic'
20586 lt_prog_compiler_pic_CXX
='-pic'
20592 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20593 case $cc_basename in
20595 lt_prog_compiler_wl_CXX
='-Wl,'
20596 lt_prog_compiler_pic_CXX
='-KPIC'
20597 lt_prog_compiler_static_CXX
='-Bstatic'
20602 case $cc_basename in
20604 # NonStop-UX NCC 3.20
20605 lt_prog_compiler_pic_CXX
='-KPIC'
20614 lt_prog_compiler_can_build_shared_CXX
=no
20620 # For platforms which do not support PIC, -DPIC is meaningless:
20622 lt_prog_compiler_pic_CXX
=
20625 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20629 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20634 # Check to make sure the PIC flag actually works.
20636 if test -n "$lt_prog_compiler_pic_CXX"; then
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20638 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20639 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20640 $as_echo_n "(cached) " >&6
20642 lt_cv_prog_compiler_pic_works_CXX
=no
20643 ac_outfile
=conftest.
$ac_objext
20644 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20645 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20646 # Insert the option either (1) after the last *FLAGS variable, or
20647 # (2) before a word containing "conftest.", or (3) at the end.
20648 # Note that $ac_compile itself does not contain backslashes and begins
20649 # with a dollar sign (not a hyphen), so the echo should work correctly.
20650 # The option is referenced via a variable to avoid confusing sed.
20651 lt_compile
=`echo "$ac_compile" | $SED \
20652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20654 -e 's:$: $lt_compiler_flag:'`
20655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20656 (eval "$lt_compile" 2>conftest.err
)
20658 cat conftest.err
>&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 if (exit $ac_status) && test -s "$ac_outfile"; then
20661 # The compiler can only warn and ignore the option if not recognized
20662 # So say no if there are warnings other than the usual output.
20663 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20664 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20665 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20666 lt_cv_prog_compiler_pic_works_CXX
=yes
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20673 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20675 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20676 case $lt_prog_compiler_pic_CXX in
20678 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20681 lt_prog_compiler_pic_CXX
=
20682 lt_prog_compiler_can_build_shared_CXX
=no
20690 # Check to make sure the static flag actually works.
20692 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20694 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20695 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20696 $as_echo_n "(cached) " >&6
20698 lt_cv_prog_compiler_static_works_CXX
=no
20699 save_LDFLAGS
="$LDFLAGS"
20700 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20701 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20702 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20703 # The linker can only warn and ignore the option if not recognized
20704 # So say no if there are warnings
20705 if test -s conftest.err
; then
20706 # Append any errors to the config.log.
20707 cat conftest.err
1>&5
20708 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20709 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20710 if diff conftest.exp conftest.er2
>/dev
/null
; then
20711 lt_cv_prog_compiler_static_works_CXX
=yes
20714 lt_cv_prog_compiler_static_works_CXX
=yes
20718 LDFLAGS
="$save_LDFLAGS"
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20722 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20724 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20727 lt_prog_compiler_static_CXX
=
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20734 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20735 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20736 $as_echo_n "(cached) " >&6
20738 lt_cv_prog_compiler_c_o_CXX
=no
20739 $RM -r conftest
2>/dev
/null
20743 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20745 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20746 # Insert the option either (1) after the last *FLAGS variable, or
20747 # (2) before a word containing "conftest.", or (3) at the end.
20748 # Note that $ac_compile itself does not contain backslashes and begins
20749 # with a dollar sign (not a hyphen), so the echo should work correctly.
20750 lt_compile
=`echo "$ac_compile" | $SED \
20751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20753 -e 's:$: $lt_compiler_flag:'`
20754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20755 (eval "$lt_compile" 2>out
/conftest.err
)
20757 cat out
/conftest.err
>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20761 # The compiler can only warn and ignore the option if not recognized
20762 # So say no if there are warnings
20763 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20764 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20765 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20766 lt_cv_prog_compiler_c_o_CXX
=yes
20771 # SGI C++ compiler will create directory out/ii_files/ for
20772 # template instantiation
20773 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20774 $RM out
/* && rmdir out
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20781 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20786 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20787 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20788 $as_echo_n "(cached) " >&6
20790 lt_cv_prog_compiler_c_o_CXX
=no
20791 $RM -r conftest
2>/dev
/null
20795 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20797 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20798 # Insert the option either (1) after the last *FLAGS variable, or
20799 # (2) before a word containing "conftest.", or (3) at the end.
20800 # Note that $ac_compile itself does not contain backslashes and begins
20801 # with a dollar sign (not a hyphen), so the echo should work correctly.
20802 lt_compile
=`echo "$ac_compile" | $SED \
20803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20805 -e 's:$: $lt_compiler_flag:'`
20806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20807 (eval "$lt_compile" 2>out
/conftest.err
)
20809 cat out
/conftest.err
>&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20813 # The compiler can only warn and ignore the option if not recognized
20814 # So say no if there are warnings
20815 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20816 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20817 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20818 lt_cv_prog_compiler_c_o_CXX
=yes
20823 # SGI C++ compiler will create directory out/ii_files/ for
20824 # template instantiation
20825 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20826 $RM out
/* && rmdir out
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20833 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20838 hard_links
="nottested"
20839 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20840 # do not overwrite the value of need_locks provided by the user
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20842 $as_echo_n "checking if we can lock with hard links... " >&6; }
20845 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20847 ln conftest.a conftest.b
2>&5 || hard_links
=no
20848 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20850 $as_echo "$hard_links" >&6; }
20851 if test "$hard_links" = no
; then
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20853 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20863 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20865 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20868 # If we're using GNU nm, then we don't want the "-C" option.
20869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20870 # Also, AIX nm treats weak defined symbols like other global defined
20871 # symbols, whereas GNU nm marks them as "W".
20872 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20873 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'
20875 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20879 export_symbols_cmds_CXX
="$ltdll_cmds"
20881 cygwin
* | mingw
* | cegcc
*)
20882 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'
20885 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20888 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20891 $as_echo "$ld_shlibs_CXX" >&6; }
20892 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20894 with_gnu_ld_CXX
=$with_gnu_ld
20902 # Do we need to explicitly link libc?
20904 case "x$archive_cmds_need_lc_CXX" in
20906 # Assume -lc should be added
20907 archive_cmds_need_lc_CXX
=yes
20909 if test "$enable_shared" = yes && test "$GCC" = yes; then
20910 case $archive_cmds_CXX in
20912 # FIXME: we may have to deal with multi-command sequences.
20915 # Test whether the compiler implicitly links with -lc since on some
20916 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20917 # to ld, don't add -lc before -lgcc.
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20919 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20920 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20921 $as_echo_n "(cached) " >&6
20924 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20927 (eval $ac_compile) 2>&5
20929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20930 test $ac_status = 0; } 2>conftest.err
; then
20933 libobjs
=conftest.
$ac_objext
20935 wl
=$lt_prog_compiler_wl_CXX
20936 pic_flag
=$lt_prog_compiler_pic_CXX
20942 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20943 allow_undefined_flag_CXX
=
20944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20945 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20948 test $ac_status = 0; }
20950 lt_cv_archive_cmds_need_lc_CXX
=no
20952 lt_cv_archive_cmds_need_lc_CXX
=yes
20954 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20956 cat conftest.err
1>&5
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20962 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20963 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21034 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21036 library_names_spec
=
21037 libname_spec
='lib$name'
21041 postuninstall_cmds
=
21045 shlibpath_overrides_runpath
=unknown
21047 dynamic_linker
="$host_os ld.so"
21048 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21049 need_lib_prefix
=unknown
21050 hardcode_into_libs
=no
21052 # when you set need_version to no, make sure it does not cause -set_version
21053 # flags to be left without arguments
21054 need_version
=unknown
21059 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21060 shlibpath_var
=LIBPATH
21062 # AIX 3 has no versioning support, so we append a major version to the name.
21063 soname_spec
='${libname}${release}${shared_ext}$major'
21070 hardcode_into_libs
=yes
21071 if test "$host_cpu" = ia64
; then
21072 # AIX 5 supports IA64
21073 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21074 shlibpath_var
=LD_LIBRARY_PATH
21076 # With GCC up to 2.95.x, collect2 would create an import file
21077 # for dependence libraries. The import file would start with
21078 # the line `#! .'. This would cause the generated library to
21079 # depend on `.', always an invalid library. This was fixed in
21080 # development snapshots of GCC prior to 3.0.
21082 aix4 | aix4.
[01] | aix4.
[01].
*)
21083 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21085 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21088 can_build_shared
=no
21092 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21093 # soname into executable. Probably we can add versioning support to
21094 # collect2, so additional links can be useful in future.
21095 if test "$aix_use_runtimelinking" = yes; then
21096 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21097 # instead of lib<name>.a to let people know that these are not
21098 # typical AIX shared libraries.
21099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21101 # We preserve .a as extension for shared libraries through AIX4.2
21102 # and later when we are not doing run time linking.
21103 library_names_spec
='${libname}${release}.a $libname.a'
21104 soname_spec
='${libname}${release}${shared_ext}$major'
21106 shlibpath_var
=LIBPATH
21113 # Since July 2007 AmigaOS4 officially supports .so libraries.
21114 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21115 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21118 library_names_spec
='$libname.ixlibrary $libname.a'
21119 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21120 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'
21126 library_names_spec
='${libname}${shared_ext}'
21127 dynamic_linker
="$host_os ld.so"
21128 shlibpath_var
=LIBRARY_PATH
21134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21135 soname_spec
='${libname}${release}${shared_ext}$major'
21136 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21137 shlibpath_var
=LD_LIBRARY_PATH
21138 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21139 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21140 # the default ld.so.conf also contains /usr/contrib/lib and
21141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21142 # libtool to hard-code these into programs
21145 cygwin
* | mingw
* | pw32
* | cegcc
*)
21146 version_type
=windows
21151 case $GCC,$host_os in
21152 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21153 library_names_spec
='$libname.dll.a'
21154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21155 postinstall_cmds
='base_file=`basename \${file}`~
21156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21157 dldir=$destdir/`dirname \$dlpath`~
21158 test -d \$dldir || mkdir -p \$dldir~
21159 $install_prog $dir/$dlname \$dldir/$dlname~
21160 chmod a+x \$dldir/$dlname~
21161 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21162 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21164 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21165 dlpath=$dir/\$dldll~
21167 shlibpath_overrides_runpath
=yes
21171 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21172 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21176 # MinGW DLLs use traditional 'lib' prefix
21177 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21180 # pw32 DLLs use 'pw' prefix rather than 'lib'
21181 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21187 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21190 dynamic_linker
='Win32 ld.exe'
21191 # FIXME: first we should search . and the directory the executable is in
21195 darwin
* | rhapsody
*)
21196 dynamic_linker
="$host_os dyld"
21197 version_type
=darwin
21200 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21201 soname_spec
='${libname}${release}${major}$shared_ext'
21202 shlibpath_overrides_runpath
=yes
21203 shlibpath_var
=DYLD_LIBRARY_PATH
21204 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21206 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21214 soname_spec
='${libname}${release}${shared_ext}$major'
21215 shlibpath_var
=LD_LIBRARY_PATH
21218 freebsd
* | dragonfly
*)
21219 # DragonFly does not have aout. When/if they implement a new
21220 # versioning mechanism, adjust this.
21221 if test -x /usr
/bin
/objformat
; then
21222 objformat
=`/usr/bin/objformat`
21225 freebsd
[23].
*) objformat
=aout
;;
21226 *) objformat
=elf
;;
21229 version_type
=freebsd-
$objformat
21230 case $version_type in
21232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21237 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21241 shlibpath_var
=LD_LIBRARY_PATH
21244 shlibpath_overrides_runpath
=yes
21246 freebsd3.
[01]* | freebsdelf3.
[01]*)
21247 shlibpath_overrides_runpath
=yes
21248 hardcode_into_libs
=yes
21250 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21251 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21252 shlibpath_overrides_runpath
=no
21253 hardcode_into_libs
=yes
21255 *) # from 4.6 on, and DragonFly
21256 shlibpath_overrides_runpath
=yes
21257 hardcode_into_libs
=yes
21266 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21267 soname_spec
='${libname}${release}${shared_ext}$major'
21268 shlibpath_var
=LD_LIBRARY_PATH
21269 hardcode_into_libs
=yes
21276 dynamic_linker
="$host_os runtime_loader"
21277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21278 soname_spec
='${libname}${release}${shared_ext}$major'
21279 shlibpath_var
=LIBRARY_PATH
21280 shlibpath_overrides_runpath
=yes
21281 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21282 hardcode_into_libs
=yes
21285 hpux9
* | hpux10
* | hpux11
*)
21286 # Give a soname corresponding to the major version so that dld.sl refuses to
21287 # link against other versions.
21294 hardcode_into_libs
=yes
21295 dynamic_linker
="$host_os dld.so"
21296 shlibpath_var
=LD_LIBRARY_PATH
21297 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21299 soname_spec
='${libname}${release}${shared_ext}$major'
21300 if test "X$HPUX_IA64_MODE" = X32
; then
21301 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21303 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21305 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21309 hardcode_into_libs
=yes
21310 dynamic_linker
="$host_os dld.sl"
21311 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21312 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21314 soname_spec
='${libname}${release}${shared_ext}$major'
21315 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21316 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21320 dynamic_linker
="$host_os dld.sl"
21321 shlibpath_var
=SHLIB_PATH
21322 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21324 soname_spec
='${libname}${release}${shared_ext}$major'
21327 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21328 postinstall_cmds
='chmod 555 $lib'
21329 # or fails outright, so override atomically:
21330 install_override_mode
=555
21337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21338 soname_spec
='${libname}${release}${shared_ext}$major'
21339 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21340 shlibpath_var
=LD_LIBRARY_PATH
21341 shlibpath_overrides_runpath
=no
21342 hardcode_into_libs
=yes
21345 irix5
* | irix6
* | nonstopux
*)
21347 nonstopux
*) version_type
=nonstopux
;;
21349 if test "$lt_cv_prog_gnu_ld" = yes; then
21357 soname_spec
='${libname}${release}${shared_ext}$major'
21358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21360 irix5
* | nonstopux
*)
21361 libsuff
= shlibsuff
=
21364 case $LD in # libtool.m4 will add one of these switches to LD
21365 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21366 libsuff
= shlibsuff
= libmagic
=32-bit;;
21367 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21368 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21369 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21370 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21371 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21375 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21376 shlibpath_overrides_runpath
=no
21377 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21378 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21379 hardcode_into_libs
=yes
21382 # No shared lib support for Linux oldld, aout, or coff.
21383 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21387 # This must be Linux ELF.
21388 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21393 soname_spec
='${libname}${release}${shared_ext}$major'
21394 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21395 shlibpath_var
=LD_LIBRARY_PATH
21396 shlibpath_overrides_runpath
=no
21398 # Some binutils ld are patched to set DT_RUNPATH
21399 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21400 $as_echo_n "(cached) " >&6
21402 lt_cv_shlibpath_overrides_runpath
=no
21403 save_LDFLAGS
=$LDFLAGS
21404 save_libdir
=$libdir
21405 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21406 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h. */
21418 if ac_fn_cxx_try_link
"$LINENO"; then :
21419 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21420 lt_cv_shlibpath_overrides_runpath
=yes
21423 rm -f core conftest.err conftest.
$ac_objext \
21424 conftest
$ac_exeext conftest.
$ac_ext
21425 LDFLAGS
=$save_LDFLAGS
21426 libdir
=$save_libdir
21430 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21432 # This implies no fast_install, which is unacceptable.
21433 # Some rework will be needed to allow for fast_install
21434 # before this can be enabled.
21435 hardcode_into_libs
=yes
21437 # Append ld.so.conf contents to the search path
21438 if test -f /etc
/ld.so.conf
; then
21439 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' ' '`
21440 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21443 # We used to test for /lib/ld.so.1 and disable shared libraries on
21444 # powerpc, because MkLinux only supported shared libraries with the
21445 # GNU dynamic linker. Since this was broken with cross compilers,
21446 # most powerpc-linux boxes support dynamic linking these days and
21447 # people can always --disable-shared, the test was removed, and we
21448 # assume the GNU/Linux dynamic linker is in use.
21449 dynamic_linker
='GNU/Linux ld.so'
21456 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21458 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21459 dynamic_linker
='NetBSD (a.out) ld.so'
21461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21462 soname_spec
='${libname}${release}${shared_ext}$major'
21463 dynamic_linker
='NetBSD ld.elf_so'
21465 shlibpath_var
=LD_LIBRARY_PATH
21466 shlibpath_overrides_runpath
=yes
21467 hardcode_into_libs
=yes
21472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21473 shlibpath_var
=LD_LIBRARY_PATH
21474 shlibpath_overrides_runpath
=yes
21481 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21482 soname_spec
='${libname}${release}${shared_ext}$major'
21483 shlibpath_var
=LD_LIBRARY_PATH
21484 shlibpath_overrides_runpath
=no
21485 hardcode_into_libs
=yes
21486 dynamic_linker
='ldqnx.so'
21491 sys_lib_dlsearch_path_spec
="/usr/lib"
21493 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21495 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21496 *) need_version
=no
;;
21498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21499 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21500 shlibpath_var
=LD_LIBRARY_PATH
21501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21503 openbsd2.
[89] | openbsd2.
[89].
*)
21504 shlibpath_overrides_runpath
=no
21507 shlibpath_overrides_runpath
=yes
21511 shlibpath_overrides_runpath
=yes
21516 libname_spec
='$name'
21519 library_names_spec
='$libname${shared_ext} $libname.a'
21520 dynamic_linker
='OS/2 ld.exe'
21521 shlibpath_var
=LIBPATH
21524 osf3
* | osf4
* | osf5
*)
21528 soname_spec
='${libname}${release}${shared_ext}$major'
21529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21530 shlibpath_var
=LD_LIBRARY_PATH
21531 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21532 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21544 soname_spec
='${libname}${release}${shared_ext}$major'
21545 shlibpath_var
=LD_LIBRARY_PATH
21546 shlibpath_overrides_runpath
=yes
21547 hardcode_into_libs
=yes
21548 # ldd complains unless libraries are executable
21549 postinstall_cmds
='chmod +x $lib'
21554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21555 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21556 shlibpath_var
=LD_LIBRARY_PATH
21557 shlibpath_overrides_runpath
=yes
21558 if test "$with_gnu_ld" = yes; then
21566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21567 soname_spec
='${libname}${release}${shared_ext}$major'
21568 shlibpath_var
=LD_LIBRARY_PATH
21569 case $host_vendor in
21571 shlibpath_overrides_runpath
=no
21573 runpath_var
=LD_RUN_PATH
21581 shlibpath_overrides_runpath
=no
21582 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21588 if test -d /usr
/nec
;then
21590 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21591 soname_spec
='$libname${shared_ext}.$major'
21592 shlibpath_var
=LD_LIBRARY_PATH
21596 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21597 version_type
=freebsd-elf
21600 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21601 soname_spec
='${libname}${release}${shared_ext}$major'
21602 shlibpath_var
=LD_LIBRARY_PATH
21603 shlibpath_overrides_runpath
=yes
21604 hardcode_into_libs
=yes
21605 if test "$with_gnu_ld" = yes; then
21606 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21608 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21611 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21615 sys_lib_dlsearch_path_spec
='/usr/lib'
21619 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21624 shlibpath_var
=LD_LIBRARY_PATH
21625 shlibpath_overrides_runpath
=no
21626 hardcode_into_libs
=yes
21631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21632 soname_spec
='${libname}${release}${shared_ext}$major'
21633 shlibpath_var
=LD_LIBRARY_PATH
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21641 $as_echo "$dynamic_linker" >&6; }
21642 test "$dynamic_linker" = no
&& can_build_shared
=no
21644 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21645 if test "$GCC" = yes; then
21646 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21649 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21650 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21652 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21653 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21695 hardcode_action_CXX
=
21696 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21697 test -n "$runpath_var_CXX" ||
21698 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21700 # We can hardcode non-existent directories.
21701 if test "$hardcode_direct_CXX" != no
&&
21702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21703 # have to relink, otherwise we might link with an installed library
21704 # when we should be linking with a yet-to-be-installed one
21705 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21706 test "$hardcode_minus_L_CXX" != no
; then
21707 # Linking always hardcodes the temporary library directory.
21708 hardcode_action_CXX
=relink
21710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21711 hardcode_action_CXX
=immediate
21714 # We cannot hardcode anything, or else we can only hardcode existing
21716 hardcode_action_CXX
=unsupported
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21719 $as_echo "$hardcode_action_CXX" >&6; }
21721 if test "$hardcode_action_CXX" = relink ||
21722 test "$inherit_rpath_CXX" = yes; then
21723 # Fast installation is not supported
21724 enable_fast_install
=no
21725 elif test "$shlibpath_overrides_runpath" = yes ||
21726 test "$enable_shared" = no
; then
21727 # Fast installation is not necessary
21728 enable_fast_install
=needless
21737 fi # test -n "$compiler"
21743 with_gnu_ld
=$lt_save_with_gnu_ld
21744 lt_cv_path_LDCXX
=$lt_cv_path_LD
21745 lt_cv_path_LD
=$lt_save_path_LD
21746 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21747 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21748 fi # test "$_lt_caught_CXX_error" != yes
21751 ac_cpp
='$CXXCPP $CPPFLAGS'
21752 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21753 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21754 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21771 # Only expand once:
21777 # Identify the assembler which will work hand-in-glove with the newly
21778 # built GCC, so that we can examine its features. This is the assembler
21779 # which will be driven by the driver program.
21781 # If build != host, and we aren't building gas in-tree, we identify a
21782 # build->target assembler and hope that it will have the same features
21783 # as the host->target assembler we'll be using.
21784 gcc_cv_gas_major_version
=
21785 gcc_cv_gas_minor_version
=
21786 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21788 if test "${gcc_cv_as+set}" = set; then :
21792 if test -x "$DEFAULT_ASSEMBLER"; then
21793 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21794 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21795 && test -f ..
/gas
/Makefile \
21796 && test x
$build = x
$host; then
21797 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21798 elif test -x as
$build_exeext; then
21799 # Build using assembler in the current directory.
21800 gcc_cv_as
=.
/as
$build_exeext
21801 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21802 gcc_cv_as
="$AS_FOR_TARGET"
21804 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21805 set dummy
$AS_FOR_TARGET; ac_word
=$2
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21807 $as_echo_n "checking for $ac_word... " >&6; }
21808 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21809 $as_echo_n "(cached) " >&6
21813 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21817 for as_dir
in $PATH
21820 test -z "$as_dir" && as_dir
=.
21821 for ac_exec_ext
in '' $ac_executable_extensions; do
21822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21823 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21834 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21835 if test -n "$gcc_cv_as"; then
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21837 $as_echo "$gcc_cv_as" >&6; }
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21840 $as_echo "no" >&6; }
21847 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21849 case "$ORIGINAL_AS_FOR_TARGET" in
21850 .
/as | .
/as
$build_exeext) ;;
21851 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21856 $as_echo_n "checking what assembler to use... " >&6; }
21857 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21858 # Single tree build which includes gas. We want to prefer it
21859 # over whatever linker top-level may have detected, since
21860 # we'll use what we're building after installation anyway.
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21862 $as_echo "newly built gas" >&6; }
21864 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21865 for f
in $gcc_cv_as_bfd_srcdir/configure \
21866 $gcc_cv_as_gas_srcdir/configure \
21867 $gcc_cv_as_gas_srcdir/configure.ac \
21868 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21869 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21870 if test x
$gcc_cv_gas_version != x
; then
21874 case $gcc_cv_gas_version in
21876 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21878 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21879 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21880 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21881 case $gcc_cv_gas_patch_version in
21882 "") gcc_cv_gas_patch_version
="0" ;;
21884 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21885 + $gcc_cv_gas_minor_version \) \* 1000 \
21886 + $gcc_cv_gas_patch_version`
21888 in_tree_gas_is_elf
=no
21889 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21890 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21891 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21893 in_tree_gas_is_elf
=yes
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21897 $as_echo "$gcc_cv_as" >&6; }
21902 # Check whether --enable-ld was given.
21903 if test "${enable_ld+set}" = set; then :
21904 enableval
=$enable_ld; case "${enableval}" in
21912 install_gold_as_default
=no
21913 # Check whether --enable-gold was given.
21914 if test "${enable_gold+set}" = set; then :
21915 enableval
=$enable_gold; case "${enableval}" in
21917 install_gold_as_default
=yes
21920 if test x
${default_ld} != x
; then
21921 install_gold_as_default
=yes
21927 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21933 # Identify the linker which will work hand-in-glove with the newly
21934 # built GCC, so that we can examine its features. This is the linker
21935 # which will be driven by the driver program.
21937 # If build != host, and we aren't building gas in-tree, we identify a
21938 # build->target linker and hope that it will have the same features
21939 # as the host->target linker we'll be using.
21940 gcc_cv_gld_major_version
=
21941 gcc_cv_gld_minor_version
=
21942 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21943 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21944 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21946 if test "${gcc_cv_ld+set}" = set; then :
21950 if test -x "$DEFAULT_LINKER"; then
21951 gcc_cv_ld
="$DEFAULT_LINKER"
21952 elif test $install_gold_as_default = yes \
21953 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21954 && test -f ..
/gold
/Makefile \
21955 && test x
$build = x
$host; then
21956 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21957 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21958 && test -f ..
/ld
/Makefile \
21959 && test x
$build = x
$host; then
21960 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21961 elif test -x collect-ld
$build_exeext; then
21962 # Build using linker in the current directory.
21963 gcc_cv_ld
=.
/collect-ld
$build_exeext
21964 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21965 gcc_cv_ld
="$LD_FOR_TARGET"
21967 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21968 set dummy
$LD_FOR_TARGET; ac_word
=$2
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21970 $as_echo_n "checking for $ac_word... " >&6; }
21971 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21972 $as_echo_n "(cached) " >&6
21976 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21980 for as_dir
in $PATH
21983 test -z "$as_dir" && as_dir
=.
21984 for ac_exec_ext
in '' $ac_executable_extensions; do
21985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21986 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21997 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21998 if test -n "$gcc_cv_ld"; then
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22000 $as_echo "$gcc_cv_ld" >&6; }
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22003 $as_echo "no" >&6; }
22010 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22011 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22012 # if the PLUGIN_LD is set ld-new, just have it as ld
22013 # as that is the installed named.
22014 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22015 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22016 PLUGIN_LD_SUFFIX
=ld
22019 # Check whether --with-plugin-ld was given.
22020 if test "${with_plugin_ld+set}" = set; then :
22021 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22022 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22023 PLUGIN_LD_SUFFIX
="$withval"
22029 cat >>confdefs.h
<<_ACEOF
22030 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22034 # Check to see if we are using gold instead of ld
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22036 $as_echo_n "checking whether we are using gold... " >&6; }
22038 if test x
$gcc_cv_ld != x
; then
22039 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22040 |
grep "GNU gold" > /dev
/null
; then
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22045 $as_echo "$ld_is_gold" >&6; }
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22048 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22049 # Check to see if default ld is not gold, but gold is
22050 # available and has support for split stack. If gcc was configured
22051 # with gold then no checking is done.
22053 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22055 # For platforms other than powerpc64*, enable as appropriate.
22057 gold_non_default
=no
22058 ld_gold
=`which ${gcc_cv_ld}.gold`
22059 # Make sure this gold has minimal split stack support
22060 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22061 ld_vers
=`$ld_gold --version | sed 1q`
22062 gold_vers
=`echo $ld_vers | sed -n \
22063 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22065 # check that the gold version contains the complete split stack support
22066 # on powerpc64 big and little endian
22068 case "$gold_vers" in
22069 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22071 *) gold_non_default
=no
22077 if test $gold_non_default = yes; then
22079 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22084 $as_echo "$gold_non_default" >&6; }
22086 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22088 case "$ORIGINAL_LD_FOR_TARGET" in
22089 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22090 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22095 $as_echo_n "checking what linker to use... " >&6; }
22096 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22097 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22098 # Single tree build which includes ld. We want to prefer it
22099 # over whatever linker top-level may have detected, since
22100 # we'll use what we're building after installation anyway.
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22102 $as_echo "newly built ld" >&6; }
22104 in_tree_ld_is_elf
=no
22105 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22106 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22107 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22108 in_tree_ld_is_elf
=yes
22109 elif test "$ld_is_gold" = yes; then
22110 in_tree_ld_is_elf
=yes
22112 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.ac
$gcc_cv_ld_gld_srcdir/Makefile.
in
22114 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22115 if test x
$gcc_cv_gld_version != x
; then
22119 case $gcc_cv_gld_version in
22121 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22123 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22124 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22125 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22126 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22129 $as_echo "$gcc_cv_ld" >&6; }
22131 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22132 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22133 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22139 # Figure out what nm we will be using.
22140 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22141 if test "${gcc_cv_nm+set}" = set; then :
22145 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22146 && test -f ..
/binutils
/Makefile \
22147 && test x
$build = x
$host; then
22148 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22149 elif test -x nm
$build_exeext; then
22150 gcc_cv_nm
=.
/nm
$build_exeext
22151 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22152 gcc_cv_nm
="$NM_FOR_TARGET"
22154 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22155 set dummy
$NM_FOR_TARGET; ac_word
=$2
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22157 $as_echo_n "checking for $ac_word... " >&6; }
22158 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22159 $as_echo_n "(cached) " >&6
22163 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22167 for as_dir
in $PATH
22170 test -z "$as_dir" && as_dir
=.
22171 for ac_exec_ext
in '' $ac_executable_extensions; do
22172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22173 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22184 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22185 if test -n "$gcc_cv_nm"; then
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22187 $as_echo "$gcc_cv_nm" >&6; }
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22190 $as_echo "no" >&6; }
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22198 $as_echo_n "checking what nm to use... " >&6; }
22199 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22200 # Single tree build which includes binutils.
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22202 $as_echo "newly built nm" >&6; }
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22206 $as_echo "$gcc_cv_nm" >&6; }
22210 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22212 case "$ORIGINAL_NM_FOR_TARGET" in
22213 .
/nm | .
/nm
$build_exeext) ;;
22214 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22219 # Figure out what objdump we will be using.
22220 if test "${gcc_cv_objdump+set}" = set; then :
22224 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22225 && test -f ..
/binutils
/Makefile \
22226 && test x
$build = x
$host; then
22227 # Single tree build which includes binutils.
22228 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22229 elif test -x objdump
$build_exeext; then
22230 gcc_cv_objdump
=.
/objdump
$build_exeext
22231 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22232 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22234 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22235 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22237 $as_echo_n "checking for $ac_word... " >&6; }
22238 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22239 $as_echo_n "(cached) " >&6
22241 case $gcc_cv_objdump in
22243 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22247 for as_dir
in $PATH
22250 test -z "$as_dir" && as_dir
=.
22251 for ac_exec_ext
in '' $ac_executable_extensions; do
22252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22253 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22264 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22265 if test -n "$gcc_cv_objdump"; then
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22267 $as_echo "$gcc_cv_objdump" >&6; }
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22270 $as_echo "no" >&6; }
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22278 $as_echo_n "checking what objdump to use... " >&6; }
22279 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22280 # Single tree build which includes binutils.
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22282 $as_echo "newly built objdump" >&6; }
22283 elif test x
$gcc_cv_objdump = x
; then
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22285 $as_echo "not found" >&6; }
22287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22288 $as_echo "$gcc_cv_objdump" >&6; }
22291 # Figure out what readelf we will be using.
22292 if test "${gcc_cv_readelf+set}" = set; then :
22296 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22297 && test -f ..
/binutils
/Makefile \
22298 && test x
$build = x
$host; then
22299 # Single tree build which includes binutils.
22300 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22301 elif test -x readelf
$build_exeext; then
22302 gcc_cv_readelf
=.
/readelf
$build_exeext
22303 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22304 gcc_cv_readelf
="$READELF_FOR_TARGET"
22306 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22307 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22309 $as_echo_n "checking for $ac_word... " >&6; }
22310 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22311 $as_echo_n "(cached) " >&6
22313 case $gcc_cv_readelf in
22315 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22319 for as_dir
in $PATH
22322 test -z "$as_dir" && as_dir
=.
22323 for ac_exec_ext
in '' $ac_executable_extensions; do
22324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22325 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22336 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22337 if test -n "$gcc_cv_readelf"; then
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22339 $as_echo "$gcc_cv_readelf" >&6; }
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22342 $as_echo "no" >&6; }
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22350 $as_echo_n "checking what readelf to use... " >&6; }
22351 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22352 # Single tree build which includes binutils.
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22354 $as_echo "newly built readelf" >&6; }
22355 elif test x
$gcc_cv_readelf = x
; then
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22357 $as_echo "not found" >&6; }
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22360 $as_echo "$gcc_cv_readelf" >&6; }
22363 # Figure out what assembler alignment features are present.
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22365 $as_echo_n "checking assembler flags... " >&6; }
22366 if test "${gcc_cv_as_flags+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22370 i
[34567]86-*-linux*)
22371 gcc_cv_as_flags
=--32
22373 x86_64-
*-linux-gnux32)
22374 gcc_cv_as_flags
=--x32
22377 gcc_cv_as_flags
=--64
22379 powerpc
*-*-darwin*)
22380 gcc_cv_as_flags
="-arch ppc"
22383 gcc_cv_as_flags
=" "
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22388 $as_echo "$gcc_cv_as_flags" >&6; }
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22391 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22392 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22395 gcc_cv_as_balign_and_p2align
=no
22396 if test $in_tree_gas = yes; then
22397 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22398 then gcc_cv_as_balign_and_p2align
=yes
22400 elif test x
$gcc_cv_as != x
; then
22401 $as_echo '.balign 4
22402 .p2align 2' > conftest.s
22403 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22405 (eval $ac_try) 2>&5
22407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22408 test $ac_status = 0; }; }
22410 gcc_cv_as_balign_and_p2align
=yes
22412 echo "configure: failed program was" >&5
22415 rm -f conftest.o conftest.s
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22419 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22420 if test $gcc_cv_as_balign_and_p2align = yes; then
22422 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22428 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22429 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22430 $as_echo_n "(cached) " >&6
22432 gcc_cv_as_max_skip_p2align
=no
22433 if test $in_tree_gas = yes; then
22434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22435 then gcc_cv_as_max_skip_p2align
=yes
22437 elif test x
$gcc_cv_as != x
; then
22438 $as_echo '.p2align 4,,7' > conftest.s
22439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22441 (eval $ac_try) 2>&5
22443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22444 test $ac_status = 0; }; }
22446 gcc_cv_as_max_skip_p2align
=yes
22448 echo "configure: failed program was" >&5
22451 rm -f conftest.o conftest.s
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22455 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22456 if test $gcc_cv_as_max_skip_p2align = yes; then
22458 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22464 $as_echo_n "checking assembler for .literal16... " >&6; }
22465 if test "${gcc_cv_as_literal16+set}" = set; then :
22466 $as_echo_n "(cached) " >&6
22468 gcc_cv_as_literal16
=no
22469 if test $in_tree_gas = yes; then
22470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22471 then gcc_cv_as_literal16
=yes
22473 elif test x
$gcc_cv_as != x
; then
22474 $as_echo '.literal16' > conftest.s
22475 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22477 (eval $ac_try) 2>&5
22479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22480 test $ac_status = 0; }; }
22482 gcc_cv_as_literal16
=yes
22484 echo "configure: failed program was" >&5
22487 rm -f conftest.o conftest.s
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22491 $as_echo "$gcc_cv_as_literal16" >&6; }
22492 if test $gcc_cv_as_literal16 = yes; then
22494 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22500 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22501 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22502 $as_echo_n "(cached) " >&6
22504 gcc_cv_as_subsection_m1
=no
22505 if test $in_tree_gas = yes; then
22506 if test $in_tree_gas_is_elf = yes \
22507 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22508 then gcc_cv_as_subsection_m1
=yes
22510 elif test x
$gcc_cv_as != x
; then
22511 $as_echo 'conftest_label1: .word 0
22513 conftest_label2: .word 0
22514 .previous' > conftest.s
22515 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22517 (eval $ac_try) 2>&5
22519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22520 test $ac_status = 0; }; }
22522 if test x
$gcc_cv_nm != x
; then
22523 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22524 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22525 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22527 else gcc_cv_as_subsection_m1
=yes
22529 rm -f conftest.nm1 conftest.nm2
22532 echo "configure: failed program was" >&5
22535 rm -f conftest.o conftest.s
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22539 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22540 if test $gcc_cv_as_subsection_m1 = yes; then
22542 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22548 $as_echo_n "checking assembler for .weak... " >&6; }
22549 if test "${gcc_cv_as_weak+set}" = set; then :
22550 $as_echo_n "(cached) " >&6
22553 if test $in_tree_gas = yes; then
22554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22555 then gcc_cv_as_weak
=yes
22557 elif test x
$gcc_cv_as != x
; then
22558 $as_echo ' .weak foobar' > conftest.s
22559 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22561 (eval $ac_try) 2>&5
22563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22564 test $ac_status = 0; }; }
22568 echo "configure: failed program was" >&5
22571 rm -f conftest.o conftest.s
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22575 $as_echo "$gcc_cv_as_weak" >&6; }
22576 if test $gcc_cv_as_weak = yes; then
22578 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22584 $as_echo_n "checking assembler for .weakref... " >&6; }
22585 if test "${gcc_cv_as_weakref+set}" = set; then :
22586 $as_echo_n "(cached) " >&6
22588 gcc_cv_as_weakref
=no
22589 if test $in_tree_gas = yes; then
22590 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22591 then gcc_cv_as_weakref
=yes
22593 elif test x
$gcc_cv_as != x
; then
22594 $as_echo ' .weakref foobar, barfnot' > conftest.s
22595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22597 (eval $ac_try) 2>&5
22599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22600 test $ac_status = 0; }; }
22602 gcc_cv_as_weakref
=yes
22604 echo "configure: failed program was" >&5
22607 rm -f conftest.o conftest.s
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22611 $as_echo "$gcc_cv_as_weakref" >&6; }
22612 if test $gcc_cv_as_weakref = yes; then
22614 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22620 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22621 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22622 $as_echo_n "(cached) " >&6
22624 gcc_cv_as_nsubspa_comdat
=no
22625 if test $in_tree_gas = yes; then
22626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22627 then gcc_cv_as_nsubspa_comdat
=yes
22629 elif test x
$gcc_cv_as != x
; then
22630 $as_echo ' .SPACE $TEXT$
22631 .NSUBSPA $CODE$,COMDAT' > conftest.s
22632 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22634 (eval $ac_try) 2>&5
22636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22637 test $ac_status = 0; }; }
22639 gcc_cv_as_nsubspa_comdat
=yes
22641 echo "configure: failed program was" >&5
22644 rm -f conftest.o conftest.s
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22648 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22649 if test $gcc_cv_as_nsubspa_comdat = yes; then
22651 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22656 # .hidden needs to be supported in both the assembler and the linker,
22657 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22658 # This is irritatingly difficult to feature test for; we have to check the
22659 # date string after the version number. If we've got an in-tree
22660 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22662 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22663 case "${target}" in
22665 conftest_s
=' .globl foobar,hidden'
22668 conftest_s
=' .hidden foobar
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22673 $as_echo_n "checking assembler for .hidden... " >&6; }
22674 if test "${gcc_cv_as_hidden+set}" = set; then :
22675 $as_echo_n "(cached) " >&6
22677 gcc_cv_as_hidden
=no
22678 if test $in_tree_gas = yes; then
22679 if test $in_tree_gas_is_elf = yes \
22680 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22681 then gcc_cv_as_hidden
=yes
22683 elif test x
$gcc_cv_as != x
; then
22684 $as_echo "$conftest_s" > conftest.s
22685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22687 (eval $ac_try) 2>&5
22689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22690 test $ac_status = 0; }; }
22692 gcc_cv_as_hidden
=yes
22694 echo "configure: failed program was" >&5
22697 rm -f conftest.o conftest.s
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22701 $as_echo "$gcc_cv_as_hidden" >&6; }
22704 case "${target}" in
22706 # Darwin as has some visibility support, though with a different syntax.
22707 gcc_cv_as_hidden
=yes
22711 # gnu_indirect_function type is an extension proposed at
22712 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22713 # selection of function implementation
22714 # Check whether --enable-gnu-indirect-function was given.
22715 if test "${enable_gnu_indirect_function+set}" = set; then :
22716 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22718 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22719 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22722 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22726 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22728 cat >>confdefs.h
<<_ACEOF
22729 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22734 if test $in_tree_ld != yes ; then
22735 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22736 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22737 if test x
"$ld_is_gold" = xyes
; then
22738 # GNU gold --version looks like this:
22740 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22742 # We extract the binutils version which is more familiar and specific
22743 # than the gold version.
22744 ld_vers
=`echo $ld_ver | sed -n \
22745 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22747 # GNU ld --version looks like this:
22749 # GNU ld (GNU Binutils) 2.21.51.20110225
22750 ld_vers
=`echo $ld_ver | sed -n \
22751 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22753 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'`
22754 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22755 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22756 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22758 case "${target}" in
22760 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22763 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22764 # /usr/ccs/bin/ld has been configured.
22765 ld_ver
=`$gcc_cv_ld -V 2>&1`
22766 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22767 ld_vers
=`echo $ld_ver | sed -n \
22768 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22769 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22770 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22778 $as_echo_n "checking linker for .hidden support... " >&6; }
22779 if test "${gcc_cv_ld_hidden+set}" = set; then :
22780 $as_echo_n "(cached) " >&6
22782 if test $in_tree_ld = yes ; then
22783 gcc_cv_ld_hidden
=no
22784 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 \
22785 && test $in_tree_ld_is_elf = yes; then
22786 gcc_cv_ld_hidden
=yes
22789 gcc_cv_ld_hidden
=yes
22790 if test x
"$ld_is_gold" = xyes
; then
22792 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22793 case "${target}" in
22794 mmix-knuth-mmixware
)
22795 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22796 gcc_cv_ld_hidden
=no
22799 if test 0"$ld_date" -lt 20020404; then
22800 if test -n "$ld_date"; then
22801 # If there was date string, but was earlier than 2002-04-04, fail
22802 gcc_cv_ld_hidden
=no
22803 elif test -z "$ld_vers"; then
22804 # If there was no date string nor ld version number, something is wrong
22805 gcc_cv_ld_hidden
=no
22807 test -z "$ld_vers_patch" && ld_vers_patch
=0
22808 if test "$ld_vers_major" -lt 2; then
22809 gcc_cv_ld_hidden
=no
22810 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22811 gcc_cv_ld_hidden
="no"
22812 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22813 gcc_cv_ld_hidden
=no
22818 case "${target}" in
22820 gcc_cv_ld_hidden
=yes
22823 # Darwin ld has some visibility support.
22824 gcc_cv_ld_hidden
=yes
22826 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22827 gcc_cv_ld_hidden
=yes
22829 *-*-solaris2.1
[0-9]*)
22830 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22831 # .symbolic was only added in Solaris 9 12/02.
22832 gcc_cv_ld_hidden
=yes
22835 gcc_cv_ld_hidden
=no
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22842 $as_echo "$gcc_cv_ld_hidden" >&6; }
22843 libgcc_visibility
=no
22846 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22847 libgcc_visibility
=yes
22849 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22854 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22855 gcc_cv_ld_ro_rw_mix
=unknown
22856 if test $in_tree_ld = yes ; then
22857 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 \
22858 && test $in_tree_ld_is_elf = yes; then
22859 gcc_cv_ld_ro_rw_mix
=read-write
22861 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22862 echo '.section myfoosect, "a"' > conftest1.s
22863 echo '.section myfoosect, "aw"' > conftest2.s
22864 echo '.byte 1' >> conftest2.s
22865 echo '.section myfoosect, "a"' > conftest3.s
22866 echo '.byte 0' >> conftest3.s
22867 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22868 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22869 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22870 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22871 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22872 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22873 | sed -e '/myfoosect/!d' -e N`
22874 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22875 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22876 gcc_cv_ld_ro_rw_mix
=read-only
22878 gcc_cv_ld_ro_rw_mix
=read-write
22882 rm -f conftest.
* conftest
[123].
*
22884 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22886 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22890 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22892 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22893 case "${target}" in
22896 # Solaris 2 ld -V output looks like this for a regular version:
22898 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22900 # but test versions add stuff at the end:
22902 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22904 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22905 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22906 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22907 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22908 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22909 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22915 # Check whether --enable-initfini-array was given.
22916 if test "${enable_initfini_array+set}" = set; then :
22917 enableval
=$enable_initfini_array;
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22921 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22922 if test "${gcc_cv_initfini_array+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22925 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22926 case "${target}" in
22928 if test "$cross_compiling" = yes; then :
22929 gcc_cv_initfini_array
=no
22931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22932 /* end confdefs.h. */
22935 #error Not an ELF OS
22937 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22938 if it can be used. */
22940 int main (void) { return x; }
22941 int foo (void) { x = 0; }
22942 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22945 if ac_fn_cxx_try_run
"$LINENO"; then :
22946 gcc_cv_initfini_array
=yes
22948 gcc_cv_initfini_array
=no
22950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22951 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22955 gcc_cv_initfini_array
=no
22956 if test $in_tree_ld = yes ; then
22957 if test "$gcc_cv_gld_major_version" -eq 2 \
22958 -a "$gcc_cv_gld_minor_version" -ge 22 \
22959 -o "$gcc_cv_gld_major_version" -gt 2 \
22960 && test $in_tree_ld_is_elf = yes; then
22961 gcc_cv_initfini_array
=yes
22963 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22964 case $target:$gas in
22967 sh_type
='%progbits'
22969 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
22971 sh_type
='@progbits'
22973 sparc
*-*-solaris2*:no
)
22975 sh_type
='#progbits'
22979 case "$target:$gnu_ld" in
22981 cat > conftest.s
<<EOF
22982 .section .dtors,$sh_flags,$sh_type
22984 .byte 'A', 'A', 'A', 'A'
22985 .section .ctors,$sh_flags,$sh_type
22987 .byte 'B', 'B', 'B', 'B'
22988 .section .fini_array.65530,$sh_flags,$sh_type
22990 .byte 'C', 'C', 'C', 'C'
22991 .section .init_array.65530,$sh_flags,$sh_type
22993 .byte 'D', 'D', 'D', 'D'
22994 .section .dtors.64528,$sh_flags,$sh_type
22996 .byte 'E', 'E', 'E', 'E'
22997 .section .ctors.64528,$sh_flags,$sh_type
22999 .byte 'F', 'F', 'F', 'F'
23000 .section .fini_array.01005,$sh_flags,$sh_type
23002 .byte 'G', 'G', 'G', 'G'
23003 .section .init_array.01005,$sh_flags,$sh_type
23005 .byte 'H', 'H', 'H', 'H'
23010 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23011 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23012 && $gcc_cv_objdump -s -j .init_array conftest \
23013 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23014 && $gcc_cv_objdump -s -j .fini_array conftest \
23015 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23016 gcc_cv_initfini_array
=yes
23020 # When Solaris ld added constructor priority support, it was
23021 # decided to only handle .init_array.N/.fini_array.N since
23022 # there was no need for backwards compatibility with
23023 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23024 # sections with correct execution order resp. to
23025 # .init_array/.fini_array, while gld merges them into
23026 # .init_array/.fini_array.
23027 cat > conftest.s
<<EOF
23028 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23030 .byte 'C', 'C', 'C', 'C'
23031 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23033 .byte 'D', 'D', 'D', 'D'
23034 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23036 .byte 'G', 'G', 'G', 'G'
23037 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23039 .byte 'H', 'H', 'H', 'H'
23044 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23045 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23046 && $gcc_cv_objdump -s -j .init_array conftest \
23047 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23048 && $gcc_cv_objdump -s -j .fini_array conftest \
23049 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23050 gcc_cv_initfini_array
=yes
23054 rm -f conftest conftest.
*
23056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23057 /* end confdefs.h. */
23060 # error Not an ELF OS
23062 #include <stdlib.h>
23063 #if defined __GLIBC_PREREQ
23064 # if __GLIBC_PREREQ (2, 4)
23066 # error GLIBC 2.4 required
23069 # if defined __sun__ && defined __svr4__
23070 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23072 # error The C library not known to support .init_array/.fini_array
23077 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23080 gcc_cv_initfini_array
=no
23082 rm -f conftest.err conftest.
$ac_ext;;
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23086 $as_echo_n "checking cross compile... guessing... " >&6; }
23087 gcc_cv_initfini_array
=no
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23091 $as_echo "$gcc_cv_initfini_array" >&6; }
23092 enable_initfini_array
=$gcc_cv_initfini_array
23097 cat >>confdefs.h
<<_ACEOF
23098 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23103 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23105 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23106 if test "${gcc_cv_as_leb128+set}" = set; then :
23107 $as_echo_n "(cached) " >&6
23109 gcc_cv_as_leb128
=no
23110 if test $in_tree_gas = yes; then
23111 if test $in_tree_gas_is_elf = yes \
23112 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23113 then gcc_cv_as_leb128
=yes
23115 elif test x
$gcc_cv_as != x
; then
23122 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23124 (eval $ac_try) 2>&5
23126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23127 test $ac_status = 0; }; }
23129 # GAS versions before 2.11 do not support uleb128,
23130 # despite appearing to.
23131 # ??? There exists an elf-specific test that will crash
23132 # the assembler. Perhaps it's better to figure out whether
23133 # arbitrary sections are supported and try the test.
23134 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23135 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23136 as_vers
=`echo $as_ver | sed -n \
23137 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23138 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23139 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23140 if test $as_major -eq 2 && test $as_minor -lt 11
23142 else gcc_cv_as_leb128
=yes
23146 echo "configure: failed program was" >&5
23149 rm -f conftest.o conftest.s
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23153 $as_echo "$gcc_cv_as_leb128" >&6; }
23154 if test $gcc_cv_as_leb128 = yes; then
23156 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23159 if test $gcc_cv_as_leb128 != yes; then
23161 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23165 # Check if we have assembler support for unwind directives.
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23167 $as_echo_n "checking assembler for cfi directives... " >&6; }
23168 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23169 $as_echo_n "(cached) " >&6
23171 gcc_cv_as_cfi_directive
=no
23172 if test x
$gcc_cv_as != x
; then
23178 .cfi_escape 1, 2, 3, 4, 5
23179 .cfi_endproc' > conftest.s
23180 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23182 (eval $ac_try) 2>&5
23184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23185 test $ac_status = 0; }; }
23189 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23190 # read-only and read-write sections, we need to make sure that the
23191 # assembler used emits read-write .eh_frame sections.
23192 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23193 if test "x$gcc_cv_objdump" != x
; then
23194 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23195 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23196 gcc_cv_as_cfi_directive
=no
23199 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23200 # On Solaris/x86, make sure that GCC and assembler agree on using
23201 # read-only .eh_frame sections for 64-bit.
23202 if test x
$gas = xyes
; then
23203 as_ix86_64_opt
="--64"
23205 as_ix86_64_opt
="-xarch=amd64"
23207 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23208 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23209 sed -e /.eh_frame
/!d
-e N | \
23210 grep READONLY
> /dev
/null
; then
23211 gcc_cv_as_cfi_directive
=yes
23213 gcc_cv_as_cfi_directive
=no
23217 gcc_cv_as_cfi_directive
=yes
23222 # no objdump, err on the side of caution
23223 gcc_cv_as_cfi_directive
=no
23226 gcc_cv_as_cfi_directive
=yes
23230 gcc_cv_as_cfi_directive
=yes
23234 echo "configure: failed program was" >&5
23237 rm -f conftest.o conftest.s
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23241 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23244 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23246 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23247 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23248 $as_echo_n "(cached) " >&6
23250 gcc_cv_as_cfi_advance_working
=no
23251 if test x
$gcc_cv_as != x
; then
23254 .cfi_adjust_cfa_offset 64
23256 .cfi_adjust_cfa_offset 128
23257 .cfi_endproc' > conftest.s
23258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23260 (eval $ac_try) 2>&5
23262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23263 test $ac_status = 0; }; }
23266 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23267 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23268 gcc_cv_as_cfi_advance_working
=yes
23272 echo "configure: failed program was" >&5
23275 rm -f conftest.o conftest.s
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23279 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23283 # no objdump, err on the side of caution
23284 gcc_cv_as_cfi_advance_working
=no
23288 cat >>confdefs.h
<<_ACEOF
23289 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23290 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23296 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23297 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23298 $as_echo_n "(cached) " >&6
23300 gcc_cv_as_cfi_personality_directive
=no
23301 if test x
$gcc_cv_as != x
; then
23304 .cfi_personality 0, symbol
23305 .cfi_endproc' > conftest.s
23306 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23308 (eval $ac_try) 2>&5
23310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23311 test $ac_status = 0; }; }
23313 gcc_cv_as_cfi_personality_directive
=yes
23315 echo "configure: failed program was" >&5
23318 rm -f conftest.o conftest.s
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23322 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23326 cat >>confdefs.h
<<_ACEOF
23327 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23328 then echo 1; else echo 0; fi`
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23333 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23334 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23335 $as_echo_n "(cached) " >&6
23337 gcc_cv_as_cfi_sections_directive
=no
23338 if test x
$gcc_cv_as != x
; then
23340 .cfi_sections .debug_frame, .eh_frame
23342 .cfi_endproc' > conftest.s
23343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23345 (eval $ac_try) 2>&5
23347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23348 test $ac_status = 0; }; }
23351 win32 | pe | cygwin
* | mingw32
*)
23352 # Need to check that we generated the correct relocation for the
23353 # .debug_frame section. This was fixed for binutils 2.21.
23354 gcc_cv_as_cfi_sections_directive
=no
23355 if test "x$gcc_cv_objdump" != x
; then
23356 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23357 grep secrel
> /dev
/null
; then
23358 gcc_cv_as_cfi_sections_directive
=yes
23363 gcc_cv_as_cfi_sections_directive
=yes
23367 echo "configure: failed program was" >&5
23370 rm -f conftest.o conftest.s
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23374 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23379 cat >>confdefs.h
<<_ACEOF
23380 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23381 then echo 1; else echo 0; fi`
23385 # GAS versions up to and including 2.11.0 may mis-optimize
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23388 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23389 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23390 $as_echo_n "(cached) " >&6
23392 gcc_cv_as_eh_frame
=no
23393 if test $in_tree_gas = yes; then
23394 if test $in_tree_gas_is_elf = yes \
23395 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23396 then gcc_cv_as_eh_frame
=yes
23398 elif test x
$gcc_cv_as != x
; then
23405 .section .eh_frame,"aw",@progbits
23407 .4byte .LECIE1-.LSCIE1
23421 .4byte .LEFDE1-.LASFDE1
23423 .4byte .LASFDE1-__FRAME_BEGIN__
23430 .LEFDE1:' > conftest.s
23431 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23433 (eval $ac_try) 2>&5
23435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23436 test $ac_status = 0; }; }
23438 cat > conftest.lit
<<EOF
23439 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23440 0010 01000000 12000000 18000000 00000000 ................
23441 0020 08000000 04080000 0044 .........D
23443 cat > conftest.big
<<EOF
23444 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23445 0010 00000001 00000012 00000018 00000000 ................
23446 0020 00000008 04000000 0844 .........D
23448 # If the assembler didn't choke, and we can objdump,
23449 # and we got the correct data, then succeed.
23450 # The text in the here-document typically retains its unix-style line
23451 # endings, while the output of objdump will use host line endings.
23452 # Therefore, use diff -b for the comparisons.
23453 if test x
$gcc_cv_objdump != x \
23454 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23455 |
tail -3 > conftest.got \
23456 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23457 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23459 gcc_cv_as_eh_frame
=yes
23460 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23462 (eval $ac_try) 2>&5
23464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23465 test $ac_status = 0; }; }; then
23466 gcc_cv_as_eh_frame
=buggy
23468 # Uh oh, what do we do now?
23469 gcc_cv_as_eh_frame
=no
23472 echo "configure: failed program was" >&5
23475 rm -f conftest.o conftest.s
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23479 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23483 if test $gcc_cv_as_eh_frame = buggy
; then
23485 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23490 $as_echo_n "checking assembler for section merging support... " >&6; }
23491 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23492 $as_echo_n "(cached) " >&6
23494 gcc_cv_as_shf_merge
=no
23495 if test $in_tree_gas = yes; then
23496 if test $in_tree_gas_is_elf = yes \
23497 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23498 then gcc_cv_as_shf_merge
=yes
23500 elif test x
$gcc_cv_as != x
; then
23501 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23502 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23504 (eval $ac_try) 2>&5
23506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23507 test $ac_status = 0; }; }
23509 gcc_cv_as_shf_merge
=yes
23511 echo "configure: failed program was" >&5
23514 rm -f conftest.o conftest.s
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23518 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23521 if test $gcc_cv_as_shf_merge = no
; then
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23523 $as_echo_n "checking assembler for section merging support... " >&6; }
23524 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23525 $as_echo_n "(cached) " >&6
23527 gcc_cv_as_shf_merge
=no
23528 if test $in_tree_gas = yes; then
23529 if test $in_tree_gas_is_elf = yes \
23530 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23531 then gcc_cv_as_shf_merge
=yes
23533 elif test x
$gcc_cv_as != x
; then
23534 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23535 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }
23542 gcc_cv_as_shf_merge
=yes
23544 echo "configure: failed program was" >&5
23547 rm -f conftest.o conftest.s
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23551 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23556 cat >>confdefs.h
<<_ACEOF
23557 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23562 $as_echo_n "checking assembler for stabs directive... " >&6; }
23563 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23564 $as_echo_n "(cached) " >&6
23566 gcc_cv_as_stabs_directive
=no
23567 if test x
$gcc_cv_as != x
; then
23568 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23571 (eval $ac_try) 2>&5
23573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23574 test $ac_status = 0; }; }
23576 gcc_cv_as_stabs_directive
=yes
23578 echo "configure: failed program was" >&5
23581 rm -f conftest.o conftest.s
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23585 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23586 if test $gcc_cv_as_stabs_directive = yes; then
23588 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23594 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23595 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23596 $as_echo_n "(cached) " >&6
23598 gcc_cv_as_comdat_group
=no
23599 if test $in_tree_gas = yes; then
23600 if test $in_tree_gas_is_elf = yes \
23601 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23602 then gcc_cv_as_comdat_group
=yes
23604 elif test x
$gcc_cv_as != x
; then
23605 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23608 (eval $ac_try) 2>&5
23610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23611 test $ac_status = 0; }; }
23613 gcc_cv_as_comdat_group
=yes
23615 echo "configure: failed program was" >&5
23618 rm -f conftest.o conftest.s
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23622 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23625 if test $gcc_cv_as_comdat_group = yes; then
23626 gcc_cv_as_comdat_group_percent
=no
23627 gcc_cv_as_comdat_group_group
=no
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23630 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23631 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23632 $as_echo_n "(cached) " >&6
23634 gcc_cv_as_comdat_group_percent
=no
23635 if test $in_tree_gas = yes; then
23636 if test $in_tree_gas_is_elf = yes \
23637 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23638 then gcc_cv_as_comdat_group_percent
=yes
23640 elif test x
$gcc_cv_as != x
; then
23641 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23642 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23644 (eval $ac_try) 2>&5
23646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23647 test $ac_status = 0; }; }
23649 gcc_cv_as_comdat_group_percent
=yes
23651 echo "configure: failed program was" >&5
23654 rm -f conftest.o conftest.s
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23658 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23661 if test $gcc_cv_as_comdat_group_percent = yes; then
23662 gcc_cv_as_comdat_group_group
=no
23664 case "${target}" in
23665 # Sun as uses a completely different syntax.
23667 case "${target}" in
23668 sparc
*-*-solaris2*)
23670 .group foo,".text%foo",#comdat
23671 .section ".text%foo", #alloc,#execinstr,#progbits
23676 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23678 .group foo,.text%foo,#comdat
23679 .section .text%foo, "ax", @progbits
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23686 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23687 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23688 $as_echo_n "(cached) " >&6
23690 gcc_cv_as_comdat_group_group
=no
23691 if test x
$gcc_cv_as != x
; then
23692 $as_echo "$conftest_s" > conftest.s
23693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23695 (eval $ac_try) 2>&5
23697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23698 test $ac_status = 0; }; }
23700 gcc_cv_as_comdat_group_group
=yes
23702 echo "configure: failed program was" >&5
23705 rm -f conftest.o conftest.s
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23709 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23714 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23715 gcc_cv_as_comdat_group_group
=no
23719 if test x
"$ld_is_gold" = xyes
; then
23721 elif test $in_tree_ld = yes ; then
23723 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 \
23724 && test $in_tree_ld_is_elf = yes; then
23727 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23729 if test 0"$ld_date" -lt 20050308; then
23730 if test -n "$ld_date"; then
23731 # If there was date string, but was earlier than 2005-03-08, fail
23733 elif test "$ld_vers_major" -lt 2; then
23735 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23740 case "${target}" in
23741 *-*-solaris2.1
[1-9]*)
23743 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23744 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23747 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23748 # least ld version 1.2267.
23749 if test "$ld_vers_major" -gt 1; then
23751 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23753 elif test "$ld_vers_minor" -ge 2267; then
23758 # Assume linkers other than GNU ld don't support COMDAT group.
23763 # Allow overriding the automatic COMDAT group tests above.
23764 # Check whether --enable-comdat was given.
23765 if test "${enable_comdat+set}" = set; then :
23766 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23769 if test $comdat_group = no
; then
23770 gcc_cv_as_comdat_group
=no
23771 gcc_cv_as_comdat_group_percent
=no
23772 gcc_cv_as_comdat_group_group
=no
23775 cat >>confdefs.h
<<_ACEOF
23776 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23777 || test $gcc_cv_as_comdat_group_percent = yes \
23778 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23783 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23784 if test "${gcc_cv_as_discriminator+set}" = set; then :
23785 $as_echo_n "(cached) " >&6
23787 gcc_cv_as_discriminator
=no
23788 if test $in_tree_gas = yes; then
23789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23790 then gcc_cv_as_discriminator
=yes
23792 elif test x
$gcc_cv_as != x
; then
23795 .loc 1 1 0 discriminator 1' > conftest.s
23796 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23798 (eval $ac_try) 2>&5
23800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23801 test $ac_status = 0; }; }
23803 gcc_cv_as_discriminator
=yes
23805 echo "configure: failed program was" >&5
23808 rm -f conftest.o conftest.s
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23812 $as_echo "$gcc_cv_as_discriminator" >&6; }
23813 if test $gcc_cv_as_discriminator = yes; then
23815 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23820 # Thread-local storage - the check is heavily parameterized.
23828 .section ".tdata","awT",@progbits
23831 ldq $27,__tls_get_addr($29) !literal!1
23832 lda $16,foo($29) !tlsgd!1
23833 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23834 ldq $27,__tls_get_addr($29) !literal!2
23835 lda $16,foo($29) !tlsldm!2
23836 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23837 ldq $1,foo($29) !gotdtprel
23838 ldah $2,foo($29) !dtprelhi
23839 lda $3,foo($2) !dtprello
23840 lda $4,foo($29) !dtprel
23841 ldq $1,foo($29) !gottprel
23842 ldah $2,foo($29) !tprelhi
23843 lda $3,foo($2) !tprello
23844 lda $4,foo($29) !tprel'
23847 tls_as_opt
=--fatal-warnings
23851 add_s r0,r0, @foo@tpoff'
23855 cris-
*-*|crisv32-
*-*)
23857 .section ".tdata","awT",@progbits
23864 tls_as_opt
=--fatal-warnings
23868 .section ".tdata","awT",@progbits
23871 call #gettlsoff(x)'
23880 .section ".tdata","awT",@progbits
23884 addil LT%foo-$tls_gdidx$,gp
23885 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23888 addil LT%foo-$tls_ldidx$,gp
23890 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23891 addil LR%foo-$tls_dtpoff$,%ret0
23892 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23894 addil LT%foo-$tls_ieoff$,gp
23895 ldw RT%foo-$tls_ieoff$(%r1),%t2
23898 addil LR%foo-$tls_leoff$,%t1
23899 ldo RR%foo-$tls_leoff$(%r1),%t2'
23902 tls_as_opt
=--fatal-warnings
23906 .section ".tdata","awT",%progbits
23909 .word foo(gottpoff)
23917 i
[34567]86-*-* | x86_64-
*-*)
23919 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23926 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23928 .section .tdata,"awt",@progbits'
23933 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23937 .section ".tdata","awT",@progbits'
23941 tls_as_opt
="--fatal-warnings"
23945 conftest_s
="$conftest_s
23949 leal foo@tlsgd(,%ebx,1), %eax
23950 leal foo@tlsldm(%ebx), %eax
23951 leal foo@dtpoff(%eax), %edx
23952 movl foo@gottpoff(%ebx), %eax
23953 subl foo@gottpoff(%ebx), %eax
23954 addl foo@gotntpoff(%ebx), %eax
23955 movl foo@indntpoff, %eax
23956 movl \$foo@tpoff, %eax
23957 subl \$foo@tpoff, %eax
23958 leal foo@ntpoff(%ecx), %eax"
23961 if test x
$on_solaris = xyes
; then
23963 yes) tls_as_opt
="$tls_as_opt --64" ;;
23964 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23967 conftest_s
="$conftest_s
23971 leaq foo@tlsgd(%rip), %rdi
23972 leaq foo@tlsld(%rip), %rdi
23973 leaq foo@dtpoff(%rax), %rdx
23974 movq foo@gottpoff(%rip), %rax
23975 movq \$foo@tpoff, %rax"
23981 .section ".tdata","awT",@progbits
23984 addl r16 = @ltoff(@dtpmod(foo#)), gp
23985 addl r17 = @ltoff(@dtprel(foo#)), gp
23986 addl r18 = @ltoff(@tprel(foo#)), gp
23987 addl r19 = @dtprel(foo#), gp
23988 adds r21 = @dtprel(foo#), r13
23989 movl r23 = @dtprel(foo#)
23990 addl r20 = @tprel(foo#), gp
23991 adds r22 = @tprel(foo#), r13
23992 movl r24 = @tprel(foo#)'
23995 tls_as_opt
=--fatal-warnings
23999 .section .tdata,"awT",@progbits
24003 addik r5,r20,x@TLSGD
24004 addik r5,r20,x@TLSLDM'
24007 tls_as_opt
='--fatal-warnings'
24011 .section .tdata,"awT",@progbits
24015 addiu $4, $28, %tlsgd(x)
24016 addiu $4, $28, %tlsldm(x)
24017 lui $4, %dtprel_hi(x)
24018 addiu $4, $4, %dtprel_lo(x)
24019 lw $4, %gottprel(x)($28)
24020 lui $4, %tprel_hi(x)
24021 addiu $4, $4, %tprel_lo(x)'
24024 tls_as_opt
='-32 --fatal-warnings'
24028 .section .tdata,"awT",@progbits
24033 move.l x@TLSGD(%a5),%a0
24034 move.l x@TLSLDM(%a5),%a0
24035 move.l x@TLSLDO(%a5),%a0
24036 move.l x@TLSIE(%a5),%a0
24037 move.l x@TLSLE(%a5),%a0'
24040 tls_as_opt
='--fatal-warnings'
24044 .section ".tdata","awT",@progbits'
24047 tls_as_opt
="--fatal-warnings"
24051 .section ".tdata","awT",%progbits
24055 add x0, x0, #:tlsgd_lo12:x
24060 tls_as_opt
='--fatal-warnings'
24064 .extern __get_tpointer
24082 .section ".tdata","awT",@progbits
24090 addi 3,2,ld0@got@tlsgd
24096 addi 3,2,x1@got@tlsld
24102 addis 9,3,x2@dtprel@ha
24103 addi 9,9,x2@dtprel@l
24106 ld 9,x3@got@dtprel(2)
24112 tls_as_opt
="-a64 --fatal-warnings"
24116 .section ".tdata","awT",@progbits
24124 addi 3,31,ld0@got@tlsgd
24126 addi 3,31,x1@got@tlsld
24129 addis 9,3,x2@dtprel@ha
24130 addi 9,9,x2@dtprel@l
24131 lwz 9,x3@got@tprel(31)
24134 addis 9,2,x2@tprel@ha
24135 addi 9,9,x2@tprel@l'
24138 tls_as_opt
="-a32 --fatal-warnings"
24142 .section ".tdata","awT",@progbits
24149 .long foo@GOTNTPOFF
24150 .long foo@INDNTPOFF
24151 l %r1,foo@GOTNTPOFF(%r12)
24152 l %r1,0(%r1):tls_load:foo
24153 bas %r14,0(%r1,%r13):tls_gdcall:foo
24154 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24157 tls_as_opt
="-m31 --fatal-warnings"
24161 .section ".tdata","awT",@progbits
24168 .quad foo@GOTNTPOFF
24169 lg %r1,foo@GOTNTPOFF(%r12)
24170 larl %r1,foo@INDNTPOFF
24171 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24172 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24175 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24177 sh-
*-* | sh
[123456789lbe
]*-*-*)
24179 .section ".tdata","awT",@progbits
24189 tls_as_opt
=--fatal-warnings
24193 sparc
*-sun-solaris2.
*)
24200 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24202 .section ".tdata",#alloc,#write,#tls'
24207 .section ".tdata","awT",@progbits'
24210 tls_as_opt
="-32 --fatal-warnings"
24212 conftest_s
="$conftest_s
24215 sethi %tgd_hi22(foo), %o0
24216 add %o0, %tgd_lo10(foo), %o1
24217 add %l7, %o1, %o0, %tgd_add(foo)
24218 call __tls_get_addr, %tgd_call(foo)
24219 sethi %tldm_hi22(foo), %l1
24220 add %l1, %tldm_lo10(foo), %l2
24221 add %l7, %l2, %o0, %tldm_add(foo)
24222 call __tls_get_addr, %tldm_call(foo)
24223 sethi %tldo_hix22(foo), %l3
24224 xor %l3, %tldo_lox10(foo), %l4
24225 add %o0, %l4, %l5, %tldo_add(foo)
24226 sethi %tie_hi22(foo), %o3
24227 add %o3, %tie_lo10(foo), %o3
24228 ld [%l7 + %o3], %o2, %tie_ld(foo)
24229 add %g7, %o2, %o4, %tie_add(foo)
24230 sethi %tle_hix22(foo), %l1
24231 xor %l1, %tle_lox10(foo), %o5
24232 ld [%g7 + %o5], %o1"
24236 .section ".tdata","awT",@progbits
24239 addli r0, zero, tls_gd(foo)
24240 auli r0, zero, tls_gd_ha16(foo)
24241 addli r0, r0, tls_gd_lo16(foo)
24243 addli r0, zero, tls_ie(foo)
24244 auli r0, r0, tls_ie_ha16(foo)
24245 addli r0, r0, tls_ie_lo16(foo)'
24248 tls_as_opt
="--fatal-warnings"
24252 .section ".tdata","awT",@progbits
24255 shl16insli r0, zero, hw0_last_tls_gd(foo)
24256 shl16insli r0, zero, hw1_last_tls_gd(foo)
24257 shl16insli r0, r0, hw0_tls_gd(foo)
24259 shl16insli r0, zero, hw1_last_tls_ie(foo)
24260 shl16insli r0, r0, hw0_tls_ie(foo)'
24263 tls_as_opt
="--fatal-warnings"
24267 .section ".tdata","awT",@progbits
24270 movi a8, foo@TLSFUNC
24271 movi a10, foo@TLSARG
24272 callx8.tls a8, foo@TLSCALL'
24278 if test "x$enable_tls" = xno
; then
24279 : # TLS explicitly disabled.
24280 elif test "x$enable_tls" = xyes
; then
24281 set_have_as_tls
=yes # TLS explicitly enabled.
24282 elif test -z "$tls_first_major"; then
24283 : # If we don't have a check, assume no support.
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24286 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24287 if test "${gcc_cv_as_tls+set}" = set; then :
24288 $as_echo_n "(cached) " >&6
24291 if test $in_tree_gas = yes; then
24292 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24293 then gcc_cv_as_tls
=yes
24295 elif test x
$gcc_cv_as != x
; then
24296 $as_echo "$conftest_s" > conftest.s
24297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24299 (eval $ac_try) 2>&5
24301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24302 test $ac_status = 0; }; }
24306 echo "configure: failed program was" >&5
24309 rm -f conftest.o conftest.s
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24313 $as_echo "$gcc_cv_as_tls" >&6; }
24314 if test $gcc_cv_as_tls = yes; then
24315 set_have_as_tls
=yes
24319 if test $set_have_as_tls = yes ; then
24321 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24325 # Target-specific assembler checks.
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24328 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24329 gcc_cv_ld_static_dynamic
=no
24330 gcc_cv_ld_static_option
='-Bstatic'
24331 gcc_cv_ld_dynamic_option
='-Bdynamic'
24332 if test $in_tree_ld = yes ; then
24333 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
24334 gcc_cv_ld_static_dynamic
=yes
24336 elif test x
$gcc_cv_ld != x
; then
24337 # Check if linker supports -Bstatic/-Bdynamic option
24338 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24339 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24340 gcc_cv_ld_static_dynamic
=yes
24343 # AIX ld uses -b flags
24344 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24345 gcc_cv_ld_static_dynamic
=yes
24346 gcc_cv_ld_static_option
="-bstatic"
24347 gcc_cv_ld_dynamic_option
="-bdynamic"
24349 # HP-UX ld uses -a flags to select between shared and archive.
24351 if test x
"$gnu_ld" = xno
; then
24352 gcc_cv_ld_static_dynamic
=yes
24353 gcc_cv_ld_static_option
="-aarchive_shared"
24354 gcc_cv_ld_dynamic_option
="-adefault"
24357 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24359 gcc_cv_ld_static_dynamic
=yes
24364 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24366 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24369 cat >>confdefs.h
<<_ACEOF
24370 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24374 cat >>confdefs.h
<<_ACEOF
24375 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24380 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24382 if test x
"$demangler_in_ld" = xyes
; then
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24384 $as_echo_n "checking linker --demangle support... " >&6; }
24385 gcc_cv_ld_demangle
=no
24386 if test $in_tree_ld = yes; then
24387 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 \
24388 gcc_cv_ld_demangle
=yes
24390 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24391 # Check if the GNU linker supports --demangle option
24392 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24393 gcc_cv_ld_demangle
=yes
24396 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24398 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24402 $as_echo "$gcc_cv_ld_demangle" >&6; }
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24406 $as_echo_n "checking linker plugin support... " >&6; }
24407 gcc_cv_lto_plugin
=0
24408 if test -f liblto_plugin.la
; then
24409 save_ld_ver
="$ld_ver"
24410 save_ld_vers_major
="$ld_vers_major"
24411 save_ld_vers_minor
="$ld_vers_minor"
24412 save_ld_is_gold
="$ld_is_gold"
24416 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24418 # FIXME: ld_is_gold?
24419 ld_vers_major
="$gcc_cv_gld_major_version"
24420 ld_vers_minor
="$gcc_cv_gld_minor_version"
24422 # Determine plugin linker version.
24423 # FIXME: Partial duplicate from above, generalize.
24424 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24425 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24426 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24428 ld_vers
=`echo $ld_ver | sed -n \
24429 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24431 ld_vers
=`echo $ld_ver | sed -n \
24432 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24434 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24435 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24439 # Determine plugin support.
24440 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24441 # Require GNU ld or gold 2.21+ for plugin support by default.
24442 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24443 gcc_cv_lto_plugin
=2
24444 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24445 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24446 gcc_cv_lto_plugin
=1
24450 ld_ver
="$save_ld_ver"
24451 ld_vers_major
="$save_ld_vers_major"
24452 ld_vers_minor
="$save_ld_vers_minor"
24453 ld_is_gold
="$save_ld_is_gold"
24456 cat >>confdefs.h
<<_ACEOF
24457 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24461 $as_echo "$gcc_cv_lto_plugin" >&6; }
24463 # Target OS-specific assembler checks.
24465 case "$target_os" in
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24468 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24469 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24472 gcc_cv_as_mmacosx_version_min
=no
24473 if test x
$gcc_cv_as != x
; then
24474 $as_echo '.text' > conftest.s
24475 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24477 (eval $ac_try) 2>&5
24479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24480 test $ac_status = 0; }; }
24482 gcc_cv_as_mmacosx_version_min
=yes
24484 echo "configure: failed program was" >&5
24487 rm -f conftest.o conftest.s
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24491 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24492 if test $gcc_cv_as_mmacosx_version_min = yes; then
24494 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24501 # Target CPU-specific assembler checks.
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24506 $as_echo_n "checking assembler for -mabi option... " >&6; }
24507 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24508 $as_echo_n "(cached) " >&6
24510 gcc_cv_as_aarch64_mabi
=no
24511 if test x
$gcc_cv_as != x
; then
24512 $as_echo '.text' > conftest.s
24513 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24515 (eval $ac_try) 2>&5
24517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518 test $ac_status = 0; }; }
24520 gcc_cv_as_aarch64_mabi
=yes
24522 echo "configure: failed program was" >&5
24525 rm -f conftest.o conftest.s
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24529 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24532 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24534 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24537 if test x
$with_abi = xilp32
; then
24538 as_fn_error
"Assembler does not support -mabi=ilp32.\
24539 Upgrade the Assembler." "$LINENO" 5
24541 if test x
"$with_multilib_list" = xdefault
; then
24542 TM_MULTILIB_CONFIG
=lp64
24544 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24545 for aarch64_multilib
in ${aarch64_multilibs}; do
24546 case ${aarch64_multilib} in
24548 as_fn_error
"Assembler does not support -mabi=ilp32.\
24549 Upgrade the Assembler." "$LINENO" 5
24557 # Check if we have binutils support for relocations types needed by -fpic
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24559 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24560 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24561 $as_echo_n "(cached) " >&6
24563 gcc_cv_as_aarch64_picreloc
=no
24564 if test x
$gcc_cv_as != x
; then
24567 ldr x0, [x2, #:gotpage_lo15:globalsym]
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_aarch64_picreloc
=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_aarch64_picreloc" >&5
24585 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24586 if test $gcc_cv_as_aarch64_picreloc = yes; then
24588 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24592 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24593 # Check whether --enable-fix-cortex-a53-835769 was given.
24594 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24595 enableval
=$enable_fix_cortex_a53_835769;
24598 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24603 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24604 Valid choices are 'yes' and 'no'." "$LINENO" 5
24611 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24612 # Check whether --enable-fix-cortex-a53-843419 was given.
24613 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24614 enableval
=$enable_fix_cortex_a53_843419;
24617 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24622 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24623 Valid choices are 'yes' and 'no'." "$LINENO" 5
24632 # All TARGET_ABI_OSF targets.
24633 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24635 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24636 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24639 gcc_cv_as_alpha_explicit_relocs
=no
24640 if test $in_tree_gas = yes; then
24641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24642 then gcc_cv_as_alpha_explicit_relocs
=yes
24644 elif test x
$gcc_cv_as != x
; then
24645 $as_echo ' .set nomacro
24647 extbl $3, $2, $3 !lituse_bytoff!1
24648 ldq $2, a($29) !literal!1
24649 ldq $4, b($29) !literal!2
24650 ldq_u $3, 0($2) !lituse_base!1
24651 ldq $27, f($29) !literal!5
24652 jsr $26, ($27), f !lituse_jsr!5
24653 ldah $29, 0($26) !gpdisp!3
24654 lda $0, c($29) !gprel
24655 ldah $1, d($29) !gprelhigh
24656 lda $1, d($1) !gprellow
24657 lda $29, 0($29) !gpdisp!3' > conftest.s
24658 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24660 (eval $ac_try) 2>&5
24662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24663 test $ac_status = 0; }; }
24665 gcc_cv_as_alpha_explicit_relocs
=yes
24667 echo "configure: failed program was" >&5
24670 rm -f conftest.o conftest.s
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24674 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24675 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24677 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24682 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24683 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24686 gcc_cv_as_alpha_jsrdirect_relocs
=no
24687 if test $in_tree_gas = yes; then
24688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24689 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24691 elif test x
$gcc_cv_as != x
; then
24692 $as_echo ' .set nomacro
24694 ldq $27, a($29) !literal!1
24695 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24696 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24698 (eval $ac_try) 2>&5
24700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24701 test $ac_status = 0; }; }
24703 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24705 echo "configure: failed program was" >&5
24708 rm -f conftest.o conftest.s
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24712 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24713 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24715 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24723 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24724 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24725 $as_echo_n "(cached) " >&6
24727 gcc_cv_as_avr_mlink_relax
=no
24728 if test x
$gcc_cv_as != x
; then
24729 $as_echo '.text' > conftest.s
24730 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24732 (eval $ac_try) 2>&5
24734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24735 test $ac_status = 0; }; }
24737 gcc_cv_as_avr_mlink_relax
=yes
24739 echo "configure: failed program was" >&5
24742 rm -f conftest.o conftest.s
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24746 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24747 if test $gcc_cv_as_avr_mlink_relax = yes; then
24749 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24755 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24756 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24757 $as_echo_n "(cached) " >&6
24759 gcc_cv_as_avr_mrmw
=no
24760 if test x
$gcc_cv_as != x
; then
24761 $as_echo '.text' > conftest.s
24762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -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_avr_mrmw
=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_avr_mrmw" >&5
24778 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24779 if test $gcc_cv_as_avr_mrmw = yes; then
24781 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24789 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24790 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24791 $as_echo_n "(cached) " >&6
24793 gcc_cv_as_cris_no_mul_bug
=no
24794 if test $in_tree_gas = yes; then
24795 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24796 then gcc_cv_as_cris_no_mul_bug
=yes
24798 elif test x
$gcc_cv_as != x
; then
24799 $as_echo '.text' > conftest.s
24800 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24802 (eval $ac_try) 2>&5
24804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24805 test $ac_status = 0; }; }
24807 gcc_cv_as_cris_no_mul_bug
=yes
24809 echo "configure: failed program was" >&5
24812 rm -f conftest.o conftest.s
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24816 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24817 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24819 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24827 $as_echo_n "checking assembler for .register... " >&6; }
24828 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24829 $as_echo_n "(cached) " >&6
24831 gcc_cv_as_sparc_register_op
=no
24832 if test x
$gcc_cv_as != x
; then
24833 $as_echo '.register %g2, #scratch' > conftest.s
24834 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24836 (eval $ac_try) 2>&5
24838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24839 test $ac_status = 0; }; }
24841 gcc_cv_as_sparc_register_op
=yes
24843 echo "configure: failed program was" >&5
24846 rm -f conftest.o conftest.s
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24850 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24851 if test $gcc_cv_as_sparc_register_op = yes; then
24853 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24859 $as_echo_n "checking assembler for -relax option... " >&6; }
24860 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24861 $as_echo_n "(cached) " >&6
24863 gcc_cv_as_sparc_relax
=no
24864 if test x
$gcc_cv_as != x
; then
24865 $as_echo '.text' > conftest.s
24866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24873 gcc_cv_as_sparc_relax
=yes
24875 echo "configure: failed program was" >&5
24878 rm -f conftest.o conftest.s
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24882 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24883 if test $gcc_cv_as_sparc_relax = yes; then
24885 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24891 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24892 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24893 $as_echo_n "(cached) " >&6
24895 gcc_cv_as_sparc_gotdata_op
=no
24896 if test x
$gcc_cv_as != x
; then
24902 sethi %gdop_hix22(foo), %g1
24903 xor %g1, %gdop_lox10(foo), %g1
24904 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24907 (eval $ac_try) 2>&5
24909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24910 test $ac_status = 0; }; }
24912 if test x
$gcc_cv_ld != x \
24913 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24914 if test x
$gcc_cv_objdump != x
; then
24915 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24916 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24917 gcc_cv_as_sparc_gotdata_op
=no
24919 gcc_cv_as_sparc_gotdata_op
=yes
24925 echo "configure: failed program was" >&5
24928 rm -f conftest.o conftest.s
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24932 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24933 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24935 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24941 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24942 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24943 $as_echo_n "(cached) " >&6
24945 gcc_cv_as_sparc_ua_pcrel
=no
24946 if test x
$gcc_cv_as != x
; then
24953 .uaword %r_disp32(foo)' > conftest.s
24954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24956 (eval $ac_try) 2>&5
24958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24959 test $ac_status = 0; }; }
24961 if test x
$gcc_cv_ld != x \
24962 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24963 gcc_cv_as_sparc_ua_pcrel
=yes
24967 echo "configure: failed program was" >&5
24970 rm -f conftest.o conftest.s
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24974 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24975 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24977 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24981 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24982 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24983 $as_echo_n "(cached) " >&6
24985 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24986 if test x
$gcc_cv_as != x
; then
24990 .uaword %r_disp32(foo)
24991 .byte 0x32, 0x33, 0x34
24995 .skip 4' > conftest.s
24996 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24998 (eval $ac_try) 2>&5
25000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25001 test $ac_status = 0; }; }
25003 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25004 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25005 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25006 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25007 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25008 |
grep 'DISP32' > /dev
/null
2>&1; then
25011 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25016 echo "configure: failed program was" >&5
25019 rm -f conftest.o conftest.s
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25023 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25024 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25026 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25032 # unaligned pcrel relocs
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25035 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25036 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25037 $as_echo_n "(cached) " >&6
25039 gcc_cv_as_sparc_offsetable_lo10
=no
25040 if test x
$gcc_cv_as != x
; then
25042 or %g1, %lo(ab) + 12, %g1
25043 or %g1, %lo(ab + 12), %g1' > conftest.s
25044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25046 (eval $ac_try) 2>&5
25048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25049 test $ac_status = 0; }; }
25051 if test x
$gcc_cv_objdump != x \
25052 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25053 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25054 gcc_cv_as_sparc_offsetable_lo10
=yes
25057 echo "configure: failed program was" >&5
25060 rm -f conftest.o conftest.s
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25064 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25065 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25067 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25073 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25074 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25075 $as_echo_n "(cached) " >&6
25077 gcc_cv_as_sparc_fmaf
=no
25078 if test x
$gcc_cv_as != x
; then
25080 .register %g2, #scratch
25081 .register %g3, #scratch
25083 fmaddd %f0, %f2, %f4, %f6
25084 addxccc %g1, %g2, %g3
25085 fsrl32 %f2, %f4, %f8
25086 fnaddd %f10, %f12, %f14' > conftest.s
25087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25089 (eval $ac_try) 2>&5
25091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25092 test $ac_status = 0; }; }
25094 gcc_cv_as_sparc_fmaf
=yes
25096 echo "configure: failed program was" >&5
25099 rm -f conftest.o conftest.s
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25103 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25104 if test $gcc_cv_as_sparc_fmaf = yes; then
25106 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25112 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25113 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25114 $as_echo_n "(cached) " >&6
25116 gcc_cv_as_sparc_sparc4
=no
25117 if test x
$gcc_cv_as != x
; then
25119 .register %g2, #scratch
25120 .register %g3, #scratch
25123 1: cwbneg %g2, %g3, 1f
25126 aes_kexpand0 %f4, %f6, %f8
25127 des_round %f38, %f40, %f42, %f44
25128 camellia_f %f54, %f56, %f58, %f60
25129 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25130 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25132 (eval $ac_try) 2>&5
25134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25135 test $ac_status = 0; }; }
25137 gcc_cv_as_sparc_sparc4
=yes
25139 echo "configure: failed program was" >&5
25142 rm -f conftest.o conftest.s
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25146 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25147 if test $gcc_cv_as_sparc_sparc4 = yes; then
25149 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25155 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25156 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25157 $as_echo_n "(cached) " >&6
25159 gcc_cv_as_sparc_sparc5
=no
25160 if test x
$gcc_cv_as != x
; then
25162 .register %g2, #scratch
25163 .register %g3, #scratch
25165 subxc %g1, %g2, %g3
25166 fpadd8 %f0, %f2, %f4' > conftest.s
25167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25169 (eval $ac_try) 2>&5
25171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25172 test $ac_status = 0; }; }
25174 gcc_cv_as_sparc_sparc5
=yes
25176 echo "configure: failed program was" >&5
25179 rm -f conftest.o conftest.s
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25183 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25184 if test $gcc_cv_as_sparc_sparc5 = yes; then
25186 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25192 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25193 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25194 $as_echo_n "(cached) " >&6
25196 gcc_cv_as_sparc_leon
=no
25197 if test x
$gcc_cv_as != x
; then
25199 .register %g2, #scratch
25200 .register %g3, #scratch
25204 casa [%g2] 0xb, %g3, %g1' > conftest.s
25205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25207 (eval $ac_try) 2>&5
25209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25210 test $ac_status = 0; }; }
25212 gcc_cv_as_sparc_leon
=yes
25214 echo "configure: failed program was" >&5
25217 rm -f conftest.o conftest.s
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25221 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25222 if test $gcc_cv_as_sparc_leon = yes; then
25224 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25230 i
[34567]86-*-* | x86_64-
*-*)
25233 # Full C++ conformance when using a shared libstdc++-v3 requires some
25234 # support from the Cygwin DLL, which in more recent versions exports
25235 # wrappers to aid in interposing and redirecting operators new, delete,
25236 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25237 # are configuring for a version of Cygwin that exports the wrappers.
25238 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25239 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25240 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25241 gcc_ac_cygwin_dll_wrappers
=yes
25243 gcc_ac_cygwin_dll_wrappers
=no
25247 # Can't check presence of libc functions during cross-compile, so
25248 # we just have to assume we're building for an up-to-date target.
25249 gcc_ac_cygwin_dll_wrappers
=yes
25252 cat >>confdefs.h
<<_ACEOF
25253 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25258 cygwin
* | pe | mingw32
*)
25259 # Recent binutils allows the three-operand form of ".comm" on PE. This
25260 # definition is used unconditionally to initialise the default state of
25261 # the target option variable that governs usage of the feature.
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25263 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25264 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25265 $as_echo_n "(cached) " >&6
25267 gcc_cv_as_comm_has_align
=no
25268 if test $in_tree_gas = yes; then
25269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25270 then gcc_cv_as_comm_has_align
=yes
25272 elif test x
$gcc_cv_as != x
; then
25273 $as_echo '.comm foo,1,32' > conftest.s
25274 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25276 (eval $ac_try) 2>&5
25278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25279 test $ac_status = 0; }; }
25281 gcc_cv_as_comm_has_align
=yes
25283 echo "configure: failed program was" >&5
25286 rm -f conftest.o conftest.s
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25290 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25294 cat >>confdefs.h
<<_ACEOF
25295 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25298 # Used for DWARF 2 in PE
25299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25300 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25301 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25302 $as_echo_n "(cached) " >&6
25304 gcc_cv_as_ix86_pe_secrel32
=no
25305 if test $in_tree_gas = yes; then
25306 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25307 then gcc_cv_as_ix86_pe_secrel32
=yes
25309 elif test x
$gcc_cv_as != x
; then
25313 .secrel32 foo' > conftest.s
25314 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25316 (eval $ac_try) 2>&5
25318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25319 test $ac_status = 0; }; }
25321 if test x
$gcc_cv_ld != x \
25322 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25323 gcc_cv_as_ix86_pe_secrel32
=yes
25327 echo "configure: failed program was" >&5
25330 rm -f conftest.o conftest.s
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25334 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25335 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25337 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25341 # Test if the assembler supports the extended form of the .section
25342 # directive that specifies section alignment. LTO support uses this,
25343 # but normally only after installation, so we warn but don't fail the
25344 # configure if LTO is enabled but the assembler does not support it.
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25346 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25347 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25350 gcc_cv_as_section_has_align
=no
25351 if test $in_tree_gas = yes; then
25352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25353 then gcc_cv_as_section_has_align
=yes
25355 elif test x
$gcc_cv_as != x
; then
25356 $as_echo '.section lto_test,"dr0"' > conftest.s
25357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25364 gcc_cv_as_section_has_align
=yes
25366 echo "configure: failed program was" >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25373 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25376 if test x
$gcc_cv_as_section_has_align != xyes
; then
25377 case ",$enable_languages," in
25379 { $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
25380 $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;}
25387 # Test if the assembler supports the section flag 'e' for specifying
25388 # an excluded section.
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25390 $as_echo_n "checking assembler for .section with e... " >&6; }
25391 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25394 gcc_cv_as_section_has_e
=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25397 then gcc_cv_as_section_has_e
=yes
25399 elif test x
$gcc_cv_as != x
; then
25400 $as_echo '.section foo1,"e"
25401 .byte 0,0,0,0' > conftest.s
25402 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25404 (eval $ac_try) 2>&5
25406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25407 test $ac_status = 0; }; }
25409 gcc_cv_as_section_has_e
=yes
25411 echo "configure: failed program was" >&5
25414 rm -f conftest.o conftest.s
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25418 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25422 cat >>confdefs.h
<<_ACEOF
25423 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25428 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25429 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25430 $as_echo_n "(cached) " >&6
25432 gcc_cv_as_ix86_filds
=no
25433 if test x
$gcc_cv_as != x
; then
25434 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25442 gcc_cv_as_ix86_filds
=yes
25444 echo "configure: failed program was" >&5
25447 rm -f conftest.o conftest.s
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25451 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25452 if test $gcc_cv_as_ix86_filds = yes; then
25454 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25460 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25461 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25464 gcc_cv_as_ix86_fildq
=no
25465 if test x
$gcc_cv_as != x
; then
25466 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25469 (eval $ac_try) 2>&5
25471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25472 test $ac_status = 0; }; }
25474 gcc_cv_as_ix86_fildq
=yes
25476 echo "configure: failed program was" >&5
25479 rm -f conftest.o conftest.s
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25483 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25484 if test $gcc_cv_as_ix86_fildq = yes; then
25486 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25492 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25493 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25494 $as_echo_n "(cached) " >&6
25496 gcc_cv_as_ix86_cmov_sun_syntax
=no
25497 if test x
$gcc_cv_as != x
; then
25498 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25499 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25501 (eval $ac_try) 2>&5
25503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25504 test $ac_status = 0; }; }
25506 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25508 echo "configure: failed program was" >&5
25511 rm -f conftest.o conftest.s
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25515 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25516 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25518 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25524 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25525 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25526 $as_echo_n "(cached) " >&6
25528 gcc_cv_as_ix86_ffreep
=no
25529 if test x
$gcc_cv_as != x
; then
25530 $as_echo 'ffreep %st(1)' > conftest.s
25531 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25533 (eval $ac_try) 2>&5
25535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25536 test $ac_status = 0; }; }
25538 gcc_cv_as_ix86_ffreep
=yes
25540 echo "configure: failed program was" >&5
25543 rm -f conftest.o conftest.s
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25547 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25548 if test $gcc_cv_as_ix86_ffreep = yes; then
25550 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25556 $as_echo_n "checking assembler for .quad directive... " >&6; }
25557 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25560 gcc_cv_as_ix86_quad
=no
25561 if test x
$gcc_cv_as != x
; then
25562 $as_echo '.quad 0' > conftest.s
25563 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25565 (eval $ac_try) 2>&5
25567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25568 test $ac_status = 0; }; }
25570 gcc_cv_as_ix86_quad
=yes
25572 echo "configure: failed program was" >&5
25575 rm -f conftest.o conftest.s
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25579 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25580 if test $gcc_cv_as_ix86_quad = yes; then
25582 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25588 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25589 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25590 $as_echo_n "(cached) " >&6
25592 gcc_cv_as_ix86_sahf
=no
25593 if test x
$gcc_cv_as != x
; then
25596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25598 (eval $ac_try) 2>&5
25600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25601 test $ac_status = 0; }; }
25603 gcc_cv_as_ix86_sahf
=yes
25605 echo "configure: failed program was" >&5
25608 rm -f conftest.o conftest.s
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25612 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25613 if test $gcc_cv_as_ix86_sahf = yes; then
25615 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25621 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25622 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25623 $as_echo_n "(cached) " >&6
25625 gcc_cv_as_ix86_interunit_movq
=no
25626 if test x
$gcc_cv_as != x
; then
25629 movq %rax, %xmm0' > conftest.s
25630 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25632 (eval $ac_try) 2>&5
25634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25635 test $ac_status = 0; }; }
25637 gcc_cv_as_ix86_interunit_movq
=yes
25639 echo "configure: failed program was" >&5
25642 rm -f conftest.o conftest.s
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25646 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25650 cat >>confdefs.h
<<_ACEOF
25651 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25656 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25657 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25658 $as_echo_n "(cached) " >&6
25660 gcc_cv_as_ix86_hle
=no
25661 if test x
$gcc_cv_as != x
; then
25662 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25663 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25665 (eval $ac_try) 2>&5
25667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25668 test $ac_status = 0; }; }
25670 gcc_cv_as_ix86_hle
=yes
25672 echo "configure: failed program was" >&5
25675 rm -f conftest.o conftest.s
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25679 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25680 if test $gcc_cv_as_ix86_hle = yes; then
25682 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25688 $as_echo_n "checking assembler for swap suffix... " >&6; }
25689 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25690 $as_echo_n "(cached) " >&6
25692 gcc_cv_as_ix86_swap
=no
25693 if test x
$gcc_cv_as != x
; then
25694 $as_echo 'movl.s %esp, %ebp' > conftest.s
25695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25697 (eval $ac_try) 2>&5
25699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25700 test $ac_status = 0; }; }
25702 gcc_cv_as_ix86_swap
=yes
25704 echo "configure: failed program was" >&5
25707 rm -f conftest.o conftest.s
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25711 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25712 if test $gcc_cv_as_ix86_swap = yes; then
25714 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25720 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25721 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25722 $as_echo_n "(cached) " >&6
25724 gcc_cv_as_ix86_diff_sect_delta
=no
25725 if test x
$gcc_cv_as != x
; then
25726 $as_echo '.section .rodata
25732 .L2: nop' > conftest.s
25733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25735 (eval $ac_try) 2>&5
25737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25738 test $ac_status = 0; }; }
25740 gcc_cv_as_ix86_diff_sect_delta
=yes
25742 echo "configure: failed program was" >&5
25745 rm -f conftest.o conftest.s
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25749 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25750 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25752 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25758 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25759 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25760 $as_echo_n "(cached) " >&6
25762 gcc_cv_as_ix86_rep_lock_prefix
=no
25763 if test x
$gcc_cv_as != x
; then
25764 $as_echo 'rep movsl
25769 lock addl %edi, (%eax,%esi)
25770 lock orl $0, (%esp)' > 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_ix86_rep_lock_prefix
=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_ix86_rep_lock_prefix" >&5
25787 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25788 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25790 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25796 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25797 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25798 $as_echo_n "(cached) " >&6
25800 gcc_cv_as_ix86_ud2
=no
25801 if test x
$gcc_cv_as != x
; then
25802 $as_echo 'ud2' > conftest.s
25803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25805 (eval $ac_try) 2>&5
25807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25808 test $ac_status = 0; }; }
25810 gcc_cv_as_ix86_ud2
=yes
25812 echo "configure: failed program was" >&5
25815 rm -f conftest.o conftest.s
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25819 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25820 if test $gcc_cv_as_ix86_ud2 = yes; then
25822 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25827 # Enforce 32-bit output with gas and gld.
25828 if test x
$gas = xyes
; then
25829 as_ix86_gas_32_opt
="--32"
25831 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25832 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25833 ld_ix86_gld_32_opt
="-melf_i386_sol2"
25835 ld_ix86_gld_32_opt
="-melf_i386"
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25840 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25841 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25842 $as_echo_n "(cached) " >&6
25844 gcc_cv_as_ix86_tlsgdplt
=no
25845 if test x
$gcc_cv_as != x
; then
25846 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25847 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25849 (eval $ac_try) 2>&5
25851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25852 test $ac_status = 0; }; }
25854 if test x
$gcc_cv_ld != x \
25855 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
25856 gcc_cv_as_ix86_tlsgdplt
=yes
25860 echo "configure: failed program was" >&5
25863 rm -f conftest.o conftest.s
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25867 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25868 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25870 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25876 .section .tdata,"aw'$tls_section_flag'",@progbits
25878 .section .text,"ax",@progbits
25879 call tls_ld@tlsldmplt'
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25882 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25883 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25884 $as_echo_n "(cached) " >&6
25886 gcc_cv_as_ix86_tlsldmplt
=no
25887 if test x
$gcc_cv_as != x
; then
25888 $as_echo "$conftest_s" > conftest.s
25889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25891 (eval $ac_try) 2>&5
25893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25894 test $ac_status = 0; }; }
25896 if test x
$gcc_cv_ld != x \
25897 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
25898 gcc_cv_as_ix86_tlsldmplt
=yes
25902 echo "configure: failed program was" >&5
25905 rm -f conftest.o conftest.s
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25909 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25913 cat >>confdefs.h
<<_ACEOF
25914 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25919 .section .text,"ax",@progbits
25921 .type _start, @function
25923 leal value@tlsldm(%ebx), %eax
25924 call ___tls_get_addr@plt
25926 .section .tdata,"aw'$tls_section_flag'",@progbits
25927 .type value, @object
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25930 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25931 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25932 $as_echo_n "(cached) " >&6
25934 gcc_cv_as_ix86_tlsldm
=no
25935 if test x
$gcc_cv_as != x
; then
25936 $as_echo "$conftest_s" > conftest.s
25937 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25939 (eval $ac_try) 2>&5
25941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25942 test $ac_status = 0; }; }
25944 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25945 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25946 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25947 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25948 gcc_cv_as_ix86_tlsldm
=yes
25953 echo "configure: failed program was" >&5
25956 rm -f conftest.o conftest.s
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25960 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25964 cat >>confdefs.h
<<_ACEOF
25965 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25979 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25980 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25983 gcc_cv_as_ix86_got32x
=no
25984 if test x
$gcc_cv_as != x
; then
25985 $as_echo "$conftest_s" > conftest.s
25986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25988 (eval $ac_try) 2>&5
25990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25991 test $ac_status = 0; }; }
25993 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25994 && test x
$gcc_cv_readelf != x \
25995 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
25996 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
25997 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
25998 if $gcc_cv_objdump -dw conftest
2>&1 \
25999 |
grep 0xffffff > /dev
/null
2>&1; then
26000 gcc_cv_as_ix86_got32x
=no
26002 gcc_cv_as_ix86_got32x
=yes
26007 echo "configure: failed program was" >&5
26010 rm -f conftest.o conftest.s
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26014 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26018 cat >>confdefs.h
<<_ACEOF
26019 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26024 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26025 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26026 $as_echo_n "(cached) " >&6
26028 gcc_cv_as_ix86_gotoff_in_data
=no
26029 if test $in_tree_gas = yes; then
26030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26031 then gcc_cv_as_ix86_gotoff_in_data
=yes
26033 elif test x
$gcc_cv_as != x
; then
26038 .long .L0@GOTOFF' > conftest.s
26039 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26041 (eval $ac_try) 2>&5
26043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26044 test $ac_status = 0; }; }
26046 gcc_cv_as_ix86_gotoff_in_data
=yes
26048 echo "configure: failed program was" >&5
26051 rm -f conftest.o conftest.s
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26055 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26059 cat >>confdefs.h
<<_ACEOF
26060 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26065 .section .text,"ax",@progbits
26067 .type _start, @function
26069 leal ld@tlsldm(%ecx), %eax
26070 call *___tls_get_addr@GOT(%ecx)
26071 leal gd@tlsgd(%ecx), %eax
26072 call *___tls_get_addr@GOT(%ecx)
26074 .section .tdata,"aw'$tls_section_flag'",@progbits
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26083 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26084 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26085 $as_echo_n "(cached) " >&6
26087 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26088 if test x
$gcc_cv_as != x
; then
26089 $as_echo "$conftest_s" > conftest.s
26090 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26092 (eval $ac_try) 2>&5
26094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26095 test $ac_status = 0; }; }
26097 if test x
$gcc_cv_ld != x \
26098 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26099 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26103 echo "configure: failed program was" >&5
26106 rm -f conftest.o conftest.s
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26110 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26114 cat >>confdefs.h
<<_ACEOF
26115 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26122 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26123 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26124 $as_echo_n "(cached) " >&6
26126 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26127 if test $in_tree_gas = yes; then
26128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26129 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26131 elif test x
$gcc_cv_as != x
; then
26133 addl r15 = @ltoffx(x#), gp
26135 ld8.mov r16 = [r15], x#' > conftest.s
26136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26138 (eval $ac_try) 2>&5
26140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26141 test $ac_status = 0; }; }
26143 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26145 echo "configure: failed program was" >&5
26148 rm -f conftest.o conftest.s
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26152 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26153 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26155 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26167 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26168 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26169 $as_echo_n "(cached) " >&6
26171 gcc_cv_as_machine_directive
=no
26172 if test x
$gcc_cv_as != x
; then
26173 $as_echo ' .machine ppc7400' > conftest.s
26174 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26176 (eval $ac_try) 2>&5
26178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26179 test $ac_status = 0; }; }
26181 gcc_cv_as_machine_directive
=yes
26183 echo "configure: failed program was" >&5
26186 rm -f conftest.o conftest.s
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26190 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26193 if test x
$gcc_cv_as_machine_directive != xyes
; then
26194 echo "*** This target requires an assembler supporting \".machine\"" >&2
26195 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26196 test x
$build = x
$target && exit 1
26202 *-*-aix*) conftest_s
=' .machine "pwr5"
26205 *-*-darwin*) conftest_s
=' .text
26207 *) conftest_s
=' .machine power4
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26213 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26214 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26215 $as_echo_n "(cached) " >&6
26217 gcc_cv_as_powerpc_mfcrf
=no
26218 if test $in_tree_gas = yes; then
26219 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26220 then gcc_cv_as_powerpc_mfcrf
=yes
26222 elif test x
$gcc_cv_as != x
; then
26223 $as_echo "$conftest_s" > conftest.s
26224 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26226 (eval $ac_try) 2>&5
26228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26229 test $ac_status = 0; }; }
26231 gcc_cv_as_powerpc_mfcrf
=yes
26233 echo "configure: failed program was" >&5
26236 rm -f conftest.o conftest.s
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26240 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26241 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26243 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26249 *-*-aix*) conftest_s
=' .machine "pwr5"
26252 *) conftest_s
=' .machine power5
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26258 $as_echo_n "checking assembler for popcntb support... " >&6; }
26259 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26260 $as_echo_n "(cached) " >&6
26262 gcc_cv_as_powerpc_popcntb
=no
26263 if test $in_tree_gas = yes; then
26264 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26265 then gcc_cv_as_powerpc_popcntb
=yes
26267 elif test x
$gcc_cv_as != x
; then
26268 $as_echo "$conftest_s" > conftest.s
26269 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26271 (eval $ac_try) 2>&5
26273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26274 test $ac_status = 0; }; }
26276 gcc_cv_as_powerpc_popcntb
=yes
26278 echo "configure: failed program was" >&5
26281 rm -f conftest.o conftest.s
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26285 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26286 if test $gcc_cv_as_powerpc_popcntb = yes; then
26288 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26294 *-*-aix*) conftest_s
=' .machine "pwr5x"
26297 *) conftest_s
=' .machine power5
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26303 $as_echo_n "checking assembler for fp round support... " >&6; }
26304 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26305 $as_echo_n "(cached) " >&6
26307 gcc_cv_as_powerpc_fprnd
=no
26308 if test $in_tree_gas = yes; then
26309 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26310 then gcc_cv_as_powerpc_fprnd
=yes
26312 elif test x
$gcc_cv_as != x
; then
26313 $as_echo "$conftest_s" > conftest.s
26314 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26316 (eval $ac_try) 2>&5
26318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26319 test $ac_status = 0; }; }
26321 gcc_cv_as_powerpc_fprnd
=yes
26323 echo "configure: failed program was" >&5
26326 rm -f conftest.o conftest.s
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26330 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26331 if test $gcc_cv_as_powerpc_fprnd = yes; then
26333 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26339 *-*-aix*) conftest_s
=' .machine "pwr6"
26342 *) conftest_s
=' .machine power6
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26348 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26349 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26350 $as_echo_n "(cached) " >&6
26352 gcc_cv_as_powerpc_mfpgpr
=no
26353 if test $in_tree_gas = yes; then
26354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26355 then gcc_cv_as_powerpc_mfpgpr
=yes
26357 elif test x
$gcc_cv_as != x
; then
26358 $as_echo "$conftest_s" > conftest.s
26359 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26361 (eval $ac_try) 2>&5
26363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26364 test $ac_status = 0; }; }
26366 gcc_cv_as_powerpc_mfpgpr
=yes
26368 echo "configure: failed program was" >&5
26371 rm -f conftest.o conftest.s
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26375 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26376 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26378 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26384 *-*-aix*) conftest_s
=' .csect .text[PR]
26386 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26390 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26391 *) conftest_s
=' .text
26393 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26397 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26398 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26399 $as_echo_n "(cached) " >&6
26401 gcc_cv_as_powerpc_rel16
=no
26402 if test $in_tree_gas = yes; then
26403 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26404 then gcc_cv_as_powerpc_rel16
=yes
26406 elif test x
$gcc_cv_as != x
; then
26407 $as_echo "$conftest_s" > conftest.s
26408 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26410 (eval $ac_try) 2>&5
26412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26413 test $ac_status = 0; }; }
26415 gcc_cv_as_powerpc_rel16
=yes
26417 echo "configure: failed program was" >&5
26420 rm -f conftest.o conftest.s
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26424 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26425 if test $gcc_cv_as_powerpc_rel16 = yes; then
26427 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26433 *-*-aix*) conftest_s
=' .machine "pwr6"
26436 *) conftest_s
=' .machine power6
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26442 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26443 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26444 $as_echo_n "(cached) " >&6
26446 gcc_cv_as_powerpc_cmpb
=no
26447 if test $in_tree_gas = yes; then
26448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26449 then gcc_cv_as_powerpc_cmpb
=yes
26451 elif test x
$gcc_cv_as != x
; then
26452 $as_echo "$conftest_s" > conftest.s
26453 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26455 (eval $ac_try) 2>&5
26457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26458 test $ac_status = 0; }; }
26460 gcc_cv_as_powerpc_cmpb
=yes
26462 echo "configure: failed program was" >&5
26465 rm -f conftest.o conftest.s
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26469 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26470 if test $gcc_cv_as_powerpc_cmpb = yes; then
26472 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26478 *-*-aix*) conftest_s
=' .machine "pwr6"
26481 *) conftest_s
=' .machine power6
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26487 $as_echo_n "checking assembler for decimal float support... " >&6; }
26488 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26489 $as_echo_n "(cached) " >&6
26491 gcc_cv_as_powerpc_dfp
=no
26492 if test $in_tree_gas = yes; then
26493 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26494 then gcc_cv_as_powerpc_dfp
=yes
26496 elif test x
$gcc_cv_as != x
; then
26497 $as_echo "$conftest_s" > conftest.s
26498 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26500 (eval $ac_try) 2>&5
26502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26503 test $ac_status = 0; }; }
26505 gcc_cv_as_powerpc_dfp
=yes
26507 echo "configure: failed program was" >&5
26510 rm -f conftest.o conftest.s
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26514 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26515 if test $gcc_cv_as_powerpc_dfp = yes; then
26517 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26523 *-*-aix*) conftest_s
=' .machine "pwr7"
26526 *) conftest_s
=' .machine power7
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26532 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26533 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26534 $as_echo_n "(cached) " >&6
26536 gcc_cv_as_powerpc_vsx
=no
26537 if test $in_tree_gas = yes; then
26538 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26539 then gcc_cv_as_powerpc_vsx
=yes
26541 elif test x
$gcc_cv_as != x
; then
26542 $as_echo "$conftest_s" > conftest.s
26543 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26545 (eval $ac_try) 2>&5
26547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26548 test $ac_status = 0; }; }
26550 gcc_cv_as_powerpc_vsx
=yes
26552 echo "configure: failed program was" >&5
26555 rm -f conftest.o conftest.s
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26559 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26560 if test $gcc_cv_as_powerpc_vsx = yes; then
26562 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26568 *-*-aix*) conftest_s
=' .machine "pwr7"
26571 *) conftest_s
=' .machine power7
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26577 $as_echo_n "checking assembler for popcntd support... " >&6; }
26578 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26579 $as_echo_n "(cached) " >&6
26581 gcc_cv_as_powerpc_popcntd
=no
26582 if test $in_tree_gas = yes; then
26583 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26584 then gcc_cv_as_powerpc_popcntd
=yes
26586 elif test x
$gcc_cv_as != x
; then
26587 $as_echo "$conftest_s" > conftest.s
26588 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26590 (eval $ac_try) 2>&5
26592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26593 test $ac_status = 0; }; }
26595 gcc_cv_as_powerpc_popcntd
=yes
26597 echo "configure: failed program was" >&5
26600 rm -f conftest.o conftest.s
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26604 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26605 if test $gcc_cv_as_powerpc_popcntd = yes; then
26607 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26613 *-*-aix*) conftest_s
=' .machine "pwr8"
26614 .csect .text[PR]';;
26615 *) conftest_s
=' .machine power8
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26620 $as_echo_n "checking assembler for power8 support... " >&6; }
26621 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26622 $as_echo_n "(cached) " >&6
26624 gcc_cv_as_powerpc_power8
=no
26625 if test $in_tree_gas = yes; then
26626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26627 then gcc_cv_as_powerpc_power8
=yes
26629 elif test x
$gcc_cv_as != x
; then
26630 $as_echo "$conftest_s" > conftest.s
26631 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26633 (eval $ac_try) 2>&5
26635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26636 test $ac_status = 0; }; }
26638 gcc_cv_as_powerpc_power8
=yes
26640 echo "configure: failed program was" >&5
26643 rm -f conftest.o conftest.s
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26647 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26648 if test $gcc_cv_as_powerpc_power8 = yes; then
26650 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26656 *-*-aix*) conftest_s
=' .machine "pwr9"
26657 .csect .text[PR]';;
26658 *) conftest_s
=' .machine power9
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26663 $as_echo_n "checking assembler for power9 support... " >&6; }
26664 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26665 $as_echo_n "(cached) " >&6
26667 gcc_cv_as_powerpc_power9
=no
26668 if test $in_tree_gas = yes; then
26669 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26670 then gcc_cv_as_powerpc_power9
=yes
26672 elif test x
$gcc_cv_as != x
; then
26673 $as_echo "$conftest_s" > conftest.s
26674 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26676 (eval $ac_try) 2>&5
26678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26679 test $ac_status = 0; }; }
26681 gcc_cv_as_powerpc_power9
=yes
26683 echo "configure: failed program was" >&5
26686 rm -f conftest.o conftest.s
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26690 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26691 if test $gcc_cv_as_powerpc_power9 = yes; then
26693 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26699 *-*-aix*) conftest_s
=' .csect .text[PR]
26701 *) conftest_s
=' .text
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26706 $as_echo_n "checking assembler for lwsync support... " >&6; }
26707 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26708 $as_echo_n "(cached) " >&6
26710 gcc_cv_as_powerpc_lwsync
=no
26711 if test $in_tree_gas = yes; then
26712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26713 then gcc_cv_as_powerpc_lwsync
=yes
26715 elif test x
$gcc_cv_as != x
; then
26716 $as_echo "$conftest_s" > conftest.s
26717 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26719 (eval $ac_try) 2>&5
26721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26722 test $ac_status = 0; }; }
26724 gcc_cv_as_powerpc_lwsync
=yes
26726 echo "configure: failed program was" >&5
26729 rm -f conftest.o conftest.s
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26733 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26734 if test $gcc_cv_as_powerpc_lwsync = yes; then
26736 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26742 *-*-aix*) conftest_s
=' .machine "476"
26745 *) conftest_s
=' .machine "476"
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26751 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26752 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26753 $as_echo_n "(cached) " >&6
26755 gcc_cv_as_powerpc_dci
=no
26756 if test $in_tree_gas = yes; then
26757 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26758 then gcc_cv_as_powerpc_dci
=yes
26760 elif test x
$gcc_cv_as != x
; then
26761 $as_echo "$conftest_s" > conftest.s
26762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26764 (eval $ac_try) 2>&5
26766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26767 test $ac_status = 0; }; }
26769 gcc_cv_as_powerpc_dci
=yes
26771 echo "configure: failed program was" >&5
26774 rm -f conftest.o conftest.s
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26778 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26779 if test $gcc_cv_as_powerpc_dci = yes; then
26781 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26787 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26788 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26789 $as_echo_n "(cached) " >&6
26791 gcc_cv_as_powerpc_gnu_attribute
=no
26792 if test $in_tree_gas = yes; then
26793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26794 then gcc_cv_as_powerpc_gnu_attribute
=yes
26796 elif test x
$gcc_cv_as != x
; then
26797 $as_echo '.gnu_attribute 4,1' > conftest.s
26798 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26800 (eval $ac_try) 2>&5
26802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26803 test $ac_status = 0; }; }
26805 gcc_cv_as_powerpc_gnu_attribute
=yes
26807 echo "configure: failed program was" >&5
26810 rm -f conftest.o conftest.s
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26814 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26815 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26817 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26823 $as_echo_n "checking assembler for tls marker support... " >&6; }
26824 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26825 $as_echo_n "(cached) " >&6
26827 gcc_cv_as_powerpc_tls_markers
=no
26828 if test $in_tree_gas = yes; then
26829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26830 then gcc_cv_as_powerpc_tls_markers
=yes
26832 elif test x
$gcc_cv_as != x
; then
26833 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26834 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26836 (eval $ac_try) 2>&5
26838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26839 test $ac_status = 0; }; }
26841 gcc_cv_as_powerpc_tls_markers
=yes
26843 echo "configure: failed program was" >&5
26846 rm -f conftest.o conftest.s
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26850 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26851 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26853 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26859 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26860 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26861 $as_echo_n "(cached) " >&6
26863 gcc_cv_as_powerpc_entry_markers
=no
26864 if test $in_tree_gas = yes; then
26865 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26866 then gcc_cv_as_powerpc_entry_markers
=yes
26868 elif test x
$gcc_cv_as != x
; then
26869 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26872 (eval $ac_try) 2>&5
26874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26875 test $ac_status = 0; }; }
26877 gcc_cv_as_powerpc_entry_markers
=yes
26879 echo "configure: failed program was" >&5
26882 rm -f conftest.o conftest.s
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26886 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26887 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26889 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26897 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26898 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26899 $as_echo_n "(cached) " >&6
26901 gcc_cv_as_aix_ref
=no
26902 if test $in_tree_gas = yes; then
26903 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26904 then gcc_cv_as_aix_ref
=yes
26906 elif test x
$gcc_cv_as != x
; then
26907 $as_echo ' .csect stuff[rw]
26913 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26915 (eval $ac_try) 2>&5
26917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26918 test $ac_status = 0; }; }
26920 gcc_cv_as_aix_ref
=yes
26922 echo "configure: failed program was" >&5
26925 rm -f conftest.o conftest.s
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26929 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26930 if test $gcc_cv_as_aix_ref = yes; then
26932 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26938 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26939 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26940 $as_echo_n "(cached) " >&6
26942 gcc_cv_as_aix_dwloc
=no
26943 if test $in_tree_gas = yes; then
26944 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26945 then gcc_cv_as_aix_dwloc
=yes
26947 elif test x
$gcc_cv_as != x
; then
26948 $as_echo ' .dwsect 0xA0000
26952 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26954 (eval $ac_try) 2>&5
26956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26957 test $ac_status = 0; }; }
26959 gcc_cv_as_aix_dwloc
=yes
26961 echo "configure: failed program was" >&5
26964 rm -f conftest.o conftest.s
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26968 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26969 if test $gcc_cv_as_aix_dwloc = yes; then
26971 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26981 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26982 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26983 $as_echo_n "(cached) " >&6
26985 gcc_cv_as_mips_explicit_relocs
=no
26986 if test $in_tree_gas = yes; then
26987 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26988 then gcc_cv_as_mips_explicit_relocs
=yes
26990 elif test x
$gcc_cv_as != x
; then
26991 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26992 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26994 (eval $ac_try) 2>&5
26996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26997 test $ac_status = 0; }; }
26999 gcc_cv_as_mips_explicit_relocs
=yes
27001 echo "configure: failed program was" >&5
27004 rm -f conftest.o conftest.s
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27008 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27009 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27010 if test x
$target_cpu_default = x
27011 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27012 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27018 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27019 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27020 $as_echo_n "(cached) " >&6
27022 gcc_cv_as_mips_no_shared
=no
27023 if test $in_tree_gas = yes; then
27024 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27025 then gcc_cv_as_mips_no_shared
=yes
27027 elif test x
$gcc_cv_as != x
; then
27028 $as_echo 'nop' > conftest.s
27029 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27031 (eval $ac_try) 2>&5
27033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27034 test $ac_status = 0; }; }
27036 gcc_cv_as_mips_no_shared
=yes
27038 echo "configure: failed program was" >&5
27041 rm -f conftest.o conftest.s
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27045 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27046 if test $gcc_cv_as_mips_no_shared = yes; then
27048 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27054 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27055 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27056 $as_echo_n "(cached) " >&6
27058 gcc_cv_as_mips_gnu_attribute
=no
27059 if test $in_tree_gas = yes; then
27060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27061 then gcc_cv_as_mips_gnu_attribute
=yes
27063 elif test x
$gcc_cv_as != x
; then
27064 $as_echo '.gnu_attribute 4,1' > conftest.s
27065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27067 (eval $ac_try) 2>&5
27069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27070 test $ac_status = 0; }; }
27072 gcc_cv_as_mips_gnu_attribute
=yes
27074 echo "configure: failed program was" >&5
27077 rm -f conftest.o conftest.s
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27081 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27082 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27084 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27090 $as_echo_n "checking assembler for .module support... " >&6; }
27091 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27092 $as_echo_n "(cached) " >&6
27094 gcc_cv_as_mips_dot_module
=no
27095 if test x
$gcc_cv_as != x
; then
27096 $as_echo '.module mips2
27097 .module fp=xx' > conftest.s
27098 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27100 (eval $ac_try) 2>&5
27102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27103 test $ac_status = 0; }; }
27105 gcc_cv_as_mips_dot_module
=yes
27107 echo "configure: failed program was" >&5
27110 rm -f conftest.o conftest.s
27113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27114 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27115 if test $gcc_cv_as_mips_dot_module = yes; then
27117 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27121 if test x
$gcc_cv_as_mips_dot_module = xno \
27122 && test x
$with_fp_32 != x
; then
27123 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27127 $as_echo_n "checking assembler for .micromips support... " >&6; }
27128 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27129 $as_echo_n "(cached) " >&6
27131 gcc_cv_as_micromips_support
=no
27132 if test x
$gcc_cv_as != x
; then
27133 $as_echo '.set micromips' > conftest.s
27134 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27136 (eval $ac_try) 2>&5
27138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27139 test $ac_status = 0; }; }
27141 gcc_cv_as_micromips_support
=yes
27143 echo "configure: failed program was" >&5
27146 rm -f conftest.o conftest.s
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27150 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27151 if test $gcc_cv_as_micromips_support = yes; then
27153 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27159 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27160 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27161 $as_echo_n "(cached) " >&6
27163 gcc_cv_as_mips_dtprelword
=no
27164 if test $in_tree_gas = yes; then
27165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27166 then gcc_cv_as_mips_dtprelword
=yes
27168 elif test x
$gcc_cv_as != x
; then
27169 $as_echo '.section .tdata,"awT",@progbits
27173 .dtprelword x+0x8000' > conftest.s
27174 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27176 (eval $ac_try) 2>&5
27178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27179 test $ac_status = 0; }; }
27181 gcc_cv_as_mips_dtprelword
=yes
27183 echo "configure: failed program was" >&5
27186 rm -f conftest.o conftest.s
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27190 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27191 if test $gcc_cv_as_mips_dtprelword = yes; then
27193 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27199 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27200 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27201 $as_echo_n "(cached) " >&6
27203 gcc_cv_as_mips_dspr1_mult
=no
27204 if test x
$gcc_cv_as != x
; then
27205 $as_echo ' .set mips32r2
27213 multu $ac3,$4,$5' > conftest.s
27214 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27216 (eval $ac_try) 2>&5
27218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27219 test $ac_status = 0; }; }
27221 gcc_cv_as_mips_dspr1_mult
=yes
27223 echo "configure: failed program was" >&5
27226 rm -f conftest.o conftest.s
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27230 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27231 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27233 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27239 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27240 gcc_cv_as_ld_jalr_reloc
=no
27241 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27242 if test $in_tree_ld = yes ; then
27243 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 \
27244 && test $in_tree_ld_is_elf = yes; then
27245 gcc_cv_as_ld_jalr_reloc
=yes
27247 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27248 echo ' .ent x' > conftest.s
27249 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27250 echo ' lw $25,%call16(y)($28)' >> conftest.s
27251 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27252 echo '1: jalr $25' >> conftest.s
27253 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27254 echo '1: jalr $25' >> conftest.s
27255 echo ' .end x' >> conftest.s
27256 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27257 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27258 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27259 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27260 gcc_cv_as_ld_jalr_reloc
=yes
27266 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27267 if test x
$target_cpu_default = x
; then
27268 target_cpu_default
=MASK_RELAX_PIC_CALLS
27270 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27274 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27277 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27278 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27279 $as_echo_n "(cached) " >&6
27281 gcc_cv_ld_mips_personality_relaxation
=no
27282 if test $in_tree_ld = yes ; then
27283 if test "$gcc_cv_gld_major_version" -eq 2 \
27284 -a "$gcc_cv_gld_minor_version" -ge 21 \
27285 -o "$gcc_cv_gld_major_version" -gt 2; then
27286 gcc_cv_ld_mips_personality_relaxation
=yes
27288 elif test x
$gcc_cv_as != x \
27289 -a x
$gcc_cv_ld != x \
27290 -a x
$gcc_cv_readelf != x
; then
27291 cat > conftest.s
<<EOF
27293 .cfi_personality 0x80,indirect_ptr
27300 .section .data,"aw",@progbits
27304 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27305 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27306 if $gcc_cv_readelf -d conftest
2>&1 \
27307 |
grep TEXTREL
> /dev
/null
2>&1; then
27309 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27310 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27313 gcc_cv_ld_mips_personality_relaxation
=yes
27317 rm -f conftest.s conftest.o conftest
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27320 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27321 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27323 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27328 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27329 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27330 $as_echo_n "(cached) " >&6
27332 gcc_cv_as_mips_nan
=no
27333 if test x
$gcc_cv_as != x
; then
27334 $as_echo '' > conftest.s
27335 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27337 (eval $ac_try) 2>&5
27339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27340 test $ac_status = 0; }; }
27342 gcc_cv_as_mips_nan
=yes
27344 echo "configure: failed program was" >&5
27347 rm -f conftest.o conftest.s
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27351 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27352 if test $gcc_cv_as_mips_nan = yes; then
27354 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27358 if test x
$gcc_cv_as_mips_nan = xno \
27359 && test x
$with_nan != x
; then
27360 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27365 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27366 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27367 $as_echo_n "(cached) " >&6
27369 gcc_cv_as_s390_gnu_attribute
=no
27370 if test $in_tree_gas = yes; then
27371 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27372 then gcc_cv_as_s390_gnu_attribute
=yes
27374 elif test x
$gcc_cv_as != x
; then
27375 $as_echo '.gnu_attribute 8,1' > conftest.s
27376 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27378 (eval $ac_try) 2>&5
27380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27381 test $ac_status = 0; }; }
27383 gcc_cv_as_s390_gnu_attribute
=yes
27385 echo "configure: failed program was" >&5
27388 rm -f conftest.o conftest.s
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27392 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27393 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27395 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27400 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27401 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27402 $as_echo_n "(cached) " >&6
27404 gcc_cv_as_s390_machine_machinemode
=no
27405 if test $in_tree_gas = yes; then
27406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27407 then gcc_cv_as_s390_machine_machinemode
=yes
27409 elif test x
$gcc_cv_as != x
; then
27410 $as_echo ' .machinemode push
27413 .machine pop' > conftest.s
27414 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27416 (eval $ac_try) 2>&5
27418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27419 test $ac_status = 0; }; }
27421 gcc_cv_as_s390_machine_machinemode
=yes
27423 echo "configure: failed program was" >&5
27426 rm -f conftest.o conftest.s
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27430 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27431 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27433 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27438 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27439 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27440 $as_echo_n "(cached) " >&6
27442 gcc_cv_as_s390_architecture_modifiers
=no
27443 if test $in_tree_gas = yes; then
27444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27445 then gcc_cv_as_s390_architecture_modifiers
=yes
27447 elif test x
$gcc_cv_as != x
; then
27448 $as_echo ' .machine z13+vx ' > conftest.s
27449 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27451 (eval $ac_try) 2>&5
27453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27454 test $ac_status = 0; }; }
27456 gcc_cv_as_s390_architecture_modifiers
=yes
27458 echo "configure: failed program was" >&5
27461 rm -f conftest.o conftest.s
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27465 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27466 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27468 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27475 # Mips and HP-UX need the GNU assembler.
27476 # Linux on IA64 might be able to use the Intel assembler.
27479 mips
*-*-* |
*-*-hpux* )
27480 if test x
$gas_flag = xyes \
27481 ||
test x
"$host" != x
"$build" \
27482 ||
test ! -x "$gcc_cv_as" \
27483 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27486 echo "*** This configuration requires the GNU assembler" >&2
27492 # ??? Not all targets support dwarf2 debug_line, even within a version
27493 # of gas. Moreover, we need to emit a valid instruction to trigger any
27494 # info to the output file. So, as supported targets are added to gas 2.11,
27495 # add some instruction here to (also) show we expect this might work.
27496 # ??? Once 2.11 is released, probably need to add first known working
27497 # version to the per-target configury.
27498 case "$cpu_type" in
27499 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27500 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27501 | visium | xstormy16 | xtensa
)
27511 if test x
"$insn" != x
; then
27513 .file 1 \"conftest.s\"
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27517 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27518 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27519 $as_echo_n "(cached) " >&6
27521 gcc_cv_as_dwarf2_debug_line
=no
27522 if test $in_tree_gas = yes; then
27523 if test $in_tree_gas_is_elf = yes \
27524 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27525 then gcc_cv_as_dwarf2_debug_line
=yes
27527 elif test x
$gcc_cv_as != x
; then
27528 $as_echo "$conftest_s" > conftest.s
27529 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27531 (eval $ac_try) 2>&5
27533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27534 test $ac_status = 0; }; }
27536 if test x
$gcc_cv_objdump != x \
27537 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27538 |
grep debug_line
> /dev
/null
2>&1; then
27539 gcc_cv_as_dwarf2_debug_line
=yes
27542 echo "configure: failed program was" >&5
27545 rm -f conftest.o conftest.s
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27549 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27553 # The .debug_line file table must be in the exact order that
27554 # we specified the files, since these indices are also used
27555 # by DW_AT_decl_file. Approximate this test by testing if
27556 # the assembler bitches if the same index is assigned twice.
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27558 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27559 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27560 $as_echo_n "(cached) " >&6
27562 gcc_cv_as_dwarf2_file_buggy
=no
27563 if test x
$gcc_cv_as != x
; then
27564 $as_echo ' .file 1 "foo.s"
27565 .file 1 "bar.s"' > conftest.s
27566 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27568 (eval $ac_try) 2>&5
27570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27571 test $ac_status = 0; }; }
27573 gcc_cv_as_dwarf2_file_buggy
=yes
27575 echo "configure: failed program was" >&5
27578 rm -f conftest.o conftest.s
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27582 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27586 if test $gcc_cv_as_dwarf2_debug_line = yes \
27587 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27589 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27594 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27595 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27596 $as_echo_n "(cached) " >&6
27598 gcc_cv_as_gdwarf2_flag
=no
27599 if test $in_tree_gas = yes; then
27600 if test $in_tree_gas_is_elf = yes \
27601 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27602 then gcc_cv_as_gdwarf2_flag
=yes
27604 elif test x
$gcc_cv_as != x
; then
27605 $as_echo "$insn" > conftest.s
27606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27608 (eval $ac_try) 2>&5
27610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27611 test $ac_status = 0; }; }
27613 gcc_cv_as_gdwarf2_flag
=yes
27615 echo "configure: failed program was" >&5
27618 rm -f conftest.o conftest.s
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27622 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27623 if test $gcc_cv_as_gdwarf2_flag = yes; then
27625 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27631 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27632 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27633 $as_echo_n "(cached) " >&6
27635 gcc_cv_as_gstabs_flag
=no
27636 if test $in_tree_gas = yes; then
27637 if test $in_tree_gas_is_elf = yes \
27638 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27639 then gcc_cv_as_gstabs_flag
=yes
27641 elif test x
$gcc_cv_as != x
; then
27642 $as_echo "$insn" > conftest.s
27643 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27645 (eval $ac_try) 2>&5
27647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27648 test $ac_status = 0; }; }
27650 gcc_cv_as_gstabs_flag
=yes
27652 echo "configure: failed program was" >&5
27655 rm -f conftest.o conftest.s
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27659 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27660 if test $gcc_cv_as_gstabs_flag = yes; then
27662 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27668 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27669 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27670 $as_echo_n "(cached) " >&6
27672 gcc_cv_as_debug_prefix_map_flag
=no
27673 if test $in_tree_gas = yes; then
27674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27675 then gcc_cv_as_debug_prefix_map_flag
=yes
27677 elif test x
$gcc_cv_as != x
; then
27678 $as_echo "$insn" > conftest.s
27679 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27681 (eval $ac_try) 2>&5
27683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27684 test $ac_status = 0; }; }
27686 gcc_cv_as_debug_prefix_map_flag
=yes
27688 echo "configure: failed program was" >&5
27691 rm -f conftest.o conftest.s
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27695 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27696 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27698 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27705 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27706 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27707 $as_echo_n "(cached) " >&6
27709 gcc_cv_as_compress_debug
=no
27710 if test x
$gcc_cv_as != x
; then
27711 $as_echo '' > conftest.s
27712 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27714 (eval $ac_try) 2>&5
27716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27717 test $ac_status = 0; }; }
27719 # gas compiled without zlib cannot compress debug sections and warns
27720 # about it, but still exits successfully. So check for this, too.
27721 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27723 gcc_cv_as_compress_debug
=0
27724 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27725 # defaulting to the ELF gABI format.
27726 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
27728 gcc_cv_as_compress_debug
=2
27729 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27730 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27731 # Before binutils 2.26, gas only supported --compress-debug-options and
27732 # emitted the traditional GNU format.
27733 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27735 gcc_cv_as_compress_debug
=1
27736 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27737 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27739 gcc_cv_as_compress_debug
=0
27742 echo "configure: failed program was" >&5
27745 rm -f conftest.o conftest.s
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27749 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27753 cat >>confdefs.h
<<_ACEOF
27754 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27758 cat >>confdefs.h
<<_ACEOF
27759 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27763 cat >>confdefs.h
<<_ACEOF
27764 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27769 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27770 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27771 $as_echo_n "(cached) " >&6
27773 gcc_cv_as_lcomm_with_alignment
=no
27774 if test x
$gcc_cv_as != x
; then
27775 $as_echo '.lcomm bar,4,16' > conftest.s
27776 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27778 (eval $ac_try) 2>&5
27780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27781 test $ac_status = 0; }; }
27783 gcc_cv_as_lcomm_with_alignment
=yes
27785 echo "configure: failed program was" >&5
27788 rm -f conftest.o conftest.s
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27792 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27793 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27795 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27800 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27801 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27802 && test "$prefix" != "NONE"; then
27804 cat >>confdefs.h
<<_ACEOF
27805 #define PREFIX_INCLUDE_DIR "$prefix/include"
27810 # Determine the version of glibc, if any, used on the target.
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27812 $as_echo_n "checking for target glibc version... " >&6; }
27814 # Check whether --with-glibc-version was given.
27815 if test "${with_glibc_version+set}" = set; then :
27816 withval
=$with_glibc_version;
27817 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27818 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27819 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27821 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27825 glibc_version_major
=0
27826 glibc_version_minor
=0
27827 if test -f $target_header_dir/features.h \
27828 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27829 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27830 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27831 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27836 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27838 cat >>confdefs.h
<<_ACEOF
27839 #define TARGET_GLIBC_MAJOR $glibc_version_major
27843 cat >>confdefs.h
<<_ACEOF
27844 #define TARGET_GLIBC_MINOR $glibc_version_minor
27848 # Check whether --enable-gnu-unique-object was given.
27849 if test "${enable_gnu_unique_object+set}" = set; then :
27850 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27852 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27853 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27857 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27858 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27859 $as_echo_n "(cached) " >&6
27861 gcc_cv_as_gnu_unique_object
=no
27862 if test $in_tree_gas = yes; then
27863 if test $in_tree_gas_is_elf = yes \
27864 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27865 then gcc_cv_as_gnu_unique_object
=yes
27867 elif test x
$gcc_cv_as != x
; then
27868 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27871 (eval $ac_try) 2>&5
27873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27874 test $ac_status = 0; }; }
27876 gcc_cv_as_gnu_unique_object
=yes
27878 echo "configure: failed program was" >&5
27881 rm -f conftest.o conftest.s
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27885 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27886 if test $gcc_cv_as_gnu_unique_object = yes; then
27887 # We need to unquote above to to use the definition from config.gcc.
27888 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27890 if test $glibc_version_major -gt 2 \
27891 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27892 enable_gnu_unique_object
=yes
27899 if test x
$enable_gnu_unique_object = xyes
; then
27901 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27906 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27907 if test "${gcc_cv_as_line_zero+set}" = set; then :
27908 $as_echo_n "(cached) " >&6
27910 gcc_cv_as_line_zero
=no
27911 if test $in_tree_gas = yes; then
27912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27913 then gcc_cv_as_line_zero
=yes
27915 elif test "x$gcc_cv_as" != x
; then
27916 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27917 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27919 (eval $ac_try) 2>&5
27921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27922 test $ac_status = 0; }; } &&
27923 test "x`cat conftest.out`" = x
27925 gcc_cv_as_line_zero
=yes
27927 echo "configure: failed program was" >&5
27929 echo "configure: error output was" >&5
27930 cat conftest.out
>&5
27932 rm -f conftest.o conftest.s conftest.out
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27936 $as_echo "$gcc_cv_as_line_zero" >&6; }
27937 if test "x$gcc_cv_as_line_zero" = xyes
; then
27939 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27944 $as_echo_n "checking support for thin archives... " >&6; }
27945 thin_archive_support
=no
27946 echo 'int main (void) { return 0; }' > conftest.c
27947 if ($AR --version |
sed 1q |
grep "GNU ar" \
27948 && $CC $CFLAGS -c conftest.c \
27949 && $AR rcT conftest.a conftest.o \
27950 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
27951 thin_archive_support
=yes
27953 rm -f conftest.c conftest.o conftest.a conftest
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27955 $as_echo "$thin_archive_support" >&6; }
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27959 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27960 gcc_cv_ld_eh_frame_hdr
=no
27961 if test $in_tree_ld = yes ; then
27962 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 \
27963 && test $in_tree_ld_is_elf = yes; then
27964 gcc_cv_ld_eh_frame_hdr
=yes
27966 elif test x
$gcc_cv_ld != x
; then
27967 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27968 # Check if linker supports --eh-frame-hdr option
27969 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27970 gcc_cv_ld_eh_frame_hdr
=yes
27975 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27976 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27977 gcc_cv_ld_eh_frame_hdr
=yes
27984 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27986 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27990 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27993 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27994 gcc_cv_ld_eh_frame_ciev3
=no
27995 if test $in_tree_ld = yes ; then
27996 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 \
27997 && test $in_tree_ld_is_elf = yes; then
27998 gcc_cv_ld_eh_frame_ciev3
=yes
28000 elif test x
$gcc_cv_ld != x
; then
28001 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28002 gcc_cv_ld_eh_frame_ciev3
=yes
28003 if test 0"$ld_date" -lt 20040513; then
28004 if test -n "$ld_date"; then
28005 # If there was date string, but was earlier than 2004-05-13, fail
28006 gcc_cv_ld_eh_frame_ciev3
=no
28007 elif test "$ld_vers_major" -lt 2; then
28008 gcc_cv_ld_eh_frame_ciev3
=no
28009 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28010 gcc_cv_ld_eh_frame_ciev3
=no
28016 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28017 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28018 gcc_cv_ld_eh_frame_ciev3
=yes
28025 cat >>confdefs.h
<<_ACEOF
28026 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28030 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28033 $as_echo_n "checking linker position independent executable support... " >&6; }
28035 if test $in_tree_ld = yes ; then
28037 # Full PIE support on Solaris was only introduced in gld 2.26.
28038 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28039 *) gcc_gld_pie_min_version
=15 ;;
28041 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
28042 && test $in_tree_ld_is_elf = yes; then
28045 elif test x
$gcc_cv_ld != x
; then
28046 # Check if linker supports -pie option
28047 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
28051 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28052 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28059 *-*-solaris2.1
[1-9]*)
28060 # Solaris 11.x and Solaris 12 added PIE support.
28061 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28068 if test x
"$gcc_cv_ld_pie" = xyes
; then
28070 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28074 $as_echo "$gcc_cv_ld_pie" >&6; }
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28077 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28078 gcc_cv_ld_pie_copyreloc
=no
28079 if test $gcc_cv_ld_pie = yes ; then
28080 if test $in_tree_ld = yes ; then
28081 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
28082 gcc_cv_ld_pie_copyreloc
=yes
28084 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28085 # Check if linker supports -pie option with copy reloc
28087 i?
86-*-linux* | x86_64-
*-linux*)
28088 cat > conftest1.s
<<EOF
28091 .type a_glob, @object
28096 cat > conftest2.s
<<EOF
28099 .type main, @function
28101 movl %eax, a_glob(%rip)
28104 .section .data.rel,"aw",@progbits
28109 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28110 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28111 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28112 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28113 gcc_cv_ld_pie_copyreloc
=yes
28115 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28121 cat >>confdefs.h
<<_ACEOF
28122 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28126 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28129 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28130 gcc_cv_ld_eh_gc_sections
=no
28131 if test $in_tree_ld = yes ; then
28132 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 \
28133 && test $in_tree_ld_is_elf = yes; then
28134 gcc_cv_ld_eh_gc_sections
=yes
28136 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28137 cat > conftest.s
<<EOF
28140 .type _start, @function
28143 .size _start, .-_start
28144 .section .text.foo,"ax",@progbits
28145 .type foo, @function
28149 .section .gcc_except_table.foo,"a",@progbits
28152 .section .eh_frame,"a",@progbits
28155 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28156 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28157 |
grep "gc-sections option ignored" > /dev
/null
; then
28158 gcc_cv_ld_eh_gc_sections
=no
28159 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28160 |
grep gcc_except_table
> /dev
/null
; then
28161 gcc_cv_ld_eh_gc_sections
=yes
28162 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28163 if test x
$gcc_cv_as_comdat_group != xyes
; then
28164 gcc_cv_ld_eh_gc_sections
=no
28165 cat > conftest.s
<<EOF
28168 .type _start, @function
28171 .size _start, .-_start
28172 .section .gnu.linkonce.t.foo,"ax",@progbits
28173 .type foo, @function
28177 .section .gcc_except_table.foo,"a",@progbits
28180 .section .eh_frame,"a",@progbits
28183 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28184 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28185 |
grep "gc-sections option ignored" > /dev
/null
; then
28186 gcc_cv_ld_eh_gc_sections
=no
28187 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28188 |
grep gcc_except_table
> /dev
/null
; then
28189 gcc_cv_ld_eh_gc_sections
=yes
28195 rm -f conftest.s conftest.o conftest
28199 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28200 gcc_cv_ld_eh_gc_sections
=no
28203 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28205 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28209 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28212 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28213 gcc_cv_ld_eh_gc_sections_bug
=no
28214 if test $in_tree_ld = yes ; then
28215 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 \
28216 && test $in_tree_ld_is_elf = yes; then
28217 gcc_cv_ld_eh_gc_sections_bug
=yes
28219 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
28220 gcc_cv_ld_eh_gc_sections_bug
=yes
28221 cat > conftest.s
<<EOF
28224 .type _start, @function
28227 .size _start, .-_start
28228 .section .text.startup.foo,"ax",@progbits
28229 .type foo, @function
28233 .section .gcc_except_table.foo,"a",@progbits
28236 .section .eh_frame,"a",@progbits
28239 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28240 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28241 |
grep "gc-sections option ignored" > /dev
/null
; then
28243 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28244 |
grep gcc_except_table
> /dev
/null
; then
28245 gcc_cv_ld_eh_gc_sections_bug
=no
28248 rm -f conftest.s conftest.o conftest
28250 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28252 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28256 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28259 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28260 # gold/gld support compressed debug sections since binutils 2.19/2.21
28261 # In binutils 2.26, gld gained support for the ELF gABI format.
28262 if test $in_tree_ld = yes ; then
28263 gcc_cv_ld_compress_debug
=0
28264 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
28265 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28266 gcc_cv_ld_compress_debug
=2
28267 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28268 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28269 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28270 gcc_cv_ld_compress_debug
=3
28271 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28272 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
28273 && test $in_tree_ld_is_elf = yes; then
28274 gcc_cv_ld_compress_debug
=1
28276 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28277 if test "$ld_vers_major" -lt 2 \
28278 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28279 gcc_cv_ld_compress_debug
=0
28280 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28281 gcc_cv_ld_compress_debug
=1
28283 gcc_cv_ld_compress_debug
=3
28284 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28286 if test $ld_is_gold = yes; then
28287 gcc_cv_ld_compress_debug
=2
28288 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28291 case "${target}" in
28293 # Introduced in Solaris 11.2.
28294 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28295 gcc_cv_ld_compress_debug
=3
28296 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28298 gcc_cv_ld_compress_debug
=0
28302 # Assume linkers other than GNU ld don't support compessed debug
28304 gcc_cv_ld_compress_debug
=0
28309 cat >>confdefs.h
<<_ACEOF
28310 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28314 cat >>confdefs.h
<<_ACEOF
28315 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28319 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28321 if test x
"$ld64_flag" = x
"yes"; then
28323 # Set defaults for possibly untestable items.
28324 gcc_cv_ld64_export_dynamic
=0
28326 if test "$build" = "$host"; then
28332 # On Darwin, because of FAT library support, it is often possible to execute
28333 # exes from compatible archs even when the host differs from the build system.
28334 case "$build","$host" in
28335 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28336 darwin_try_test
=1;;
28340 # If the configurer specified a minimum ld64 version to be supported, then use
28341 # that to determine feature support.
28342 if test x
"${gcc_cv_ld64_version}" != x
; then
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28344 $as_echo_n "checking ld64 specified version... " >&6; }
28345 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28347 $as_echo "$gcc_cv_ld64_major" >&6; }
28348 if test "$gcc_cv_ld64_major" -ge 236; then
28349 gcc_cv_ld64_export_dynamic
=1
28351 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28352 # If the version was not specified, try to find it.
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28354 $as_echo_n "checking linker version... " >&6; }
28355 if test x
"${gcc_cv_ld64_version}" = x
; then
28356 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28359 $as_echo "$gcc_cv_ld64_version" >&6; }
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28362 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28363 gcc_cv_ld64_export_dynamic
=1
28364 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28365 gcc_cv_ld64_export_dynamic
=0
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28368 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28371 if test x
"${gcc_cv_ld64_version}" != x
; then
28373 cat >>confdefs.h
<<_ACEOF
28374 #define LD64_VERSION "${gcc_cv_ld64_version}"
28380 cat >>confdefs.h
<<_ACEOF
28381 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28391 $as_echo_n "checking linker --as-needed support... " >&6; }
28392 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28393 $as_echo_n "(cached) " >&6
28395 gcc_cv_ld_as_needed
=no
28396 gcc_cv_ld_as_needed_option
='--as-needed'
28397 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28398 if test $in_tree_ld = yes ; then
28399 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 \
28400 && test $in_tree_ld_is_elf = yes; then
28401 gcc_cv_ld_as_needed
=yes
28403 elif test x
$gcc_cv_ld != x
; then
28404 # Check if linker supports --as-needed and --no-as-needed options
28405 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
28406 gcc_cv_ld_as_needed
=yes
28409 # Solaris 2 ld always supports -z ignore/-z record.
28411 gcc_cv_ld_as_needed
=yes
28412 gcc_cv_ld_as_needed_option
="-z ignore"
28413 gcc_cv_ld_no_as_needed_option
="-z record"
28418 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28419 # dl_iterate_phdr, i.e. since Solaris 11.
28421 *-*-solaris2.1
[1-9]*)
28423 i?
86-*-* | x86_64-
*-*)
28424 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28425 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28426 gcc_cv_ld_as_needed
=no
28432 gcc_cv_ld_as_needed
=no
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28438 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28439 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28441 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28444 cat >>confdefs.h
<<_ACEOF
28445 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28449 cat >>confdefs.h
<<_ACEOF
28450 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28456 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28457 saved_LDFLAGS
="$LDFLAGS"
28458 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28459 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28461 /* end confdefs.h. */
28462 int main(void) {return 0;}
28464 if ac_fn_cxx_try_link
"$LINENO"; then :
28465 gcc_cv_ld_clearcap
=yes; break
28467 gcc_cv_ld_clearcap
=no
28469 rm -f core conftest.err conftest.
$ac_objext \
28470 conftest
$ac_exeext conftest.
$ac_ext
28472 LDFLAGS
="$saved_LDFLAGS"
28473 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28475 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28477 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28481 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28487 emul_name
="-melf32lppc"
28490 emul_name
="-melf32ppc"
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28494 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28495 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28496 $as_echo_n "(cached) " >&6
28498 gcc_cv_ld_ppc_attr
=no
28499 if test x
"$ld_is_gold" = xyes
; then
28500 gcc_cv_ld_ppc_attr
=yes
28501 elif test $in_tree_ld = yes ; then
28502 if test "$gcc_cv_gld_major_version" -eq 2 \
28503 -a "$gcc_cv_gld_minor_version" -ge 28 \
28504 -o "$gcc_cv_gld_major_version" -gt 2; then
28505 gcc_cv_ld_ppc_attr
=yes
28507 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28508 # check that merging the long double .gnu_attribute doesn't warn
28509 cat > conftest1.s
<<EOF
28512 cat > conftest2.s
<<EOF
28515 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28516 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28517 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28518 && test ! -s conftest.err
; then
28519 gcc_cv_ld_ppc_attr
=yes
28521 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28526 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28527 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28529 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28535 case "$target:$tm_file" in
28536 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28539 emul_name
="-melf64lppc"
28542 emul_name
="-melf64ppc"
28545 emul_name
="-melf64ppc_fbsd"
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28549 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28550 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28551 $as_echo_n "(cached) " >&6
28553 gcc_cv_ld_no_dot_syms
=no
28554 if test x
"$ld_is_gold" = xyes
; then
28555 gcc_cv_ld_no_dot_syms
=yes
28556 elif test $in_tree_ld = yes ; then
28557 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
28558 gcc_cv_ld_no_dot_syms
=yes
28560 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28561 cat > conftest1.s
<<EOF
28565 cat > conftest2.s
<<EOF
28566 .section ".opd","aw"
28569 .type foo,@function
28571 .quad .LEfoo,.TOC.@tocbase,0
28577 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28578 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28579 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28580 gcc_cv_ld_no_dot_syms
=yes
28582 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28587 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28588 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28590 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28595 $as_echo_n "checking linker large toc support... " >&6; }
28596 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28597 $as_echo_n "(cached) " >&6
28599 gcc_cv_ld_large_toc
=no
28600 if test x
"$ld_is_gold" = xyes
; then
28601 gcc_cv_ld_large_toc
=yes
28602 elif test $in_tree_ld = yes ; then
28603 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
28604 gcc_cv_ld_large_toc
=yes
28606 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28607 cat > conftest.s
<<EOF
28608 .section ".tbss","awT",@nobits
28614 addis 9,13,ie0@got@tprel@ha
28615 ld 9,ie0@got@tprel@l(9)
28617 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28618 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28619 gcc_cv_ld_large_toc
=yes
28621 rm -f conftest conftest.o conftest.s
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28626 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28627 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28629 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28634 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28635 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28636 $as_echo_n "(cached) " >&6
28638 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28639 cat > conftest.s
<<EOF
28644 .section .data.rel.ro,"aw",@progbits
28649 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28650 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28651 gcc_cv_ld_toc_align
=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
28653 rm -f conftest conftest.o conftest.s
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28658 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28659 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28661 cat >>confdefs.h
<<_ACEOF
28662 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28672 $as_echo_n "checking linker large toc support... " >&6; }
28673 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28674 $as_echo_n "(cached) " >&6
28676 gcc_cv_ld_large_toc
=no
28677 if test x
$gcc_cv_as != x
; then
28678 cat > conftest.s
<<EOF
28688 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28689 gcc_cv_ld_large_toc
=yes
28691 rm -f conftest conftest.o conftest.s
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28696 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28697 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28699 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28706 $as_echo_n "checking linker --build-id support... " >&6; }
28707 if test "${gcc_cv_ld_buildid+set}" = set; then :
28708 $as_echo_n "(cached) " >&6
28710 gcc_cv_ld_buildid
=no
28711 if test $in_tree_ld = yes ; then
28712 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28713 "$gcc_cv_gld_minor_version" -ge 18 -o \
28714 "$gcc_cv_gld_major_version" -gt 2 \
28715 && test $in_tree_ld_is_elf = yes; then
28716 gcc_cv_ld_buildid
=yes
28718 elif test x
$gcc_cv_ld != x
; then
28719 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
28720 gcc_cv_ld_buildid
=yes
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28725 $as_echo "$gcc_cv_ld_buildid" >&6; }
28726 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28728 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28732 # Check whether --enable-linker-build-id was given.
28733 if test "${enable_linker_build_id+set}" = set; then :
28734 enableval
=$enable_linker_build_id;
28736 enable_linker_build_id
=no
28740 if test x
"$enable_linker_build_id" = xyes
; then
28741 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28743 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28747 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28751 # In binutils 2.21, GNU ld gained support for new emulations fully
28752 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28754 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28755 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28756 $as_echo_n "(cached) " >&6
28758 gcc_cv_ld_sol2_emulation
=no
28759 if test $in_tree_ld = yes ; then
28760 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28761 "$gcc_cv_gld_minor_version" -ge 21 -o \
28762 "$gcc_cv_gld_major_version" -gt 2 \
28763 && test $in_tree_ld_is_elf = yes; then
28764 gcc_cv_ld_sol2_emulation
=yes
28766 elif test x
$gcc_cv_ld != x
; then
28767 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28768 grep _sol2
> /dev
/null
; then
28769 gcc_cv_ld_sol2_emulation
=yes
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28774 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28775 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28777 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28782 $as_echo_n "checking linker --sysroot support... " >&6; }
28783 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28784 $as_echo_n "(cached) " >&6
28786 gcc_cv_ld_sysroot
=no
28787 if test $in_tree_ld = yes ; then
28788 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
28789 gcc_cv_ld_sysroot
=yes
28791 elif test x
$gcc_cv_ld != x
; then
28792 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28793 gcc_cv_ld_sysroot
=yes
28797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28798 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28799 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28801 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28807 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28809 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28810 if test "${gcc_cv_solaris_crts+set}" = set; then :
28811 $as_echo_n "(cached) " >&6
28813 gcc_cv_solaris_crts
=no
28814 if test x
$host != x
$target; then
28815 if test "x$with_sysroot" = xyes
; then
28816 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28818 target_sysroot
="${with_sysroot}"
28821 target_libdir
="$target_sysroot/usr/lib"
28822 # At the time they were added, gcrt1.o became a symlink for backwards
28823 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28825 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28826 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28828 sparc
*-*-solaris2*)
28829 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28834 $as_echo "$gcc_cv_solaris_crts" >&6; }
28837 if test x
$gcc_cv_solaris_crts = xyes
; then
28839 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28843 # Test for stack protector support in target C library.
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28845 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28846 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28847 $as_echo_n "(cached) " >&6
28849 gcc_cv_libc_provides_ssp
=no
28852 # All versions of musl provide stack protector
28853 gcc_cv_libc_provides_ssp
=yes;;
28854 *-*-linux* |
*-*-kfreebsd*-gnu)
28855 # glibc 2.4 and later provides __stack_chk_fail and
28856 # either __stack_chk_guard, or TLS access to stack guard canary.
28858 if test $glibc_version_major -gt 2 \
28859 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28860 gcc_cv_libc_provides_ssp
=yes
28863 if test -f $target_header_dir/features.h \
28864 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28865 $target_header_dir/features.h
> /dev
/null
; then
28866 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28867 $target_header_dir/features.h
> /dev
/null
&& \
28868 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28869 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28870 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28871 gcc_cv_libc_provides_ssp
=yes
28873 # all versions of Bionic support stack protector
28874 elif test -f $target_header_dir/sys
/cdefs.h \
28875 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28876 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28877 gcc_cv_libc_provides_ssp
=yes
28882 # Avoid complicated tests (see
28883 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28884 # simply assert that glibc does provide this, which is true for all
28885 # realistically usable GNU/Hurd configurations.
28886 # All supported versions of musl provide it as well
28887 gcc_cv_libc_provides_ssp
=yes;;
28888 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28889 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28890 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28891 gcc_cv_libc_provides_ssp
=yes
28893 echo "no __stack_chk_fail on this target"
28897 *) gcc_cv_libc_provides_ssp
=no
;;
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28901 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28903 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28905 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28909 # Check whether --enable-default-ssp was given.
28910 # Check whether --enable-default-ssp was given.
28911 if test "${enable_default_ssp+set}" = set; then :
28912 enableval
=$enable_default_ssp;
28913 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28915 ia64
*-*-*) enable_default_ssp
=no
;;
28916 *) enable_default_ssp
=$enableval ;;
28919 enable_default_ssp
=no
28922 enable_default_ssp
=no
28925 if test x
$enable_default_ssp = xyes
; then
28927 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28932 # Test for <sys/sdt.h> on the target.
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28935 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28937 if test -f $target_header_dir/sys
/sdt.h
; then
28940 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28944 $as_echo "$have_sys_sdt_h" >&6; }
28946 # Check if TFmode long double should be used by default or not.
28947 # Some glibc targets used DFmode long double, but with glibc 2.4
28948 # and later they can use TFmode.
28950 powerpc
*-*-linux* | \
28951 sparc
*-*-linux* | \
28955 # Check whether --with-long-double-128 was given.
28956 if test "${with_long_double_128+set}" = set; then :
28957 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28960 if test $glibc_version_major -gt 2 \
28961 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28962 gcc_cv_target_ldbl128
=yes
28965 gcc_cv_target_ldbl128
=no
28966 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28967 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28968 && gcc_cv_target_ldbl128
=yes
28975 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28977 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28981 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28982 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28983 gcc_cv_libc_provides_hwcap_in_tcb
=no
28987 if test $glibc_version_major -gt 2 \
28988 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28989 gcc_cv_libc_provides_hwcap_in_tcb
=yes
28993 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
28995 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29000 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29001 gcc_cv_target_dl_iterate_phdr
=unknown
29003 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29004 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29005 # libdl there, both complicating its use and breaking compatibility
29006 # between Solaris 10 updates.
29007 *-*-solaris2.1
[1-9]*)
29008 # <link.h> needs both a dl_iterate_phdr declaration and support for
29009 # compilation with largefile support.
29010 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29011 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29012 gcc_cv_target_dl_iterate_phdr
=yes
29014 gcc_cv_target_dl_iterate_phdr
=no
29017 *-*-dragonfly* |
*-*-freebsd*)
29018 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29019 gcc_cv_target_dl_iterate_phdr
=yes
29021 gcc_cv_target_dl_iterate_phdr
=no
29025 gcc_cv_target_dl_iterate_phdr
=yes
29029 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29031 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29035 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29037 # We no longer support different GC mechanisms. Emit an error if
29038 # the user configures with --with-gc.
29040 # Check whether --with-gc was given.
29041 if test "${with_gc+set}" = set; then :
29042 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29046 # Libraries to use on the host. This will normally be set by the top
29047 # level Makefile. Here we simply capture the value for our Makefile.
29048 if test -z "${HOST_LIBS+set}"; then
29053 # Use the system's zlib library.
29055 # Use the system's zlib library.
29056 zlibdir
="-L\$(top_builddir)/../zlib"
29057 zlibinc
="-I\$(top_srcdir)/../zlib"
29059 # Check whether --with-system-zlib was given.
29060 if test "${with_system_zlib+set}" = set; then :
29061 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29074 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29075 # Check whether --enable-maintainer-mode was given.
29076 if test "${enable_maintainer_mode+set}" = set; then :
29077 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29084 $as_echo "$maintainer_mode" >&6; }
29086 if test "$maintainer_mode" = "yes"; then
29093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29094 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29095 # Check whether --enable-link-mutex was given.
29096 if test "${enable_link_mutex+set}" = set; then :
29097 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29103 $as_echo "$do_link_mutex" >&6; }
29105 if test "$do_link_mutex" = "yes"; then
29108 DO_LINK_MUTEX
=false
29116 # Make empty files to contain the specs and options for each language.
29117 # Then add #include lines to for a compiler that has specs and/or options.
29123 # These (without "all_") are set in each config-lang.in.
29124 # `language' must be a single word so is spelled singularly.
29127 all_outputs
='Makefile'
29128 # List of language makefile fragments.
29129 all_lang_makefrags
=
29130 # Additional files for gengtype
29131 all_gtfiles
="$target_gtfiles"
29133 # These are the languages that are set in --enable-languages,
29134 # and are available in the GCC tree.
29135 all_selected_languages
=
29137 # Add the language fragments.
29138 # Languages are added via two mechanisms. Some information must be
29139 # recorded in makefile variables, these are defined in config-lang.in.
29140 # We accumulate them and plug them into the main Makefile.
29141 # The other mechanism is a set of hooks for each of the main targets
29142 # like `clean', `install', etc.
29144 language_hooks
="Make-hooks"
29146 for lang
in ${srcdir}/*/config-lang.
in
29148 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29150 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29151 if test "x$lang_alias" = x
29153 echo "$lang doesn't set \$language." 1>&2
29156 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29157 subdirs
="$subdirs $subdir"
29159 # $gcc_subdir is where the gcc integration files are to be found
29160 # for a language, both for internal compiler purposes (compiler
29161 # sources implementing front-end to GCC tree converters), and for
29162 # build infrastructure purposes (Make-lang.in, etc.)
29164 # This will be <subdir> (relative to $srcdir) if a line like
29165 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29166 # is found in <langdir>/config-lang.in, and will remain <langdir>
29169 # Except for the language alias (fetched above), the regular
29170 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29171 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29172 # only this and the language alias.
29174 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29175 if [ "$gcc_subdir" = "" ]; then
29176 gcc_subdir
="$subdir"
29179 case ",$enable_languages," in
29181 all_selected_languages
="$all_selected_languages $lang_alias"
29182 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29183 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29194 .
${srcdir}/$gcc_subdir/config-lang.
in
29195 if test "x$language" = x
29197 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29202 case ",$enable_languages," in
29203 *,$lang_alias,*) ;;
29205 for i
in $subdir_requires; do
29206 test -f "${srcdir}/$i/config-lang.in" && continue
29214 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29215 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29216 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29217 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29219 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29220 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29222 all_languages
="$all_languages $language"
29223 all_compilers
="$all_compilers $compilers"
29224 all_outputs
="$all_outputs $outputs"
29225 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29226 case ",$enable_languages," in
29229 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29239 for language
in $all_selected_languages
29241 check_languages
="$check_languages check-$language"
29244 # We link each language in with a set of hooks, reached indirectly via
29245 # lang.${target}. Only do so for selected languages.
29249 target_list
="all.cross start.encap rest.encap tags \
29250 install-common install-man install-info install-pdf install-html dvi \
29251 pdf html uninstall info man srcextra srcman srcinfo \
29252 mostlyclean clean distclean maintainer-clean install-plugin"
29254 for t
in $target_list
29257 for lang
in $all_selected_languages
29261 echo "lang.$t: $x" >> Make-hooks
29265 # Option include files
29268 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29269 option_includes
="option-includes.mk"
29278 echo "dir ." > .gdbinit
29279 echo "dir ${srcdir}" >> .gdbinit
29280 if test x
$gdb_needs_out_file_path = xyes
29282 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29284 if test "x$subdirs" != x
; then
29287 echo "dir ${srcdir}/$s" >> .gdbinit
29290 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29291 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29293 # Put a breakpoint on __asan_report_error to help with debugging buffer
29296 *-fsanitize=address
*)
29297 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29301 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29305 # Find a directory in which to install a shared libgcc.
29307 # Check whether --enable-version-specific-runtime-libs was given.
29308 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29309 enableval
=$enable_version_specific_runtime_libs;
29313 # Substitute configuration variables
29377 if test x
${build} = x
${host} ; then
29378 if test x
${host} = x
${target} ; then
29379 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29381 echo "Links are now set up to build a cross-compiler" 1>&2
29382 echo " from ${host} to ${target}." 1>&2
29385 if test x
${host} = x
${target} ; then
29386 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29387 echo " for ${target}." 1>&2
29389 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29390 echo " from ${host} to ${target}." 1>&2
29399 if test "x${ISLLIBS}" != "x" ; then
29401 $as_echo "#define HAVE_isl 1" >>confdefs.h
29405 # Check whether isl_options_set_schedule_serialize_sccs is available;
29406 # it's new in isl 0.15.
29407 if test "x${ISLLIBS}" != "x" ; then
29408 saved_CXXFLAGS
="$CXXFLAGS"
29409 CXXFLAGS
="$CXXFLAGS $ISLINC $GMPINC"
29411 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29414 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29416 /* end confdefs.h. */
29417 #include <isl/schedule.h>
29421 isl_options_set_schedule_serialize_sccs (NULL, 0);
29426 if ac_fn_cxx_try_link
"$LINENO"; then :
29427 ac_has_isl_options_set_schedule_serialize_sccs
=yes
29429 ac_has_isl_options_set_schedule_serialize_sccs
=no
29431 rm -f core conftest.err conftest.
$ac_objext \
29432 conftest
$ac_exeext conftest.
$ac_ext
29433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29434 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29437 CXXFLAGS
="$saved_CXXFLAGS"
29439 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
29441 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29446 # Check for plugin support
29447 # Check whether --enable-plugin was given.
29448 if test "${enable_plugin+set}" = set; then :
29449 enableval
=$enable_plugin; enable_plugin
=$enableval
29451 enable_plugin
=yes; default_plugin
=yes
29459 if test x
$build = x
$host; then
29460 export_sym_check
="nm${exeext} -g"
29461 elif test x
$host = x
$target; then
29462 export_sym_check
="$gcc_cv_nm -g"
29468 if test x
$build = x
$host; then
29469 export_sym_check
="objdump${exeext} -T"
29470 elif test x
$host = x
$target; then
29471 export_sym_check
="$gcc_cv_objdump -T"
29478 if test x
"$enable_plugin" = x
"yes"; then
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29481 $as_echo_n "checking for exported symbols... " >&6; }
29482 if test "x$export_sym_check" != x
; then
29483 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29484 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29485 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29486 : # No need to use a flag
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29488 $as_echo "yes" >&6; }
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29491 $as_echo "yes" >&6; }
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29493 $as_echo_n "checking for -rdynamic... " >&6; }
29494 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29495 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29496 plugin_rdynamic
=yes
29497 pluginlibs
="-rdynamic"
29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29503 $as_echo "$plugin_rdynamic" >&6; }
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29507 $as_echo "unable to check" >&6; }
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29513 $as_echo_n "checking for library containing dlopen... " >&6; }
29514 if test "${ac_cv_search_dlopen+set}" = set; then :
29515 $as_echo_n "(cached) " >&6
29517 ac_func_search_save_LIBS
=$LIBS
29518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29519 /* end confdefs.h. */
29521 /* Override any GCC internal prototype to avoid an error.
29522 Use char because int might match the return type of a GCC
29523 builtin and then its argument prototype would still apply. */
29536 for ac_lib
in '' dl
; do
29537 if test -z "$ac_lib"; then
29538 ac_res
="none required"
29541 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29543 if ac_fn_cxx_try_link
"$LINENO"; then :
29544 ac_cv_search_dlopen
=$ac_res
29546 rm -f core conftest.err conftest.
$ac_objext \
29548 if test "${ac_cv_search_dlopen+set}" = set; then :
29552 if test "${ac_cv_search_dlopen+set}" = set; then :
29555 ac_cv_search_dlopen
=no
29557 rm conftest.
$ac_ext
29558 LIBS
=$ac_func_search_save_LIBS
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29561 $as_echo "$ac_cv_search_dlopen" >&6; }
29562 ac_res
=$ac_cv_search_dlopen
29563 if test "$ac_res" != no
; then :
29564 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29568 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29569 pluginlibs
="$pluginlibs -ldl"
29573 # Check that we can build shared objects with -fPIC -shared
29574 saved_LDFLAGS
="$LDFLAGS"
29575 saved_CFLAGS
="$CFLAGS"
29578 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29579 CFLAGS
="$CFLAGS -fPIC"
29580 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29583 CFLAGS
="$CFLAGS -fPIC"
29584 LDFLAGS
="$LDFLAGS -fPIC -shared"
29587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29588 $as_echo_n "checking for -fPIC -shared... " >&6; }
29589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29590 /* end confdefs.h. */
29600 if ac_fn_cxx_try_link
"$LINENO"; then :
29601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29602 $as_echo "yes" >&6; }; have_pic_shared
=yes
29604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29605 $as_echo "no" >&6; }; have_pic_shared
=no
29607 rm -f core conftest.err conftest.
$ac_objext \
29608 conftest
$ac_exeext conftest.
$ac_ext
29609 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29613 LDFLAGS
="$saved_LDFLAGS"
29614 CFLAGS
="$saved_CFLAGS"
29616 # If plugin support had been requested but not available, fail.
29617 if test x
"$enable_plugin" = x
"no" ; then
29618 if test x
"$default_plugin" != x
"yes"; then
29620 Building GCC with plugin support requires a host that supports
29621 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29628 if test x
"$enable_plugin" = x
"yes"; then
29630 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29635 # Enable --enable-host-shared
29636 # Check whether --enable-host-shared was given.
29637 if test "${enable_host_shared+set}" = set; then :
29638 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29647 # Check whether --enable-libquadmath-support was given.
29648 if test "${enable_libquadmath_support+set}" = set; then :
29649 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29651 ENABLE_LIBQUADMATH_SUPPORT
=yes
29654 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29656 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29661 # Specify what hash style to use by default.
29663 # Check whether --with-linker-hash-style was given.
29664 if test "${with_linker_hash_style+set}" = set; then :
29665 withval
=$with_linker_hash_style; case x
"$withval" in
29667 LINKER_HASH_STYLE
=sysv
29670 LINKER_HASH_STYLE
=gnu
29673 LINKER_HASH_STYLE
=both
29676 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29680 LINKER_HASH_STYLE
=''
29683 if test x
"${LINKER_HASH_STYLE}" != x
; then
29685 cat >>confdefs.h
<<_ACEOF
29686 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29691 # Specify what should be the default of -fdiagnostics-color option.
29693 # Check whether --with-diagnostics-color was given.
29694 if test "${with_diagnostics_color+set}" = set; then :
29695 withval
=$with_diagnostics_color; case x
"$withval" in
29697 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29700 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29703 DIAGNOSTICS_COLOR_DEFAULT
=-1
29706 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29709 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29713 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29717 cat >>confdefs.h
<<_ACEOF
29718 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29722 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29723 # of jit/jit-playback.c.
29724 cat > gcc-driver-name.h
<<EOF
29725 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29728 # Check whether --enable-default-pie was given.
29729 # Check whether --enable-default-pie was given.
29730 if test "${enable_default_pie+set}" = set; then :
29731 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29733 enable_default_pie
=no
29736 if test x
$enable_default_pie = xyes
; then
29738 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29743 # Check if -fno-PIE works.
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29745 $as_echo_n "checking for -fno-PIE option... " >&6; }
29746 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29747 $as_echo_n "(cached) " >&6
29749 saved_CXXFLAGS
="$CXXFLAGS"
29750 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29752 /* end confdefs.h. */
29753 int main(void) {return 0;}
29755 if ac_fn_cxx_try_compile
"$LINENO"; then :
29756 gcc_cv_c_no_fpie
=yes
29758 gcc_cv_c_no_fpie
=no
29760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29761 CXXFLAGS
="$saved_CXXFLAGS"
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29764 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29765 if test "$gcc_cv_c_no_fpie" = "yes"; then
29766 NO_PIE_CFLAGS
="-fno-PIE"
29770 # Check if -no-pie works.
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29772 $as_echo_n "checking for -no-pie option... " >&6; }
29773 if test "${gcc_cv_no_pie+set}" = set; then :
29774 $as_echo_n "(cached) " >&6
29776 saved_LDFLAGS
="$LDFLAGS"
29777 LDFLAGS
="$LDFLAGS -no-pie"
29778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29779 /* end confdefs.h. */
29780 int main(void) {return 0;}
29782 if ac_fn_cxx_try_link
"$LINENO"; then :
29787 rm -f core conftest.err conftest.
$ac_objext \
29788 conftest
$ac_exeext conftest.
$ac_ext
29789 LDFLAGS
="$saved_LDFLAGS"
29791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29792 $as_echo "$gcc_cv_no_pie" >&6; }
29793 if test "$gcc_cv_no_pie" = "yes"; then
29794 NO_PIE_FLAG
="-no-pie"
29798 # Check linker supports '-z bndplt'
29799 ld_bndplt_support
=no
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29801 $as_echo_n "checking linker -z bndplt option... " >&6; }
29802 if test x
"$ld_is_gold" = xno
; then
29803 if test $in_tree_ld = yes ; then
29804 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
29805 ld_bndplt_support
=yes
29807 elif test x
$gcc_cv_ld != x
; then
29808 # Check if linker supports -a bndplt option
29809 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
29810 ld_bndplt_support
=yes
29814 if test x
"$ld_bndplt_support" = xyes
; then
29816 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29820 $as_echo "$ld_bndplt_support" >&6; }
29822 # Check linker supports '--push-state'/'--pop-state'
29823 ld_pushpopstate_support
=no
29824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29825 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29826 if test x
"$ld_is_gold" = xno
; then
29827 if test $in_tree_ld = yes ; then
29828 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
29829 ld_pushpopstate_support
=yes
29831 elif test x
$gcc_cv_ld != x
; then
29832 # Check if linker supports --push-state/--pop-state options
29833 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '--push-state' > /dev
/null
; then
29834 ld_pushpopstate_support
=yes
29838 if test x
"$ld_pushpopstate_support" = xyes
; then
29840 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29844 $as_echo "$ld_pushpopstate_support" >&6; }
29846 # Configure the subdirectories
29847 # AC_CONFIG_SUBDIRS($subdirs)
29849 # Create the Makefile
29850 # and configure language subdirectories
29851 ac_config_files
="$ac_config_files $all_outputs"
29854 ac_config_commands
="$ac_config_commands default"
29856 cat >confcache
<<\_ACEOF
29857 # This file is a shell script that caches the results of configure
29858 # tests run on this system so they can be shared between configure
29859 # scripts and configure runs, see configure's option --config-cache.
29860 # It is not useful on other systems. If it contains results you don't
29861 # want to keep, you may remove or edit it.
29863 # config.status only pays attention to the cache file if you give it
29864 # the --recheck option to rerun configure.
29866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29868 # following values.
29872 # The following way of writing the cache mishandles newlines in values,
29873 # but we know of no workaround that is simple, portable, and efficient.
29874 # So, we kill variables containing newlines.
29875 # Ultrix sh set writes to stderr and can't be redirected directly,
29876 # and sets the high bit in the cache file unless we assign to the vars.
29878 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29879 eval ac_val
=\$
$ac_var
29883 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29884 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29887 _ | IFS | as_nl
) ;; #(
29888 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29889 *) { eval $ac_var=; unset $ac_var;} ;;
29895 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29896 *${as_nl}ac_space
=\
*)
29897 # `set' does not quote correctly, so add quotes: double-quote
29898 # substitution turns \\\\ into \\, and sed turns \\ into \.
29901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29904 # `set' quotes correctly as required by POSIX, so do not add quotes.
29905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29914 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29916 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29918 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29919 if test -w "$cache_file"; then
29920 test "x$cache_file" != "x/dev/null" &&
29921 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29922 $as_echo "$as_me: updating cache $cache_file" >&6;}
29923 cat confcache
>$cache_file
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29926 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29931 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29932 # Let make expand exec_prefix.
29933 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29935 DEFS
=-DHAVE_CONFIG_H
29939 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29940 # 1. Remove the extension, and $U if already installed.
29941 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29942 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29943 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29944 # will be set to the directory where LIBOBJS objects are built.
29945 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29946 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29948 LIBOBJS
=$ac_libobjs
29950 LTLIBOBJS
=$ac_ltlibobjs
29955 : ${CONFIG_STATUS=./config.status}
29957 ac_clean_files_save
=$ac_clean_files
29958 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29960 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29962 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29964 # Generated by $as_me.
29965 # Run this file to recreate the current configuration.
29966 # Compiler output produced by configure, useful for debugging
29967 # configure, is in config.log if it exists.
29970 ac_cs_recheck=false
29973 SHELL=\${CONFIG_SHELL-$SHELL}
29976 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29977 ## -------------------- ##
29978 ## M4sh Initialization. ##
29979 ## -------------------- ##
29981 # Be more Bourne compatible
29982 DUALCASE
=1; export DUALCASE
# for MKS sh
29983 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29986 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29987 # is contrary to our usage. Disable this feature.
29988 alias -g '${1+"$@"}'='"$@"'
29989 setopt NO_GLOB_SUBST
29991 case `(set -o) 2>/dev/null` in #(
30003 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30004 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30006 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30007 # Prefer a ksh shell builtin over an external printf program on Solaris,
30008 # but without wasting forks for bash or zsh.
30009 if test -z "$BASH_VERSION$ZSH_VERSION" \
30010 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30011 as_echo='print
-r --'
30012 as_echo_n='print
-rn --'
30013 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30014 as_echo='printf %s
\n'
30015 as_echo_n='printf %s
'
30017 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30018 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30019 as_echo_n='/usr
/ucb
/echo -n'
30021 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30022 as_echo_n_body='eval
30026 expr "X$arg" : "X\\(.*\\)$as_nl";
30027 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30029 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30031 export as_echo_n_body
30032 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30034 export as_echo_body
30035 as_echo='sh
-c $as_echo_body as_echo
'
30038 # The user is always right.
30039 if test "${PATH_SEPARATOR+set}" != set; then
30041 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30042 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30049 # We need space, tab and new line, in precisely that order. Quoting is
30050 # there to prevent editors from complaining about space-tab.
30051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30052 # splitting by setting IFS to empty value.)
30055 # Find who we are. Look in the path if we contain no directory separator.
30057 *[\\/]* ) as_myself=$0 ;;
30058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30059 for as_dir in $PATH
30062 test -z "$as_dir" && as_dir=.
30063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30069 # We did not find ourselves, most probably we were run as `sh COMMAND'
30070 # in which case we are not to be found in the path.
30071 if test "x$as_myself" = x
; then
30074 if test ! -f "$as_myself"; then
30075 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30079 # Unset variables that we do not need and which cause bugs (e.g. in
30080 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30081 # suppresses any "Segmentation fault" message there. '((' could
30082 # trigger a bug in pdksh 5.2.14.
30083 for as_var
in BASH_ENV ENV MAIL MAILPATH
30084 do eval test x\
${$as_var+set} = xset \
30085 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30098 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30101 # as_fn_error ERROR [LINENO LOG_FD]
30102 # ---------------------------------
30103 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30104 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30105 # script with status $?, using 1 if that was 0.
30108 as_status
=$?
; test $as_status -eq 0 && as_status
=1
30110 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30111 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30113 $as_echo "$as_me: error: $1" >&2
30114 as_fn_exit
$as_status
30118 # as_fn_set_status STATUS
30119 # -----------------------
30120 # Set $? to STATUS, without forking.
30121 as_fn_set_status
()
30124 } # as_fn_set_status
30126 # as_fn_exit STATUS
30127 # -----------------
30128 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30132 as_fn_set_status
$1
30138 # Portably unset VAR.
30141 { eval $1=; unset $1;}
30143 as_unset
=as_fn_unset
30144 # as_fn_append VAR VALUE
30145 # ----------------------
30146 # Append the text in VALUE to the end of the definition contained in VAR. Take
30147 # advantage of any shell optimizations that allow amortized linear growth over
30148 # repeated appends, instead of the typical quadratic growth present in naive
30150 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30151 eval 'as_fn_append ()
30162 # as_fn_arith ARG...
30163 # ------------------
30164 # Perform arithmetic evaluation on the ARGs, and store the result in the
30165 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30166 # must be portable across $(()) and expr.
30167 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30168 eval 'as_fn_arith ()
30175 as_val
=`expr "$@" || test $? -eq 1`
30180 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30181 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30187 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30188 as_basename
=basename
30193 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30199 as_me
=`$as_basename -- "$0" ||
30200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30201 X"$0" : 'X\(//\)$' \| \
30202 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30204 sed '/^.*\/\([^/][^/]*\)\/*$/{
30218 # Avoid depending upon Character Ranges.
30219 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30220 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30221 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30222 as_cr_digits
='0123456789'
30223 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30225 ECHO_C
= ECHO_N
= ECHO_T
=
30226 case `echo -n x` in #(((((
30228 case `echo 'xy\c'` in
30229 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30231 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30238 rm -f conf$$ conf$$.exe conf$$.
file
30239 if test -d conf$$.dir
; then
30240 rm -f conf$$.dir
/conf$$.
file
30243 mkdir conf$$.dir
2>/dev
/null
30245 if (echo >conf$$.
file) 2>/dev
/null
; then
30246 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30248 # ... but there are two gotchas:
30249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30251 # In both cases, we have to default to `cp -p'.
30252 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30254 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30262 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30263 rmdir conf$$.dir
2>/dev
/null
30268 # Create "$as_dir" as a directory, including parents if necessary.
30273 -*) as_dir
=.
/$as_dir;;
30275 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30279 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30280 *) as_qdir
=$as_dir;;
30282 as_dirs
="'$as_qdir' $as_dirs"
30283 as_dir
=`$as_dirname -- "$as_dir" ||
30284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30285 X"$as_dir" : 'X\(//\)[^/]' \| \
30286 X"$as_dir" : 'X\(//\)$' \| \
30287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30288 $as_echo X"$as_dir" |
30289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30293 /^X\(\/\/\)[^/].*/{
30306 test -d "$as_dir" && break
30308 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30309 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30313 if mkdir
-p .
2>/dev
/null
; then
30314 as_mkdir_p
='mkdir -p "$as_dir"'
30316 test -d .
/-p && rmdir .
/-p
30320 if test -x / >/dev
/null
2>&1; then
30321 as_test_x
='test -x'
30323 if ls -dL / >/dev
/null
2>&1; then
30330 if test -d "$1"; then
30336 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30337 ???[sx]*):;;*)false;;esac;fi
30341 as_executable_p
=$as_test_x
30343 # Sed expression to map a string onto a valid CPP name.
30344 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30346 # Sed expression to map a string onto a valid variable name.
30347 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30351 ## ----------------------------------- ##
30352 ## Main body of $CONFIG_STATUS script. ##
30353 ## ----------------------------------- ##
30355 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30358 # Save the log message, to keep $0 and so on meaningful, and to
30359 # report actual input values of CONFIG_FILES etc. instead of their
30360 # values after options handling.
30362 This file was extended by $as_me, which was
30363 generated by GNU Autoconf 2.64. Invocation command line was
30365 CONFIG_FILES = $CONFIG_FILES
30366 CONFIG_HEADERS = $CONFIG_HEADERS
30367 CONFIG_LINKS = $CONFIG_LINKS
30368 CONFIG_COMMANDS = $CONFIG_COMMANDS
30371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30376 case $ac_config_files in *"
30377 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30380 case $ac_config_headers in *"
30381 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30386 # Files that config.status was made for.
30387 config_files="$ac_config_files"
30388 config_headers="$ac_config_headers"
30389 config_links="$ac_config_links"
30390 config_commands="$ac_config_commands"
30394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30396 \`$as_me' instantiates files and other configuration actions
30397 from templates according to the current configuration. Unless the files
30398 and actions are specified as TAGs, all are instantiated by default.
30400 Usage: $0 [OPTION]... [TAG]...
30402 -h, --help print this help, then exit
30403 -V, --version print version number and configuration settings, then exit
30404 -q, --quiet, --silent
30405 do not print progress messages
30406 -d, --debug don't remove temporary files
30407 --recheck update $as_me by reconfiguring in the same conditions
30408 --file=FILE[:TEMPLATE]
30409 instantiate the configuration file FILE
30410 --header=FILE[:TEMPLATE]
30411 instantiate the configuration header FILE
30413 Configuration files:
30416 Configuration headers:
30419 Configuration links:
30422 Configuration commands:
30425 Report bugs to the package provider."
30428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30431 configured by $0, generated by GNU Autoconf 2.64,
30432 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30434 Copyright (C) 2009 Free Software Foundation, Inc.
30435 This config.status script is free software; the Free Software Foundation
30436 gives unlimited permission to copy, distribute and modify it."
30441 test -n "\$AWK" || AWK=awk
30444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30445 # The default lists apply if the user does not specify any file.
30451 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30452 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30463 # Handling of the options.
30464 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30466 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30467 $as_echo "$ac_cs_version"; exit ;;
30468 --debug |
--debu |
--deb |
--de |
--d |
-d )
30470 --file |
--fil |
--fi |
--f )
30473 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30475 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30476 ac_need_defaults
=false
;;
30477 --header |
--heade |
--head |
--hea )
30480 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30482 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30483 ac_need_defaults
=false
;;
30485 # Conflict between --help and --header
30486 as_fn_error
"ambiguous option: \`$1'
30487 Try \`$0 --help' for more information.";;
30488 --help |
--hel |
-h )
30489 $as_echo "$ac_cs_usage"; exit ;;
30490 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30491 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30494 # This is an error.
30495 -*) as_fn_error
"unrecognized option: \`$1'
30496 Try \`$0 --help' for more information." ;;
30498 *) as_fn_append ac_config_targets
" $1"
30499 ac_need_defaults
=false
;;
30505 ac_configure_extra_args
=
30507 if $ac_cs_silent; then
30509 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30514 if \$ac_cs_recheck; then
30515 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30517 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30518 CONFIG_SHELL='$SHELL'
30519 export CONFIG_SHELL
30524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30529 ## Running $as_me. ##
30535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30539 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30540 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30547 # Handling of arguments.
30548 for ac_config_target
in $ac_config_targets
30550 case $ac_config_target in
30551 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30552 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30553 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30554 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30555 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30556 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30557 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30558 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30559 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30561 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30566 # If the user did not use the arguments to specify the items to instantiate,
30567 # then the envvar interface is used. Set only those that are not.
30568 # We use the long form for the default assignment because of an extremely
30569 # bizarre bug on SunOS 4.1.3.
30570 if $ac_need_defaults; then
30571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30572 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30573 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30574 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30577 # Have a temporary directory for convenience. Make it in the build tree
30578 # simply because there is no reason against having it here, and in addition,
30579 # creating and moving files from /tmp can sometimes cause problems.
30580 # Hook for its removal unless debugging.
30581 # Note that there is a small window in which the directory will not be cleaned:
30582 # after its creation but before its name has been assigned to `$tmp'.
30586 trap 'exit_status=$?
30587 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30589 trap 'as_fn_exit 1' 1 2 13 15
30591 # Create a (secure) tmp directory for tmp files.
30594 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30595 test -n "$tmp" && test -d "$tmp"
30598 tmp
=.
/conf$$
-$RANDOM
30599 (umask 077 && mkdir
"$tmp")
30600 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30602 # Set up the scripts for CONFIG_FILES section.
30603 # No need to generate them if there are no CONFIG_FILES.
30604 # This happens for instance with `./config.status config.h'.
30605 if test -n "$CONFIG_FILES"; then
30607 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30608 ac_cs_awk_getline
=:
30609 ac_cs_awk_pipe_init
=
30610 ac_cs_awk_read_file
='
30611 while ((getline aline < (F[key])) > 0)
30614 ac_cs_awk_pipe_fini
=
30616 ac_cs_awk_getline
=false
30617 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30618 ac_cs_awk_read_file
='
30620 print "cat " F[key] " &&"
30621 '$ac_cs_awk_pipe_init
30622 # The final `:' finishes the AND list.
30623 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30625 ac_cr
=`echo X | tr X '\015'`
30626 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30627 # But we know of no other shell where ac_cr would be empty at this
30628 # point, so we can use a bashism as a fallback.
30629 if test "x$ac_cr" = x
; then
30630 eval ac_cr
=\$
\'\\r
\'
30632 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30633 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30636 ac_cs_awk_cr
=$ac_cr
30639 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30642 # Create commands to substitute file output variables.
30644 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30645 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30646 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30649 } >conf$
$files.sh
&&
30650 . .
/conf$
$files.sh ||
30651 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30652 rm -f conf$
$files.sh
30655 echo "cat >conf$$subs.awk <<_ACEOF" &&
30656 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30658 } >conf$$subs.sh ||
30659 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30660 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30662 for ac_last_try in false false false false false :; do
30663 . ./conf$$subs.sh ||
30664 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30666 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30667 if test $ac_delim_n = $ac_delim_num; then
30669 elif $ac_last_try; then
30670 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30672 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30675 rm -f conf$$subs.sh
30677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30678 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30682 s/^/S["/; s
/!.
*/"]=/
30692 s/\(.\{148\}\).*/\1/
30694 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30699 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30706 s/\(.\{148\}\).*/\1/
30708 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30712 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30717 ' <conf$$subs.awk | sed '
30722 ' >>$CONFIG_STATUS || ac_write_fail=1
30723 rm -f conf$$subs.awk
30724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30726 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30727 for (key in S) S_is_set[key] = 1
30729 \$ac_cs_awk_pipe_init
30733 nfields = split(line, field, "@
")
30735 len = length(field[1])
30736 for (i = 2; i < nfields; i++) {
30738 keylen = length(key)
30739 if (S_is_set[key]) {
30741 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30742 len += length(value) + length(field[++i])
30747 if (nfields == 3 && !substed) {
30749 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30750 \$ac_cs_awk_read_file
30756 \$ac_cs_awk_pipe_fini
30759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30760 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30761 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30764 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30765 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30768 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30769 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30770 # trailing colons and then remove the whole line if VPATH becomes empty
30771 # (actually we leave an empty line to preserve line numbers).
30772 if test "x
$srcdir" = x.; then
30773 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30774 s/:*\$(srcdir):*/:/
30775 s/:*\${srcdir}:*/:/
30777 s/^\([^=]*=[ ]*\):*/\1/
30783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30784 fi # test -n "$CONFIG_FILES"
30786 # Set up the scripts for CONFIG_HEADERS section.
30787 # No need to generate them if there are no CONFIG_HEADERS.
30788 # This happens for instance with `./config.status Makefile'.
30789 if test -n "$CONFIG_HEADERS"; then
30790 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30794 # Transform confdefs.h into an awk script `defines.awk', embedded as
30795 # here-document in config.status, that substitutes the proper values into
30796 # config.h.in to produce config.h.
30798 # Create a delimiter string that does not exist in confdefs.h, to ease
30799 # handling of long lines.
30801 for ac_last_try in false false :; do
30802 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30803 if test -z "$ac_t"; then
30805 elif $ac_last_try; then
30806 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30808 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30812 # For the awk script, D is an array of macro values keyed by name,
30813 # likewise P contains macro parameters if any. Preserve backslash
30814 # newline sequences.
30816 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30818 s/.\{148\}/&'"$ac_delim"'/g
30821 s/^[ ]*#[ ]*define[ ][ ]*/ /
30828 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30830 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30835 D["\
1"]=" \
3\\\\\\n
"\\/p
30837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30842 s/.\{148\}/&'"$ac_delim"'/g
30847 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30850 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30852 ' <confdefs.h | sed '
30853 s/'"$ac_delim"'/"\\\
30854 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30857 for (key in D) D_is_set[key] = 1
30860 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30862 split(line, arg, " ")
30863 if (arg[1] == "#") {
30867 defundef
= substr
(arg
[1], 2)
30870 split(mac1
, mac2
, "(") #)
30872 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30873 if (D_is_set
[macro
]) {
30874 # Preserve the white space surrounding the "#".
30875 print prefix
"define", macro P
[macro
] D
[macro
]
30878 # Replace #undef with comments. This is necessary, for example,
30879 # in the case of _POSIX_SOURCE, which is predefined and required
30880 # on some systems where configure will not decide to define it.
30881 if (defundef
== "undef") {
30882 print
"/*", prefix defundef
, macro
, "*/"
30890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30891 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30892 fi # test -n "$CONFIG_HEADERS"
30895 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30900 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30902 case $ac_mode$ac_tag in
30904 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30905 :[FH
]-) ac_tag
=-:-;;
30906 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30923 -) ac_f
="$tmp/stdin";;
30924 *) # Look for the file first in the build tree, then in the source tree
30925 # (if the path is not absolute). The absolute path cannot be DOS-style,
30926 # because $ac_f cannot contain `:'.
30930 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30932 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30934 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30935 as_fn_append ac_file_inputs
" '$ac_f'"
30938 # Let's still pretend it is `configure' which instantiates (i.e., don't
30939 # use $as_me), people would be surprised to read:
30940 # /* config.h. Generated by config.status. */
30941 configure_input
='Generated from '`
30942 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30944 if test x
"$ac_file" != x-
; then
30945 configure_input
="$ac_file. $configure_input"
30946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30947 $as_echo "$as_me: creating $ac_file" >&6;}
30949 # Neutralize special characters interpreted by sed in replacement strings.
30950 case $configure_input in #(
30951 *\
&* |
*\|
* |
*\\* )
30952 ac_sed_conf_input
=`$as_echo "$configure_input" |
30953 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30954 *) ac_sed_conf_input
=$configure_input;;
30958 *:-:* |
*:-) cat >"$tmp/stdin" \
30959 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30964 ac_dir
=`$as_dirname -- "$ac_file" ||
30965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30966 X"$ac_file" : 'X\(//\)[^/]' \| \
30967 X"$ac_file" : 'X\(//\)$' \| \
30968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30969 $as_echo X"$ac_file" |
30970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30974 /^X\(\/\/\)[^/].*/{
30987 as_dir
="$ac_dir"; as_fn_mkdir_p
30991 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30993 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30994 # A ".." for each directory in $ac_dir_suffix.
30995 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30996 case $ac_top_builddir_sub in
30997 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30998 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31001 ac_abs_top_builddir
=$ac_pwd
31002 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31003 # for backward compatibility:
31004 ac_top_builddir
=$ac_top_build_prefix
31007 .
) # We are building in place.
31009 ac_top_srcdir
=$ac_top_builddir_sub
31010 ac_abs_top_srcdir
=$ac_pwd ;;
31011 [\\/]* | ?
:[\\/]* ) # Absolute name.
31012 ac_srcdir
=$srcdir$ac_dir_suffix;
31013 ac_top_srcdir
=$srcdir
31014 ac_abs_top_srcdir
=$srcdir ;;
31015 *) # Relative name.
31016 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31017 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31018 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31020 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31032 # If the template does not know about datarootdir, expand it.
31033 # FIXME: This hack should be removed a few years after 2.60.
31034 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31045 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31046 *datarootdir
*) ac_datarootdir_seen
=yes;;
31047 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31049 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31052 ac_datarootdir_hack='
31053 s&@datadir@&$datadir&g
31054 s&@docdir@&$docdir&g
31055 s&@infodir@&$infodir&g
31056 s&@localedir@&$localedir&g
31057 s&@mandir@&$mandir&g
31058 s&\\\${datarootdir}&$datarootdir&g' ;;
31062 # Neutralize VPATH when `$srcdir' = `.'.
31063 # Shell code in configure.ac might set extrasub.
31064 # FIXME: do we really want to maintain this feature?
31065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31066 ac_sed_extra="$ac_vpsub
31069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31071 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31072 s|@configure_input@|
$ac_sed_conf_input|
;t t
31073 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31074 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31075 s
&@srcdir@
&$ac_srcdir&;t t
31076 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31077 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31078 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31079 s
&@builddir@
&$ac_builddir&;t t
31080 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31081 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31082 $ac_datarootdir_hack
31084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31085 if $ac_cs_awk_getline; then
31086 $AWK -f "$tmp/subs.
awk"
31088 $AWK -f "$tmp/subs.
awk" | $SHELL
31090 || as_fn_error "could not create
$ac_file" "$LINENO" 5
31092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31093 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31096 which seems to be undefined. Please make sure it is defined." >&5
31097 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31098 which seems to be undefined. Please make sure it is defined." >&2;}
31102 -) cat "$tmp/out" && rm -f "$tmp/out";;
31103 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31105 || as_fn_error "could not create $ac_file" "$LINENO" 5
31111 if test x"$ac_file" != x-; then
31113 $as_echo "/* $configure_input */" \
31114 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31115 } >"$tmp/config.h" \
31116 || as_fn_error "could not create $ac_file" "$LINENO" 5
31117 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31118 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31119 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31122 mv "$tmp/config.h" "$ac_file" \
31123 || as_fn_error "could not create $ac_file" "$LINENO" 5
31126 $as_echo "/* $configure_input */" \
31127 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31128 || as_fn_error "could not create -" "$LINENO" 5
31136 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31139 # Prefer the file from the source tree if names are identical.
31140 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31141 ac_source=$srcdir/$ac_source
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31145 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31147 if test ! -r "$ac_source"; then
31148 as_fn_error "$ac_source: file not found" "$LINENO" 5
31152 # Try a relative symlink, then a hard link, then a copy.
31154 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31155 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31157 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31158 ln "$ac_source" "$ac_file" 2>/dev/null ||
31159 cp -p "$ac_source" "$ac_file" ||
31160 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31163 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31164 $as_echo "$as_me: executing $ac_file commands" >&6;}
31169 case $ac_file$ac_mode in
31170 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31172 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31173 for lang in $subdirs c-family common
31175 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31177 "as":F) chmod +x as ;;
31178 "collect-ld":F) chmod +x collect-ld ;;
31179 "nm":F) chmod +x nm ;;
31181 case ${CONFIG_HEADERS} in
31182 *auto-host.h:config.in*)
31185 # Make sure all the subdirs exist.
31186 for d in $subdirs doc build common c-family
31188 test -d $d || mkdir $d
31198 ac_clean_files=$ac_clean_files_save
31200 test $ac_write_fail = 0 ||
31201 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31204 # configure is writing to config.log, and then calls config.status.
31205 # config.status does its own redirection, appending to config.log.
31206 # Unfortunately, on DOS this fails, as config.log is still kept open
31207 # by configure, so config.status won't be able to
write to it
; its
31208 # output is simply discarded. So we exec the FD to /dev/null,
31209 # effectively closing config.log, so it can be properly (re)opened and
31210 # appended to by config.status. When coming back to configure, we
31211 # need to make the FD available again.
31212 if test "$no_create" != yes; then
31214 ac_config_status_args
=
31215 test "$silent" = yes &&
31216 ac_config_status_args
="$ac_config_status_args --quiet"
31218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31221 # would make configure fail if this is the last instruction.
31222 $ac_cs_success || as_fn_exit $?
31224 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31226 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}