2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
595 ac_unique_file
="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='LTLIBOBJS
661 common_out_object_file
677 gcc_gxx_include_dir_add_sysroot
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
687 TM_MULTILIB_EXCEPTIONS_CONFIG
697 build_xm_include_list
699 build_install_headers_dir
701 all_selected_languages
719 ld_version_script_option
724 ORIGINAL_NM_FOR_TARGET
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
731 ORIGINAL_AS_FOR_TARGET
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
760 BUILD_SYSTEM_HEADER_DIR
779 NATIVE_SYSTEM_HEADER_DIR
815 real_target_noncanonical
816 enable_as_accelerator
831 valgrind_path_defines
861 CROSS_SYSTEM_HEADER_DIR
862 TARGET_SYSTEM_ROOT_DEFINE
864 SYSROOT_CFLAGS_FOR_TARGET
910 program_transform_name
921 ac_subst_files
='option_includes
924 enable_option_checking
927 with_native_system_header_dir
932 enable_generated_files_in_srcdir
939 enable_build_format_warnings
943 enable_gather_detailed_mem_stats
944 enable_valgrind_annotations
948 with_stack_clash_protection_guard_size
969 enable_sjlj_exceptions
970 with_gcc_major_version_only
972 enable_mingw_wildcard
973 enable_large_address_aware
974 enable_leading_mingw64_underscores
977 enable_win32_registry
985 enable_gnu_indirect_function
986 enable_initfini_array
988 enable_standard_branch_protection
989 enable_fix_cortex_a53_835769
990 enable_fix_cortex_a53_843419
992 enable_gnu_unique_object
993 enable_linker_build_id
997 with_long_double_format
1000 enable_maintainer_mode
1002 enable_version_specific_runtime_libs
1005 enable_libquadmath_support
1006 with_linker_hash_style
1007 with_diagnostics_color
1010 ac_precious_vars
='build_alias
1029 # Initialize some variables set by options.
1031 ac_init_version
=false
1032 ac_unrecognized_opts
=
1033 ac_unrecognized_sep
=
1034 # The variables have the same names as the options, with
1035 # dashes changed to underlines.
1036 cache_file
=/dev
/null
1043 program_transform_name
=s
,x
,x
,
1051 # Installation directory options.
1052 # These are left unexpanded so users can "make install exec_prefix=/foo"
1053 # and all the variables that are supposed to be based on exec_prefix
1054 # by default will actually change.
1055 # Use braces instead of parens because sh, perl, etc. also accept them.
1056 # (The list follows the same order as the GNU Coding Standards.)
1057 bindir
='${exec_prefix}/bin'
1058 sbindir
='${exec_prefix}/sbin'
1059 libexecdir
='${exec_prefix}/libexec'
1060 datarootdir
='${prefix}/share'
1061 datadir
='${datarootdir}'
1062 sysconfdir
='${prefix}/etc'
1063 sharedstatedir
='${prefix}/com'
1064 localstatedir
='${prefix}/var'
1065 includedir
='${prefix}/include'
1066 oldincludedir
='/usr/include'
1067 docdir
='${datarootdir}/doc/${PACKAGE}'
1068 infodir
='${datarootdir}/info'
1073 libdir
='${exec_prefix}/lib'
1074 localedir
='${datarootdir}/locale'
1075 mandir
='${datarootdir}/man'
1081 # If the previous option needs an argument, assign it.
1082 if test -n "$ac_prev"; then
1083 eval $ac_prev=\
$ac_option
1089 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1094 # Accept the important Cygnus configure options, so we can diagnose typos.
1096 case $ac_dashdash$ac_option in
1100 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1102 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1103 bindir
=$ac_optarg ;;
1105 -build |
--build |
--buil |
--bui |
--bu)
1106 ac_prev
=build_alias
;;
1107 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1108 build_alias
=$ac_optarg ;;
1110 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1111 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1112 ac_prev
=cache_file
;;
1113 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1114 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1115 cache_file
=$ac_optarg ;;
1117 --config-cache |
-C)
1118 cache_file
=config.cache
;;
1120 -datadir |
--datadir |
--datadi |
--datad)
1122 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1123 datadir
=$ac_optarg ;;
1125 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1126 |
--dataroo |
--dataro |
--datar)
1127 ac_prev
=datarootdir
;;
1128 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1129 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1130 datarootdir
=$ac_optarg ;;
1132 -disable-* |
--disable-*)
1133 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1136 as_fn_error $?
"invalid feature name: $ac_useropt"
1137 ac_useropt_orig
=$ac_useropt
1138 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1141 "enable_
$ac_useropt"
1143 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1144 ac_unrecognized_sep
=', ';;
1146 eval enable_
$ac_useropt=no
;;
1148 -docdir |
--docdir |
--docdi |
--doc |
--do)
1150 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1151 docdir
=$ac_optarg ;;
1153 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1155 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1156 dvidir
=$ac_optarg ;;
1158 -enable-* |
--enable-*)
1159 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1162 as_fn_error $?
"invalid feature name: $ac_useropt"
1163 ac_useropt_orig
=$ac_useropt
1164 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_
$ac_useropt"
1169 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1170 ac_unrecognized_sep
=', ';;
1172 eval enable_
$ac_useropt=\
$ac_optarg ;;
1174 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1175 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1176 |
--exec |
--exe |
--ex)
1177 ac_prev
=exec_prefix
;;
1178 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1179 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1180 |
--exec=* |
--exe=* |
--ex=*)
1181 exec_prefix
=$ac_optarg ;;
1183 -gas |
--gas |
--ga |
--g)
1184 # Obsolete; use --with-gas.
1187 -help |
--help |
--hel |
--he |
-h)
1188 ac_init_help
=long
;;
1189 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1190 ac_init_help
=recursive
;;
1191 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1192 ac_init_help
=short
;;
1194 -host |
--host |
--hos |
--ho)
1195 ac_prev
=host_alias
;;
1196 -host=* |
--host=* |
--hos=* |
--ho=*)
1197 host_alias
=$ac_optarg ;;
1199 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1201 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1203 htmldir
=$ac_optarg ;;
1205 -includedir |
--includedir |
--includedi |
--included |
--include \
1206 |
--includ |
--inclu |
--incl |
--inc)
1207 ac_prev
=includedir
;;
1208 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1209 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1210 includedir
=$ac_optarg ;;
1212 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1214 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1215 infodir
=$ac_optarg ;;
1217 -libdir |
--libdir |
--libdi |
--libd)
1219 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1220 libdir
=$ac_optarg ;;
1222 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1223 |
--libexe |
--libex |
--libe)
1224 ac_prev
=libexecdir
;;
1225 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1226 |
--libexe=* |
--libex=* |
--libe=*)
1227 libexecdir
=$ac_optarg ;;
1229 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1230 ac_prev
=localedir
;;
1231 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1232 localedir
=$ac_optarg ;;
1234 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1235 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1236 ac_prev
=localstatedir
;;
1237 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1238 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1239 localstatedir
=$ac_optarg ;;
1241 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1243 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1244 mandir
=$ac_optarg ;;
1246 -nfp |
--nfp |
--nf)
1247 # Obsolete; use --without-fp.
1250 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1251 |
--no-cr |
--no-c |
-n)
1254 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1255 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1258 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1259 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1260 |
--oldin |
--oldi |
--old |
--ol |
--o)
1261 ac_prev
=oldincludedir
;;
1262 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1263 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1264 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1265 oldincludedir
=$ac_optarg ;;
1267 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1269 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1270 prefix
=$ac_optarg ;;
1272 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1273 |
--program-pre |
--program-pr |
--program-p)
1274 ac_prev
=program_prefix
;;
1275 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1276 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1277 program_prefix
=$ac_optarg ;;
1279 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1280 |
--program-suf |
--program-su |
--program-s)
1281 ac_prev
=program_suffix
;;
1282 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1283 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1284 program_suffix
=$ac_optarg ;;
1286 -program-transform-name |
--program-transform-name \
1287 |
--program-transform-nam |
--program-transform-na \
1288 |
--program-transform-n |
--program-transform- \
1289 |
--program-transform |
--program-transfor \
1290 |
--program-transfo |
--program-transf \
1291 |
--program-trans |
--program-tran \
1292 |
--progr-tra |
--program-tr |
--program-t)
1293 ac_prev
=program_transform_name
;;
1294 -program-transform-name=* |
--program-transform-name=* \
1295 |
--program-transform-nam=* |
--program-transform-na=* \
1296 |
--program-transform-n=* |
--program-transform-=* \
1297 |
--program-transform=* |
--program-transfor=* \
1298 |
--program-transfo=* |
--program-transf=* \
1299 |
--program-trans=* |
--program-tran=* \
1300 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1301 program_transform_name
=$ac_optarg ;;
1303 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1305 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1306 pdfdir
=$ac_optarg ;;
1308 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1310 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1313 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1314 |
-silent |
--silent |
--silen |
--sile |
--sil)
1317 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1319 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1321 sbindir
=$ac_optarg ;;
1323 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1324 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1325 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1327 ac_prev
=sharedstatedir
;;
1328 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1329 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1330 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1332 sharedstatedir
=$ac_optarg ;;
1334 -site |
--site |
--sit)
1336 -site=* |
--site=* |
--sit=*)
1339 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1341 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1342 srcdir
=$ac_optarg ;;
1344 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1345 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1346 ac_prev
=sysconfdir
;;
1347 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1348 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1349 sysconfdir
=$ac_optarg ;;
1351 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1352 ac_prev
=target_alias
;;
1353 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1354 target_alias
=$ac_optarg ;;
1356 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1359 -version |
--version |
--versio |
--versi |
--vers |
-V)
1360 ac_init_version
=: ;;
1363 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1366 as_fn_error $?
"invalid package name: $ac_useropt"
1367 ac_useropt_orig
=$ac_useropt
1368 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1373 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1374 ac_unrecognized_sep
=', ';;
1376 eval with_
$ac_useropt=\
$ac_optarg ;;
1378 -without-* |
--without-*)
1379 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1382 as_fn_error $?
"invalid package name: $ac_useropt"
1383 ac_useropt_orig
=$ac_useropt
1384 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1389 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1390 ac_unrecognized_sep
=', ';;
1392 eval with_
$ac_useropt=no
;;
1395 # Obsolete; use --with-x.
1398 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1399 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1400 ac_prev
=x_includes
;;
1401 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1402 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1403 x_includes
=$ac_optarg ;;
1405 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1406 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1407 ac_prev
=x_libraries
;;
1408 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1409 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1410 x_libraries
=$ac_optarg ;;
1412 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1413 Try \`$0 --help' for more information"
1417 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1418 # Reject names that are not valid shell variable names.
1419 case $ac_envvar in #(
1420 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1421 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1423 eval $ac_envvar=\
$ac_optarg
1424 export $ac_envvar ;;
1427 # FIXME: should be removed in autoconf 3.0.
1428 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1429 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1430 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1431 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1437 if test -n "$ac_prev"; then
1438 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1439 as_fn_error $?
"missing argument to $ac_option"
1442 if test -n "$ac_unrecognized_opts"; then
1443 case $enable_option_checking in
1445 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1446 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1450 # Check all directory arguments for consistency.
1451 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452 datadir sysconfdir sharedstatedir localstatedir includedir \
1453 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454 libdir localedir mandir
1456 eval ac_val
=\$
$ac_var
1457 # Remove trailing slashes.
1460 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1461 eval $ac_var=\
$ac_val;;
1463 # Be sure to have absolute directory names.
1465 [\\/$
]* | ?
:[\\/]* ) continue;;
1466 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1468 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1471 # There might be people who depend on the old broken behavior: `$host'
1472 # used to hold the argument of --host etc.
1473 # FIXME: To remove some day.
1476 target
=$target_alias
1478 # FIXME: To remove some day.
1479 if test "x$host_alias" != x
; then
1480 if test "x$build_alias" = x
; then
1481 cross_compiling
=maybe
1482 elif test "x$build_alias" != "x$host_alias"; then
1488 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1490 test "$silent" = yes && exec 6>/dev
/null
1493 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di
=`ls -di .` &&
1495 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1496 as_fn_error $?
"working directory cannot be determined"
1497 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1498 as_fn_error $?
"pwd does not report name of working directory"
1501 # Find the source files, if location was not specified.
1502 if test -z "$srcdir"; then
1503 ac_srcdir_defaulted
=yes
1504 # Try the directory containing this script, then the parent directory.
1505 ac_confdir
=`$as_dirname -- "$as_myself" ||
1506 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1507 X"$as_myself" : 'X\(//\)[^/]' \| \
1508 X"$as_myself" : 'X\(//\)$' \| \
1509 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1510 $as_echo X"$as_myself" |
1511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1529 if test ! -r "$srcdir/$ac_unique_file"; then
1533 ac_srcdir_defaulted
=no
1535 if test ! -r "$srcdir/$ac_unique_file"; then
1536 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1537 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1539 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1541 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1551 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 for ac_var
in $ac_precious_vars; do
1554 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1555 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1556 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1557 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1561 # Report the --help message.
1563 if test "$ac_init_help" = "long"; then
1564 # Omit some internal or obsolete options to make the list less imposing.
1565 # This message is too long to be a string in the A/UX 3.1 sh.
1567 \`configure' configures this package to adapt to many kinds of systems.
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE. See below for descriptions of some of the useful variables.
1574 Defaults for the options are specified in brackets.
1577 -h, --help display this help and exit
1578 --help=short display options specific to this package
1579 --help=recursive display the short help of all the included packages
1580 -V, --version display version information and exit
1581 -q, --quiet, --silent do not print \`checking ...' messages
1582 --cache-file=FILE cache test results in FILE [disabled]
1583 -C, --config-cache alias for \`--cache-file=config.cache'
1584 -n, --no-create do not create output files
1585 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1587 Installation directories:
1588 --prefix=PREFIX install architecture-independent files in PREFIX
1589 [$ac_default_prefix]
1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1598 For better control, use the options below.
1600 Fine tuning of the installation directories:
1601 --bindir=DIR user executables [EPREFIX/bin]
1602 --sbindir=DIR system admin executables [EPREFIX/sbin]
1603 --libexecdir=DIR program executables [EPREFIX/libexec]
1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1607 --libdir=DIR object code libraries [EPREFIX/lib]
1608 --includedir=DIR C header files [PREFIX/include]
1609 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1610 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1611 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1612 --infodir=DIR info documentation [DATAROOTDIR/info]
1613 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1614 --mandir=DIR man documentation [DATAROOTDIR/man]
1615 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1616 --htmldir=DIR html documentation [DOCDIR]
1617 --dvidir=DIR dvi documentation [DOCDIR]
1618 --pdfdir=DIR pdf documentation [DOCDIR]
1619 --psdir=DIR ps documentation [DOCDIR]
1625 --program-prefix=PREFIX prepend PREFIX to installed program names
1626 --program-suffix=SUFFIX append SUFFIX to installed program names
1627 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1630 --build=BUILD configure
for building on BUILD
[guessed
]
1631 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1632 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1636 if test -n "$ac_init_help"; then
1641 --disable-option-checking ignore unrecognized
--enable/--with options
1642 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1643 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1644 --enable-generated-files-in-srcdir
1645 put copies of generated files
in source dir intended
1646 for creating
source tarballs
for users without
1647 texinfo bison or flex
1648 --disable-largefile omit support
for large files
1649 --disable-build-format-warnings
1650 don
't use -Wformat while building GCC
1651 --enable-werror-always enable -Werror despite compiler version
1652 --enable-checking[=LIST]
1653 enable expensive run-time checks. With LIST, enable
1654 only specific categories of checks. Categories are:
1655 yes,no,all,none,release. Flags are:
1656 assert,df,extra,fold,gc,gcac,gimple,misc,
1657 rtlflag,rtl,runtime,tree,valgrind,types
1658 --enable-coverage[=LEVEL]
1659 enable compiler's code coverage collection. Use to
1660 measure compiler performance and
locate unused parts
1661 of the compiler. With LEVEL
, specify optimization.
1662 Values are opt
, noopt
, default is noopt
1663 --enable-gather-detailed-mem-stats
1664 enable detailed memory allocation stats gathering
1665 --enable-valgrind-annotations
1666 enable valgrind runtime interaction
1667 --enable-multilib enable library support
for multiple ABIs
1668 --enable-multiarch enable support
for multiarch paths
1669 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1670 --enable-decimal-float={no
,yes,bid
,dpd
}
1671 enable decimal float extension to C. Selecting
'bid'
1672 or
'dpd' choses
which decimal floating point format
1674 --enable-fixed-point enable fixed-point arithmetic extension to C
1675 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1677 --enable-tls enable or disable generation of tls code overriding
1678 the assembler check
for tls support
1679 --enable-vtable-verify enable vtable verification feature
1680 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1681 GNU Objective-C runtime
1682 --disable-shared don't provide a shared libgcc
1683 --disable-gcov don
't provide libgcov and related host tools
1684 --enable-languages=LIST specify which front-ends to build
1685 --disable-rpath do not hardcode runtime library paths
1686 --enable-sjlj-exceptions
1687 arrange to use setjmp/longjmp exception handling
1688 --enable-secureplt enable -msecure-plt by default for PowerPC
1689 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1690 Default to platform configuration
1691 --enable-large-address-aware
1692 Link mingw executables with --large-address-aware
1693 --enable-leading-mingw64-underscores
1694 enable leading underscores on 64 bit mingw targets
1695 --enable-cld enable -mcld by default for 32bit x86
1696 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1697 --disable-win32-registry
1698 disable lookup of installation paths in the Registry
1700 --enable-win32-registry enable registry lookup (default)
1701 --enable-win32-registry=KEY
1702 use KEY instead of GCC version as the last portion
1704 --enable-shared[=PKGS] build shared libraries [default=yes]
1705 --enable-static[=PKGS] build static libraries [default=yes]
1706 --enable-fast-install[=PKGS]
1707 optimize for fast installation [default=yes]
1708 --disable-libtool-lock avoid locking (might break parallel builds)
1709 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1710 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1711 --enable-gnu-indirect-function
1712 enable the use of the @gnu_indirect_function to
1714 --enable-initfini-array use .init_array/.fini_array sections
1715 --enable-comdat enable COMDAT group support
1717 --enable-standard-branch-protection
1718 enable Branch Target Identification Mechanism and
1719 Return Address Signing by default for AArch64
1720 --disable-standard-branch-protection
1721 disable Branch Target Identification Mechanism and
1722 Return Address Signing by default for AArch64
1725 --enable-fix-cortex-a53-835769
1726 enable workaround for AArch64 Cortex-A53 erratum
1728 --disable-fix-cortex-a53-835769
1729 disable workaround for AArch64 Cortex-A53 erratum
1733 --enable-fix-cortex-a53-843419
1734 enable workaround for AArch64 Cortex-A53 erratum
1736 --disable-fix-cortex-a53-843419
1737 disable workaround for AArch64 Cortex-A53 erratum
1740 --enable-gnu-unique-object
1741 enable the use of the @gnu_unique_object ELF
1742 extension on glibc systems
1743 --enable-linker-build-id
1744 compiler will always pass --build-id to linker
1745 --enable-libssp enable linking against libssp
1746 --enable-default-ssp enable Stack Smashing Protection as default
1747 --enable-maintainer-mode
1748 enable make rules and dependencies not useful (and
1749 sometimes confusing) to the casual installer
1750 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1751 thrashing on the build machine
1752 --enable-version-specific-runtime-libs
1753 specify that runtime libraries should be installed
1754 in a compiler-specific directory
1755 --enable-plugin enable plugin support
1756 --enable-host-shared build host code as shared libraries
1757 --disable-libquadmath-support
1758 disable libquadmath support for Fortran
1759 --enable-default-pie enable Position Independent Executable as default
1762 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1763 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1764 --with-build-libsubdir=DIR Directory where to find libraries for build system
1765 --with-local-prefix=DIR specifies directory to put local include
1766 --with-native-system-header-dir=dir
1767 use dir as the directory to look for standard
1768 system header files in. Defaults to /usr/include.
1769 --with-build-sysroot=sysroot
1770 use sysroot as the system root during the build
1771 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1772 --with-gxx-include-dir=DIR
1773 specifies directory to put g++ header files
1774 --with-cpp-install-dir=DIR
1775 install the user visible C preprocessor in DIR
1776 (relative to PREFIX) as well as PREFIX/bin
1777 --with-gnu-ld arrange to work with GNU ld
1778 --with-ld arrange to use the specified ld (full pathname)
1779 --with-demangler-in-ld try to use demangler in GNU ld
1780 --with-gnu-as arrange to work with GNU as
1781 --with-as arrange to use the specified as (full pathname)
1782 --with-stabs arrange to use stabs instead of host debug format
1783 --with-stack-clash-protection-guard-size=size
1784 Set the default stack clash protection guard size
1785 for specific targets as a power of two in bytes.
1786 --with-dwarf2 force the default debug format to be DWARF 2
1787 --with-specs=SPECS add SPECS to driver command-line processing
1788 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1789 --with-bugurl=URL Direct users to URL to report a bug
1790 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1791 --with-zstd=PATH specify prefix directory for installed zstd library.
1792 Equivalent to --with-zstd-include=PATH/include plus
1793 --with-zstd-lib=PATH/lib
1794 --with-zstd-include=PATH
1795 specify directory for installed zstd include files
1796 --with-zstd-lib=PATH specify directory for the installed zstd library
1797 --with-gnu-ld assume the C compiler uses GNU ld default=no
1798 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1799 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1800 --with-gcc-major-version-only
1801 use only GCC major number
in filesystem paths
1802 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1804 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1805 --with-plugin-ld=[ARG
] specify the plugin linker
1806 --with-glibc-version=M.N
1807 assume GCC used with glibc version M.N or later
1808 --with-long-double-128 use
128-bit long double by default
1809 --with-long-double-format={ieee
,ibm
}
1810 Specify whether PowerPC long double uses IEEE or IBM format
1812 --with-gc={page
,zone
} this option is not supported anymore. It used to
1813 choose the garbage collection mechanism to use with
1815 --with-system-zlib use installed libz
1816 --with-linker-hash-style={sysv
,gnu
,both
}
1817 specify the linker
hash style
1818 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1819 specify the default of
-fdiagnostics-color option
1820 auto-if-env stands
for -fdiagnostics-color=auto
if
1821 GCC_COLOR environment variable is present and
1822 -fdiagnostics-color=never otherwise
1824 Some influential environment variables
:
1825 CC C compiler
command
1826 CFLAGS C compiler flags
1827 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1828 nonstandard directory
<lib dir
>
1829 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1830 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1831 you have headers
in a nonstandard directory
<include dir
>
1832 CXX C
++ compiler
command
1833 CXXFLAGS C
++ compiler flags
1834 CXXCPP C
++ preprocessor
1836 GMPLIBS How to link GMP
1837 GMPINC How to
find GMP include files
1838 ISLLIBS How to link isl
1839 ISLINC How to
find isl include files
1841 Use these variables to override the choices made by
`configure' or to help
1842 it to find libraries and programs with nonstandard names/locations.
1844 Report bugs to the package provider.
1849 if test "$ac_init_help" = "recursive"; then
1850 # If there are subdirs, report their specific --help.
1851 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1852 test -d "$ac_dir" ||
1853 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1860 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1861 # A ".." for each directory in $ac_dir_suffix.
1862 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1863 case $ac_top_builddir_sub in
1864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1868 ac_abs_top_builddir=$ac_pwd
1869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1870 # for backward compatibility:
1871 ac_top_builddir=$ac_top_build_prefix
1874 .) # We are building in place.
1876 ac_top_srcdir=$ac_top_builddir_sub
1877 ac_abs_top_srcdir=$ac_pwd ;;
1878 [\\/]* | ?:[\\/]* ) # Absolute name.
1879 ac_srcdir=$srcdir$ac_dir_suffix;
1880 ac_top_srcdir=$srcdir
1881 ac_abs_top_srcdir=$srcdir ;;
1883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1884 ac_top_srcdir=$ac_top_build_prefix$srcdir
1885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1889 cd "$ac_dir" || { ac_status=$?; continue; }
1890 # Check for guested configure.
1891 if test -f "$ac_srcdir/configure.gnu"; then
1893 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1894 elif test -f "$ac_srcdir/configure"; then
1896 $SHELL "$ac_srcdir/configure" --help=recursive
1898 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1900 cd "$ac_pwd" || { ac_status=$?; break; }
1904 test -n "$ac_init_help" && exit $ac_status
1905 if $ac_init_version; then
1908 generated by GNU Autoconf 2.69
1910 Copyright (C) 2012 Free Software Foundation, Inc.
1911 This configure script is free software; the Free Software Foundation
1912 gives unlimited permission to copy, distribute and modify it.
1917 ## ------------------------ ##
1918 ## Autoconf initialization. ##
1919 ## ------------------------ ##
1921 # ac_fn_c_try_compile LINENO
1922 # --------------------------
1923 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_c_try_compile ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext
1928 if { { ac_try="$ac_compile"
1930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1931 *) ac_try_echo
=$ac_try;;
1933 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_compile") 2>conftest.err
1937 if test -s conftest.err
; then
1938 grep -v '^ *+' conftest.err
>conftest.er1
1939 cat conftest.er1
>&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest.
$ac_objext; then :
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.
$ac_ext >&5
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status
$ac_retval
1957 } # ac_fn_c_try_compile
1959 # ac_fn_cxx_try_compile LINENO
1960 # ----------------------------
1961 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_cxx_try_compile
()
1964 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1965 rm -f conftest.
$ac_objext
1966 if { { ac_try
="$ac_compile"
1968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_compile") 2>conftest.err
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && {
1982 test -z "$ac_cxx_werror_flag" ||
1983 test ! -s conftest.err
1984 } && test -s conftest.$ac_objext; then :
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 as_fn_set_status $ac_retval
1995 } # ac_fn_cxx_try_compile
1997 # ac_fn_cxx_try_cpp LINENO
1998 # ------------------------
1999 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_cxx_try_cpp ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if { { ac_try="$ac_cpp conftest.$ac_ext"
2005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2006 *) ac_try_echo
=$ac_try;;
2008 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2012 if test -s conftest.err
; then
2013 grep -v '^ *+' conftest.err
>conftest.er1
2014 cat conftest.er1
>&5
2015 mv -f conftest.er1 conftest.err
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } > conftest.i
&& {
2019 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2020 test ! -s conftest.err
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.
$ac_ext >&5
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status
$ac_retval
2032 } # ac_fn_cxx_try_cpp
2034 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2035 # ---------------------------------------------------------
2036 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2037 # the include files in INCLUDES and setting the cache variable VAR
2039 ac_fn_cxx_check_header_mongrel
()
2041 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2042 if eval \
${$3+:} false
; then :
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \
${$3+:} false
; then :
2046 $as_echo_n "(cached) " >&6
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2052 # Is the header compilable?
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2054 $as_echo_n "checking $2 usability... " >&6; }
2055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2060 if ac_fn_cxx_try_compile
"$LINENO"; then :
2061 ac_header_compiler
=yes
2063 ac_header_compiler
=no
2065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2067 $as_echo "$ac_header_compiler" >&6; }
2069 # Is the header present?
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2071 $as_echo_n "checking $2 presence... " >&6; }
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2076 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2077 ac_header_preproc
=yes
2079 ac_header_preproc
=no
2081 rm -f conftest.err conftest.i conftest.
$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2083 $as_echo "$ac_header_preproc" >&6; }
2085 # So? What about this header?
2086 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2089 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2095 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2097 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2099 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2101 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2103 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \
${$3+:} false
; then :
2109 $as_echo_n "(cached) " >&6
2111 eval "$3=\$ac_header_compiler"
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 } # ac_fn_cxx_check_header_mongrel
2121 # ac_fn_cxx_try_run LINENO
2122 # ------------------------
2123 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2124 # that executables *can* be run.
2125 ac_fn_cxx_try_run
()
2127 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2128 if { { ac_try
="$ac_link"
2130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_link") 2>&5
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2139 { { case "(($ac_try" in
2140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2141 *) ac_try_echo
=$ac_try;;
2143 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_try") 2>&5
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; }; }; then :
2151 $as_echo "$as_me: program exited with status $ac_status" >&5
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.
$ac_ext >&5
2155 ac_retval
=$ac_status
2157 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 as_fn_set_status
$ac_retval
2161 } # ac_fn_cxx_try_run
2163 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2164 # ---------------------------------------------------------
2165 # Tests whether HEADER exists and can be compiled using the include files in
2166 # INCLUDES, setting the cache variable VAR accordingly.
2167 ac_fn_cxx_check_header_compile
()
2169 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171 $as_echo_n "checking for $2... " >&6; }
2172 if eval \
${$3+:} false
; then :
2173 $as_echo_n "(cached) " >&6
2175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2180 if ac_fn_cxx_try_compile
"$LINENO"; then :
2185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 } # ac_fn_cxx_check_header_compile
2194 # ac_fn_c_try_cpp LINENO
2195 # ----------------------
2196 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2199 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2200 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2209 if test -s conftest.err; then
2210 grep -v '^ *+' conftest.err >conftest.er1
2211 cat conftest.er1 >&5
2212 mv -f conftest.er1 conftest.err
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } > conftest.i && {
2216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2217 test ! -s conftest.err
2221 $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227 as_fn_set_status $ac_retval
2231 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2232 # ----------------------------------------------
2233 # Tries to find the compile-time value of EXPR in a program that includes
2234 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2236 ac_fn_cxx_compute_int ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if test "$cross_compiling" = yes; then
2240 # Depending upon the size, compute the lo and hi bounds.
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2247 static int test_array [1 - 2 * !(($2) >= 0)];
2249 return test_array [0];
2255 if ac_fn_cxx_try_compile "$LINENO"; then :
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2266 return test_array [0];
2272 if ac_fn_cxx_try_compile "$LINENO"; then :
2273 ac_hi=$ac_mid; break
2275 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2276 if test $ac_lo -le $ac_mid; then
2280 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2291 static int test_array [1 - 2 * !(($2) < 0)];
2293 return test_array [0];
2299 if ac_fn_cxx_try_compile "$LINENO"; then :
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2308 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2310 return test_array [0];
2316 if ac_fn_cxx_try_compile "$LINENO"; then :
2317 ac_lo=$ac_mid; break
2319 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2320 if test $ac_mid -le $ac_hi; then
2324 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 # Binary search between lo and hi bounds.
2335 while test "x$ac_lo" != "x$ac_hi"; do
2336 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2343 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2345 return test_array [0];
2351 if ac_fn_cxx_try_compile "$LINENO"; then :
2354 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2366 static long int longval () { return $2; }
2367 static unsigned long int ulongval () { return $2; }
2374 FILE *f = fopen ("conftest.val", "w");
2379 long int i = longval ();
2382 fprintf (f, "%ld", i);
2386 unsigned long int i = ulongval ();
2389 fprintf (f, "%lu", i);
2391 /* Do not output a trailing newline, as this causes \r\n confusion
2392 on some platforms. */
2393 return ferror (f) || fclose (f) != 0;
2399 if ac_fn_cxx_try_run "$LINENO"; then :
2400 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2405 conftest.$ac_objext conftest.beam conftest.$ac_ext
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 as_fn_set_status $ac_retval
2412 } # ac_fn_cxx_compute_int
2414 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2415 # ---------------------------------------------
2416 # Tests whether TYPE exists after having included INCLUDES, setting cache
2417 # variable VAR accordingly.
2418 ac_fn_cxx_check_type ()
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422 $as_echo_n "checking for $2... " >&6; }
2423 if eval \${$3+:} false; then :
2424 $as_echo_n "(cached) " >&6
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2439 if ac_fn_cxx_try_compile "$LINENO"; then :
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2452 if ac_fn_cxx_try_compile "$LINENO"; then :
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2463 $as_echo "$ac_res" >&6; }
2464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2466 } # ac_fn_cxx_check_type
2468 # ac_fn_c_find_intX_t LINENO BITS VAR
2469 # -----------------------------------
2470 # Finds a signed integer type with width BITS, setting cache variable VAR
2472 ac_fn_c_find_intX_t ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2476 $as_echo_n "checking for int$2_t... " >&6; }
2477 if eval \${$3+:} false; then :
2478 $as_echo_n "(cached) " >&6
2481 # Order is important - never check a type that is potentially smaller
2482 # than half of the expected target width.
2483 for ac_type in int$2_t 'int' 'long int' \
2484 'long long int' 'short int' 'signed char'; do
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2487 $ac_includes_default
2488 enum { N = $2 / 2 - 1 };
2492 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2494 return test_array [0];
2500 if ac_fn_cxx_try_compile "$LINENO"; then :
2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h. */
2503 $ac_includes_default
2504 enum { N = $2 / 2 - 1 };
2508 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2509 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2511 return test_array [0];
2517 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 eval "$3=\$ac_type" ;;
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530 if eval test \"x\$"$3"\" = x"no"; then :
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2542 } # ac_fn_c_find_intX_t
2544 # ac_fn_cxx_try_link LINENO
2545 # -------------------------
2546 # Try to link conftest.$ac_ext, and return whether this succeeded.
2547 ac_fn_cxx_try_link ()
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 rm -f conftest.$ac_objext conftest$ac_exeext
2551 if { { ac_try="$ac_link"
2553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2554 *) ac_try_echo
=$ac_try;;
2556 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557 $as_echo "$ac_try_echo"; } >&5
2558 (eval "$ac_link") 2>conftest.err
2560 if test -s conftest.err
; then
2561 grep -v '^ *+' conftest.err
>conftest.er1
2562 cat conftest.er1
>&5
2563 mv -f conftest.er1 conftest.err
2565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566 test $ac_status = 0; } && {
2567 test -z "$ac_cxx_werror_flag" ||
2568 test ! -s conftest.err
2569 } && test -s conftest
$ac_exeext && {
2570 test "$cross_compiling" = yes ||
2571 test -x conftest
$ac_exeext
2575 $as_echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.
$ac_ext >&5
2580 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2581 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2582 # interfere with the next link command; also delete a directory that is
2583 # left behind by Apple's compiler. We do this before executing the actions.
2584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2586 as_fn_set_status
$ac_retval
2588 } # ac_fn_cxx_try_link
2590 # ac_fn_c_find_uintX_t LINENO BITS VAR
2591 # ------------------------------------
2592 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2594 ac_fn_c_find_uintX_t
()
2596 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2598 $as_echo_n "checking for uint$2_t... " >&6; }
2599 if eval \
${$3+:} false
; then :
2600 $as_echo_n "(cached) " >&6
2603 # Order is important - never check a type that is potentially smaller
2604 # than half of the expected target width.
2605 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2606 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 $ac_includes_default
2613 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2615 return test_array [0];
2621 if ac_fn_cxx_try_compile
"$LINENO"; then :
2626 eval "$3=\$ac_type" ;;
2629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2630 if eval test \"x\$
"$3"\" = x
"no"; then :
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 } # ac_fn_c_find_uintX_t
2644 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2645 # ------------------------------------------------
2646 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2647 ac_fn_cxx_check_header_preproc
()
2649 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2651 $as_echo_n "checking for $2... " >&6; }
2652 if eval \
${$3+:} false
; then :
2653 $as_echo_n "(cached) " >&6
2655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h. */
2659 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2664 rm -f conftest.err conftest.i conftest.
$ac_ext
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 } # ac_fn_cxx_check_header_preproc
2673 # ac_fn_cxx_check_func LINENO FUNC VAR
2674 # ------------------------------------
2675 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2676 ac_fn_cxx_check_func
()
2678 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2680 $as_echo_n "checking for $2... " >&6; }
2681 if eval \
${$3+:} false
; then :
2682 $as_echo_n "(cached) " >&6
2684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2686 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2688 #define $2 innocuous_$2
2690 /* System header to define __stub macros and hopefully few prototypes,
2691 which can conflict with char $2 (); below.
2692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2693 <limits.h> exists even on freestanding compilers. */
2696 # include <limits.h>
2698 # include <assert.h>
2703 /* Override any GCC internal prototype to avoid an error.
2704 Use char because int might match the return type of a GCC
2705 builtin and then its argument prototype would still apply. */
2710 /* The GNU C library defines this for functions which it implements
2711 to always fail with ENOSYS. Some functions are actually named
2712 something starting with __ and the normal name is an alias. */
2713 #if defined __stub_$2 || defined __stub___$2
2725 if ac_fn_cxx_try_link
"$LINENO"; then :
2730 rm -f core conftest.err conftest.
$ac_objext \
2731 conftest
$ac_exeext conftest.
$ac_ext
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2735 $as_echo "$ac_res" >&6; }
2736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2738 } # ac_fn_cxx_check_func
2740 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2741 # -----------------------------------------------
2742 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2744 ac_fn_cxx_check_decl
()
2746 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2747 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2748 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2750 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2751 if eval \
${$3+:} false
; then :
2752 $as_echo_n "(cached) " >&6
2754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2760 #ifndef $as_decl_name
2762 (void) $as_decl_use;
2764 (void) $as_decl_name;
2772 if ac_fn_cxx_try_compile
"$LINENO"; then :
2777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2781 $as_echo "$ac_res" >&6; }
2782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2784 } # ac_fn_cxx_check_decl
2786 # ac_fn_c_try_link LINENO
2787 # -----------------------
2788 # Try to link conftest.$ac_ext, and return whether this succeeded.
2791 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2792 rm -f conftest.
$ac_objext conftest
$ac_exeext
2793 if { { ac_try
="$ac_link"
2795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800 (eval "$ac_link") 2>conftest.err
2802 if test -s conftest.err; then
2803 grep -v '^ *+' conftest.err >conftest.er1
2804 cat conftest.er1 >&5
2805 mv -f conftest.er1 conftest.err
2807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2808 test $ac_status = 0; } && {
2809 test -z "$ac_c_werror_flag" ||
2810 test ! -s conftest.err
2811 } && test -s conftest$ac_exeext && {
2812 test "$cross_compiling" = yes ||
2813 test -x conftest$ac_exeext
2817 $as_echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2824 # interfere with the next link command; also delete a directory that is
2825 # left behind by Apple's compiler. We do this before executing the actions.
2826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2828 as_fn_set_status $ac_retval
2830 } # ac_fn_c_try_link
2832 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2833 # ----------------------------------------------
2834 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2835 ac_fn_c_check_header_preproc ()
2837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2839 $as_echo_n "checking for $2... " >&6; }
2840 if eval \${$3+:} false; then :
2841 $as_echo_n "(cached) " >&6
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h. */
2847 if ac_fn_c_try_cpp "$LINENO"; then :
2852 rm -f conftest.err conftest.i conftest.$ac_ext
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2856 $as_echo "$ac_res" >&6; }
2857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2859 } # ac_fn_c_check_header_preproc
2861 # ac_fn_c_check_func LINENO FUNC VAR
2862 # ----------------------------------
2863 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2864 ac_fn_c_check_func ()
2866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2868 $as_echo_n "checking for $2... " >&6; }
2869 if eval \${$3+:} false; then :
2870 $as_echo_n "(cached) " >&6
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2874 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2876 #define $2 innocuous_$2
2878 /* System header to define __stub macros and hopefully few prototypes,
2879 which can conflict with char $2 (); below.
2880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2881 <limits.h> exists even on freestanding compilers. */
2884 # include <limits.h>
2886 # include <assert.h>
2891 /* Override any GCC internal prototype to avoid an error.
2892 Use char because int might match the return type of a GCC
2893 builtin and then its argument prototype would still apply. */
2898 /* The GNU C library defines this for functions which it implements
2899 to always fail with ENOSYS. Some functions are actually named
2900 something starting with __ and the normal name is an alias. */
2901 #if defined __stub_$2 || defined __stub___$2
2913 if ac_fn_c_try_link "$LINENO"; then :
2918 rm -f core conftest.err conftest.$ac_objext \
2919 conftest$ac_exeext conftest.$ac_ext
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2923 $as_echo "$ac_res" >&6; }
2924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926 } # ac_fn_c_check_func
2927 cat >config.log <<_ACEOF
2928 This file contains any messages produced by compilers while
2929 running configure, to aid debugging if configure makes a mistake.
2931 It was created by $as_me, which was
2932 generated by GNU Autoconf 2.69. Invocation command line was
2944 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2945 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2946 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2947 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2948 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2950 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2951 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2953 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2954 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2955 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2956 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2957 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2958 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2959 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir=.
2968 $as_echo "PATH: $as_dir"
2984 # Keep a trace of the command line.
2985 # Strip out --no-create and --no-recursion so they do not pile up.
2986 # Strip out --silent because we don't want to record it for future runs.
2987 # Also quote any args containing shell meta-characters.
2988 # Make two passes to allow for proper duplicate-argument suppression.
2992 ac_must_keep_next=false
2998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3000 | -silent | --silent | --silen | --sile | --sil)
3003 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3008 as_fn_append ac_configure_args1 " '$ac_arg'"
3009 if test $ac_must_keep_next = true; then
3010 ac_must_keep_next=false # Got value, back to normal.
3013 *=* | --config-cache | -C | -disable-* | --disable-* \
3014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3016 | -with-* | --with-* | -without-* | --without-* | --x)
3017 case "$ac_configure_args0 " in
3018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3021 -* ) ac_must_keep_next=true ;;
3024 as_fn_append ac_configure_args " '$ac_arg'"
3029 { ac_configure_args0=; unset ac_configure_args0;}
3030 { ac_configure_args1=; unset ac_configure_args1;}
3032 # When interrupted or exit'd, cleanup temporary files, and complete
3033 # config.log. We remove comments because anyway the quotes in there
3034 # would cause problems or look ugly.
3035 # WARNING: Use '\'' to represent an apostrophe within the trap.
3036 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3037 trap 'exit_status=$?
3038 # Save into config.log some information that might help in debugging.
3042 $as_echo "## ---------------- ##
3043 ## Cache variables. ##
3044 ## ---------------- ##"
3046 # The following way of writing the cache mishandles newlines in values,
3048 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3049 eval ac_val=\$$ac_var
3053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3057 _ | IFS | as_nl) ;; #(
3058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3059 *) { eval $ac_var=; unset $ac_var;} ;;
3064 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3065 *${as_nl}ac_space=\ *)
3067 "s/'\''/'\''\\\\'\'''\''/g;
3068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3078 $as_echo "## ----------------- ##
3079 ## Output variables. ##
3080 ## ----------------- ##"
3082 for ac_var in $ac_subst_vars
3084 eval ac_val=\$$ac_var
3086 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3088 $as_echo "$ac_var='\''$ac_val'\''"
3092 if test -n "$ac_subst_files"; then
3093 $as_echo "## ------------------- ##
3094 ## File substitutions. ##
3095 ## ------------------- ##"
3097 for ac_var in $ac_subst_files
3099 eval ac_val=\$$ac_var
3101 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3103 $as_echo "$ac_var='\''$ac_val'\''"
3108 if test -s confdefs.h; then
3109 $as_echo "## ----------- ##
3116 test "$ac_signal" != 0 &&
3117 $as_echo "$as_me: caught signal $ac_signal"
3118 $as_echo "$as_me: exit $exit_status"
3120 rm -f core *.core core.conftest.* &&
3121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3124 for ac_signal in 1 2 13 15; do
3125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3130 rm -f -r conftest* confdefs.h
3132 $as_echo "/* confdefs.h */" > confdefs.h
3134 # Predefined preprocessor variables.
3136 cat >>confdefs.h <<_ACEOF
3137 #define PACKAGE_NAME "$PACKAGE_NAME"
3140 cat >>confdefs.h <<_ACEOF
3141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3144 cat >>confdefs.h <<_ACEOF
3145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3148 cat >>confdefs.h <<_ACEOF
3149 #define PACKAGE_STRING "$PACKAGE_STRING"
3152 cat >>confdefs.h <<_ACEOF
3153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3156 cat >>confdefs.h <<_ACEOF
3157 #define PACKAGE_URL "$PACKAGE_URL"
3161 # Let the site file select an alternate cache file if it wants to.
3162 # Prefer an explicitly selected file to automatically selected ones.
3165 if test -n "$CONFIG_SITE"; then
3166 # We do not want a PATH search for config.site.
3167 case $CONFIG_SITE in #((
3168 -*) ac_site_file1=./$CONFIG_SITE;;
3169 */*) ac_site_file1=$CONFIG_SITE;;
3170 *) ac_site_file1=./$CONFIG_SITE;;
3172 elif test "x$prefix" != xNONE; then
3173 ac_site_file1=$prefix/share/config.site
3174 ac_site_file2=$prefix/etc/config.site
3176 ac_site_file1=$ac_default_prefix/share/config.site
3177 ac_site_file2=$ac_default_prefix/etc/config.site
3179 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3181 test "x$ac_site_file" = xNONE && continue
3182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3185 sed 's/^/| /' "$ac_site_file" >&5
3187 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "failed to load site
script $ac_site_file
3190 See \
`config.log' for more details" "$LINENO" 5; }
3194 if test -r "$cache_file"; then
3195 # Some versions of bash will fail to source /dev/null (special files
3196 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3197 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3199 $as_echo "$as_me: loading cache $cache_file" >&6;}
3201 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3202 *) . "./$cache_file";;
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3207 $as_echo "$as_me: creating cache $cache_file" >&6;}
3211 # Check that the precious variables saved in the cache have kept the same
3213 ac_cache_corrupted=false
3214 for ac_var in $ac_precious_vars; do
3215 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3216 eval ac_new_set=\$ac_env_${ac_var}_set
3217 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3218 eval ac_new_val=\$ac_env_${ac_var}_value
3219 case $ac_old_set,$ac_new_set in
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3222 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3223 ac_cache_corrupted=: ;;
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3226 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3227 ac_cache_corrupted=: ;;
3230 if test "x$ac_old_val" != "x$ac_new_val"; then
3231 # differences in whitespace do not lead to failure.
3232 ac_old_val_w=`echo x
$ac_old_val`
3233 ac_new_val_w=`echo x
$ac_new_val`
3234 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3236 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3237 ac_cache_corrupted=:
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3240 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3241 eval $ac_var=\$ac_old_val
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3244 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3246 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3249 # Pass precious variables to config.status.
3250 if test "$ac_new_set" = set; then
3252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3253 *) ac_arg=$ac_var=$ac_new_val ;;
3255 case " $ac_configure_args " in
3256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3257 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3261 if $ac_cache_corrupted; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3265 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3266 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3268 ## -------------------- ##
3269 ## Main body of script. ##
3270 ## -------------------- ##
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3286 gcc_version=`cat $srcdir/BASE-VER
`
3288 # Determine the host, build, and target systems
3290 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3291 if test -f "$ac_dir/install-sh"; then
3293 ac_install_sh="$ac_aux_dir/install-sh -c"
3295 elif test -f "$ac_dir/install.sh"; then
3297 ac_install_sh="$ac_aux_dir/install.sh -c"
3299 elif test -f "$ac_dir/shtool"; then
3301 ac_install_sh="$ac_aux_dir/shtool install -c"
3305 if test -z "$ac_aux_dir"; then
3306 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3309 # These three variables are undocumented and unsupported,
3310 # and are intended to be withdrawn in a future Autoconf release.
3311 # They can cause serious problems if a builder's source tree is in a directory
3312 # whose full name contains unusual characters.
3313 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3314 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3315 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3318 # Make sure we can run config.sub.
3319 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3320 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3323 $as_echo_n "checking build system type... " >&6; }
3324 if ${ac_cv_build+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 ac_build_alias=$build_alias
3328 test "x$ac_build_alias" = x &&
3329 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3330 test "x$ac_build_alias" = x &&
3331 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3332 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3333 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3337 $as_echo "$ac_cv_build" >&6; }
3338 case $ac_cv_build in
3340 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3343 ac_save_IFS=$IFS; IFS='-'
3349 # Remember, the first character of IFS is used to create $*,
3350 # except with old shells:
3353 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3357 $as_echo_n "checking host system type... " >&6; }
3358 if ${ac_cv_host+:} false; then :
3359 $as_echo_n "(cached) " >&6
3361 if test "x$host_alias" = x; then
3362 ac_cv_host=$ac_cv_build
3364 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3370 $as_echo "$ac_cv_host" >&6; }
3373 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3376 ac_save_IFS=$IFS; IFS='-'
3382 # Remember, the first character of IFS is used to create $*,
3383 # except with old shells:
3386 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3390 $as_echo_n "checking target system type... " >&6; }
3391 if ${ac_cv_target+:} false; then :
3392 $as_echo_n "(cached) " >&6
3394 if test "x$target_alias" = x; then
3395 ac_cv_target=$ac_cv_host
3397 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3398 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3403 $as_echo "$ac_cv_target" >&6; }
3404 case $ac_cv_target in
3406 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3408 target=$ac_cv_target
3409 ac_save_IFS=$IFS; IFS='-'
3415 # Remember, the first character of IFS is used to create $*,
3416 # except with old shells:
3419 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3422 # The aliases save the names the user supplied, while $host etc.
3423 # will get canonicalized.
3424 test -n "$target_alias" &&
3425 test "$program_prefix$program_suffix$program_transform_name" = \
3427 program_prefix=${target_alias}-
3429 # Determine the noncanonical host name, for Ada.
3430 case ${build_alias} in
3431 "") build_noncanonical=${build} ;;
3432 *) build_noncanonical=${build_alias} ;;
3435 case ${host_alias} in
3436 "") host_noncanonical=${build_noncanonical} ;;
3437 *) host_noncanonical=${host_alias} ;;
3443 # Determine the noncanonical target name, for directory use.
3444 case ${target_alias} in
3445 "") target_noncanonical=${host_noncanonical} ;;
3446 *) target_noncanonical=${target_alias} ;;
3452 # Used for constructing correct paths for offload compilers.
3453 real_target_noncanonical=${target_noncanonical}
3456 # Determine the target- and build-specific subdirectories
3458 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3459 # have matching libraries, they should use host libraries: Makefile.tpl
3460 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3461 # However, they still use the build modules, because the corresponding
3462 # host modules (e.g. bison) are only built for the host when bootstrap
3464 # - build_subdir is where we find build modules, and never changes.
3465 # - build_libsubdir is where we find build libraries, and can be overridden.
3467 # Prefix 'build-' so this never conflicts with target_subdir.
3468 build_subdir="build-${build_noncanonical}"
3470 # Check whether --with-build-libsubdir was given.
3471 if test "${with_build_libsubdir+set}" = set; then :
3472 withval=$with_build_libsubdir; build_libsubdir="$withval"
3474 build_libsubdir="$build_subdir"
3477 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3478 if ( test $srcdir = . && test -d gcc ) \
3479 || test -d $srcdir/../host-${host_noncanonical}; then
3480 host_subdir="host-${host_noncanonical}"
3485 target_subdir=${target_noncanonical}
3488 # Set program_transform_name
3489 test "$program_prefix" != NONE &&
3490 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3491 # Use a double $ so make ignores it.
3492 test "$program_suffix" != NONE &&
3493 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3494 # Double any \ or $.
3495 # By default was `s
,x
,x
', remove it if useless.
3496 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3497 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3500 # Check for bogus environment variables.
3501 # Test if LIBRARY_PATH contains the notation for the current directory
3502 # since this would lead to problems installing/building glibc.
3503 # LIBRARY_PATH contains the current directory if one of the following
3505 # - one of the terminals (":" and ";") is the first or last sign
3506 # - two terminals occur directly after each other
3507 # - the path contains an element with a dot in it
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3509 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3510 case ${LIBRARY_PATH} in
3511 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3512 library_path_setting="contains current directory"
3515 library_path_setting="ok"
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3519 $as_echo "$library_path_setting" >&6; }
3520 if test "$library_path_setting" != "ok"; then
3522 *** LIBRARY_PATH shouldn't contain the current directory when
3523 *** building gcc. Please change the environment variable
3524 *** and run configure again.
" "$LINENO" 5
3527 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3528 # since this would lead to problems installing/building glibc.
3529 # GCC_EXEC_PREFIX contains the current directory if one of the following
3531 # - one of the terminals (":" and ";") is the first or last sign
3532 # - two terminals occur directly after each other
3533 # - the path contains an element with a dot in it
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3535 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3536 case ${GCC_EXEC_PREFIX} in
3537 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3538 gcc_exec_prefix_setting="contains current directory
"
3541 gcc_exec_prefix_setting="ok
"
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3545 $as_echo "$gcc_exec_prefix_setting" >&6; }
3546 if test "$gcc_exec_prefix_setting" != "ok
"; then
3548 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3549 *** building gcc. Please change the environment variable
3550 *** and run configure again." "$LINENO" 5
3557 # Specify the local prefix
3560 # Check whether --with-local-prefix was given.
3561 if test "${with_local_prefix+set}" = set; then :
3562 withval=$with_local_prefix; case "${withval}" in
3563 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3565 *) local_prefix=$with_local_prefix ;;
3570 # Default local prefix if it is empty
3571 if test x$local_prefix = x; then
3572 local_prefix=/usr/local
3576 # Check whether --with-native-system-header-dir was given.
3577 if test "${with_native_system_header_dir+set}" = set; then :
3578 withval=$with_native_system_header_dir;
3579 case ${with_native_system_header_dir} in
3580 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3581 /* | [A-Za-z]:[\\/]*) ;;
3582 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3584 configured_native_system_header_dir="${withval}"
3587 configured_native_system_header_dir=
3592 # Check whether --with-build-sysroot was given.
3593 if test "${with_build_sysroot+set}" = set; then :
3594 withval=$with_build_sysroot; if test x"$withval" != x ; then
3595 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3598 SYSROOT_CFLAGS_FOR_TARGET=
3603 if test "x$prefix" = xNONE; then
3604 test_prefix=/usr/local
3608 if test "x$exec_prefix" = xNONE; then
3609 test_exec_prefix=$test_prefix
3611 test_exec_prefix=$exec_prefix
3615 # Check whether --with-sysroot was given.
3616 if test "${with_sysroot+set}" = set; then :
3617 withval=$with_sysroot;
3618 case ${with_sysroot} in
3620 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3622 case ${with_sysroot} in
3623 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3624 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3627 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3628 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3630 case ${TARGET_SYSTEM_ROOT} in
3631 "${test_prefix}"|"${test_prefix}/"*|\
3632 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3633 '${prefix}'|'${prefix}/'*|\
3634 '${exec_prefix}'|'${exec_prefix}/'*)
3635 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3636 TARGET_SYSTEM_ROOT_DEFINE="$t"
3643 TARGET_SYSTEM_ROOT_DEFINE=
3644 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3652 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3653 # passed in by the toplevel make and thus we'd get different behavior
3654 # depending on where we built the sources.
3655 gcc_gxx_include_dir
=
3656 # Specify the g++ header file directory
3658 # Check whether --with-gxx-include-dir was given.
3659 if test "${with_gxx_include_dir+set}" = set; then :
3660 withval
=$with_gxx_include_dir; case "${withval}" in
3661 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3663 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3668 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3669 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3670 # relative to the sysroot.
3671 gcc_gxx_include_dir_add_sysroot
=0
3673 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3674 if test x
${gcc_gxx_include_dir} = x
; then
3675 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3676 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3678 libstdcxx_incdir
='include/c++/$(version)'
3679 if test x
$host != x
$target; then
3680 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3682 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3684 elif test "${with_sysroot+set}" = set; then
3685 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3686 if test "${gcc_gxx_without_sysroot}"; then
3687 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3688 gcc_gxx_include_dir_add_sysroot
=1
3693 # Check whether --with-cpp_install_dir was given.
3694 if test "${with_cpp_install_dir+set}" = set; then :
3695 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3696 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3697 elif test x
$withval != xno
; then
3698 cpp_install_dir
=$withval
3703 # We would like to our source tree to be readonly. However when releases or
3704 # pre-releases are generated, the flex/bison generated files as well as the
3705 # various formats of manuals need to be included along with the rest of the
3706 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3710 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3711 # Check whether --enable-generated-files-in-srcdir was given.
3712 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3713 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3715 generated_files_in_srcdir
=no
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3720 $as_echo "$generated_files_in_srcdir" >&6; }
3722 if test "$generated_files_in_srcdir" = "yes"; then
3729 # -------------------
3730 # Find default linker
3731 # -------------------
3735 # Check whether --with-gnu-ld was given.
3736 if test "${with_gnu_ld+set}" = set; then :
3737 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3744 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3748 # With pre-defined ld
3750 # Check whether --with-ld was given.
3751 if test "${with_ld+set}" = set; then :
3752 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3755 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3756 if test ! -x "$DEFAULT_LINKER"; then
3757 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3758 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3760 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3764 cat >>confdefs.h
<<_ACEOF
3765 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3771 $as_echo_n "checking whether a default linker was specified... " >&6; }
3772 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3773 if test x
"$gnu_ld_flag" = x
"no"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3775 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3778 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3785 # With demangler in GNU ld
3787 # Check whether --with-demangler-in-ld was given.
3788 if test "${with_demangler_in_ld+set}" = set; then :
3789 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3795 # ----------------------
3796 # Find default assembler
3797 # ----------------------
3801 # Check whether --with-gnu-as was given.
3802 if test "${with_gnu_as+set}" = set; then :
3803 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3810 # Check whether --with-as was given.
3811 if test "${with_as+set}" = set; then :
3812 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3815 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3816 if test ! -x "$DEFAULT_ASSEMBLER"; then
3817 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3818 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3822 cat >>confdefs.h
<<_ACEOF
3823 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3829 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3830 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3831 if test x
"$gas_flag" = x
"no"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3833 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3836 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 $as_echo "no" >&6; }
3847 # If a non-executable a.out is present (e.g. created by GNU as above even if
3848 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3849 # file, even when creating an executable, so an execution test fails.
3850 # Remove possible default executable files to avoid this.
3852 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3853 # Autoconf includes it.
3854 rm -f a.out a.exe b.out
3856 # Find the native compiler
3858 ac_cpp
='$CPP $CPPFLAGS'
3859 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3862 if test -n "$ac_tool_prefix"; then
3863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3864 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if ${ac_cv_prog_CC+:} false
; then :
3868 $as_echo_n "(cached) " >&6
3870 if test -n "$CC"; then
3871 ac_cv_prog_CC
="$CC" # Let the user override the test.
3873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir
=.
3878 for ac_exec_ext
in '' $ac_executable_extensions; do
3879 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 if test -n "$CC"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3893 $as_echo "$CC" >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3901 if test -z "$ac_cv_prog_CC"; then
3903 # Extract the first word of "gcc", so it can be a program name with args.
3904 set dummy gcc
; ac_word
=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3908 $as_echo_n "(cached) " >&6
3910 if test -n "$ac_ct_CC"; then
3911 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir
=.
3918 for ac_exec_ext
in '' $ac_executable_extensions; do
3919 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_ac_ct_CC
="gcc"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3931 if test -n "$ac_ct_CC"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3933 $as_echo "$ac_ct_CC" >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3939 if test "x$ac_ct_CC" = x
; then
3942 case $cross_compiling:$ac_tool_warned in
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3946 ac_tool_warned
=yes ;;
3954 if test -z "$CC"; then
3955 if test -n "$ac_tool_prefix"; then
3956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3957 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 $as_echo_n "checking for $ac_word... " >&6; }
3960 if ${ac_cv_prog_CC+:} false
; then :
3961 $as_echo_n "(cached) " >&6
3963 if test -n "$CC"; then
3964 ac_cv_prog_CC
="$CC" # Let the user override the test.
3966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3970 test -z "$as_dir" && as_dir
=.
3971 for ac_exec_ext
in '' $ac_executable_extensions; do
3972 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 if test -n "$CC"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3986 $as_echo "$CC" >&6; }
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3995 if test -z "$CC"; then
3996 # Extract the first word of "cc", so it can be a program name with args.
3997 set dummy cc
; ac_word
=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_prog_CC+:} false
; then :
4001 $as_echo_n "(cached) " >&6
4003 if test -n "$CC"; then
4004 ac_cv_prog_CC
="$CC" # Let the user override the test.
4007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4011 test -z "$as_dir" && as_dir
=.
4012 for ac_exec_ext
in '' $ac_executable_extensions; do
4013 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4015 ac_prog_rejected
=yes
4019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 if test $ac_prog_rejected = yes; then
4027 # We found a bogon in the path, so make sure we never use it.
4028 set dummy
$ac_cv_prog_CC
4030 if test $# != 0; then
4031 # We chose a different compiler from the bogus one.
4032 # However, it has the same basename, so the bogon will be chosen
4033 # first if we set CC to just the basename; use the full file name.
4035 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4041 if test -n "$CC"; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043 $as_echo "$CC" >&6; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4051 if test -z "$CC"; then
4052 if test -n "$ac_tool_prefix"; then
4053 for ac_prog
in cl.exe
4055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4056 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if ${ac_cv_prog_CC+:} false
; then :
4060 $as_echo_n "(cached) " >&6
4062 if test -n "$CC"; then
4063 ac_cv_prog_CC
="$CC" # Let the user override the test.
4065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir
=.
4070 for ac_exec_ext
in '' $ac_executable_extensions; do
4071 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 if test -n "$CC"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4085 $as_echo "$CC" >&6; }
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4092 test -n "$CC" && break
4095 if test -z "$CC"; then
4097 for ac_prog
in cl.exe
4099 # Extract the first word of "$ac_prog", so it can be a program name with args.
4100 set dummy
$ac_prog; ac_word
=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4104 $as_echo_n "(cached) " >&6
4106 if test -n "$ac_ct_CC"; then
4107 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir
=.
4114 for ac_exec_ext
in '' $ac_executable_extensions; do
4115 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_ac_ct_CC
="$ac_prog"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4127 if test -n "$ac_ct_CC"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4129 $as_echo "$ac_ct_CC" >&6; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4136 test -n "$ac_ct_CC" && break
4139 if test "x$ac_ct_CC" = x
; then
4142 case $cross_compiling:$ac_tool_warned in
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4146 ac_tool_warned
=yes ;;
4155 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4157 as_fn_error $?
"no acceptable C compiler found in \$PATH
4158 See \`config.log' for more details" "$LINENO" 5; }
4160 # Provide some information about the compiler.
4161 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4164 for ac_option
in --version -v -V -qversion; do
4165 { { ac_try
="$ac_compiler $ac_option >&5"
4167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4171 $as_echo "$ac_try_echo"; } >&5
4172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4174 if test -s conftest.err; then
4176 ... rest of stderr output deleted ...
4177 10q' conftest.err >conftest.er1
4178 cat conftest.er1 >&5
4180 rm -f conftest.er1 conftest.err
4181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4182 test $ac_status = 0; }
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4196 ac_clean_files_save=$ac_clean_files
4197 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4198 # Try to create an executable without -o first, disregard a.out.
4199 # It will help us diagnose broken compilers, and finding out an intuition
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4202 $as_echo_n "checking whether the C compiler works... " >&6; }
4203 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4205 # The possible output files:
4206 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4209 for ac_file in $ac_files
4212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4218 if { { ac_try="$ac_link_default"
4220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4221 *) ac_try_echo
=$ac_try;;
4223 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224 $as_echo "$ac_try_echo"; } >&5
4225 (eval "$ac_link_default") 2>&5
4227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228 test $ac_status = 0; }; then :
4229 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4230 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4231 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4232 # so that the user can short-circuit this test for compilers unknown to
4234 for ac_file
in $ac_files ''
4236 test -f "$ac_file" ||
continue
4238 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4241 # We found the default executable, but exeext='' is most
4245 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4247 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4249 # We set ac_cv_exeext here because the later test for it is not
4250 # safe: cross compilers may not add the suffix if given an `-o'
4251 # argument, so we may need to know it at that point already.
4252 # Even if this section looks crufty: it has the advantage of
4259 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4264 if test -z "$ac_file"; then :
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 $as_echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.
$ac_ext >&5
4270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4272 as_fn_error
77 "C compiler cannot create executables
4273 See \`config.log' for more details" "$LINENO" 5; }
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4276 $as_echo "yes" >&6; }
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4279 $as_echo_n "checking for C compiler default output file name... " >&6; }
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4281 $as_echo "$ac_file" >&6; }
4282 ac_exeext
=$ac_cv_exeext
4284 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4285 ac_clean_files
=$ac_clean_files_save
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4287 $as_echo_n "checking for suffix of executables... " >&6; }
4288 if { { ac_try
="$ac_link"
4290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_link") 2>&5
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; }; then :
4299 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4300 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4301 # work properly (i.e., refer to `conftest.exe'), while it won't with
4303 for ac_file
in conftest.exe conftest conftest.
*; do
4304 test -f "$ac_file" ||
continue
4306 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4307 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4316 See \`config.log' for more details" "$LINENO" 5; }
4318 rm -f conftest conftest
$ac_cv_exeext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4320 $as_echo "$ac_cv_exeext" >&6; }
4322 rm -f conftest.
$ac_ext
4323 EXEEXT
=$ac_cv_exeext
4325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4331 FILE *f = fopen ("conftest.out", "w");
4332 return ferror (f) || fclose (f) != 0;
4338 ac_clean_files
="$ac_clean_files conftest.out"
4339 # Check that the compiler produces executables we can run. If not, either
4340 # the compiler is broken, or we cross compile.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4342 $as_echo_n "checking whether we are cross compiling... " >&6; }
4343 if test "$cross_compiling" != yes; then
4344 { { ac_try
="$ac_link"
4346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_link") 2>&5
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }
4355 if { ac_try='./conftest$ac_cv_exeext'
4356 { { case "(($ac_try" in
4357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4358 *) ac_try_echo
=$ac_try;;
4360 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 $as_echo "$ac_try_echo"; } >&5
4362 (eval "$ac_try") 2>&5
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }; }; then
4368 if test "$cross_compiling" = maybe
; then
4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373 as_fn_error $?
"cannot run C compiled programs.
4374 If you meant to cross compile, use \`--host'.
4375 See \`config.log' for more details" "$LINENO" 5; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4380 $as_echo "$cross_compiling" >&6; }
4382 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4383 ac_clean_files
=$ac_clean_files_save
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4385 $as_echo_n "checking for suffix of object files... " >&6; }
4386 if ${ac_cv_objext+:} false
; then :
4387 $as_echo_n "(cached) " >&6
4389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4400 rm -f conftest.o conftest.obj
4401 if { { ac_try
="$ac_compile"
4403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_compile") 2>&5
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; then :
4412 for ac_file in conftest.o conftest.obj conftest.*; do
4413 test -f "$ac_file" || continue;
4415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4416 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4427 See \
`config.log' for more details" "$LINENO" 5; }
4429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4432 $as_echo "$ac_cv_objext" >&6; }
4433 OBJEXT=$ac_cv_objext
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4436 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4437 if ${ac_cv_c_compiler_gnu+:} false; then :
4438 $as_echo_n "(cached) " >&6
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4454 if ac_fn_c_try_compile "$LINENO"; then :
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4464 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4465 if test $ac_compiler_gnu = yes; then
4470 ac_test_CFLAGS=${CFLAGS+set}
4471 ac_save_CFLAGS=$CFLAGS
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4473 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4474 if ${ac_cv_prog_cc_g+:} false; then :
4475 $as_echo_n "(cached) " >&6
4477 ac_save_c_werror_flag=$ac_c_werror_flag
4478 ac_c_werror_flag=yes
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4492 if ac_fn_c_try_compile "$LINENO"; then :
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4507 if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_c_werror_flag=$ac_save_c_werror_flag
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4523 if ac_fn_c_try_compile "$LINENO"; then :
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 ac_c_werror_flag=$ac_save_c_werror_flag
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4534 $as_echo "$ac_cv_prog_cc_g" >&6; }
4535 if test "$ac_test_CFLAGS" = set; then
4536 CFLAGS=$ac_save_CFLAGS
4537 elif test $ac_cv_prog_cc_g = yes; then
4538 if test "$GCC" = yes; then
4544 if test "$GCC" = yes; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4551 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4552 if ${ac_cv_prog_cc_c89+:} false; then :
4553 $as_echo_n "(cached) " >&6
4555 ac_cv_prog_cc_c89=no
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4562 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4563 struct buf { int x; };
4564 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4565 static char *e (p, i)
4571 static char *f (char * (*g) (char **, int), char **p, ...)
4576 s = g (p, va_arg (v,int));
4581 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4582 function prototypes and stuff, but not '\xHH' hex character constants.
4583 These don't provoke an error unfortunately, instead are silently treated
4584 as 'x'. The following induces an error, until -std is added to get
4585 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4586 array size at least. It's necessary to write '\x00'==0 to get something
4587 that's true only with -std. */
4588 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4590 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4591 inside strings and character constants. */
4593 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4595 int test (int i, double x);
4596 struct s1 {int (*f) (int a);};
4597 struct s2 {int (*f) (double a);};
4598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4604 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4609 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4610 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4612 CC="$ac_save_CC $ac_arg"
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_cv_prog_cc_c89=$ac_arg
4616 rm -f core conftest.err conftest.$ac_objext
4617 test "x$ac_cv_prog_cc_c89" != "xno" && break
4619 rm -f conftest.$ac_ext
4624 case "x$ac_cv_prog_cc_c89" in
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4627 $as_echo "none needed" >&6; } ;;
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4630 $as_echo "unsupported" >&6; } ;;
4632 CC="$CC $ac_cv_prog_cc_c89"
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4634 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4636 if test "x$ac_cv_prog_cc_c89" != xno; then :
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647 ac_cpp='$CXXCPP $CPPFLAGS'
4648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4651 if test -z "$CXX"; then
4652 if test -n "$CCC"; then
4655 if test -n "$ac_tool_prefix"; then
4656 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if ${ac_cv_prog_CXX+:} false; then :
4663 $as_echo_n "(cached) " >&6
4665 if test -n "$CXX"; then
4666 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4675 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 if test -n "$CXX"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4688 $as_echo "$CXX" >&6; }
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4695 test -n "$CXX" && break
4698 if test -z "$CXX"; then
4700 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4702 # Extract the first word of "$ac_prog", so it can be a program name with args.
4703 set dummy $ac_prog; ac_word=$2
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4707 $as_echo_n "(cached) " >&6
4709 if test -n "$ac_ct_CXX"; then
4710 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719 ac_cv_prog_ac_ct_CXX="$ac_prog"
4720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4730 if test -n "$ac_ct_CXX"; then
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4732 $as_echo "$ac_ct_CXX" >&6; }
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4739 test -n "$ac_ct_CXX" && break
4742 if test "x$ac_ct_CXX" = x; then
4745 case $cross_compiling:$ac_tool_warned in
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4749 ac_tool_warned=yes ;;
4757 # Provide some information about the compiler.
4758 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4761 for ac_option in --version -v -V -qversion; do
4762 { { ac_try="$ac_compiler $ac_option >&5"
4764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4765 *) ac_try_echo
=$ac_try;;
4767 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4768 $as_echo "$ac_try_echo"; } >&5
4769 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4771 if test -s conftest.err
; then
4773 ... rest of stderr output deleted ...
4774 10q' conftest.err
>conftest.er1
4775 cat conftest.er1
>&5
4777 rm -f conftest.er1 conftest.err
4778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4779 test $ac_status = 0; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4783 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4784 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4785 $as_echo_n "(cached) " >&6
4787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4801 if ac_fn_cxx_try_compile
"$LINENO"; then :
4806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4807 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4811 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4812 if test $ac_compiler_gnu = yes; then
4817 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4818 ac_save_CXXFLAGS
=$CXXFLAGS
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4820 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4821 if ${ac_cv_prog_cxx_g+:} false
; then :
4822 $as_echo_n "(cached) " >&6
4824 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4825 ac_cxx_werror_flag
=yes
4828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4839 if ac_fn_cxx_try_compile
"$LINENO"; then :
4840 ac_cv_prog_cxx_g
=yes
4843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4854 if ac_fn_cxx_try_compile
"$LINENO"; then :
4857 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4870 if ac_fn_cxx_try_compile
"$LINENO"; then :
4871 ac_cv_prog_cxx_g
=yes
4873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4878 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4881 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4882 if test "$ac_test_CXXFLAGS" = set; then
4883 CXXFLAGS
=$ac_save_CXXFLAGS
4884 elif test $ac_cv_prog_cxx_g = yes; then
4885 if test "$GXX" = yes; then
4891 if test "$GXX" = yes; then
4898 ac_cpp
='$CPP $CPPFLAGS'
4899 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4906 if test -n "$ac_tool_prefix"; then
4907 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4908 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_GNATBIND+:} false
; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -n "$GNATBIND"; then
4915 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir
=.
4922 for ac_exec_ext
in '' $ac_executable_extensions; do
4923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 GNATBIND
=$ac_cv_prog_GNATBIND
4935 if test -n "$GNATBIND"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4937 $as_echo "$GNATBIND" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4945 if test -z "$ac_cv_prog_GNATBIND"; then
4946 ac_ct_GNATBIND
=$GNATBIND
4947 # Extract the first word of "gnatbind", so it can be a program name with args.
4948 set dummy gnatbind
; ac_word
=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
4952 $as_echo_n "(cached) " >&6
4954 if test -n "$ac_ct_GNATBIND"; then
4955 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir
=.
4962 for ac_exec_ext
in '' $ac_executable_extensions; do
4963 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4975 if test -n "$ac_ct_GNATBIND"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4977 $as_echo "$ac_ct_GNATBIND" >&6; }
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4983 if test "x$ac_ct_GNATBIND" = x
; then
4986 case $cross_compiling:$ac_tool_warned in
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990 ac_tool_warned
=yes ;;
4992 GNATBIND
=$ac_ct_GNATBIND
4995 GNATBIND
="$ac_cv_prog_GNATBIND"
4998 if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5000 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5004 $as_echo_n "(cached) " >&6
5006 if test -n "$GNATMAKE"; then
5007 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5013 test -z "$as_dir" && as_dir
=.
5014 for ac_exec_ext
in '' $ac_executable_extensions; do
5015 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 GNATMAKE
=$ac_cv_prog_GNATMAKE
5027 if test -n "$GNATMAKE"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5029 $as_echo "$GNATMAKE" >&6; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5037 if test -z "$ac_cv_prog_GNATMAKE"; then
5038 ac_ct_GNATMAKE
=$GNATMAKE
5039 # Extract the first word of "gnatmake", so it can be a program name with args.
5040 set dummy gnatmake
; ac_word
=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5044 $as_echo_n "(cached) " >&6
5046 if test -n "$ac_ct_GNATMAKE"; then
5047 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5053 test -z "$as_dir" && as_dir
=.
5054 for ac_exec_ext
in '' $ac_executable_extensions; do
5055 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5067 if test -n "$ac_ct_GNATMAKE"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5069 $as_echo "$ac_ct_GNATMAKE" >&6; }
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5075 if test "x$ac_ct_GNATMAKE" = x
; then
5078 case $cross_compiling:$ac_tool_warned in
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082 ac_tool_warned
=yes ;;
5084 GNATMAKE
=$ac_ct_GNATMAKE
5087 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5091 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5092 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5093 $as_echo_n "(cached) " >&6
5095 cat >conftest.adb
<<EOF
5096 procedure conftest is begin null; end conftest;
5098 acx_cv_cc_gcc_supports_ada
=no
5099 # There is a bug in old released versions of GCC which causes the
5100 # driver to exit successfully when the appropriate language module
5101 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5102 # Therefore we must check for the error message as well as an
5103 # unsuccessful exit.
5104 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5105 # given a .adb file, but produce no object file. So we must check
5106 # if an object file was really produced to guard against this.
5107 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5108 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5109 acx_cv_cc_gcc_supports_ada
=yes
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5114 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5116 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5123 # Do configure tests with the C++ compiler, since that's what we build with.
5125 ac_cpp
='$CXXCPP $CPPFLAGS'
5126 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5131 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5132 # optimizations to be activated explicitly by the toplevel.
5134 */prev-gcc
/xgcc
*) ;;
5135 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5136 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5141 # Determine PICFLAG for target gnatlib.
5147 # PIC is the default on some targets or must not be used.
5149 # For darwin, common symbols are not allowed in MH_DYLIB files
5151 # If we are using a compiler supporting mdynamic-no-pic
5152 # and the option has been tested as safe to add, then cancel
5153 # it here, since the code generated is incompatible with shared
5155 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5156 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5160 # PIC is the default.
5163 # PIC is the default for 64-bit PA HP-UX.
5165 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5167 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5169 i
[34567]86-*-interix[3-9]*)
5170 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5171 # Instead, we relocate shared libraries at runtime.
5173 i
[34567]86-*-nto-qnx*)
5174 # QNX uses GNU C++, but need to define -shared option too, otherwise
5176 PICFLAG_FOR_TARGET
='-fPIC -shared'
5178 i
[34567]86-pc-msdosdjgpp*)
5179 # DJGPP does not support shared libraries at all.
5182 # On IA64 HP-UX, PIC is the default but the pic flag
5183 # sets the default TLS model and affects inlining.
5184 PICFLAG_FOR_TARGET
=-fPIC
5187 # PIC is the default.
5189 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5190 # All AIX code is PIC.
5193 # Some targets support both -fPIC and -fpic, but prefer the latter.
5195 i
[34567]86-*-* | x86_64-
*-*)
5196 PICFLAG_FOR_TARGET
=-fpic
5198 # FIXME: Override -fPIC default in libgcc only?
5199 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5200 PICFLAG_FOR_TARGET
=-fpic
5202 # FIXME: Simplify to sh*-*-netbsd*?
5203 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5204 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5205 PICFLAG_FOR_TARGET
=-fpic
5207 # Default to -fPIC unless specified otherwise.
5209 PICFLAG_FOR_TARGET
=-fPIC
5213 # If the user explicitly uses -fpic/-fPIC, keep that.
5214 case "${CFLAGS_FOR_TARGET}" in
5216 PICFLAG_FOR_TARGET
=-fpic
5219 PICFLAG_FOR_TARGET
=-fPIC
5225 # -------------------------
5226 # Check C compiler features
5227 # -------------------------
5231 ac_cpp
='$CXXCPP $CPPFLAGS'
5232 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5236 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5237 if test -z "$CXXCPP"; then
5238 if ${ac_cv_prog_CXXCPP+:} false
; then :
5239 $as_echo_n "(cached) " >&6
5241 # Double quotes because CXXCPP needs to be expanded
5242 for CXXCPP
in "$CXX -E" "/lib/cpp"
5245 for ac_cxx_preproc_warn_flag
in '' yes
5247 # Use a header file that comes with gcc, so configuring glibc
5248 # with a fresh cross-compiler works.
5249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5250 # <limits.h> exists even on freestanding compilers.
5251 # On the NeXT, cc -E runs the code through the compiler's parser,
5252 # not just through cpp. "Syntax error" is here to catch this case.
5253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5256 # include <limits.h>
5258 # include <assert.h>
5262 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5265 # Broken: fails on valid input.
5268 rm -f conftest.err conftest.i conftest.
$ac_ext
5270 # OK, works on sane cases. Now check whether nonexistent headers
5271 # can be detected and how.
5272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <ac_nonexistent.h>
5276 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5277 # Broken: success on invalid input.
5280 # Passes both tests.
5284 rm -f conftest.err conftest.i conftest.
$ac_ext
5287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5288 rm -f conftest.i conftest.err conftest.
$ac_ext
5289 if $ac_preproc_ok; then :
5294 ac_cv_prog_CXXCPP
=$CXXCPP
5297 CXXCPP
=$ac_cv_prog_CXXCPP
5299 ac_cv_prog_CXXCPP
=$CXXCPP
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5302 $as_echo "$CXXCPP" >&6; }
5304 for ac_cxx_preproc_warn_flag
in '' yes
5306 # Use a header file that comes with gcc, so configuring glibc
5307 # with a fresh cross-compiler works.
5308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5309 # <limits.h> exists even on freestanding compilers.
5310 # On the NeXT, cc -E runs the code through the compiler's parser,
5311 # not just through cpp. "Syntax error" is here to catch this case.
5312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5315 # include <limits.h>
5317 # include <assert.h>
5321 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5324 # Broken: fails on valid input.
5327 rm -f conftest.err conftest.i conftest.
$ac_ext
5329 # OK, works on sane cases. Now check whether nonexistent headers
5330 # can be detected and how.
5331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #include <ac_nonexistent.h>
5335 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5336 # Broken: success on invalid input.
5339 # Passes both tests.
5343 rm -f conftest.err conftest.i conftest.
$ac_ext
5346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5347 rm -f conftest.i conftest.err conftest.
$ac_ext
5348 if $ac_preproc_ok; then :
5351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5353 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5354 See \`config.log' for more details" "$LINENO" 5; }
5358 ac_cpp
='$CXXCPP $CPPFLAGS'
5359 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5365 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5366 if ${ac_cv_path_GREP+:} false
; then :
5367 $as_echo_n "(cached) " >&6
5369 if test -z "$GREP"; then
5370 ac_path_GREP_found
=false
5371 # Loop through the user's path and test for each of PROGNAME-LIST
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5373 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_prog
in grep ggrep
; do
5378 for ac_exec_ext
in '' $ac_executable_extensions; do
5379 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5380 as_fn_executable_p
"$ac_path_GREP" ||
continue
5381 # Check for GNU ac_path_GREP and select it if it is found.
5382 # Check for GNU $ac_path_GREP
5383 case `"$ac_path_GREP" --version 2>&1` in
5385 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5388 $as_echo_n 0123456789 >"conftest.in"
5391 cat "conftest.in" "conftest.in" >"conftest.tmp"
5392 mv "conftest.tmp" "conftest.in"
5393 cp "conftest.in" "conftest.nl"
5394 $as_echo 'GREP' >> "conftest.nl"
5395 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5396 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5397 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5398 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5399 # Best one so far, save it but keep looking for a better one
5400 ac_cv_path_GREP
="$ac_path_GREP"
5401 ac_path_GREP_max
=$ac_count
5403 # 10*(2^10) chars as input seems more than enough
5404 test $ac_count -gt 10 && break
5406 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5409 $ac_path_GREP_found && break 3
5414 if test -z "$ac_cv_path_GREP"; then
5415 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5418 ac_cv_path_GREP
=$GREP
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5423 $as_echo "$ac_cv_path_GREP" >&6; }
5424 GREP
="$ac_cv_path_GREP"
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5428 $as_echo_n "checking for egrep... " >&6; }
5429 if ${ac_cv_path_EGREP+:} false
; then :
5430 $as_echo_n "(cached) " >&6
5432 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5433 then ac_cv_path_EGREP
="$GREP -E"
5435 if test -z "$EGREP"; then
5436 ac_path_EGREP_found
=false
5437 # Loop through the user's path and test for each of PROGNAME-LIST
5438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5439 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5442 test -z "$as_dir" && as_dir
=.
5443 for ac_prog
in egrep; do
5444 for ac_exec_ext
in '' $ac_executable_extensions; do
5445 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5446 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5447 # Check for GNU ac_path_EGREP and select it if it is found.
5448 # Check for GNU $ac_path_EGREP
5449 case `"$ac_path_EGREP" --version 2>&1` in
5451 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5454 $as_echo_n 0123456789 >"conftest.in"
5457 cat "conftest.in" "conftest.in" >"conftest.tmp"
5458 mv "conftest.tmp" "conftest.in"
5459 cp "conftest.in" "conftest.nl"
5460 $as_echo 'EGREP' >> "conftest.nl"
5461 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5462 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5463 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5464 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5465 # Best one so far, save it but keep looking for a better one
5466 ac_cv_path_EGREP
="$ac_path_EGREP"
5467 ac_path_EGREP_max
=$ac_count
5469 # 10*(2^10) chars as input seems more than enough
5470 test $ac_count -gt 10 && break
5472 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5475 $ac_path_EGREP_found && break 3
5480 if test -z "$ac_cv_path_EGREP"; then
5481 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5484 ac_cv_path_EGREP
=$EGREP
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5490 $as_echo "$ac_cv_path_EGREP" >&6; }
5491 EGREP
="$ac_cv_path_EGREP"
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5495 $as_echo_n "checking for ANSI C header files... " >&6; }
5496 if ${ac_cv_header_stdc+:} false
; then :
5497 $as_echo_n "(cached) " >&6
5499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5514 if ac_fn_cxx_try_compile
"$LINENO"; then :
5515 ac_cv_header_stdc
=yes
5517 ac_cv_header_stdc
=no
5519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5521 if test $ac_cv_header_stdc = yes; then
5522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5529 $EGREP "memchr" >/dev
/null
2>&1; then :
5532 ac_cv_header_stdc
=no
5538 if test $ac_cv_header_stdc = yes; then
5539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5546 $EGREP "free" >/dev
/null
2>&1; then :
5549 ac_cv_header_stdc
=no
5555 if test $ac_cv_header_stdc = yes; then
5556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5557 if test "$cross_compiling" = yes; then :
5560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5564 #if ((' ' & 0x0FF) == 0x020)
5565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5568 # define ISLOWER(c) \
5569 (('a' <= (c) && (c) <= 'i') \
5570 || ('j' <= (c) && (c) <= 'r') \
5571 || ('s' <= (c) && (c) <= 'z'))
5572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5580 for (i = 0; i < 256; i++)
5581 if (XOR (islower (i), ISLOWER (i))
5582 || toupper (i) != TOUPPER (i))
5587 if ac_fn_cxx_try_run
"$LINENO"; then :
5590 ac_cv_header_stdc
=no
5592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5599 $as_echo "$ac_cv_header_stdc" >&6; }
5600 if test $ac_cv_header_stdc = yes; then
5602 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5606 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5607 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5608 inttypes.h stdint.h unistd.h
5610 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5611 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5613 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5614 cat >>confdefs.h
<<_ACEOF
5615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5624 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5625 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5632 if test "$MINIX" = yes; then
5634 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5637 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5640 $as_echo "#define _MINIX 1" >>confdefs.h
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5646 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5647 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5648 $as_echo_n "(cached) " >&6
5650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5653 # define __EXTENSIONS__ 1
5654 $ac_includes_default
5663 if ac_fn_cxx_try_compile
"$LINENO"; then :
5664 ac_cv_safe_to_define___extensions__
=yes
5666 ac_cv_safe_to_define___extensions__
=no
5668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5671 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5672 test $ac_cv_safe_to_define___extensions__ = yes &&
5673 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5675 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5677 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5679 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5681 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5685 ac_cpp
='$CPP $CPPFLAGS'
5686 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5690 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5691 # On Suns, sometimes $CPP names a directory.
5692 if test -n "$CPP" && test -d "$CPP"; then
5695 if test -z "$CPP"; then
5696 if ${ac_cv_prog_CPP+:} false
; then :
5697 $as_echo_n "(cached) " >&6
5699 # Double quotes because CPP needs to be expanded
5700 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5703 for ac_c_preproc_warn_flag
in '' yes
5705 # Use a header file that comes with gcc, so configuring glibc
5706 # with a fresh cross-compiler works.
5707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5708 # <limits.h> exists even on freestanding compilers.
5709 # On the NeXT, cc -E runs the code through the compiler's parser,
5710 # not just through cpp. "Syntax error" is here to catch this case.
5711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5714 # include <limits.h>
5716 # include <assert.h>
5720 if ac_fn_c_try_cpp
"$LINENO"; then :
5723 # Broken: fails on valid input.
5726 rm -f conftest.err conftest.i conftest.
$ac_ext
5728 # OK, works on sane cases. Now check whether nonexistent headers
5729 # can be detected and how.
5730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 #include <ac_nonexistent.h>
5734 if ac_fn_c_try_cpp
"$LINENO"; then :
5735 # Broken: success on invalid input.
5738 # Passes both tests.
5742 rm -f conftest.err conftest.i conftest.
$ac_ext
5745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5746 rm -f conftest.i conftest.err conftest.
$ac_ext
5747 if $ac_preproc_ok; then :
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5760 $as_echo "$CPP" >&6; }
5762 for ac_c_preproc_warn_flag
in '' yes
5764 # Use a header file that comes with gcc, so configuring glibc
5765 # with a fresh cross-compiler works.
5766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5767 # <limits.h> exists even on freestanding compilers.
5768 # On the NeXT, cc -E runs the code through the compiler's parser,
5769 # not just through cpp. "Syntax error" is here to catch this case.
5770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5773 # include <limits.h>
5775 # include <assert.h>
5779 if ac_fn_c_try_cpp
"$LINENO"; then :
5782 # Broken: fails on valid input.
5785 rm -f conftest.err conftest.i conftest.
$ac_ext
5787 # OK, works on sane cases. Now check whether nonexistent headers
5788 # can be detected and how.
5789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <ac_nonexistent.h>
5793 if ac_fn_c_try_cpp
"$LINENO"; then :
5794 # Broken: success on invalid input.
5797 # Passes both tests.
5801 rm -f conftest.err conftest.i conftest.
$ac_ext
5804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5805 rm -f conftest.i conftest.err conftest.
$ac_ext
5806 if $ac_preproc_ok; then :
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5812 See \`config.log' for more details" "$LINENO" 5; }
5816 ac_cpp
='$CXXCPP $CPPFLAGS'
5817 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5822 $as_echo_n "checking for inline... " >&6; }
5823 if ${ac_cv_c_inline+:} false
; then :
5824 $as_echo_n "(cached) " >&6
5827 for ac_kw
in inline __inline__ __inline
; do
5828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5832 static $ac_kw foo_t static_foo () {return 0; }
5833 $ac_kw foo_t foo () {return 0; }
5837 if ac_fn_cxx_try_compile
"$LINENO"; then :
5838 ac_cv_c_inline
=$ac_kw
5840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5841 test "$ac_cv_c_inline" != no
&& break
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5846 $as_echo "$ac_cv_c_inline" >&6; }
5848 case $ac_cv_c_inline in
5851 case $ac_cv_c_inline in
5853 *) ac_val
=$ac_cv_c_inline;;
5855 cat >>confdefs.h
<<_ACEOF
5857 #define inline $ac_val
5864 # Check whether --enable-largefile was given.
5865 if test "${enable_largefile+set}" = set; then :
5866 enableval
=$enable_largefile;
5869 if test "$enable_largefile" != no
; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5872 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5873 if ${ac_cv_sys_largefile_CC+:} false
; then :
5874 $as_echo_n "(cached) " >&6
5876 ac_cv_sys_largefile_CC
=no
5877 if test "$GCC" != yes; then
5880 # IRIX 6.2 and later do not support large files by default,
5881 # so use the C compiler's -n32 option if that helps.
5882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5901 if ac_fn_cxx_try_compile
"$LINENO"; then :
5904 rm -f core conftest.err conftest.
$ac_objext
5906 if ac_fn_cxx_try_compile
"$LINENO"; then :
5907 ac_cv_sys_largefile_CC
=' -n32'; break
5909 rm -f core conftest.err conftest.
$ac_objext
5913 rm -f conftest.
$ac_ext
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5917 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5918 if test "$ac_cv_sys_largefile_CC" != no
; then
5919 CC
=$CC$ac_cv_sys_largefile_CC
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5923 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5924 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5925 $as_echo_n "(cached) " >&6
5928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5930 #include <sys/types.h>
5931 /* Check that off_t can represent 2**63 - 1 correctly.
5932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5933 since some C++ compilers masquerading as C compilers
5934 incorrectly reject 9223372036854775807. */
5935 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5937 && LARGE_OFF_T % 2147483647 == 1)
5947 if ac_fn_cxx_try_compile
"$LINENO"; then :
5948 ac_cv_sys_file_offset_bits
=no
; break
5950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #define _FILE_OFFSET_BITS 64
5954 #include <sys/types.h>
5955 /* Check that off_t can represent 2**63 - 1 correctly.
5956 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5957 since some C++ compilers masquerading as C compilers
5958 incorrectly reject 9223372036854775807. */
5959 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5960 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5961 && LARGE_OFF_T % 2147483647 == 1)
5971 if ac_fn_cxx_try_compile
"$LINENO"; then :
5972 ac_cv_sys_file_offset_bits
=64; break
5974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5975 ac_cv_sys_file_offset_bits
=unknown
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5980 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5981 case $ac_cv_sys_file_offset_bits in #(
5984 cat >>confdefs.h
<<_ACEOF
5985 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5990 if test $ac_cv_sys_file_offset_bits = unknown
; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5992 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5993 if ${ac_cv_sys_large_files+:} false
; then :
5994 $as_echo_n "(cached) " >&6
5997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6000 /* Check that off_t can represent 2**63 - 1 correctly.
6001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6002 since some C++ compilers masquerading as C compilers
6003 incorrectly reject 9223372036854775807. */
6004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6006 && LARGE_OFF_T % 2147483647 == 1)
6016 if ac_fn_cxx_try_compile
"$LINENO"; then :
6017 ac_cv_sys_large_files
=no
; break
6019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 #define _LARGE_FILES 1
6023 #include <sys/types.h>
6024 /* Check that off_t can represent 2**63 - 1 correctly.
6025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6026 since some C++ compilers masquerading as C compilers
6027 incorrectly reject 9223372036854775807. */
6028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6030 && LARGE_OFF_T % 2147483647 == 1)
6040 if ac_fn_cxx_try_compile
"$LINENO"; then :
6041 ac_cv_sys_large_files
=1; break
6043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6044 ac_cv_sys_large_files
=unknown
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6049 $as_echo "$ac_cv_sys_large_files" >&6; }
6050 case $ac_cv_sys_large_files in #(
6053 cat >>confdefs.h
<<_ACEOF
6054 #define _LARGE_FILES $ac_cv_sys_large_files
6065 # sizeof(char) is 1 by definition.
6066 # The cast to long int works around a bug in the HP C Compiler
6067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6069 # This bug is HP SR number 8606223364.
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6071 $as_echo_n "checking size of void *... " >&6; }
6072 if ${ac_cv_sizeof_void_p+:} false
; then :
6073 $as_echo_n "(cached) " >&6
6075 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6078 if test "$ac_cv_type_void_p" = yes; then
6079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6081 as_fn_error
77 "cannot compute sizeof (void *)
6082 See \`config.log' for more details" "$LINENO" 5; }
6084 ac_cv_sizeof_void_p
=0
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6090 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6094 cat >>confdefs.h
<<_ACEOF
6095 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6099 # The cast to long int works around a bug in the HP C Compiler
6100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6102 # This bug is HP SR number 8606223364.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6104 $as_echo_n "checking size of short... " >&6; }
6105 if ${ac_cv_sizeof_short+:} false
; then :
6106 $as_echo_n "(cached) " >&6
6108 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6111 if test "$ac_cv_type_short" = yes; then
6112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6114 as_fn_error
77 "cannot compute sizeof (short)
6115 See \`config.log' for more details" "$LINENO" 5; }
6117 ac_cv_sizeof_short
=0
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6123 $as_echo "$ac_cv_sizeof_short" >&6; }
6127 cat >>confdefs.h
<<_ACEOF
6128 #define SIZEOF_SHORT $ac_cv_sizeof_short
6132 # The cast to long int works around a bug in the HP C Compiler
6133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6135 # This bug is HP SR number 8606223364.
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6137 $as_echo_n "checking size of int... " >&6; }
6138 if ${ac_cv_sizeof_int+:} false
; then :
6139 $as_echo_n "(cached) " >&6
6141 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6144 if test "$ac_cv_type_int" = yes; then
6145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6147 as_fn_error
77 "cannot compute sizeof (int)
6148 See \`config.log' for more details" "$LINENO" 5; }
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6156 $as_echo "$ac_cv_sizeof_int" >&6; }
6160 cat >>confdefs.h
<<_ACEOF
6161 #define SIZEOF_INT $ac_cv_sizeof_int
6165 # The cast to long int works around a bug in the HP C Compiler
6166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6168 # This bug is HP SR number 8606223364.
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6170 $as_echo_n "checking size of long... " >&6; }
6171 if ${ac_cv_sizeof_long+:} false
; then :
6172 $as_echo_n "(cached) " >&6
6174 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6177 if test "$ac_cv_type_long" = yes; then
6178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6180 as_fn_error
77 "cannot compute sizeof (long)
6181 See \`config.log' for more details" "$LINENO" 5; }
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6189 $as_echo "$ac_cv_sizeof_long" >&6; }
6193 cat >>confdefs.h
<<_ACEOF
6194 #define SIZEOF_LONG $ac_cv_sizeof_long
6198 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6199 if test "x$ac_cv_type_long_long" = xyes
; then :
6201 cat >>confdefs.h
<<_ACEOF
6202 #define HAVE_LONG_LONG 1
6205 # The cast to long int works around a bug in the HP C Compiler
6206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6208 # This bug is HP SR number 8606223364.
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6210 $as_echo_n "checking size of long long... " >&6; }
6211 if ${ac_cv_sizeof_long_long+:} false
; then :
6212 $as_echo_n "(cached) " >&6
6214 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6217 if test "$ac_cv_type_long_long" = yes; then
6218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6220 as_fn_error
77 "cannot compute sizeof (long long)
6221 See \`config.log' for more details" "$LINENO" 5; }
6223 ac_cv_sizeof_long_long
=0
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6229 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6233 cat >>confdefs.h
<<_ACEOF
6234 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6240 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6241 case $ac_cv_c_int8_t in #(
6245 cat >>confdefs.h
<<_ACEOF
6246 #define int8_t $ac_cv_c_int8_t
6251 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6252 case $ac_cv_c_int16_t in #(
6256 cat >>confdefs.h
<<_ACEOF
6257 #define int16_t $ac_cv_c_int16_t
6262 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6263 case $ac_cv_c_int32_t in #(
6267 cat >>confdefs.h
<<_ACEOF
6268 #define int32_t $ac_cv_c_int32_t
6273 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6274 case $ac_cv_c_int64_t in #(
6278 cat >>confdefs.h
<<_ACEOF
6279 #define int64_t $ac_cv_c_int64_t
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6286 $as_echo_n "checking for unsigned long long int... " >&6; }
6287 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6288 $as_echo_n "(cached) " >&6
6290 ac_cv_type_unsigned_long_long_int
=yes
6291 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6295 /* For now, do not test the preprocessor; as of 2007 there are too many
6296 implementations with broken preprocessors. Perhaps this can
6297 be revisited in 2012. In the meantime, code should not expect
6298 #if to work with literals wider than 32 bits. */
6299 /* Test literals. */
6300 long long int ll = 9223372036854775807ll;
6301 long long int nll = -9223372036854775807LL;
6302 unsigned long long int ull = 18446744073709551615ULL;
6303 /* Test constant expressions. */
6304 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6306 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6312 /* Test availability of runtime routines for shift and division. */
6313 long long int llmax = 9223372036854775807ll;
6314 unsigned long long int ullmax = 18446744073709551615ull;
6315 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6316 | (llmax / ll) | (llmax % ll)
6317 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6318 | (ullmax / ull) | (ullmax % ull));
6324 if ac_fn_cxx_try_link
"$LINENO"; then :
6327 ac_cv_type_unsigned_long_long_int
=no
6329 rm -f core conftest.err conftest.
$ac_objext \
6330 conftest
$ac_exeext conftest.
$ac_ext
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6334 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6335 if test $ac_cv_type_unsigned_long_long_int = yes; then
6337 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6344 $as_echo_n "checking for long long int... " >&6; }
6345 if ${ac_cv_type_long_long_int+:} false
; then :
6346 $as_echo_n "(cached) " >&6
6348 ac_cv_type_long_long_int
=yes
6349 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6350 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6351 if test $ac_cv_type_long_long_int = yes; then
6352 if test "$cross_compiling" = yes; then :
6355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6360 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6361 # define LLONG_MAX (HALF - 1 + HALF)
6366 long long int n = 1;
6370 long long int m = n << i;
6373 if (LLONG_MAX / 2 < m)
6381 if ac_fn_cxx_try_run
"$LINENO"; then :
6384 ac_cv_type_long_long_int
=no
6386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6394 $as_echo "$ac_cv_type_long_long_int" >&6; }
6395 if test $ac_cv_type_long_long_int = yes; then
6397 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6403 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6404 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6406 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6409 test $ac_cv_type_long_long_int = yes \
6410 && ac_type
='long long int' \
6411 || ac_type
='long int'
6413 cat >>confdefs.h
<<_ACEOF
6414 #define intmax_t $ac_type
6421 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6422 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6424 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6427 for ac_type
in 'int' 'long int' 'long long int'; do
6428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 $ac_includes_default
6434 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6436 return test_array [0];
6442 if ac_fn_cxx_try_compile
"$LINENO"; then :
6444 cat >>confdefs.h
<<_ACEOF
6445 #define intptr_t $ac_type
6450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6451 test -z "$ac_type" && break
6456 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6457 case $ac_cv_c_uint8_t in #(
6461 $as_echo "#define _UINT8_T 1" >>confdefs.h
6464 cat >>confdefs.h
<<_ACEOF
6465 #define uint8_t $ac_cv_c_uint8_t
6470 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6471 case $ac_cv_c_uint16_t in #(
6476 cat >>confdefs.h
<<_ACEOF
6477 #define uint16_t $ac_cv_c_uint16_t
6482 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6483 case $ac_cv_c_uint32_t in #(
6487 $as_echo "#define _UINT32_T 1" >>confdefs.h
6490 cat >>confdefs.h
<<_ACEOF
6491 #define uint32_t $ac_cv_c_uint32_t
6496 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6497 case $ac_cv_c_uint64_t in #(
6501 $as_echo "#define _UINT64_T 1" >>confdefs.h
6504 cat >>confdefs.h
<<_ACEOF
6505 #define uint64_t $ac_cv_c_uint64_t
6512 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6513 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6515 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6518 test $ac_cv_type_unsigned_long_long_int = yes \
6519 && ac_type
='unsigned long long int' \
6520 || ac_type
='unsigned long int'
6522 cat >>confdefs.h
<<_ACEOF
6523 #define uintmax_t $ac_type
6530 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6531 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6533 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6536 for ac_type
in 'unsigned int' 'unsigned long int' \
6537 'unsigned long long int'; do
6538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 $ac_includes_default
6544 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6546 return test_array [0];
6552 if ac_fn_cxx_try_compile
"$LINENO"; then :
6554 cat >>confdefs.h
<<_ACEOF
6555 #define uintptr_t $ac_type
6560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6561 test -z "$ac_type" && break
6578 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6579 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6582 # check what underlying integer type int64_t uses
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6584 $as_echo_n "checking for int64_t underlying type... " >&6; }
6585 if ${ac_cv_int64_t_type+:} false
; then :
6586 $as_echo_n "(cached) " >&6
6589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6592 #ifdef HAVE_STDINT_H
6595 template <typename T> struct X { };
6597 struct X<long> { typedef long t; };
6607 if ac_fn_cxx_try_compile
"$LINENO"; then :
6608 ac_cv_int64_t_type
=long
6610 ac_cv_int64_t_type
="long long"
6612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6615 $as_echo "$ac_cv_int64_t_type" >&6; }
6616 if test "$ac_cv_int64_t_type" = "long"; then
6618 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6624 #ifdef HAVE_STDINT_H
6627 template <typename T> struct X { };
6629 struct X<long long> { typedef long long t; };
6639 if ac_fn_cxx_try_compile
"$LINENO"; then :
6642 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6648 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6649 if ${ac_cv_std_swap_in_utility+:} false
; then :
6650 $as_echo_n "(cached) " >&6
6653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6661 int a, b; std::swap(a,b);
6666 if ac_fn_cxx_try_compile
"$LINENO"; then :
6667 ac_cv_std_swap_in_utility
=yes
6669 ac_cv_std_swap_in_utility
=no
6671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6674 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6675 if test $ac_cv_std_swap_in_utility = yes; then
6677 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6681 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6682 # If the host compiler is affected by the bug, and we build with optimization
6683 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6684 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6685 # Since there is no reliable feature check for the presence of this bug,
6686 # we simply use a GCC version number check. (This should never trigger for
6687 # stages 2 or 3 of a native bootstrap.)
6689 if test "$GCC" = yes; then
6690 saved_CXXFLAGS
="$CXXFLAGS"
6692 # The following test compilation will succeed if and only if $CXX accepts
6693 # -fno-strict-aliasing *and* is older than GCC 4.3.
6694 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6696 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6700 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6701 #error compiler not affected by placement new aliasing bug
6705 if ac_fn_cxx_try_compile
"$LINENO"; then :
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6707 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6714 CXXFLAGS
="$saved_CXXFLAGS"
6720 # ---------------------
6721 # Warnings and checking
6722 # ---------------------
6724 # Check $CC warning features (if it's GCC).
6725 # We want to use -pedantic, but we don't want warnings about
6728 # * overlong strings
6729 # * C++11 narrowing conversions in { }
6730 # So, we only use -pedantic if we can disable those warnings.
6732 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6733 # Check whether --enable-build-format-warnings was given.
6734 if test "${enable_build_format_warnings+set}" = set; then :
6735 enableval
=$enable_build_format_warnings;
6737 enable_build_format_warnings
=yes
6740 if test $enable_build_format_warnings = no
; then :
6746 ac_cpp
='$CXXCPP $CPPFLAGS'
6747 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6752 save_CXXFLAGS
="$CXXFLAGS"
6753 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6754 # Do the check with the no- prefix removed since gcc silently
6755 # accepts any -Wno-* option on purpose
6756 case $real_option in
6757 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6758 *) option
=$real_option ;;
6760 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6763 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6764 if eval \
${$as_acx_Woption+:} false
; then :
6765 $as_echo_n "(cached) " >&6
6768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6779 if ac_fn_cxx_try_compile
"$LINENO"; then :
6780 eval "$as_acx_Woption=yes"
6782 eval "$as_acx_Woption=no"
6784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6787 eval ac_res
=\$
$as_acx_Woption
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6789 $as_echo "$ac_res" >&6; }
6790 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6791 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6794 CXXFLAGS
="$save_CXXFLAGS"
6796 ac_cpp
='$CXXCPP $CPPFLAGS'
6797 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6804 ac_cpp
='$CPP $CPPFLAGS'
6805 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6810 save_CFLAGS
="$CFLAGS"
6811 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
6812 # Do the check with the no- prefix removed since gcc silently
6813 # accepts any -Wno-* option on purpose
6814 case $real_option in
6815 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6816 *) option
=$real_option ;;
6818 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6821 $as_echo_n "checking whether $CC supports $option... " >&6; }
6822 if eval \
${$as_acx_Woption+:} false
; then :
6823 $as_echo_n "(cached) " >&6
6826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6837 if ac_fn_c_try_compile
"$LINENO"; then :
6838 eval "$as_acx_Woption=yes"
6840 eval "$as_acx_Woption=no"
6842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6845 eval ac_res
=\$
$as_acx_Woption
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6847 $as_echo "$ac_res" >&6; }
6848 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6849 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6852 CFLAGS
="$save_CFLAGS"
6854 ac_cpp
='$CXXCPP $CPPFLAGS'
6855 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6856 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6857 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6861 ac_cpp
='$CXXCPP $CPPFLAGS'
6862 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6867 save_CXXFLAGS
="$CXXFLAGS"
6868 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6869 # Do the check with the no- prefix removed since gcc silently
6870 # accepts any -Wno-* option on purpose
6871 case $real_option in
6872 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6873 *) option
=$real_option ;;
6875 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6878 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6879 if eval \
${$as_acx_Woption+:} false
; then :
6880 $as_echo_n "(cached) " >&6
6883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6894 if ac_fn_cxx_try_compile
"$LINENO"; then :
6895 eval "$as_acx_Woption=yes"
6897 eval "$as_acx_Woption=no"
6899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6902 eval ac_res
=\$
$as_acx_Woption
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6904 $as_echo "$ac_res" >&6; }
6905 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6906 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6909 CXXFLAGS
="$save_CXXFLAGS"
6911 ac_cpp
='$CXXCPP $CPPFLAGS'
6912 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6918 ac_cpp
='$CPP $CPPFLAGS'
6919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6924 save_CFLAGS
="$CFLAGS"
6925 for real_option
in -Wold-style-definition -Wc++-compat; do
6926 # Do the check with the no- prefix removed since gcc silently
6927 # accepts any -Wno-* option on purpose
6928 case $real_option in
6929 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6930 *) option
=$real_option ;;
6932 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6935 $as_echo_n "checking whether $CC supports $option... " >&6; }
6936 if eval \
${$as_acx_Woption+:} false
; then :
6937 $as_echo_n "(cached) " >&6
6940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6951 if ac_fn_c_try_compile
"$LINENO"; then :
6952 eval "$as_acx_Woption=yes"
6954 eval "$as_acx_Woption=no"
6956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6959 eval ac_res
=\$
$as_acx_Woption
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6961 $as_echo "$ac_res" >&6; }
6962 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6963 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6966 CFLAGS
="$save_CFLAGS"
6968 ac_cpp
='$CXXCPP $CPPFLAGS'
6969 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6975 ac_cpp
='$CXXCPP $CPPFLAGS'
6976 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6980 # Do the check with the no- prefix removed from the warning options
6981 # since gcc silently accepts any -Wno-* option on purpose
6982 if test "$GXX" = yes; then :
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6984 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6985 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
6986 $as_echo_n "(cached) " >&6
6988 save_CXXFLAGS
="$CXXFLAGS"
6989 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
7001 if ac_fn_cxx_try_compile
"$LINENO"; then :
7002 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7004 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7007 CXXFLAGS
="$save_CXXFLAGS"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7010 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7011 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7012 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
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 ac_cpp
='$CXXCPP $CPPFLAGS'
7025 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7029 # Check whether --enable-werror-always was given.
7030 if test "${enable_werror_always+set}" = set; then :
7031 enableval
=$enable_werror_always;
7033 enable_werror_always
=no
7036 if test $enable_werror_always = yes; then :
7037 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7041 ac_cpp
='$CXXCPP $CPPFLAGS'
7042 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7048 # The above macros do nothing if the compiler is not GCC. However, the
7049 # Makefile has more goo to add other flags, so these variables are used
7050 # to enable warnings only for GCC.
7053 if test "x$GCC" = "xyes"; then
7054 warn_cflags
='$(GCC_WARN_CFLAGS)'
7055 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7060 # Disable exceptions and RTTI if building with g++
7062 ac_cpp
='$CPP $CPPFLAGS'
7063 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7068 save_CFLAGS
="$CFLAGS"
7069 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7070 # Do the check with the no- prefix removed since gcc silently
7071 # accepts any -Wno-* option on purpose
7072 case $real_option in
7073 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7074 *) option
=$real_option ;;
7076 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7079 $as_echo_n "checking whether $CC supports $option... " >&6; }
7080 if eval \
${$as_acx_Woption+:} false
; then :
7081 $as_echo_n "(cached) " >&6
7084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7095 if ac_fn_c_try_compile
"$LINENO"; then :
7096 eval "$as_acx_Woption=yes"
7098 eval "$as_acx_Woption=no"
7100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7103 eval ac_res
=\$
$as_acx_Woption
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7105 $as_echo "$ac_res" >&6; }
7106 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7107 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7110 CFLAGS
="$save_CFLAGS"
7112 ac_cpp
='$CXXCPP $CPPFLAGS'
7113 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7119 # Enable expensive internal checks
7121 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7125 # Check whether --enable-checking was given.
7126 if test "${enable_checking+set}" = set; then :
7127 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7130 # Determine the default checks.
7131 if test x
$is_release = x
; then
7132 ac_checking_flags
=yes,extra
7134 ac_checking_flags
=release
7138 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7139 for check
in release
$ac_checking_flags
7142 # these set all the flags to specific states
7143 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7144 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7145 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7146 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7147 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7148 ac_types_checking
=1 ;;
7149 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7150 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7151 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7152 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7153 ac_tree_checking
= ; ac_valgrind_checking
= ;
7154 ac_types_checking
= ;;
7155 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7156 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7157 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7158 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7159 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7160 ac_types_checking
=1 ;;
7161 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7162 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7163 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7164 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7165 ac_tree_checking
= ; ac_valgrind_checking
= ;
7166 ac_types_checking
= ;;
7167 # these enable particular checks
7168 assert
) ac_assert_checking
=1 ;;
7169 df
) ac_df_checking
=1 ;;
7170 extra
) ac_extra_checking
=1 ;;
7171 fold) ac_fold_checking
=1 ;;
7172 gc
) ac_gc_checking
=1 ;;
7173 gcac
) ac_gc_always_collect
=1 ;;
7174 gimple
) ac_gimple_checking
=1 ;;
7175 misc
) ac_checking
=1 ;;
7176 rtl
) ac_rtl_checking
=1 ;;
7177 rtlflag
) ac_rtlflag_checking
=1 ;;
7178 runtime
) ac_runtime_checking
=1 ;;
7179 tree
) ac_tree_checking
=1 ;;
7180 types
) ac_types_checking
=1 ;;
7181 valgrind
) ac_valgrind_checking
=1 ;;
7182 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7188 if test x
$ac_checking != x
; then
7190 $as_echo "#define CHECKING_P 1" >>confdefs.h
7192 nocommon_flag
=-fno-common
7194 $as_echo "#define CHECKING_P 0" >>confdefs.h
7198 if test x
$ac_extra_checking != x
; then
7200 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7203 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7206 if test x
$ac_df_checking != x
; then
7208 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7211 if test x
$ac_assert_checking != x
; then
7213 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7216 if test x
$ac_gimple_checking != x
; then
7218 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7222 if test x
$ac_runtime_checking != x
; then
7224 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7227 if test x
$ac_tree_checking != x
; then
7229 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7233 if test x
$ac_types_checking != x
; then
7235 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7239 if test x
$ac_rtl_checking != x
; then
7241 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7244 if test x
$ac_rtlflag_checking != x
; then
7246 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7249 if test x
$ac_gc_checking != x
; then
7251 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7254 if test x
$ac_gc_always_collect != x
; then
7256 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7259 if test x
$ac_fold_checking != x
; then
7261 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7264 valgrind_path_defines
=
7267 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7268 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7276 # It is certainly possible that there's valgrind but no valgrind.h.
7277 # GCC relies on making annotations so we must have both.
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7279 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 #include <valgrind/memcheck.h>
7283 #ifndef VALGRIND_DISCARD
7284 #error VALGRIND_DISCARD not defined
7287 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7288 gcc_cv_header_valgrind_memcheck_h
=yes
7290 gcc_cv_header_valgrind_memcheck_h
=no
7292 rm -f conftest.err conftest.i conftest.
$ac_ext
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7294 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7296 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 #include <memcheck.h>
7300 #ifndef VALGRIND_DISCARD
7301 #error VALGRIND_DISCARD not defined
7304 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7305 gcc_cv_header_memcheck_h
=yes
7307 gcc_cv_header_memcheck_h
=no
7309 rm -f conftest.err conftest.i conftest.
$ac_ext
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7311 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7312 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7314 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7317 if test $gcc_cv_header_memcheck_h = yes; then
7319 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7323 if test x
$ac_valgrind_checking != x
; then
7325 # Prepare PATH_SEPARATOR.
7326 # The user is always right.
7327 if test "${PATH_SEPARATOR+set}" != set; then
7328 echo "#! /bin/sh" >conf$$.sh
7329 echo "exit 0" >>conf$$.sh
7331 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7339 # Find out how to test for executable files. Don't use a zero-byte file,
7340 # as systems may use methods other than mode bits to determine executability.
7341 cat >conf$$.
file <<_ASEOF
7345 chmod +x conf$$.
file
7346 if test -x conf$$.
file >/dev
/null
2>&1; then
7347 ac_executable_p
="test -x"
7349 ac_executable_p
="test -f"
7353 # Extract the first word of "valgrind", so it can be a program name with args.
7354 set dummy valgrind
; ac_word
=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_path_valgrind_path+:} false
; then :
7358 $as_echo_n "(cached) " >&6
7360 case "$valgrind_path" in
7362 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7365 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7366 for ac_dir
in $PATH; do
7368 test -z "$ac_dir" && ac_dir
=.
7369 for ac_exec_ext
in '' $ac_executable_extensions; do
7370 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7371 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7372 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7382 valgrind_path
="$ac_cv_path_valgrind_path"
7383 if test -n "$valgrind_path"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7385 $as_echo "$valgrind_path" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7391 if test "x$valgrind_path" = "x" \
7392 ||
(test $have_valgrind_h = no \
7393 && test $gcc_cv_header_memcheck_h = no \
7394 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7395 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7397 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7398 valgrind_command
="$valgrind_path -q"
7400 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7406 # Enable code coverage collection
7407 # Check whether --enable-coverage was given.
7408 if test "${enable_coverage+set}" = set; then :
7409 enableval
=$enable_coverage; case "${enableval}" in
7411 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7414 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7417 # a.k.a. --disable-coverage
7421 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7430 # Check whether --enable-gather-detailed-mem-stats was given.
7431 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7432 enableval
=$enable_gather_detailed_mem_stats;
7434 enable_gather_detailed_mem_stats
=no
7437 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7439 cat >>confdefs.h
<<_ACEOF
7440 #define GATHER_STATISTICS $gather_stats
7444 # Check whether --enable-valgrind-annotations was given.
7445 if test "${enable_valgrind_annotations+set}" = set; then :
7446 enableval
=$enable_valgrind_annotations;
7448 enable_valgrind_annotations
=no
7451 if test x
$enable_valgrind_annotations != xno \
7452 ||
test x
$ac_valgrind_checking != x
; then
7453 if (test $have_valgrind_h = no \
7454 && test $gcc_cv_header_memcheck_h = no \
7455 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7456 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7459 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7463 # -------------------------------
7464 # Miscenalleous configure options
7465 # -------------------------------
7469 # Check whether --with-stabs was given.
7470 if test "${with_stabs+set}" = set; then :
7471 withval
=$with_stabs; stabs
="$with_stabs"
7477 # Determine whether or not multilibs are enabled.
7478 # Check whether --enable-multilib was given.
7479 if test "${enable_multilib+set}" = set; then :
7480 enableval
=$enable_multilib;
7487 # Determine whether or not multiarch is enabled.
7488 # Check whether --enable-multiarch was given.
7489 if test "${enable_multiarch+set}" = set; then :
7490 enableval
=$enable_multiarch; case "${enableval}" in
7491 yes|no|auto
) enable_multiarch
=$enableval;;
7492 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7495 enable_multiarch
=auto
7498 if test x
${enable_multiarch} = xauto
; then
7499 if test x
${with_native_system_header_dir} != x
; then
7500 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7503 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7504 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7509 $as_echo_n "checking for multiarch configuration... " >&6; }
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7512 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7514 # needed for setting the multiarch name for soft-float/hard-float ABIs
7518 # default stack clash protection guard size as power of twos in bytes.
7519 # Please keep these in sync with params.def.
7523 # Keep the default value when the option is not used to 0, this allows us to
7524 # distinguish between the cases where the user specifially set a value via
7525 # configure and when the normal default value is used.
7527 # Check whether --with-stack-clash-protection-guard-size was given.
7528 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7529 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7531 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7534 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7535 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7536 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7537 as_fn_error $?
"Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7541 cat >>confdefs.h
<<_ACEOF
7542 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7546 # Enable __cxa_atexit for C++.
7547 # Check whether --enable-__cxa_atexit was given.
7548 if test "${enable___cxa_atexit+set}" = set; then :
7549 enableval
=$enable___cxa_atexit;
7553 # Enable C extension for decimal float if target supports it.
7555 # Check whether --enable-decimal-float was given.
7556 if test "${enable_decimal_float+set}" = set; then :
7557 enableval
=$enable_decimal_float;
7558 case $enable_decimal_float in
7559 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7560 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7561 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7567 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7568 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7569 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7570 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7571 enable_decimal_float
=yes
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7575 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7576 enable_decimal_float
=no
7583 # x86's use BID format instead of DPD
7584 case x
$enable_decimal_float in
7587 i?
86*-*-* | x86_64
*-*-*)
7588 enable_decimal_float
=bid
7591 enable_decimal_float
=dpd
7594 default_decimal_float
=$enable_decimal_float
7597 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7598 # dependency on libdecnumber.
7599 default_decimal_float
=dpd
7606 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7608 cat >>confdefs.h
<<_ACEOF
7609 #define ENABLE_DECIMAL_FLOAT $dfp
7613 # Use default_decimal_float for dependency.
7614 enable_decimal_float
=$default_decimal_float
7616 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7618 cat >>confdefs.h
<<_ACEOF
7619 #define ENABLE_DECIMAL_BID_FORMAT $bid
7623 # Enable C extension for fixed-point arithmetic.
7624 # Check whether --enable-fixed-point was given.
7625 if test "${enable_fixed_point+set}" = set; then :
7626 enableval
=$enable_fixed_point;
7631 enable_fixed_point
=yes
7635 enable_fixed_point
=yes
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7639 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7640 enable_fixed_point
=no
7648 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7650 cat >>confdefs.h
<<_ACEOF
7651 #define ENABLE_FIXED_POINT $fixedpoint
7656 # Pass with no value to take the default
7657 # Pass with a value to specify a thread package
7658 # Check whether --enable-threads was given.
7659 if test "${enable_threads+set}" = set; then :
7660 enableval
=$enable_threads;
7666 # Check whether --enable-tls was given.
7667 if test "${enable_tls+set}" = set; then :
7668 enableval
=$enable_tls;
7671 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7672 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7680 # Check whether --enable-vtable-verify was given.
7681 if test "${enable_vtable_verify+set}" = set; then :
7682 enableval
=$enable_vtable_verify;
7684 enable_vtable_verify
=no
7687 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7689 cat >>confdefs.h
<<_ACEOF
7690 #define ENABLE_VTABLE_VERIFY $vtable_verify
7694 # Check whether --enable-objc-gc was given.
7695 if test "${enable_objc_gc+set}" = set; then :
7696 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7707 # Check whether --with-dwarf2 was given.
7708 if test "${with_dwarf2+set}" = set; then :
7709 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7715 # Check whether --enable-shared was given.
7716 if test "${enable_shared+set}" = set; then :
7717 enableval
=$enable_shared;
7718 case $enable_shared in
7722 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7723 for pkg
in $enableval; do
7724 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7738 # Check whether --enable-gcov was given.
7739 if test "${enable_gcov+set}" = set; then :
7740 enableval
=$enable_gcov;
7748 # Check whether --with-specs was given.
7749 if test "${with_specs+set}" = set; then :
7750 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7760 # Check whether --with-pkgversion was given.
7761 if test "${with_pkgversion+set}" = set; then :
7762 withval
=$with_pkgversion; case "$withval" in
7763 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7765 *) PKGVERSION
="($withval) " ;;
7776 # Check whether --with-bugurl was given.
7777 if test "${with_bugurl+set}" = set; then :
7778 withval
=$with_bugurl; case "$withval" in
7779 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7782 *) BUGURL
="$withval"
7786 BUGURL
="https://gcc.gnu.org/bugs/"
7796 REPORT_BUGS_TO
="<$BUGURL>"
7797 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7804 # Sanity check enable_languages in case someone does not run the toplevel
7805 # configure # script.
7806 # Check whether --enable-languages was given.
7807 if test "${enable_languages+set}" = set; then :
7808 enableval
=$enable_languages; case ,${enable_languages}, in
7810 # go safe -- we cannot be much sure without the toplevel
7812 # analysis of which target libs are present and usable
7816 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7821 enable_languages
=c
,${enable_languages}
7829 if test x
"$enable_as_accelerator_for" != x
; then
7831 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7833 enable_as_accelerator
=yes
7836 # In this case we expect offload compiler to be built as native, so we
7837 # need to rename the driver to avoid clashes with host's drivers.
7838 program_transform_name
="s&^&${target}-&" ;;
7840 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7841 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7842 accel_dir_suffix
=/accel
/${target_noncanonical}
7843 real_target_noncanonical
=${enable_as_accelerator_for}
7849 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7850 tgt
=`echo $tgt | sed 's/=.*//'`
7852 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7858 if test x
"$offload_targets" = x
; then
7859 offload_targets
=$tgt
7861 offload_targets
="$offload_targets,$tgt"
7865 cat >>confdefs.h
<<_ACEOF
7866 #define OFFLOAD_TARGETS "$offload_targets"
7869 if test x
"$enable_offloading" != x
; then
7871 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7875 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7879 if test x
"$enable_hsa" = x1
; then
7881 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7886 # Check whether --with-multilib-list was given.
7887 if test "${with_multilib_list+set}" = set; then :
7888 withval
=$with_multilib_list; :
7890 with_multilib_list
=default
7894 # -------------------------
7895 # Checks for other programs
7896 # -------------------------
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7899 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7901 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7902 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
7903 $as_echo_n "(cached) " >&6
7905 cat >conftest.
make <<\_ACEOF
7908 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7910 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7911 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7913 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7915 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7919 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7921 $as_echo "yes" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7926 SET_MAKE
="MAKE=${MAKE-make}"
7930 # Find some useful tools
7931 for ac_prog
in gawk mawk nawk
awk
7933 # Extract the first word of "$ac_prog", so it can be a program name with args.
7934 set dummy
$ac_prog; ac_word
=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_AWK+:} false
; then :
7938 $as_echo_n "(cached) " >&6
7940 if test -n "$AWK"; then
7941 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7947 test -z "$as_dir" && as_dir
=.
7948 for ac_exec_ext
in '' $ac_executable_extensions; do
7949 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_AWK
="$ac_prog"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 if test -n "$AWK"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7963 $as_echo "$AWK" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7970 test -n "$AWK" && break
7973 # We need awk to create options.c and options.h.
7974 # Bail out if it's missing.
7976 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7980 $as_echo_n "checking whether ln -s works... " >&6; }
7981 if ${gcc_cv_prog_LN_S+:} false
; then :
7982 $as_echo_n "(cached) " >&6
7984 rm -f conftestdata_t
7985 echo >conftestdata_f
7986 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7988 gcc_cv_prog_LN_S
="ln -s"
7990 if ln conftestdata_f conftestdata_t
2>/dev
/null
7994 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7996 gcc_cv_prog_LN_S
="cp -p"
8002 rm -f conftestdata_f conftestdata_t
8005 LN_S
="$gcc_cv_prog_LN_S"
8006 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8008 $as_echo "yes" >&6; }
8010 if test "$gcc_cv_prog_LN_S" = "ln"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8012 $as_echo "no, using ln" >&6; }
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8015 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8020 $as_echo_n "checking whether ln works... " >&6; }
8021 if ${acx_cv_prog_LN+:} false
; then :
8022 $as_echo_n "(cached) " >&6
8024 rm -f conftestdata_t
8025 echo >conftestdata_f
8026 if ln conftestdata_f conftestdata_t
2>/dev
/null
8032 rm -f conftestdata_f conftestdata_t
8035 if test $acx_cv_prog_LN = no
; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8038 $as_echo "no, using $LN" >&6; }
8040 LN
="$acx_cv_prog_LN"
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8042 $as_echo "yes" >&6; }
8045 if test -n "$ac_tool_prefix"; then
8046 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8047 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if ${ac_cv_prog_RANLIB+:} false
; then :
8051 $as_echo_n "(cached) " >&6
8053 if test -n "$RANLIB"; then
8054 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8060 test -z "$as_dir" && as_dir
=.
8061 for ac_exec_ext
in '' $ac_executable_extensions; do
8062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 RANLIB
=$ac_cv_prog_RANLIB
8074 if test -n "$RANLIB"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8076 $as_echo "$RANLIB" >&6; }
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 $as_echo "no" >&6; }
8084 if test -z "$ac_cv_prog_RANLIB"; then
8085 ac_ct_RANLIB
=$RANLIB
8086 # Extract the first word of "ranlib", so it can be a program name with args.
8087 set dummy ranlib
; ac_word
=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8091 $as_echo_n "(cached) " >&6
8093 if test -n "$ac_ct_RANLIB"; then
8094 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8100 test -z "$as_dir" && as_dir
=.
8101 for ac_exec_ext
in '' $ac_executable_extensions; do
8102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8114 if test -n "$ac_ct_RANLIB"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8116 $as_echo "$ac_ct_RANLIB" >&6; }
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8122 if test "x$ac_ct_RANLIB" = x
; then
8125 case $cross_compiling:$ac_tool_warned in
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8129 ac_tool_warned
=yes ;;
8131 RANLIB
=$ac_ct_RANLIB
8134 RANLIB
="$ac_cv_prog_RANLIB"
8140 # Find a good install program. We prefer a C program (faster),
8141 # so one script is as good as another. But avoid the broken or
8142 # incompatible versions:
8143 # SysV /etc/install, /usr/sbin/install
8144 # SunOS /usr/etc/install
8145 # IRIX /sbin/install
8147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8149 # ./install, which can be erroneously created by make from ./install.sh.
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8151 $as_echo_n "checking for a BSD compatible install... " >&6; }
8152 if test -z "$INSTALL"; then
8153 if ${ac_cv_path_install+:} false
; then :
8154 $as_echo_n "(cached) " >&6
8156 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8157 for ac_dir
in $PATH; do
8158 # Account for people who put trailing slashes in PATH elements.
8160 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8162 # OSF1 and SCO ODT 3.0 have their own names for install.
8163 for ac_prog
in ginstall scoinst
install; do
8164 if test -f $ac_dir/$ac_prog; then
8165 if test $ac_prog = install &&
8166 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8167 # AIX install. It has an incompatible calling convention.
8168 # OSF/1 installbsd also uses dspmsg, but is usable.
8171 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8182 if test "${ac_cv_path_install+set}" = set; then
8183 INSTALL
="$ac_cv_path_install"
8185 # As a last resort, use the slow shell script. We don't cache a
8186 # path for INSTALL within a source directory, because that will
8187 # break other packages using the cache if that directory is
8188 # removed, or if the path is relative.
8189 INSTALL
="$ac_install_sh"
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8193 $as_echo "$INSTALL" >&6; }
8195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8196 # It thinks the first close brace ends the variable substitution.
8197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8199 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8202 # See if cmp has --ignore-initial.
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8204 $as_echo_n "checking for cmp's capabilities... " >&6; }
8205 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8206 $as_echo_n "(cached) " >&6
8210 gcc_cv_prog_cmp_skip
=slowcompare
8211 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8212 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8215 gcc_cv_prog_cmp_skip
=gnucompare
8218 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8219 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8220 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8223 gcc_cv_prog_cmp_skip
=fastcompare
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8231 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8232 make_compare_target
=$gcc_cv_prog_cmp_skip
8236 # See if we have the mktemp command.
8237 # Extract the first word of "mktemp", so it can be a program name with args.
8238 set dummy mktemp
; ac_word
=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8242 $as_echo_n "(cached) " >&6
8244 if test -n "$have_mktemp_command"; then
8245 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir
=.
8252 for ac_exec_ext
in '' $ac_executable_extensions; do
8253 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_have_mktemp_command
="yes"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8265 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8266 if test -n "$have_mktemp_command"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8268 $as_echo "$have_mktemp_command" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8276 # See if makeinfo has been installed and is modern enough
8277 # that we can use it.
8279 # Extract the first word of "makeinfo", so it can be a program name with args.
8280 set dummy makeinfo
; ac_word
=$2
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282 $as_echo_n "checking for $ac_word... " >&6; }
8283 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8284 $as_echo_n "(cached) " >&6
8286 if test -n "$MAKEINFO"; then
8287 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8293 test -z "$as_dir" && as_dir
=.
8294 for ac_exec_ext
in '' $ac_executable_extensions; do
8295 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_MAKEINFO
="makeinfo"
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 MAKEINFO
=$ac_cv_prog_MAKEINFO
8307 if test -n "$MAKEINFO"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8309 $as_echo "$MAKEINFO" >&6; }
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 $as_echo "no" >&6; }
8316 if test -n "$MAKEINFO"; then
8317 # Found it, now check the version.
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8319 $as_echo_n "checking for modern makeinfo... " >&6; }
8320 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8321 $as_echo_n "(cached) " >&6
8323 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8324 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8326 case $ac_prog_version in
8327 '') gcc_cv_prog_makeinfo_modern
=no
;;
8328 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8329 *) gcc_cv_prog_makeinfo_modern
=no
;;
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8334 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8336 gcc_cv_prog_makeinfo_modern
=no
8338 if test $gcc_cv_prog_makeinfo_modern = no
; then
8339 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8342 if test $gcc_cv_prog_makeinfo_modern = no
; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8344 *** Makeinfo is missing or too old.
8345 *** Info documentation will not be built." >&5
8346 $as_echo "$as_me: WARNING:
8347 *** Makeinfo is missing or too old.
8348 *** Info documentation will not be built." >&2;}
8355 # Is pod2man recent enough to regenerate manpages?
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8357 $as_echo_n "checking for recent Pod::Man... " >&6; }
8358 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8360 $as_echo "yes" >&6; }
8361 GENERATED_MANPAGES
=generated-manpages
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8369 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8374 # Extract the first word of "$ac_prog", so it can be a program name with args.
8375 set dummy
$ac_prog; ac_word
=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_prog_FLEX+:} false
; then :
8379 $as_echo_n "(cached) " >&6
8381 if test -n "$FLEX"; then
8382 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8388 test -z "$as_dir" && as_dir
=.
8389 for ac_exec_ext
in '' $ac_executable_extensions; do
8390 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_FLEX
="$ac_prog"
8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 FLEX
=$ac_cv_prog_FLEX
8402 if test -n "$FLEX"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8404 $as_echo "$FLEX" >&6; }
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8411 test -n "$FLEX" && break
8413 test -n "$FLEX" || FLEX
="$MISSING flex"
8417 for ac_prog
in bison
8419 # Extract the first word of "$ac_prog", so it can be a program name with args.
8420 set dummy
$ac_prog; ac_word
=$2
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 $as_echo_n "checking for $ac_word... " >&6; }
8423 if ${ac_cv_prog_BISON+:} false
; then :
8424 $as_echo_n "(cached) " >&6
8426 if test -n "$BISON"; then
8427 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8433 test -z "$as_dir" && as_dir
=.
8434 for ac_exec_ext
in '' $ac_executable_extensions; do
8435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8436 ac_cv_prog_BISON
="$ac_prog"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 BISON
=$ac_cv_prog_BISON
8447 if test -n "$BISON"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8449 $as_echo "$BISON" >&6; }
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8456 test -n "$BISON" && break
8458 test -n "$BISON" || BISON
="$MISSING bison"
8461 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8462 # check for build == host before using them.
8465 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8466 && test -d ..
/binutils
; then
8467 NM
='${objdir}/../binutils/nm-new'
8469 # Extract the first word of "nm", so it can be a program name with args.
8470 set dummy nm
; ac_word
=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_NM+:} false
; then :
8474 $as_echo_n "(cached) " >&6
8476 if test -n "$NM"; then
8477 ac_cv_prog_NM
="$NM" # Let the user override the test.
8479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir
=.
8484 for ac_exec_ext
in '' $ac_executable_extensions; do
8485 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8498 if test -n "$NM"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8500 $as_echo "$NM" >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8510 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8511 && test -d ..
/binutils
; then
8512 AR
='${objdir}/../binutils/ar'
8514 # Extract the first word of "ar", so it can be a program name with args.
8515 set dummy
ar; ac_word
=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if ${ac_cv_prog_AR+:} false
; then :
8519 $as_echo_n "(cached) " >&6
8521 if test -n "$AR"; then
8522 ac_cv_prog_AR
="$AR" # Let the user override the test.
8524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8528 test -z "$as_dir" && as_dir
=.
8529 for ac_exec_ext
in '' $ac_executable_extensions; do
8530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8543 if test -n "$AR"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8545 $as_echo "$AR" >&6; }
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8554 # The jit documentation looks better if built with sphinx, but can be
8555 # built with texinfo if sphinx is not available.
8556 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8557 # Extract the first word of "sphinx-build", so it can be a program name with args.
8558 set dummy sphinx-build
; ac_word
=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8562 $as_echo_n "(cached) " >&6
8564 if test -n "$doc_build_sys"; then
8565 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8571 test -z "$as_dir" && as_dir
=.
8572 for ac_exec_ext
in '' $ac_executable_extensions; do
8573 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_doc_build_sys
="sphinx"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8585 doc_build_sys
=$ac_cv_prog_doc_build_sys
8586 if test -n "$doc_build_sys"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8588 $as_echo "$doc_build_sys" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 # --------------------
8597 # Checks for C headers
8598 # --------------------
8600 # Need to reject headers which give warnings, so that the -Werror bootstrap
8601 # works later. *sigh* This needs to come before all header checks.
8603 ac_c_preproc_warn_flag
=yes
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8606 $as_echo_n "checking for ANSI C header files... " >&6; }
8607 if ${ac_cv_header_stdc+:} false
; then :
8608 $as_echo_n "(cached) " >&6
8610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8625 if ac_fn_cxx_try_compile
"$LINENO"; then :
8626 ac_cv_header_stdc
=yes
8628 ac_cv_header_stdc
=no
8630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8632 if test $ac_cv_header_stdc = yes; then
8633 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8640 $EGREP "memchr" >/dev
/null
2>&1; then :
8643 ac_cv_header_stdc
=no
8649 if test $ac_cv_header_stdc = yes; then
8650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8657 $EGREP "free" >/dev
/null
2>&1; then :
8660 ac_cv_header_stdc
=no
8666 if test $ac_cv_header_stdc = yes; then
8667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8668 if test "$cross_compiling" = yes; then :
8671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8675 #if ((' ' & 0x0FF) == 0x020)
8676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8679 # define ISLOWER(c) \
8680 (('a' <= (c) && (c) <= 'i') \
8681 || ('j' <= (c) && (c) <= 'r') \
8682 || ('s' <= (c) && (c) <= 'z'))
8683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8691 for (i = 0; i < 256; i++)
8692 if (XOR (islower (i), ISLOWER (i))
8693 || toupper (i) != TOUPPER (i))
8698 if ac_fn_cxx_try_run
"$LINENO"; then :
8701 ac_cv_header_stdc
=no
8703 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8704 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8710 $as_echo "$ac_cv_header_stdc" >&6; }
8711 if test $ac_cv_header_stdc = yes; then
8713 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8718 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8719 if ${ac_cv_header_time+:} false
; then :
8720 $as_echo_n "(cached) " >&6
8722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 #include <sys/types.h>
8725 #include <sys/time.h>
8731 if ((struct tm *) 0)
8737 if ac_fn_cxx_try_compile
"$LINENO"; then :
8738 ac_cv_header_time
=yes
8740 ac_cv_header_time
=no
8742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8745 $as_echo "$ac_cv_header_time" >&6; }
8746 if test $ac_cv_header_time = yes; then
8748 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8753 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8754 if ${gcc_cv_header_string+:} false
; then :
8755 $as_echo_n "(cached) " >&6
8757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8760 #include <strings.h>
8769 if ac_fn_cxx_try_compile
"$LINENO"; then :
8770 gcc_cv_header_string
=yes
8772 gcc_cv_header_string
=no
8774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8777 $as_echo "$gcc_cv_header_string" >&6; }
8778 if test $gcc_cv_header_string = yes; then
8780 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8785 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8786 if ${ac_cv_header_sys_wait_h+:} false
; then :
8787 $as_echo_n "(cached) " >&6
8789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #include <sys/types.h>
8792 #include <sys/wait.h>
8794 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8797 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8805 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8810 if ac_fn_cxx_try_compile
"$LINENO"; then :
8811 ac_cv_header_sys_wait_h
=yes
8813 ac_cv_header_sys_wait_h
=no
8815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8818 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8819 if test $ac_cv_header_sys_wait_h = yes; then
8821 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8826 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8827 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8828 $as_echo_n "(cached) " >&6
8830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 #include <sys/types.h>
8833 #include <termios.h>
8839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8840 $EGREP "yes" >/dev
/null
2>&1; then :
8841 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8843 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8849 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8851 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8853 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8854 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8855 $as_echo_n "(cached) " >&6
8857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 #include <sys/types.h>
8860 #include <sys/ioctl.h>
8866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8867 $EGREP "yes" >/dev
/null
2>&1; then :
8868 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8870 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8876 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8878 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8880 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8885 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8886 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8887 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8888 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8890 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8892 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8893 cat >>confdefs.h
<<_ACEOF
8894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8901 # Check for thread headers.
8902 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8903 if test "x$ac_cv_header_thread_h" = xyes
; then :
8909 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8910 if test "x$ac_cv_header_pthread_h" = xyes
; then :
8917 # These tests can't be done till we know if we have limits.h.
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8919 $as_echo_n "checking for CHAR_BIT... " >&6; }
8920 if ${gcc_cv_decl_char_bit+:} false
; then :
8921 $as_echo_n "(cached) " >&6
8923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #ifdef HAVE_LIMITS_H
8932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8933 $EGREP "found" >/dev
/null
2>&1; then :
8934 gcc_cv_decl_char_bit
=yes
8936 gcc_cv_decl_char_bit
=no
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8943 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8944 if test $gcc_cv_decl_char_bit = no
; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8946 $as_echo_n "checking number of bits in a byte... " >&6; }
8947 if ${gcc_cv_c_nbby+:} false
; then :
8948 $as_echo_n "(cached) " >&6
8952 while test $i -lt 65; do
8953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8960 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8961 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8967 if ac_fn_cxx_try_compile
"$LINENO"; then :
8968 gcc_cv_c_nbby
=$i; break
8970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8973 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8977 $as_echo "$gcc_cv_c_nbby" >&6; }
8978 if test $gcc_cv_c_nbby = failed
; then
8979 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
8982 cat >>confdefs.h
<<_ACEOF
8983 #define CHAR_BIT $gcc_cv_c_nbby
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8989 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8990 if ${ac_cv_c_bigendian+:} false
; then :
8991 $as_echo_n "(cached) " >&6
8993 ac_cv_c_bigendian
=unknown
8994 # See if we're dealing with a universal compiler.
8995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 #ifndef __APPLE_CC__
8998 not a universal capable compiler
9003 if ac_fn_cxx_try_compile
"$LINENO"; then :
9005 # Check for potential -arch flags. It is not universal unless
9006 # there are at least two -arch flags with different values.
9009 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9010 if test -n "$ac_prev"; then
9012 i?
86 | x86_64 | ppc | ppc64
)
9013 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9016 ac_cv_c_bigendian
=universal
9022 elif test "x$ac_word" = "x-arch"; then
9027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9028 if test $ac_cv_c_bigendian = unknown
; then
9029 # See if sys/param.h defines the BYTE_ORDER macro.
9030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 #include <sys/types.h>
9033 #include <sys/param.h>
9038 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9039 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9048 if ac_fn_cxx_try_compile
"$LINENO"; then :
9049 # It does; now see whether it defined to BIG_ENDIAN or not.
9050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9052 #include <sys/types.h>
9053 #include <sys/param.h>
9058 #if BYTE_ORDER != BIG_ENDIAN
9066 if ac_fn_cxx_try_compile
"$LINENO"; then :
9067 ac_cv_c_bigendian
=yes
9069 ac_cv_c_bigendian
=no
9071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9075 if test $ac_cv_c_bigendian = unknown
; then
9076 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9084 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9092 if ac_fn_cxx_try_compile
"$LINENO"; then :
9093 # It does; now see whether it defined to _BIG_ENDIAN or not.
9094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9109 if ac_fn_cxx_try_compile
"$LINENO"; then :
9110 ac_cv_c_bigendian
=yes
9112 ac_cv_c_bigendian
=no
9114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9118 if test $ac_cv_c_bigendian = unknown
; then
9119 # Compile a test program.
9120 if test "$cross_compiling" = yes; then :
9121 # Try to guess by grepping values from an object file.
9122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9124 short int ascii_mm[] =
9125 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9126 short int ascii_ii[] =
9127 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9128 int use_ascii (int i) {
9129 return ascii_mm[i] + ascii_ii[i];
9131 short int ebcdic_ii[] =
9132 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9133 short int ebcdic_mm[] =
9134 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9135 int use_ebcdic (int i) {
9136 return ebcdic_mm[i] + ebcdic_ii[i];
9143 return use_ascii (foo) == use_ebcdic (foo);
9148 if ac_fn_cxx_try_compile
"$LINENO"; then :
9149 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9150 ac_cv_c_bigendian
=yes
9152 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9153 if test "$ac_cv_c_bigendian" = unknown
; then
9154 ac_cv_c_bigendian
=no
9156 # finding both strings is unlikely to happen, but who knows?
9157 ac_cv_c_bigendian
=unknown
9161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 $ac_includes_default
9170 /* Are we little or big endian? From Harbison&Steele. */
9174 char c[sizeof (long int)];
9177 return u.c[sizeof (long int) - 1] == 1;
9183 if ac_fn_cxx_try_run
"$LINENO"; then :
9184 ac_cv_c_bigendian
=no
9186 ac_cv_c_bigendian
=yes
9188 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9189 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9195 $as_echo "$ac_cv_c_bigendian" >&6; }
9196 case $ac_cv_c_bigendian in #(
9198 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9204 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9208 as_fn_error $?
"unknown endianness
9209 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9213 # ----------------------
9214 # Checks for C++ headers
9215 # ----------------------
9218 ac_cpp
='$CXXCPP $CPPFLAGS'
9219 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9220 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9221 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9223 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9224 if test -z "$CXXCPP"; then
9225 if ${ac_cv_prog_CXXCPP+:} false
; then :
9226 $as_echo_n "(cached) " >&6
9228 # Double quotes because CXXCPP needs to be expanded
9229 for CXXCPP
in "$CXX -E" "/lib/cpp"
9232 for ac_cxx_preproc_warn_flag
in '' yes
9234 # Use a header file that comes with gcc, so configuring glibc
9235 # with a fresh cross-compiler works.
9236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9237 # <limits.h> exists even on freestanding compilers.
9238 # On the NeXT, cc -E runs the code through the compiler's parser,
9239 # not just through cpp. "Syntax error" is here to catch this case.
9240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9243 # include <limits.h>
9245 # include <assert.h>
9249 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9252 # Broken: fails on valid input.
9255 rm -f conftest.err conftest.i conftest.
$ac_ext
9257 # OK, works on sane cases. Now check whether nonexistent headers
9258 # can be detected and how.
9259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 #include <ac_nonexistent.h>
9263 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9264 # Broken: success on invalid input.
9267 # Passes both tests.
9271 rm -f conftest.err conftest.i conftest.
$ac_ext
9274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9275 rm -f conftest.i conftest.err conftest.
$ac_ext
9276 if $ac_preproc_ok; then :
9281 ac_cv_prog_CXXCPP
=$CXXCPP
9284 CXXCPP
=$ac_cv_prog_CXXCPP
9286 ac_cv_prog_CXXCPP
=$CXXCPP
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9289 $as_echo "$CXXCPP" >&6; }
9291 for ac_cxx_preproc_warn_flag
in '' yes
9293 # Use a header file that comes with gcc, so configuring glibc
9294 # with a fresh cross-compiler works.
9295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9296 # <limits.h> exists even on freestanding compilers.
9297 # On the NeXT, cc -E runs the code through the compiler's parser,
9298 # not just through cpp. "Syntax error" is here to catch this case.
9299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9302 # include <limits.h>
9304 # include <assert.h>
9308 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9311 # Broken: fails on valid input.
9314 rm -f conftest.err conftest.i conftest.
$ac_ext
9316 # OK, works on sane cases. Now check whether nonexistent headers
9317 # can be detected and how.
9318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 #include <ac_nonexistent.h>
9322 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9323 # Broken: success on invalid input.
9326 # Passes both tests.
9330 rm -f conftest.err conftest.i conftest.
$ac_ext
9333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9334 rm -f conftest.i conftest.err conftest.
$ac_ext
9335 if $ac_preproc_ok; then :
9338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9341 See \`config.log' for more details" >&5
9342 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9343 See \`config.log' for more details" >&2;}; }
9347 ac_cpp
='$CXXCPP $CPPFLAGS'
9348 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9349 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9350 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9353 for ac_header
in unordered_map
9355 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9356 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9357 cat >>confdefs.h
<<_ACEOF
9358 #define HAVE_UNORDERED_MAP 1
9364 for ac_header
in tr1/unordered_map
9366 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9367 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9368 cat >>confdefs.h
<<_ACEOF
9369 #define HAVE_TR1_UNORDERED_MAP 1
9375 for ac_header
in ext
/hash_map
9377 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9378 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9379 cat >>confdefs.h
<<_ACEOF
9380 #define HAVE_EXT_HASH_MAP 1
9388 # Dependency checking.
9391 rm -rf .tst
2>/dev
/null
9392 mkdir .tst
2>/dev
/null
9393 if test -d .tst
; then
9398 rmdir .tst
2>/dev
/null
9400 DEPDIR
="${am__leading_dot}deps"
9402 ac_config_commands
="$ac_config_commands depdir"
9405 ac_config_commands
="$ac_config_commands gccdepdir"
9408 depcc
="$CXX" am_compiler_list
=
9410 am_depcomp
=$ac_aux_dir/depcomp
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9412 $as_echo_n "checking dependency style of $depcc... " >&6; }
9413 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9414 $as_echo_n "(cached) " >&6
9416 if test -f "$am_depcomp"; then
9417 # We make a subdir and do the tests there. Otherwise we can end up
9418 # making bogus files that we don't know about and never remove. For
9419 # instance it was reported that on HP-UX the gcc test will end up
9420 # making a dummy file named `D' -- because `-MD' means `put the output
9423 # Copy depcomp to subdir because otherwise we won't find it if we're
9424 # using a relative directory.
9425 cp "$am_depcomp" conftest.dir
9427 # We will build objects and dependencies in a subdirectory because
9428 # it helps to detect inapplicable dependency modes. For instance
9429 # both Tru64's cc and ICC support -MD to output dependencies as a
9430 # side effect of compilation, but ICC will put the dependencies in
9431 # the current directory while Tru64 will put them in the object
9435 am_cv_CXX_dependencies_compiler_type
=none
9436 if test "$am_compiler_list" = ""; then
9437 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9439 for depmode
in $am_compiler_list; do
9440 if test $depmode = none
; then break; fi
9442 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9443 # Setup a source with many dependencies, because some compilers
9444 # like to wrap large dependency lists on column 80 (with \), and
9445 # we should not choose a depcomp mode which is confused by this.
9447 # We need to recreate these files for each test, as the compiler may
9448 # overwrite some of them when testing with obscure command lines.
9449 # This happens at least with the AIX C compiler.
9451 for i
in 1 2 3 4 5 6; do
9452 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9453 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9454 # Solaris 8's {/usr,}/bin/sh.
9455 touch sub
/conftst
$i.h
9457 echo "include sub/conftest.Po" > confmf
9459 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9460 # mode. It turns out that the SunPro C++ compiler does not properly
9461 # handle `-M -o', and we need to detect this.
9462 depcmd
="depmode=$depmode \
9463 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9464 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9465 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9466 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9467 if env
$depcmd > conftest.err
2>&1 &&
9468 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9469 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9470 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9471 # icc doesn't choke on unknown options, it will just issue warnings
9472 # or remarks (even with -Werror). So we grep stderr for any message
9473 # that says an option was ignored or not supported.
9474 # When given -MP, icc 7.0 and 7.1 complain thusly:
9475 # icc: Command line warning: ignoring option '-M'; no argument required
9476 # The diagnosis changed in icc 8.0:
9477 # icc: Command line remark: option '-MP' not supported
9478 if (grep 'ignoring option' conftest.err ||
9479 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9480 am_cv_CXX_dependencies_compiler_type
=$depmode
9481 $as_echo "$as_me:$LINENO: success" >&5
9485 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9486 sed -e 's/^/| /' < conftest.err
>&5
9492 am_cv_CXX_dependencies_compiler_type
=none
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9497 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9498 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9499 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9500 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9510 # These libraries may be used by collect2.
9511 # We may need a special search path to get them linked.
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9513 $as_echo_n "checking for collect2 libraries... " >&6; }
9514 if ${gcc_cv_collect2_libs+:} false
; then :
9515 $as_echo_n "(cached) " >&6
9518 for libs
in '' -lld -lmld \
9519 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9520 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9526 /* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9541 if ac_fn_cxx_try_link
"$LINENO"; then :
9542 gcc_cv_collect2_libs
="$libs"; break
9544 rm -f core conftest.err conftest.
$ac_objext \
9545 conftest
$ac_exeext conftest.
$ac_ext
9548 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9551 $as_echo "$gcc_cv_collect2_libs" >&6; }
9552 case $gcc_cv_collect2_libs in
9554 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9558 # When building Ada code on Alpha, we need exc_resume which is usually in
9559 # -lexc. So test for it.
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9563 $as_echo_n "checking for library containing exc_resume... " >&6; }
9564 if ${ac_cv_search_exc_resume+:} false
; then :
9565 $as_echo_n "(cached) " >&6
9567 ac_func_search_save_LIBS
=$LIBS
9568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9581 return exc_resume ();
9586 for ac_lib
in '' exc
; do
9587 if test -z "$ac_lib"; then
9588 ac_res
="none required"
9591 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9593 if ac_fn_cxx_try_link
"$LINENO"; then :
9594 ac_cv_search_exc_resume
=$ac_res
9596 rm -f core conftest.err conftest.
$ac_objext \
9598 if ${ac_cv_search_exc_resume+:} false
; then :
9602 if ${ac_cv_search_exc_resume+:} false
; then :
9605 ac_cv_search_exc_resume
=no
9608 LIBS
=$ac_func_search_save_LIBS
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9611 $as_echo "$ac_cv_search_exc_resume" >&6; }
9612 ac_res
=$ac_cv_search_exc_resume
9613 if test "$ac_res" != no
; then :
9614 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9622 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9626 $as_echo_n "checking for library containing kstat_open... " >&6; }
9627 if ${ac_cv_search_kstat_open+:} false
; then :
9628 $as_echo_n "(cached) " >&6
9630 ac_func_search_save_LIBS
=$LIBS
9631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9644 return kstat_open ();
9649 for ac_lib
in '' kstat
; do
9650 if test -z "$ac_lib"; then
9651 ac_res
="none required"
9654 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9656 if ac_fn_cxx_try_link
"$LINENO"; then :
9657 ac_cv_search_kstat_open
=$ac_res
9659 rm -f core conftest.err conftest.
$ac_objext \
9661 if ${ac_cv_search_kstat_open+:} false
; then :
9665 if ${ac_cv_search_kstat_open+:} false
; then :
9668 ac_cv_search_kstat_open
=no
9671 LIBS
=$ac_func_search_save_LIBS
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9674 $as_echo "$ac_cv_search_kstat_open" >&6; }
9675 ac_res
=$ac_cv_search_kstat_open
9676 if test "$ac_res" != no
; then :
9677 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9681 EXTRA_GCC_LIBS
="$LIBS"
9685 # Some systems put ldexp and frexp in libm instead of libc; assume
9686 # they're both in the same place. jcf-dump needs them.
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9690 $as_echo_n "checking for library containing ldexp... " >&6; }
9691 if ${ac_cv_search_ldexp+:} false
; then :
9692 $as_echo_n "(cached) " >&6
9694 ac_func_search_save_LIBS
=$LIBS
9695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9698 /* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9713 for ac_lib
in '' m
; do
9714 if test -z "$ac_lib"; then
9715 ac_res
="none required"
9718 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9720 if ac_fn_cxx_try_link
"$LINENO"; then :
9721 ac_cv_search_ldexp
=$ac_res
9723 rm -f core conftest.err conftest.
$ac_objext \
9725 if ${ac_cv_search_ldexp+:} false
; then :
9729 if ${ac_cv_search_ldexp+:} false
; then :
9732 ac_cv_search_ldexp
=no
9735 LIBS
=$ac_func_search_save_LIBS
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9738 $as_echo "$ac_cv_search_ldexp" >&6; }
9739 ac_res
=$ac_cv_search_ldexp
9740 if test "$ac_res" != no
; then :
9741 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9749 # Some systems need dlopen
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9753 $as_echo_n "checking for library containing dlopen... " >&6; }
9754 if ${ac_cv_search_dlopen+:} false
; then :
9755 $as_echo_n "(cached) " >&6
9757 ac_func_search_save_LIBS
=$LIBS
9758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9761 /* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
9776 for ac_lib
in '' dl
; do
9777 if test -z "$ac_lib"; then
9778 ac_res
="none required"
9781 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9783 if ac_fn_cxx_try_link
"$LINENO"; then :
9784 ac_cv_search_dlopen
=$ac_res
9786 rm -f core conftest.err conftest.
$ac_objext \
9788 if ${ac_cv_search_dlopen+:} false
; then :
9792 if ${ac_cv_search_dlopen+:} false
; then :
9795 ac_cv_search_dlopen
=no
9798 LIBS
=$ac_func_search_save_LIBS
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9801 $as_echo "$ac_cv_search_dlopen" >&6; }
9802 ac_res
=$ac_cv_search_dlopen
9803 if test "$ac_res" != no
; then :
9804 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9812 # Use <inttypes.h> only if it exists,
9813 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9816 $as_echo_n "checking for inttypes.h... " >&6; }
9817 if ${gcc_cv_header_inttypes_h+:} false
; then :
9818 $as_echo_n "(cached) " >&6
9820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 #define __STDC_FORMAT_MACROS
9823 #include <sys/types.h>
9824 #include <inttypes.h>
9836 if ac_fn_cxx_try_compile
"$LINENO"; then :
9837 gcc_cv_header_inttypes_h
=yes
9839 gcc_cv_header_inttypes_h
=no
9841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9845 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9846 if test $gcc_cv_header_inttypes_h = yes; then
9848 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9852 # Look for the ZSTD package.
9860 # Check whether --with-zstd was given.
9861 if test "${with_zstd+set}" = set; then :
9866 # Check whether --with-zstd-include was given.
9867 if test "${with_zstd_include+set}" = set; then :
9868 withval
=$with_zstd_include;
9872 # Check whether --with-zstd-lib was given.
9873 if test "${with_zstd_lib+set}" = set; then :
9874 withval
=$with_zstd_lib;
9877 case "x$with_zstd" in
9883 *) ZSTD_INCLUDE
=$with_zstd/include
9884 ZSTD_LIB
=$with_zstd/lib
9887 if test "x$with_zstd_include" != x
; then
9888 ZSTD_INCLUDE
=$with_zstd_include
9890 if test "x$with_zstd_lib" != x
; then
9891 ZSTD_LIB
=$with_zstd_lib
9893 if test "x$ZSTD_INCLUDE" != x \
9894 && test "x$ZSTD_INCLUDE" != xno
; then
9895 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
9897 if test "x$ZSTD_LIB" != x \
9898 && test "x$ZSTD_LIB" != xno
; then
9899 ZSTD_LDFLAGS
=-L$ZSTD_LIB
9902 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
9903 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9906 $as_echo_n "checking for zstd.h... " >&6; }
9907 if ${gcc_cv_header_zstd_h+:} false
; then :
9908 $as_echo_n "(cached) " >&6
9910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9921 if ac_fn_cxx_try_compile
"$LINENO"; then :
9922 gcc_cv_header_zstd_h
=yes
9924 gcc_cv_header_zstd_h
=no
9926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
9930 $as_echo "$gcc_cv_header_zstd_h" >&6; }
9931 if test $gcc_cv_header_zstd_h = yes; then
9933 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
9937 # LTO can use zstd compression algorithm
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
9941 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
9942 if ${ac_cv_search_ZSTD_compress+:} false
; then :
9943 $as_echo_n "(cached) " >&6
9945 ac_func_search_save_LIBS
=$LIBS
9946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9955 char ZSTD_compress ();
9959 return ZSTD_compress ();
9964 for ac_lib
in '' zstd
; do
9965 if test -z "$ac_lib"; then
9966 ac_res
="none required"
9969 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9971 if ac_fn_cxx_try_link
"$LINENO"; then :
9972 ac_cv_search_ZSTD_compress
=$ac_res
9974 rm -f core conftest.err conftest.
$ac_objext \
9976 if ${ac_cv_search_ZSTD_compress+:} false
; then :
9980 if ${ac_cv_search_ZSTD_compress+:} false
; then :
9983 ac_cv_search_ZSTD_compress
=no
9986 LIBS
=$ac_func_search_save_LIBS
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
9989 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
9990 ac_res
=$ac_cv_search_ZSTD_compress
9991 if test "$ac_res" != no
; then :
9992 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10002 for ac_func
in times clock kill getrlimit setrlimit atoq \
10003 popen sysconf strsignal getrusage nl_langinfo \
10004 gettimeofday mbstowcs wcswidth mmap setlocale \
10005 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
10007 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10008 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10009 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10010 cat >>confdefs.h
<<_ACEOF
10011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10018 if test x
$ac_cv_func_mbstowcs = xyes
; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10020 $as_echo_n "checking whether mbstowcs works... " >&6; }
10021 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10022 $as_echo_n "(cached) " >&6
10024 if test "$cross_compiling" = yes; then :
10025 gcc_cv_func_mbstowcs_works
=yes
10027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 #include <stdlib.h>
10032 mbstowcs(0, "", 0);
10036 if ac_fn_cxx_try_run
"$LINENO"; then :
10037 gcc_cv_func_mbstowcs_works
=yes
10039 gcc_cv_func_mbstowcs_works
=no
10041 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10042 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10047 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10048 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10050 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10055 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10056 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10060 cat >>confdefs.h
<<_ACEOF
10061 #define ssize_t int
10066 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10067 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10071 cat >>confdefs.h
<<_ACEOF
10072 #define caddr_t char *
10079 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10080 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10081 gcc_header_sys_mman_h
=yes
10083 gcc_header_sys_mman_h
=no
10086 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10087 if test "x$ac_cv_func_mmap" = xyes
; then :
10093 if test "$gcc_header_sys_mman_h" != yes \
10094 ||
test "$gcc_func_mmap" != yes; then
10095 gcc_cv_func_mmap_file
=no
10096 gcc_cv_func_mmap_dev_zero
=no
10097 gcc_cv_func_mmap_anon
=no
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10100 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10101 if ${gcc_cv_func_mmap_file+:} false
; then :
10102 $as_echo_n "(cached) " >&6
10104 # Add a system to this blacklist if
10105 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10106 # memory area containing the same data that you'd get if you applied
10107 # read() to the same fd. The only system known to have a problem here
10108 # is VMS, where text files have record structure.
10111 gcc_cv_func_mmap_file
=no
;;
10113 gcc_cv_func_mmap_file
=yes;;
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10117 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10119 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10120 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10121 $as_echo_n "(cached) " >&6
10123 # Add a system to this blacklist if it has mmap() but /dev/zero
10124 # does not exist, or if mmapping /dev/zero does not give anonymous
10125 # zeroed pages with both the following properties:
10126 # 1. If you map N consecutive pages in with one call, and then
10127 # unmap any subset of those pages, the pages that were not
10128 # explicitly unmapped remain accessible.
10129 # 2. If you map two adjacent blocks of memory and then unmap them
10130 # both at once, they must both go away.
10131 # Systems known to be in this category are Windows (all variants),
10134 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10135 gcc_cv_func_mmap_dev_zero
=no
;;
10137 gcc_cv_func_mmap_dev_zero
=yes;;
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10141 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10143 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10145 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10146 if ${gcc_cv_decl_map_anon+:} false
; then :
10147 $as_echo_n "(cached) " >&6
10149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 #include <sys/types.h>
10152 #include <sys/mman.h>
10153 #include <unistd.h>
10155 #ifndef MAP_ANONYMOUS
10156 #define MAP_ANONYMOUS MAP_ANON
10162 int n = MAP_ANONYMOUS;
10167 if ac_fn_cxx_try_compile
"$LINENO"; then :
10168 gcc_cv_decl_map_anon
=yes
10170 gcc_cv_decl_map_anon
=no
10172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10175 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10177 if test $gcc_cv_decl_map_anon = no
; then
10178 gcc_cv_func_mmap_anon
=no
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10181 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10182 if ${gcc_cv_func_mmap_anon+:} false
; then :
10183 $as_echo_n "(cached) " >&6
10185 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10186 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10187 # doesn't give anonymous zeroed pages with the same properties listed
10188 # above for use of /dev/zero.
10189 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10191 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10192 gcc_cv_func_mmap_anon
=no
;;
10194 gcc_cv_func_mmap_anon
=yes;;
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10198 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10202 if test $gcc_cv_func_mmap_file = yes; then
10204 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10207 if test $gcc_cv_func_mmap_dev_zero = yes; then
10209 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10212 if test $gcc_cv_func_mmap_anon = yes; then
10214 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10221 # Under VMS, vfork works very differently than on Unix. The standard test
10222 # won't work, and it isn't easily adaptable. It makes more sense to
10224 ac_cv_func_vfork_works
=yes
10227 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10228 if test "x$ac_cv_type_pid_t" = xyes
; then :
10232 cat >>confdefs.h
<<_ACEOF
10238 for ac_header
in vfork.h
10240 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10241 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10242 cat >>confdefs.h
<<_ACEOF
10243 #define HAVE_VFORK_H 1
10249 for ac_func
in fork vfork
10251 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10252 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10253 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10254 cat >>confdefs.h
<<_ACEOF
10255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10261 if test "x$ac_cv_func_fork" = xyes
; then
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10263 $as_echo_n "checking for working fork... " >&6; }
10264 if ${ac_cv_func_fork_works+:} false
; then :
10265 $as_echo_n "(cached) " >&6
10267 if test "$cross_compiling" = yes; then :
10268 ac_cv_func_fork_works
=cross
10270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10272 $ac_includes_default
10277 /* By Ruediger Kuhlmann. */
10278 return fork () < 0;
10284 if ac_fn_cxx_try_run
"$LINENO"; then :
10285 ac_cv_func_fork_works
=yes
10287 ac_cv_func_fork_works
=no
10289 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10290 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10295 $as_echo "$ac_cv_func_fork_works" >&6; }
10298 ac_cv_func_fork_works
=$ac_cv_func_fork
10300 if test "x$ac_cv_func_fork_works" = xcross
; then
10302 *-*-amigaos* |
*-*-msdosdjgpp*)
10303 # Override, as these systems have only a dummy fork() stub
10304 ac_cv_func_fork_works
=no
10307 ac_cv_func_fork_works
=yes
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10311 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10313 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10314 if test "x$ac_cv_func_vfork" = xyes
; then
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10316 $as_echo_n "checking for working vfork... " >&6; }
10317 if ${ac_cv_func_vfork_works+:} false
; then :
10318 $as_echo_n "(cached) " >&6
10320 if test "$cross_compiling" = yes; then :
10321 ac_cv_func_vfork_works
=cross
10323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10325 /* Thanks to Paul Eggert for this test. */
10326 $ac_includes_default
10327 #include <sys/wait.h>
10328 #ifdef HAVE_VFORK_H
10329 # include <vfork.h>
10331 /* On some sparc systems, changes by the child to local and incoming
10332 argument registers are propagated back to the parent. The compiler
10333 is told about this with #include <vfork.h>, but some compilers
10334 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10335 static variable whose address is put into a register that is
10336 clobbered by the vfork. */
10339 sparc_address_test (int arg)
10341 sparc_address_test (arg) int arg;
10344 static pid_t child;
10362 pid_t parent = getpid ();
10365 sparc_address_test (0);
10370 /* Here is another test for sparc vfork register problems. This
10371 test uses lots of local variables, at least as many local
10372 variables as main has allocated so far including compiler
10373 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10374 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10375 reuse the register of parent for one of the local variables,
10376 since it will think that parent can't possibly be used any more
10377 in this routine. Assigning to the local variable will thus
10378 munge parent in the parent process. */
10380 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10381 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10382 /* Convince the compiler that p..p7 are live; otherwise, it might
10383 use the same hardware register for all 8 local variables. */
10384 if (p != p1 || p != p2 || p != p3 || p != p4
10385 || p != p5 || p != p6 || p != p7)
10388 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10389 from child file descriptors. If the child closes a descriptor
10390 before it execs or exits, this munges the parent's descriptor
10391 as well. Test for this by closing stdout in the child. */
10392 _exit(close(fileno(stdout)) != 0);
10397 while (wait(&status) != child)
10400 /* Was there some problem with vforking? */
10403 /* Did the child fail? (This shouldn't happen.) */
10406 /* Did the vfork/compiler bug occur? */
10407 || parent != getpid()
10409 /* Did the file descriptor bug occur? */
10410 || fstat(fileno(stdout), &st) != 0
10415 if ac_fn_cxx_try_run
"$LINENO"; then :
10416 ac_cv_func_vfork_works
=yes
10418 ac_cv_func_vfork_works
=no
10420 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10421 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10426 $as_echo "$ac_cv_func_vfork_works" >&6; }
10429 if test "x$ac_cv_func_fork_works" = xcross
; then
10430 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10432 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10435 if test "x$ac_cv_func_vfork_works" = xyes
; then
10437 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10441 $as_echo "#define vfork fork" >>confdefs.h
10444 if test "x$ac_cv_func_fork_works" = xyes
; then
10446 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10452 if test "X$prefix" = "XNONE"; then
10453 acl_final_prefix
="$ac_default_prefix"
10455 acl_final_prefix
="$prefix"
10457 if test "X$exec_prefix" = "XNONE"; then
10458 acl_final_exec_prefix
='${prefix}'
10460 acl_final_exec_prefix
="$exec_prefix"
10462 acl_save_prefix
="$prefix"
10463 prefix
="$acl_final_prefix"
10464 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10465 prefix
="$acl_save_prefix"
10468 # Check whether --with-gnu-ld was given.
10469 if test "${with_gnu_ld+set}" = set; then :
10470 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10475 # Prepare PATH_SEPARATOR.
10476 # The user is always right.
10477 if test "${PATH_SEPARATOR+set}" != set; then
10478 echo "#! /bin/sh" >conf$$.sh
10479 echo "exit 0" >>conf$$.sh
10481 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10489 if test "$GCC" = yes; then
10490 # Check if gcc -print-prog-name=ld gives a path.
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10492 $as_echo_n "checking for ld used by GCC... " >&6; }
10495 # gcc leaves a trailing carriage return which upsets mingw
10496 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10498 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10501 # Accept absolute paths.
10502 [\\/]* |
[A-Za-z
]:[\\/]*)
10503 re_direlt
='/[^/][^/]*/\.\./'
10504 # Canonicalize the path of ld
10505 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10506 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10507 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10509 test -z "$LD" && LD
="$ac_prog"
10512 # If it fails, then pretend we aren't using GCC.
10516 # If it is relative, then search for the first ld in PATH.
10517 with_gnu_ld
=unknown
10520 elif test "$with_gnu_ld" = yes; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10522 $as_echo_n "checking for GNU ld... " >&6; }
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10525 $as_echo_n "checking for non-GNU ld... " >&6; }
10527 if ${acl_cv_path_LD+:} false
; then :
10528 $as_echo_n "(cached) " >&6
10530 if test -z "$LD"; then
10531 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10532 for ac_dir
in $PATH; do
10533 test -z "$ac_dir" && ac_dir
=.
10534 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10535 acl_cv_path_LD
="$ac_dir/$ac_prog"
10536 # Check to see if the program is GNU ld. I'd rather use --version,
10537 # but apparently some GNU ld's only accept -v.
10538 # Break only if it was the GNU/non-GNU ld that we prefer.
10539 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10540 test "$with_gnu_ld" != no
&& break
10542 test "$with_gnu_ld" != yes && break
10548 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10552 LD
="$acl_cv_path_LD"
10553 if test -n "$LD"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10555 $as_echo "$LD" >&6; }
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10560 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10562 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10563 if ${acl_cv_prog_gnu_ld+:} false
; then :
10564 $as_echo_n "(cached) " >&6
10566 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10567 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10568 acl_cv_prog_gnu_ld
=yes
10570 acl_cv_prog_gnu_ld
=no
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10574 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10575 with_gnu_ld
=$acl_cv_prog_gnu_ld
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10580 $as_echo_n "checking for shared library run path origin... " >&6; }
10581 if ${acl_cv_rpath+:} false
; then :
10582 $as_echo_n "(cached) " >&6
10585 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10586 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10588 rm -f .
/conftest.sh
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10593 $as_echo "$acl_cv_rpath" >&6; }
10595 libext
="$acl_cv_libext"
10596 shlibext
="$acl_cv_shlibext"
10597 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10598 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10599 hardcode_direct
="$acl_cv_hardcode_direct"
10600 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10601 # Check whether --enable-rpath was given.
10602 if test "${enable_rpath+set}" = set; then :
10603 enableval
=$enable_rpath; :
10617 acl_save_prefix
="$prefix"
10618 prefix
="$acl_final_prefix"
10619 acl_save_exec_prefix
="$exec_prefix"
10620 exec_prefix
="$acl_final_exec_prefix"
10622 eval additional_includedir
=\"$includedir\"
10623 eval additional_libdir
=\"$libdir\"
10625 exec_prefix
="$acl_save_exec_prefix"
10626 prefix
="$acl_save_prefix"
10629 # Check whether --with-libiconv-prefix was given.
10630 if test "${with_libiconv_prefix+set}" = set; then :
10631 withval
=$with_libiconv_prefix;
10632 if test "X$withval" = "Xno"; then
10635 if test "X$withval" = "X"; then
10637 acl_save_prefix
="$prefix"
10638 prefix
="$acl_final_prefix"
10639 acl_save_exec_prefix
="$exec_prefix"
10640 exec_prefix
="$acl_final_exec_prefix"
10642 eval additional_includedir
=\"$includedir\"
10643 eval additional_libdir
=\"$libdir\"
10645 exec_prefix
="$acl_save_exec_prefix"
10646 prefix
="$acl_save_prefix"
10649 additional_includedir
="$withval/include"
10650 additional_libdir
="$withval/lib"
10661 names_already_handled
=
10662 names_next_round
='iconv '
10663 while test -n "$names_next_round"; do
10664 names_this_round
="$names_next_round"
10666 for name
in $names_this_round; do
10668 for n
in $names_already_handled; do
10669 if test "$n" = "$name"; then
10670 already_handled
=yes
10674 if test -z "$already_handled"; then
10675 names_already_handled
="$names_already_handled $name"
10676 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10677 eval value
=\"\
$HAVE_LIB$uppername\"
10678 if test -n "$value"; then
10679 if test "$value" = yes; then
10680 eval value
=\"\
$LIB$uppername\"
10681 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10682 eval value
=\"\
$LTLIB$uppername\"
10683 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10692 if test $use_additional = yes; then
10693 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10694 found_dir
="$additional_libdir"
10695 found_so
="$additional_libdir/lib$name.$shlibext"
10696 if test -f "$additional_libdir/lib$name.la"; then
10697 found_la
="$additional_libdir/lib$name.la"
10700 if test -f "$additional_libdir/lib$name.$libext"; then
10701 found_dir
="$additional_libdir"
10702 found_a
="$additional_libdir/lib$name.$libext"
10703 if test -f "$additional_libdir/lib$name.la"; then
10704 found_la
="$additional_libdir/lib$name.la"
10709 if test "X$found_dir" = "X"; then
10710 for x
in $LDFLAGS $LTLIBICONV; do
10712 acl_save_prefix
="$prefix"
10713 prefix
="$acl_final_prefix"
10714 acl_save_exec_prefix
="$exec_prefix"
10715 exec_prefix
="$acl_final_exec_prefix"
10717 exec_prefix
="$acl_save_exec_prefix"
10718 prefix
="$acl_save_prefix"
10722 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10723 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10725 found_so
="$dir/lib$name.$shlibext"
10726 if test -f "$dir/lib$name.la"; then
10727 found_la
="$dir/lib$name.la"
10730 if test -f "$dir/lib$name.$libext"; then
10732 found_a
="$dir/lib$name.$libext"
10733 if test -f "$dir/lib$name.la"; then
10734 found_la
="$dir/lib$name.la"
10740 if test "X$found_dir" != "X"; then
10745 if test "X$found_dir" != "X"; then
10746 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10747 if test "X$found_so" != "X"; then
10748 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10749 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10752 for x
in $ltrpathdirs; do
10753 if test "X$x" = "X$found_dir"; then
10758 if test -z "$haveit"; then
10759 ltrpathdirs
="$ltrpathdirs $found_dir"
10761 if test "$hardcode_direct" = yes; then
10762 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10764 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10765 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10767 for x
in $rpathdirs; do
10768 if test "X$x" = "X$found_dir"; then
10773 if test -z "$haveit"; then
10774 rpathdirs
="$rpathdirs $found_dir"
10778 for x
in $LDFLAGS $LIBICONV; do
10780 acl_save_prefix
="$prefix"
10781 prefix
="$acl_final_prefix"
10782 acl_save_exec_prefix
="$exec_prefix"
10783 exec_prefix
="$acl_final_exec_prefix"
10785 exec_prefix
="$acl_save_exec_prefix"
10786 prefix
="$acl_save_prefix"
10788 if test "X$x" = "X-L$found_dir"; then
10793 if test -z "$haveit"; then
10794 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10796 if test "$hardcode_minus_L" != no
; then
10797 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10799 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10805 if test "X$found_a" != "X"; then
10806 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10808 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10811 additional_includedir
=
10812 case "$found_dir" in
10814 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10815 additional_includedir
="$basedir/include"
10818 if test "X$additional_includedir" != "X"; then
10819 if test "X$additional_includedir" != "X/usr/include"; then
10821 if test "X$additional_includedir" = "X/usr/local/include"; then
10822 if test -n "$GCC"; then
10824 linux
*) haveit
=yes;;
10828 if test -z "$haveit"; then
10829 for x
in $CPPFLAGS $INCICONV; do
10831 acl_save_prefix
="$prefix"
10832 prefix
="$acl_final_prefix"
10833 acl_save_exec_prefix
="$exec_prefix"
10834 exec_prefix
="$acl_final_exec_prefix"
10836 exec_prefix
="$acl_save_exec_prefix"
10837 prefix
="$acl_save_prefix"
10839 if test "X$x" = "X-I$additional_includedir"; then
10844 if test -z "$haveit"; then
10845 if test -d "$additional_includedir"; then
10846 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10852 if test -n "$found_la"; then
10853 save_libdir
="$libdir"
10854 case "$found_la" in
10855 */* |
*\\*) .
"$found_la" ;;
10856 *) .
"./$found_la" ;;
10858 libdir
="$save_libdir"
10859 for dep
in $dependency_libs; do
10862 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10863 if test "X$additional_libdir" != "X/usr/lib"; then
10865 if test "X$additional_libdir" = "X/usr/local/lib"; then
10866 if test -n "$GCC"; then
10868 linux
*) haveit
=yes;;
10872 if test -z "$haveit"; then
10874 for x
in $LDFLAGS $LIBICONV; do
10876 acl_save_prefix
="$prefix"
10877 prefix
="$acl_final_prefix"
10878 acl_save_exec_prefix
="$exec_prefix"
10879 exec_prefix
="$acl_final_exec_prefix"
10881 exec_prefix
="$acl_save_exec_prefix"
10882 prefix
="$acl_save_prefix"
10884 if test "X$x" = "X-L$additional_libdir"; then
10889 if test -z "$haveit"; then
10890 if test -d "$additional_libdir"; then
10891 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10895 for x
in $LDFLAGS $LTLIBICONV; do
10897 acl_save_prefix
="$prefix"
10898 prefix
="$acl_final_prefix"
10899 acl_save_exec_prefix
="$exec_prefix"
10900 exec_prefix
="$acl_final_exec_prefix"
10902 exec_prefix
="$acl_save_exec_prefix"
10903 prefix
="$acl_save_prefix"
10905 if test "X$x" = "X-L$additional_libdir"; then
10910 if test -z "$haveit"; then
10911 if test -d "$additional_libdir"; then
10912 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10919 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10920 if test "$enable_rpath" != no
; then
10922 for x
in $rpathdirs; do
10923 if test "X$x" = "X$dir"; then
10928 if test -z "$haveit"; then
10929 rpathdirs
="$rpathdirs $dir"
10932 for x
in $ltrpathdirs; do
10933 if test "X$x" = "X$dir"; then
10938 if test -z "$haveit"; then
10939 ltrpathdirs
="$ltrpathdirs $dir"
10944 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10947 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10950 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10951 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10957 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10958 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10964 if test "X$rpathdirs" != "X"; then
10965 if test -n "$hardcode_libdir_separator"; then
10967 for found_dir
in $rpathdirs; do
10968 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10970 acl_save_libdir
="$libdir"
10972 eval flag
=\"$hardcode_libdir_flag_spec\"
10973 libdir
="$acl_save_libdir"
10974 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10976 for found_dir
in $rpathdirs; do
10977 acl_save_libdir
="$libdir"
10978 libdir
="$found_dir"
10979 eval flag
=\"$hardcode_libdir_flag_spec\"
10980 libdir
="$acl_save_libdir"
10981 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10985 if test "X$ltrpathdirs" != "X"; then
10986 for found_dir
in $ltrpathdirs; do
10987 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10998 $as_echo_n "checking for iconv... " >&6; }
10999 if ${am_cv_func_iconv+:} false
; then :
11000 $as_echo_n "(cached) " >&6
11003 am_cv_func_iconv
="no, consider installing GNU libiconv"
11005 am_save_CPPFLAGS
="$CPPFLAGS"
11006 CPPFLAGS
="$CPPFLAGS $INCICONV"
11007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009 #include <stdlib.h>
11014 iconv_t cd = iconv_open("","");
11015 iconv(cd,NULL,NULL,NULL,NULL);
11021 if ac_fn_cxx_try_link
"$LINENO"; then :
11022 am_cv_func_iconv
=yes
11024 rm -f core conftest.err conftest.
$ac_objext \
11025 conftest
$ac_exeext conftest.
$ac_ext
11026 CPPFLAGS
="$am_save_CPPFLAGS"
11028 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11029 for _libs
in .libs _libs
; do
11030 am_save_CPPFLAGS
="$CPPFLAGS"
11031 am_save_LIBS
="$LIBS"
11032 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11033 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036 #include <stdlib.h>
11041 iconv_t cd = iconv_open("","");
11042 iconv(cd,NULL,NULL,NULL,NULL);
11048 if ac_fn_cxx_try_link
"$LINENO"; then :
11049 INCICONV
="-I../libiconv/include"
11050 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11051 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11052 am_cv_lib_iconv
=yes
11053 am_cv_func_iconv
=yes
11055 rm -f core conftest.err conftest.
$ac_objext \
11056 conftest
$ac_exeext conftest.
$ac_ext
11057 CPPFLAGS
="$am_save_CPPFLAGS"
11058 LIBS
="$am_save_LIBS"
11059 if test "$am_cv_func_iconv" = "yes"; then
11065 if test "$am_cv_func_iconv" != yes; then
11066 am_save_CPPFLAGS
="$CPPFLAGS"
11067 am_save_LIBS
="$LIBS"
11068 CPPFLAGS
="$CPPFLAGS $INCICONV"
11069 LIBS
="$LIBS $LIBICONV"
11070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072 #include <stdlib.h>
11077 iconv_t cd = iconv_open("","");
11078 iconv(cd,NULL,NULL,NULL,NULL);
11084 if ac_fn_cxx_try_link
"$LINENO"; then :
11085 am_cv_lib_iconv
=yes
11086 am_cv_func_iconv
=yes
11088 rm -f core conftest.err conftest.
$ac_objext \
11089 conftest
$ac_exeext conftest.
$ac_ext
11090 CPPFLAGS
="$am_save_CPPFLAGS"
11091 LIBS
="$am_save_LIBS"
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11096 $as_echo "$am_cv_func_iconv" >&6; }
11097 if test "$am_cv_func_iconv" = yes; then
11099 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11102 if test "$am_cv_lib_iconv" = yes; then
11104 for element
in $INCICONV; do
11106 for x
in $CPPFLAGS; do
11108 acl_save_prefix
="$prefix"
11109 prefix
="$acl_final_prefix"
11110 acl_save_exec_prefix
="$exec_prefix"
11111 exec_prefix
="$acl_final_exec_prefix"
11113 exec_prefix
="$acl_save_exec_prefix"
11114 prefix
="$acl_save_prefix"
11116 if test "X$x" = "X$element"; then
11121 if test -z "$haveit"; then
11122 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11127 $as_echo_n "checking how to link with libiconv... " >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11129 $as_echo "$LIBICONV" >&6; }
11137 if test "$am_cv_func_iconv" = yes; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11139 $as_echo_n "checking for iconv declaration... " >&6; }
11140 if ${am_cv_proto_iconv+:} false
; then :
11141 $as_echo_n "(cached) " >&6
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 #include <stdlib.h>
11153 #if defined(__STDC__) || defined(__cplusplus)
11154 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11167 if ac_fn_cxx_try_compile
"$LINENO"; then :
11168 am_cv_proto_iconv_arg1
=""
11170 am_cv_proto_iconv_arg1
="const"
11172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11173 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);"
11176 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11178 }$am_cv_proto_iconv" >&5
11180 }$am_cv_proto_iconv" >&6; }
11182 cat >>confdefs.h
<<_ACEOF
11183 #define ICONV_CONST $am_cv_proto_iconv_arg1
11189 # Until we have in-tree GNU iconv:
11191 if test -f "$LTLIBICONV"; then
11192 LIBICONV_DEP
=$LTLIBICONV
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11198 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11199 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11200 $as_echo_n "(cached) " >&6
11202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11204 #include <locale.h>
11213 if ac_fn_cxx_try_link
"$LINENO"; then :
11214 am_cv_val_LC_MESSAGES
=yes
11216 am_cv_val_LC_MESSAGES
=no
11218 rm -f core conftest.err conftest.
$ac_objext \
11219 conftest
$ac_exeext conftest.
$ac_ext
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11222 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11223 if test $am_cv_val_LC_MESSAGES = yes; then
11225 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11232 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11233 if ${am_cv_langinfo_codeset+:} false
; then :
11234 $as_echo_n "(cached) " >&6
11236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238 #include <langinfo.h>
11242 char* cs = nl_langinfo(CODESET);
11247 if ac_fn_cxx_try_link
"$LINENO"; then :
11248 am_cv_langinfo_codeset
=yes
11250 am_cv_langinfo_codeset
=no
11252 rm -f core conftest.err conftest.
$ac_objext \
11253 conftest
$ac_exeext conftest.
$ac_ext
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11257 $as_echo "$am_cv_langinfo_codeset" >&6; }
11258 if test $am_cv_langinfo_codeset = yes; then
11260 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11265 # We will need to find libiberty.h and ansidecl.h
11266 saved_CFLAGS
="$CFLAGS"
11267 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11268 saved_CXXFLAGS
="$CXXFLAGS"
11269 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11271 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11272 # normal autoconf function for these. But force definition of
11273 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11274 # basename handling in libiberty.h.
11275 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11276 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11277 #undef HAVE_DECL_BASENAME
11278 #define HAVE_DECL_BASENAME 1
11279 #include \"ansidecl.h\"
11280 #include \"system.h\"
11282 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11288 cat >>confdefs.h
<<_ACEOF
11289 #define HAVE_DECL_BASENAME $ac_have_decl
11291 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11292 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11293 #undef HAVE_DECL_BASENAME
11294 #define HAVE_DECL_BASENAME 1
11295 #include \"ansidecl.h\"
11296 #include \"system.h\"
11298 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11304 cat >>confdefs.h
<<_ACEOF
11305 #define HAVE_DECL_STRSTR $ac_have_decl
11309 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11310 madvise stpcpy strnlen strsignal strverscmp \
11311 strtol strtoul strtoll strtoull setenv unsetenv \
11312 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11313 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
11315 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11317 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11318 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11319 $as_echo_n "(cached) " >&6
11321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11324 #define $ac_tr_decl 1
11326 #include "ansidecl.h"
11327 #include "system.h"
11333 char *(*pfn) = (char *(*)) $ac_func ;
11339 if ac_fn_cxx_try_compile
"$LINENO"; then :
11340 eval "gcc_cv_have_decl_$ac_func=yes"
11342 eval "gcc_cv_have_decl_$ac_func=no"
11344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11347 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11349 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11350 #define $ac_tr_decl 1
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11356 #define $ac_tr_decl 0
11364 for ac_func
in getrlimit setrlimit getrusage
11366 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11368 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11369 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11370 $as_echo_n "(cached) " >&6
11372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11375 #define $ac_tr_decl 1
11377 #include "ansidecl.h"
11378 #include "system.h"
11379 #ifdef HAVE_SYS_RESOURCE_H
11380 #include <sys/resource.h>
11388 char *(*pfn) = (char *(*)) $ac_func ;
11394 if ac_fn_cxx_try_compile
"$LINENO"; then :
11395 eval "gcc_cv_have_decl_$ac_func=yes"
11397 eval "gcc_cv_have_decl_$ac_func=no"
11399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11402 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11405 #define $ac_tr_decl 1
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11411 #define $ac_tr_decl 0
11419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11422 #include "ansidecl.h"
11423 #include "system.h"
11424 #ifdef HAVE_SYS_RESOURCE_H
11425 #include <sys/resource.h>
11436 if ac_fn_cxx_try_compile
"$LINENO"; then :
11440 $as_echo "#define rlim_t long" >>confdefs.h
11443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11445 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11446 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11447 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11448 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11449 for ac_func
in ldgetname
11451 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11453 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11454 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11455 $as_echo_n "(cached) " >&6
11457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11460 #define $ac_tr_decl 1
11462 #include "ansidecl.h"
11463 #include "system.h"
11464 #ifdef HAVE_LDFCN_H
11475 char *(*pfn) = (char *(*)) $ac_func ;
11481 if ac_fn_cxx_try_compile
"$LINENO"; then :
11482 eval "gcc_cv_have_decl_$ac_func=yes"
11484 eval "gcc_cv_have_decl_$ac_func=no"
11486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11489 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11491 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11492 #define $ac_tr_decl 1
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11498 #define $ac_tr_decl 0
11506 for ac_func
in times
11508 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11510 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11511 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11512 $as_echo_n "(cached) " >&6
11514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11517 #define $ac_tr_decl 1
11519 #include "ansidecl.h"
11520 #include "system.h"
11521 #ifdef HAVE_SYS_TIMES_H
11522 #include <sys/times.h>
11530 char *(*pfn) = (char *(*)) $ac_func ;
11536 if ac_fn_cxx_try_compile
"$LINENO"; then :
11537 eval "gcc_cv_have_decl_$ac_func=yes"
11539 eval "gcc_cv_have_decl_$ac_func=no"
11541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11544 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11546 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11547 #define $ac_tr_decl 1
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11553 #define $ac_tr_decl 0
11561 for ac_func
in sigaltstack
11563 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11565 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11566 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11567 $as_echo_n "(cached) " >&6
11569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11572 #define $ac_tr_decl 1
11574 #include "ansidecl.h"
11575 #include "system.h"
11576 #include <signal.h>
11583 char *(*pfn) = (char *(*)) $ac_func ;
11589 if ac_fn_cxx_try_compile
"$LINENO"; then :
11590 eval "gcc_cv_have_decl_$ac_func=yes"
11592 eval "gcc_cv_have_decl_$ac_func=no"
11594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11597 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11600 #define $ac_tr_decl 1
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11606 #define $ac_tr_decl 0
11614 # More time-related stuff.
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11616 $as_echo_n "checking for struct tms... " >&6; }
11617 if ${ac_cv_struct_tms+:} false
; then :
11618 $as_echo_n "(cached) " >&6
11621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11624 #include "ansidecl.h"
11625 #include "system.h"
11626 #ifdef HAVE_SYS_TIMES_H
11627 #include <sys/times.h>
11638 if ac_fn_cxx_try_compile
"$LINENO"; then :
11639 ac_cv_struct_tms
=yes
11641 ac_cv_struct_tms
=no
11643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11646 $as_echo "$ac_cv_struct_tms" >&6; }
11647 if test $ac_cv_struct_tms = yes; then
11649 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11653 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11654 # revisit after autoconf 2.50.
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11656 $as_echo_n "checking for clock_t... " >&6; }
11657 if ${gcc_cv_type_clock_t+:} false
; then :
11658 $as_echo_n "(cached) " >&6
11661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11664 #include "ansidecl.h"
11665 #include "system.h"
11675 if ac_fn_cxx_try_compile
"$LINENO"; then :
11676 gcc_cv_type_clock_t
=yes
11678 gcc_cv_type_clock_t
=no
11680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11683 $as_echo "$gcc_cv_type_clock_t" >&6; }
11684 if test $gcc_cv_type_clock_t = yes; then
11686 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11690 # Check if F_SETLKW is supported by fcntl.
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11692 $as_echo_n "checking for F_SETLKW... " >&6; }
11693 if ${ac_cv_f_setlkw+:} false
; then :
11694 $as_echo_n "(cached) " >&6
11697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h. */
11710 return fcntl (1, F_SETLKW, &fl);
11715 if ac_fn_cxx_try_compile
"$LINENO"; then :
11720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11723 $as_echo "$ac_cv_f_setlkw" >&6; }
11724 if test $ac_cv_f_setlkw = yes; then
11726 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11730 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11731 CFLAGS
="$saved_CFLAGS"
11732 CXXFLAGS
="$saved_CXXFLAGS"
11734 # mkdir takes a single argument on some systems.
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11736 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11737 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
11738 $as_echo_n "(cached) " >&6
11740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11743 #include <sys/types.h>
11744 #ifdef HAVE_SYS_STAT_H
11745 # include <sys/stat.h>
11747 #ifdef HAVE_UNISTD_H
11748 # include <unistd.h>
11750 #ifdef HAVE_DIRECT_H
11751 # include <direct.h>
11761 if ac_fn_cxx_try_compile
"$LINENO"; then :
11762 gcc_cv_mkdir_takes_one_arg
=no
11764 gcc_cv_mkdir_takes_one_arg
=yes
11766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11769 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11770 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11772 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11783 # With Setjmp/Longjmp based exception handling.
11784 # Check whether --enable-sjlj-exceptions was given.
11785 if test "${enable_sjlj_exceptions+set}" = set; then :
11786 enableval
=$enable_sjlj_exceptions; case $target in
11788 if test $enableval != yes; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11790 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11795 force_sjlj_exceptions
=yes
11799 force_sjlj_exceptions
=yes
11803 force_sjlj_exceptions
=yes
11807 force_sjlj_exceptions
=no
11812 if test $force_sjlj_exceptions = yes; then
11813 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11815 cat >>confdefs.h
<<_ACEOF
11816 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11821 # --------------------------------------------------------
11822 # Build, host, and target specific configuration fragments
11823 # --------------------------------------------------------
11825 # Collect build-machine-specific information.
11826 .
${srcdir}/config.build ||
exit 1
11828 # Collect host-machine-specific information.
11829 .
${srcdir}/config.
host ||
exit 1
11833 # Collect target-machine-specific information.
11834 .
${srcdir}/config.gcc ||
exit 1
11836 extra_objs
="${host_extra_objs} ${extra_objs}"
11837 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11839 # Default the target-machine variables that were not explicitly set.
11840 if test x
"$tm_file" = x
11841 then tm_file
=$cpu_type/$cpu_type.h
; fi
11843 if test x
"$extra_headers" = x
11844 then extra_headers
=; fi
11846 if test x
$md_file = x
11847 then md_file
=$cpu_type/$cpu_type.md
; fi
11849 if test x
$out_file = x
11850 then out_file
=$cpu_type/$cpu_type.c
; fi
11852 if test x
"$tmake_file" = x
11853 then tmake_file
=$cpu_type/t-
$cpu_type
11856 # Support --enable-initfini-array.
11857 if test x
$enable_initfini_array != xno
; then
11858 tm_file
="${tm_file} initfini-array.h"
11861 if test x
"$dwarf2" = xyes
11862 then tm_file
="$tm_file tm-dwarf2.h"
11865 # Say what files are being used for the output code and MD file.
11866 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11867 echo "Using \`$srcdir/config/$md_file' as machine description file."
11869 # If any of the xm_file variables contain nonexistent files, warn
11870 # about them and drop them.
11873 for x
in $build_xm_file; do
11874 if test -f $srcdir/config
/$x
11876 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11877 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11880 build_xm_file
="$bx"
11883 for x
in $host_xm_file; do
11884 if test -f $srcdir/config
/$x
11886 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11887 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11893 for x
in $xm_file; do
11894 if test -f $srcdir/config
/$x
11896 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11897 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11903 for f
in $tm_file; do
11906 if test $count = ax
; then
11907 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11909 echo "Using the following target machine macro files:"
11910 for f
in $tm_file; do
11911 echo " $srcdir/config/$f"
11915 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11917 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11921 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11923 cat >>confdefs.h
<<_ACEOF
11924 #define HAVE_GNU_LD $gnu_ld_bool
11928 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11930 cat >>confdefs.h
<<_ACEOF
11931 #define HAVE_GNU_AS $gnu_as_bool
11936 for f
in $host_xm_file; do
11939 if test $count = a
; then
11941 elif test $count = ax
; then
11942 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11944 echo "Using the following host machine macro files:"
11945 for f
in $host_xm_file; do
11946 echo " $srcdir/config/$f"
11949 echo "Using ${out_host_hook_obj} for host machine hooks."
11951 if test "$host_xm_file" != "$build_xm_file"; then
11953 for f
in $build_xm_file; do
11956 if test $count = a
; then
11958 elif test $count = ax
; then
11959 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11961 echo "Using the following build machine macro files:"
11962 for f
in $build_xm_file; do
11963 echo " $srcdir/config/$f"
11968 if test -n "$configured_native_system_header_dir"; then
11969 native_system_header_dir
=$configured_native_system_header_dir
11971 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11975 powerpc
*-*-darwin*)
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11977 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11978 if ${gcc_cv_mcontext_underscores+:} false
; then :
11979 $as_echo_n "(cached) " >&6
11981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11984 #include <sys/cdefs.h>
11985 #include <sys/signal.h>
11986 #include <ucontext.h>
11987 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11990 if ac_fn_cxx_try_compile
"$LINENO"; then :
11991 gcc_cv_mcontext_underscores
=no
11993 gcc_cv_mcontext_underscores
=yes
11995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11998 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11999 if test $gcc_cv_mcontext_underscores = yes; then
12001 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12011 # Check if a valid thread package
12012 case ${enable_threads} in
12015 target_thread_file
='single'
12019 target_thread_file
='single'
12021 aix | dce | lynx | mipssde | posix | rtems | \
12022 single | tpf | vxworks | win32
)
12023 target_thread_file
=${enable_threads}
12026 echo "${enable_threads} is an unknown thread package" 1>&2
12031 if test x
${thread_file} = x
; then
12032 # No thread file set by target-specific clauses in config.gcc,
12033 # so use file chosen by default logic above
12034 thread_file
=${target_thread_file}
12042 if test x
$enable___cxa_atexit = xyes || \
12043 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12044 if test x
$host = x
$target; then
12046 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12047 # keyed to flag_use_cxa_atexit
12055 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12056 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12059 echo "__cxa_atexit can't be enabled on this target"
12065 # We can't check for __cxa_atexit when building a cross, so assume
12069 if test x
$use_cxa_atexit = xyes
; then
12071 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12076 # Look for a file containing extra machine modes.
12077 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12078 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12081 cat >>confdefs.h
<<_ACEOF
12082 #define EXTRA_MODES_FILE "config/$extra_modes"
12087 # Convert extra_options into a form suitable for Makefile use.
12090 for f
in $extra_options; do
12091 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12092 all_opt_files
="$all_opt_files $srcdir/config/$f"
12096 # auto-host.h is the file containing items generated by autoconf and is
12097 # the first file included by config.h.
12098 # If host=build, it is correct to have bconfig include auto-host.h
12099 # as well. If host!=build, we are in error and need to do more
12100 # work to find out the build config parameters.
12101 if test x
$host = x
$build
12103 build_auto
=auto-host.h
12105 # We create a subdir, then run autoconf in the subdir.
12106 # To prevent recursion we set host and build for the new
12107 # invocation of configure to the build for this invocation
12114 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12115 *) realsrcdir
=..
/${srcdir};;
12117 # Clearing GMPINC is necessary to prevent host headers being
12118 # used by the build compiler. Defining GENERATOR_FILE stops
12119 # system.h from including gmp.h.
12120 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12121 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12122 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12123 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
12124 ${realsrcdir}/configure \
12125 --enable-languages=${enable_languages-all} \
12126 --target=$target_alias --host=$build_alias --build=$build_alias
12128 # We just finished tests for the build machine, so rename
12129 # the file auto-build.h in the gcc directory.
12130 mv auto-host.h ..
/auto-build.h
12133 build_auto
=auto-build.h
12137 tm_file
="${tm_file} defaults.h"
12138 tm_p_file
="${tm_p_file} tm-preds.h"
12139 tm_d_file
="${tm_d_file} defaults.h"
12140 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12141 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12142 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12143 # put this back in temporarily.
12144 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12150 # Compile in configure arguments.
12151 if test -f configargs.h
; then
12152 # Being re-configured.
12153 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12154 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12155 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12156 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12159 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12162 # Double all backslashes and backslash all quotes to turn
12163 # gcc_config_arguments into a C string.
12164 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12165 $gcc_config_arguments
12167 gcc_config_arguments_str
=`cat conftest.out`
12170 cat > configargs.h
<<EOF
12171 /* Generated automatically. */
12172 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12173 static const char thread_model[] = "$thread_file";
12175 static const struct {
12176 const char *name, *value;
12177 } configure_default_options[] = $configure_default_options;
12180 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12181 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12182 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12183 if test -f $srcdir/REVISION
; then
12184 gcc_REVISION
=`cat $srcdir/REVISION`
12188 cat > plugin-version.h
<<EOF
12189 #include "configargs.h"
12191 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12192 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12193 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12194 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12196 static char basever[] = "$gcc_BASEVER";
12197 static char datestamp[] = "$gcc_DATESTAMP";
12198 static char devphase[] = "$gcc_DEVPHASE";
12199 static char revision[] = "$gcc_REVISION";
12201 /* FIXME plugins: We should make the version information more precise.
12202 One way to do is to add a checksum. */
12204 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12205 devphase, revision,
12206 configuration_arguments};
12209 # Determine what GCC version number to use in filesystem paths.
12211 get_gcc_base_ver
="cat"
12213 # Check whether --with-gcc-major-version-only was given.
12214 if test "${with_gcc_major_version_only+set}" = set; then :
12215 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12216 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12224 # Internationalization
12225 # If we haven't got the data from the intl directory,
12226 # assume NLS is disabled.
12235 if test -f ..
/intl
/config.intl
; then
12236 . ..
/intl
/config.intl
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12239 $as_echo_n "checking whether NLS is requested... " >&6; }
12240 if test x
"$USE_NLS" != xyes
; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12245 $as_echo "yes" >&6; }
12247 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12251 $as_echo_n "checking for catalogs to be installed... " >&6; }
12252 # Look for .po and .gmo files in the source directory.
12255 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12256 # If there aren't any .gmo files the shell will give us the
12257 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12259 case "$cat" in *\
**)
12262 # The quadruple backslash is collapsed to a double backslash
12263 # by the backticks, then collapsed again by the double quotes,
12264 # leaving us with one backslash in the sed expression (right
12265 # before the dot that mustn't act as a wildcard).
12266 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12267 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12268 # The user is allowed to set LINGUAS to a list of languages to
12269 # install catalogs for. If it's empty that means "all of them."
12270 if test "x$LINGUAS" = x
; then
12271 CATALOGS
="$CATALOGS $cat"
12272 XLINGUAS
="$XLINGUAS $lang"
12274 case "$LINGUAS" in *$lang*)
12275 CATALOGS
="$CATALOGS $cat"
12276 XLINGUAS
="$XLINGUAS $lang"
12281 LINGUAS
="$XLINGUAS"
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12283 $as_echo "$LINGUAS" >&6; }
12296 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12297 # -liconv on the link line twice.
12298 case "$LIBINTL" in *$LIBICONV*)
12302 # Check whether --enable-secureplt was given.
12303 if test "${enable_secureplt+set}" = set; then :
12304 enableval
=$enable_secureplt;
12308 # Check whether --enable-mingw-wildcard was given.
12309 if test "${enable_mingw_wildcard+set}" = set; then :
12310 enableval
=$enable_mingw_wildcard;
12312 enable_mingw_wildcard
=platform
12315 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12317 cat >>confdefs.h
<<_ACEOF
12318 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12323 # Check whether --enable-large-address-aware was given.
12324 if test "${enable_large_address_aware+set}" = set; then :
12325 enableval
=$enable_large_address_aware;
12328 if test x
"$enable_large_address_aware" = xyes
; then :
12330 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12334 # Check whether --enable-leading-mingw64-underscores was given.
12335 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12336 enableval
=$enable_leading_mingw64_underscores;
12339 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12341 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12345 # Check whether --enable-cld was given.
12346 if test "${enable_cld+set}" = set; then :
12347 enableval
=$enable_cld;
12353 # Check whether --enable-frame-pointer was given.
12354 if test "${enable_frame_pointer+set}" = set; then :
12355 enableval
=$enable_frame_pointer;
12359 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12360 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12361 enable_frame_pointer
=no
12364 enable_frame_pointer
=yes
12372 i
[34567]86-*-* | x86_64-
*-*)
12373 if test "x$enable_cld" = xyes
; then
12374 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12376 if test "x$enable_frame_pointer" = xyes
; then
12377 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12382 # Windows32 Registry support for specifying GCC installation paths.
12383 # Check whether --enable-win32-registry was given.
12384 if test "${enable_win32_registry+set}" = set; then :
12385 enableval
=$enable_win32_registry;
12390 win32 | pe | cygwin
* | mingw32
*)
12391 if test "x$enable_win32_registry" != xno
; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12393 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12394 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12395 $as_echo_n "(cached) " >&6
12397 ac_func_search_save_LIBS
=$LIBS
12398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12407 char RegOpenKeyExA ();
12411 return RegOpenKeyExA ();
12416 for ac_lib
in '' advapi32
; do
12417 if test -z "$ac_lib"; then
12418 ac_res
="none required"
12421 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12423 if ac_fn_cxx_try_link
"$LINENO"; then :
12424 ac_cv_search_RegOpenKeyExA
=$ac_res
12426 rm -f core conftest.err conftest.
$ac_objext \
12428 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12432 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12435 ac_cv_search_RegOpenKeyExA
=no
12437 rm conftest.
$ac_ext
12438 LIBS
=$ac_func_search_save_LIBS
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12441 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12442 ac_res
=$ac_cv_search_RegOpenKeyExA
12443 if test "$ac_res" != no
; then :
12444 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12447 enable_win32_registry
=no
12452 if test "x$enable_win32_registry" != xno
; then
12454 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12457 if test "x$enable_win32_registry" != xyes \
12458 && test "x$enable_win32_registry" != x
; then
12460 cat >>confdefs.h
<<_ACEOF
12461 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12469 # Get an absolute path to the GCC top-level source directory
12470 holddir
=`${PWDCMD-pwd}`
12472 topdir
=`${PWDCMD-pwd}`
12475 # Conditionalize the makefile for this host machine.
12477 for f
in ${host_xmake_file}
12479 if test -f ${srcdir}/config
/$f
12481 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12485 # Conditionalize the makefile for this target machine.
12487 for f
in ${tmake_file}
12489 if test -f ${srcdir}/config
/$f
12491 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12494 tmake_file
="${tmake_file_}"
12496 out_object_file
=`basename $out_file .c`.o
12497 common_out_object_file
=`basename $common_out_file .c`.o
12499 tm_file_list
="options.h"
12500 tm_include_list
="options.h insn-constants.h"
12501 for f
in $tm_file; do
12504 f
=`echo $f | sed 's/^..//'`
12505 tm_file_list
="${tm_file_list} $f"
12506 tm_include_list
="${tm_include_list} $f"
12509 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12510 tm_include_list
="${tm_include_list} $f"
12513 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12514 tm_include_list
="${tm_include_list} config/$f"
12521 for f
in $tm_p_file; do
12524 tm_p_file_list
="${tm_p_file_list} $f"
12525 tm_p_include_list
="${tm_p_include_list} $f"
12528 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12529 tm_p_include_list
="${tm_p_include_list} config/$f"
12534 tm_d_include_list
="options.h insn-constants.h"
12535 for f
in $tm_d_file; do
12538 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12539 tm_d_include_list
="${tm_d_include_list} $f"
12542 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12543 tm_d_include_list
="${tm_d_include_list} config/$f"
12550 for f
in $xm_file; do
12553 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12554 xm_include_list
="${xm_include_list} $f"
12557 xm_file_list
="${xm_file_list} $f"
12558 xm_include_list
="${xm_include_list} $f"
12561 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12562 xm_include_list
="${xm_include_list} config/$f"
12568 host_xm_include_list
=
12569 for f
in $host_xm_file; do
12572 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12573 host_xm_include_list
="${host_xm_include_list} $f"
12576 host_xm_file_list
="${host_xm_file_list} $f"
12577 host_xm_include_list
="${host_xm_include_list} $f"
12580 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12581 host_xm_include_list
="${host_xm_include_list} config/$f"
12586 build_xm_file_list
=
12587 for f
in $build_xm_file; do
12590 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12591 build_xm_include_list
="${build_xm_include_list} $f"
12593 auto-build.h | auto-host.h
)
12594 build_xm_file_list
="${build_xm_file_list} $f"
12595 build_xm_include_list
="${build_xm_include_list} $f"
12598 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12599 build_xm_include_list
="${build_xm_include_list} config/$f"
12604 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12605 # cross-compiler which does not use the native headers and libraries.
12606 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12609 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12610 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12612 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12613 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12614 if test "x$with_build_sysroot" != x
; then
12615 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12617 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12620 if test x
$host != x
$target
12622 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12624 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12625 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12626 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12629 if test "x$with_build_sysroot" != "x"; then
12630 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12631 elif test "x$with_sysroot" = x
; then
12632 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12633 elif test "x$with_sysroot" = xyes
; then
12634 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12636 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12639 target_header_dir
=${native_system_header_dir}
12642 # If this is a cross-compiler that does not
12643 # have its own set of headers then define
12646 # If this is using newlib, without having the headers available now,
12647 # then define inhibit_libc in LIBGCC2_CFLAGS.
12648 # This prevents libgcc2 from containing any code which requires libc
12650 : ${inhibit_libc=false}
12651 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12652 test x
$with_newlib = xyes
; } &&
12653 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12658 # When building gcc with a cross-compiler, we need to adjust things so
12659 # that the generator programs are still built with the native compiler.
12660 # Also, we cannot run fixincludes.
12662 # These are the normal (build=host) settings:
12663 CC_FOR_BUILD
='$(CC)'
12664 CXX_FOR_BUILD
='$(CXX)'
12665 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12666 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12667 BUILD_LDFLAGS
='$(LDFLAGS)'
12668 STMP_FIXINC
=stmp-fixinc
12670 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12671 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12673 # And these apply if build != host, or we are generating coverage data
12674 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12676 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12677 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12678 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12680 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12681 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12682 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12683 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12688 # Expand extra_headers to include complete path.
12689 # This substitutes for lots of t-* files.
12690 extra_headers_list
=
12691 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12692 for file in ${extra_headers} ; do
12693 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12696 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12697 if test x
"$use_gcc_tgmath" = xyes
12698 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12701 # Define collect2 in Makefile.
12702 case $host_can_use_collect2 in
12704 *) collect2
='collect2$(exeext)' ;;
12708 # Add a definition of USE_COLLECT2 if system wants one.
12709 case $use_collect2 in
12710 no
) use_collect2
= ;;
12713 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12714 xm_defines
="${xm_defines} USE_COLLECT2"
12715 case $host_can_use_collect2 in
12717 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
12724 cat >>confdefs.h
<<_ACEOF
12725 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12729 # ---------------------------
12730 # Assembler & linker features
12731 # ---------------------------
12733 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12734 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12735 # However when ld-new is first executed from the build tree, libtool will
12736 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12737 # to the build tree. While doing this we need to use the previous-stage
12738 # linker, or we have an infinite loop. The presence of a shell script as
12739 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12740 # the gcc/collect-ld script. So we need to know how libtool works, or
12741 # exec-tool will fail.
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12747 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12752 macro_version
='2.2.7a'
12753 macro_revision
='1.3134'
12767 ltmain
="$ac_aux_dir/ltmain.sh"
12769 # Backslashify metacharacters that are still active within
12770 # double-quoted strings.
12771 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12773 # Same as above, but do not quote variable references.
12774 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12776 # Sed substitution to delay expansion of an escaped shell variable in a
12777 # double_quote_subst'ed string.
12778 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12780 # Sed substitution to delay expansion of an escaped single quote.
12781 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12783 # Sed substitution to avoid accidental globbing in evaled expressions
12784 no_glob_subst
='s/\*/\\\*/g'
12786 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12787 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12788 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12791 $as_echo_n "checking how to print strings... " >&6; }
12792 # Test print first, because it will be a builtin if present.
12793 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12794 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12796 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12799 # Use this function as a fallback that always works.
12800 func_fallback_echo ()
12802 eval 'cat <<_LTECHO_EOF
12806 ECHO='func_fallback_echo
'
12809 # func_echo_all arg...
12810 # Invoke $ECHO with all args, space-separated.
12817 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12818 $as_echo "printf" >&6; } ;;
12819 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12820 $as_echo "print -r" >&6; } ;;
12821 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12822 $as_echo "cat" >&6; } ;;
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12839 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12840 if ${ac_cv_path_SED+:} false; then :
12841 $as_echo_n "(cached) " >&6
12843 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12844 for ac_i in 1 2 3 4 5 6 7; do
12845 ac_script="$ac_script$as_nl$ac_script"
12847 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12848 { ac_script=; unset ac_script;}
12849 if test -z "$SED"; then
12850 ac_path_SED_found=false
12851 # Loop through the user's path and
test for each of PROGNAME-LIST
12852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12853 for as_dir
in $PATH
12856 test -z "$as_dir" && as_dir
=.
12857 for ac_prog
in sed gsed
; do
12858 for ac_exec_ext
in '' $ac_executable_extensions; do
12859 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12860 as_fn_executable_p
"$ac_path_SED" ||
continue
12861 # Check for GNU ac_path_SED and select it if it is found.
12862 # Check for GNU $ac_path_SED
12863 case `"$ac_path_SED" --version 2>&1` in
12865 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12868 $as_echo_n 0123456789 >"conftest.in"
12871 cat "conftest.in" "conftest.in" >"conftest.tmp"
12872 mv "conftest.tmp" "conftest.in"
12873 cp "conftest.in" "conftest.nl"
12874 $as_echo '' >> "conftest.nl"
12875 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12876 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12877 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12878 if test $ac_count -gt ${ac_path_SED_max-0}; then
12879 # Best one so far, save it but keep looking for a better one
12880 ac_cv_path_SED
="$ac_path_SED"
12881 ac_path_SED_max
=$ac_count
12883 # 10*(2^10) chars as input seems more than enough
12884 test $ac_count -gt 10 && break
12886 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12889 $ac_path_SED_found && break 3
12894 if test -z "$ac_cv_path_SED"; then
12895 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12898 ac_cv_path_SED
=$SED
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12903 $as_echo "$ac_cv_path_SED" >&6; }
12904 SED
="$ac_cv_path_SED"
12907 test -z "$SED" && SED
=sed
12908 Xsed
="$SED -e 1s/^X//"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12921 $as_echo_n "checking for fgrep... " >&6; }
12922 if ${ac_cv_path_FGREP+:} false
; then :
12923 $as_echo_n "(cached) " >&6
12925 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12926 then ac_cv_path_FGREP
="$GREP -F"
12928 if test -z "$FGREP"; then
12929 ac_path_FGREP_found
=false
12930 # Loop through the user's path and test for each of PROGNAME-LIST
12931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12932 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12935 test -z "$as_dir" && as_dir
=.
12936 for ac_prog
in fgrep
; do
12937 for ac_exec_ext
in '' $ac_executable_extensions; do
12938 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12939 as_fn_executable_p
"$ac_path_FGREP" ||
continue
12940 # Check for GNU ac_path_FGREP and select it if it is found.
12941 # Check for GNU $ac_path_FGREP
12942 case `"$ac_path_FGREP" --version 2>&1` in
12944 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12947 $as_echo_n 0123456789 >"conftest.in"
12950 cat "conftest.in" "conftest.in" >"conftest.tmp"
12951 mv "conftest.tmp" "conftest.in"
12952 cp "conftest.in" "conftest.nl"
12953 $as_echo 'FGREP' >> "conftest.nl"
12954 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12955 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12956 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12957 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12958 # Best one so far, save it but keep looking for a better one
12959 ac_cv_path_FGREP
="$ac_path_FGREP"
12960 ac_path_FGREP_max
=$ac_count
12962 # 10*(2^10) chars as input seems more than enough
12963 test $ac_count -gt 10 && break
12965 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12968 $ac_path_FGREP_found && break 3
12973 if test -z "$ac_cv_path_FGREP"; then
12974 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12977 ac_cv_path_FGREP
=$FGREP
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12983 $as_echo "$ac_cv_path_FGREP" >&6; }
12984 FGREP
="$ac_cv_path_FGREP"
12987 test -z "$GREP" && GREP
=grep
13007 # Check whether --with-gnu-ld was given.
13008 if test "${with_gnu_ld+set}" = set; then :
13009 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13015 if test "$GCC" = yes; then
13016 # Check if gcc -print-prog-name=ld gives a path.
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13018 $as_echo_n "checking for ld used by $CC... " >&6; }
13021 # gcc leaves a trailing carriage return which upsets mingw
13022 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13024 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13027 # Accept absolute paths.
13029 re_direlt
='/[^/][^/]*/\.\./'
13030 # Canonicalize the pathname of ld
13031 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13032 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13033 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13035 test -z "$LD" && LD
="$ac_prog"
13038 # If it fails, then pretend we aren't using GCC.
13042 # If it is relative, then search for the first ld in PATH.
13043 with_gnu_ld
=unknown
13046 elif test "$with_gnu_ld" = yes; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13048 $as_echo_n "checking for GNU ld... " >&6; }
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13051 $as_echo_n "checking for non-GNU ld... " >&6; }
13053 if ${lt_cv_path_LD+:} false
; then :
13054 $as_echo_n "(cached) " >&6
13056 if test -z "$LD"; then
13057 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13058 for ac_dir
in $PATH; do
13060 test -z "$ac_dir" && ac_dir
=.
13061 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13062 lt_cv_path_LD
="$ac_dir/$ac_prog"
13063 # Check to see if the program is GNU ld. I'd rather use --version,
13064 # but apparently some variants of GNU ld only accept -v.
13065 # Break only if it was the GNU/non-GNU ld that we prefer.
13066 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13067 *GNU
* |
*'with BFD'*)
13068 test "$with_gnu_ld" != no
&& break
13071 test "$with_gnu_ld" != yes && break
13078 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13082 LD
="$lt_cv_path_LD"
13083 if test -n "$LD"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13085 $as_echo "$LD" >&6; }
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13090 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13092 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13093 if ${lt_cv_prog_gnu_ld+:} false
; then :
13094 $as_echo_n "(cached) " >&6
13096 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13097 case `$LD -v 2>&1 </dev/null` in
13098 *GNU
* |
*'with BFD'*)
13099 lt_cv_prog_gnu_ld
=yes
13102 lt_cv_prog_gnu_ld
=no
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13107 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13108 with_gnu_ld
=$lt_cv_prog_gnu_ld
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13119 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13120 if ${lt_cv_path_NM+:} false
; then :
13121 $as_echo_n "(cached) " >&6
13123 if test -n "$NM"; then
13124 # Let the user override the test.
13125 lt_cv_path_NM
="$NM"
13127 lt_nm_to_check
="${ac_tool_prefix}nm"
13128 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13129 lt_nm_to_check
="$lt_nm_to_check nm"
13131 for lt_tmp_nm
in $lt_nm_to_check; do
13132 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13133 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13135 test -z "$ac_dir" && ac_dir
=.
13136 tmp_nm
="$ac_dir/$lt_tmp_nm"
13137 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13138 # Check to see if the nm accepts a BSD-compat flag.
13139 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13140 # nm: unknown option "B" ignored
13141 # Tru64's nm complains that /dev/null is an invalid object file
13142 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13143 */dev
/null
* |
*'Invalid file or object type'*)
13144 lt_cv_path_NM
="$tmp_nm -B"
13148 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13150 lt_cv_path_NM
="$tmp_nm -p"
13154 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13155 continue # so that we can try to find one that supports BSD flags
13164 : ${lt_cv_path_NM=no}
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13168 $as_echo "$lt_cv_path_NM" >&6; }
13169 if test "$lt_cv_path_NM" != "no"; then
13170 NM
="$lt_cv_path_NM"
13172 # Didn't find any BSD compatible name lister, look for dumpbin.
13173 if test -n "$DUMPBIN"; then :
13174 # Let the user override the test.
13176 if test -n "$ac_tool_prefix"; then
13177 for ac_prog
in dumpbin
"link -dump"
13179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13180 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13184 $as_echo_n "(cached) " >&6
13186 if test -n "$DUMPBIN"; then
13187 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13190 for as_dir
in $PATH
13193 test -z "$as_dir" && as_dir
=.
13194 for ac_exec_ext
in '' $ac_executable_extensions; do
13195 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13196 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206 DUMPBIN
=$ac_cv_prog_DUMPBIN
13207 if test -n "$DUMPBIN"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13209 $as_echo "$DUMPBIN" >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13216 test -n "$DUMPBIN" && break
13219 if test -z "$DUMPBIN"; then
13220 ac_ct_DUMPBIN
=$DUMPBIN
13221 for ac_prog
in dumpbin
"link -dump"
13223 # Extract the first word of "$ac_prog", so it can be a program name with args.
13224 set dummy
$ac_prog; ac_word
=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 $as_echo_n "checking for $ac_word... " >&6; }
13227 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13228 $as_echo_n "(cached) " >&6
13230 if test -n "$ac_ct_DUMPBIN"; then
13231 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13234 for as_dir
in $PATH
13237 test -z "$as_dir" && as_dir
=.
13238 for ac_exec_ext
in '' $ac_executable_extensions; do
13239 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13240 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13251 if test -n "$ac_ct_DUMPBIN"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13253 $as_echo "$ac_ct_DUMPBIN" >&6; }
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13260 test -n "$ac_ct_DUMPBIN" && break
13263 if test "x$ac_ct_DUMPBIN" = x
; then
13266 case $cross_compiling:$ac_tool_warned in
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13270 ac_tool_warned
=yes ;;
13272 DUMPBIN
=$ac_ct_DUMPBIN
13276 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13278 DUMPBIN
="$DUMPBIN -symbols"
13286 if test "$DUMPBIN" != ":"; then
13290 test -z "$NM" && NM
=nm
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13298 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13299 if ${lt_cv_nm_interface+:} false
; then :
13300 $as_echo_n "(cached) " >&6
13302 lt_cv_nm_interface
="BSD nm"
13303 echo "int some_variable = 0;" > conftest.
$ac_ext
13304 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13305 (eval "$ac_compile" 2>conftest.err
)
13306 cat conftest.err
>&5
13307 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13308 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13309 cat conftest.err
>&5
13310 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13311 cat conftest.out
>&5
13312 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13313 lt_cv_nm_interface
="MS dumpbin"
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13318 $as_echo "$lt_cv_nm_interface" >&6; }
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13321 $as_echo_n "checking whether ln -s works... " >&6; }
13323 if test "$LN_S" = "ln -s"; then
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13325 $as_echo "yes" >&6; }
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13328 $as_echo "no, using $LN_S" >&6; }
13331 # find the maximum length of command line arguments
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13333 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13334 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13335 $as_echo_n "(cached) " >&6
13342 # On DJGPP, this test can blow up pretty badly due to problems in libc
13343 # (any single argument exceeding 2000 bytes causes a buffer overrun
13344 # during glob expansion). Even if it were fixed, the result of this
13345 # check would be larger than it should be.
13346 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13350 # Under GNU Hurd, this test is not required because there is
13351 # no limit to the length of command line arguments.
13352 # Libtool will interpret -1 as no limit whatsoever
13353 lt_cv_sys_max_cmd_len
=-1;
13356 cygwin
* | mingw
* | cegcc
*)
13357 # On Win9x/ME, this test blows up -- it succeeds, but takes
13358 # about 5 minutes as the teststring grows exponentially.
13359 # Worse, since 9x/ME are not pre-emptively multitasking,
13360 # you end up with a "frozen" computer, even though with patience
13361 # the test eventually succeeds (with a max line length of 256k).
13362 # Instead, let's just punt: use the minimum linelength reported by
13363 # all of the supported platforms: 8192 (on NT/2K/XP).
13364 lt_cv_sys_max_cmd_len
=8192;
13368 # On MiNT this can take a long time and run out of memory.
13369 lt_cv_sys_max_cmd_len
=8192;
13373 # On AmigaOS with pdksh, this test takes hours, literally.
13374 # So we just punt and use a minimum line length of 8192.
13375 lt_cv_sys_max_cmd_len
=8192;
13378 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13379 # This has been around since 386BSD, at least. Likely further.
13380 if test -x /sbin
/sysctl
; then
13381 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13382 elif test -x /usr
/sbin
/sysctl
; then
13383 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13385 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13387 # And add a safety zone
13388 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13389 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13393 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13394 lt_cv_sys_max_cmd_len
=196608
13398 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13399 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13400 # nice to cause kernel panics so lets avoid the loop below.
13401 # First set a reasonable default.
13402 lt_cv_sys_max_cmd_len
=16384
13404 if test -x /sbin
/sysconfig
; then
13405 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13406 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13411 lt_cv_sys_max_cmd_len
=102400
13413 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13414 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13415 if test -n "$kargmax"; then
13416 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13418 lt_cv_sys_max_cmd_len
=32768
13422 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13423 if test -n "$lt_cv_sys_max_cmd_len"; then
13424 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13425 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13427 # Make teststring a little bigger before we do anything with it.
13428 # a 1K string should be a reasonable start.
13429 for i
in 1 2 3 4 5 6 7 8 ; do
13430 teststring
=$teststring$teststring
13432 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13433 # If test is not a shell built-in, we'll probably end up computing a
13434 # maximum length that is only half of the actual maximum length, but
13436 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13437 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13438 test $i != 17 # 1/2 MB should be enough
13441 teststring
=$teststring$teststring
13443 # Only check the string length outside the loop.
13444 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13446 # Add a significant safety factor because C++ compilers can tack on
13447 # massive amounts of additional arguments before passing them to the
13448 # linker. It appears as though 1/2 is a usable value.
13449 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13456 if test -n $lt_cv_sys_max_cmd_len ; then
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13458 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13461 $as_echo "none" >&6; }
13463 max_cmd_len
=$lt_cv_sys_max_cmd_len
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13475 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13476 # Try some XSI features
13478 ( _lt_dummy
="a/b/c"
13479 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13481 && eval 'test $(( 1 + 1 )) -eq 2 \
13482 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13485 $as_echo "$xsi_shell" >&6; }
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13489 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13491 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13493 && lt_shell_append=yes
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13495 $as_echo "$lt_shell_append" >&6; }
13498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13508 # test EBCDIC or ASCII
13509 case `echo X|tr X '\101'` in
13510 A) # ASCII based system
13511 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13512 lt_SP2NL='tr \040 \012'
13513 lt_NL2SP='tr \015\012 \040\040'
13515 *) # EBCDIC based system
13516 lt_SP2NL='tr \100 \n'
13517 lt_NL2SP='tr \r\n \100\100'
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13530 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13531 if ${lt_cv_ld_reload_flag+:} false; then :
13532 $as_echo_n "(cached
) " >&6
13534 lt_cv_ld_reload_flag='-r'
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13537 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13538 reload_flag=$lt_cv_ld_reload_flag
13539 case $reload_flag in
13541 *) reload_flag=" $reload_flag" ;;
13543 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13546 if test "$GCC" = yes; then
13547 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13562 if test -n "$ac_tool_prefix"; then
13563 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13564 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13566 $as_echo_n "checking
for $ac_word...
" >&6; }
13567 if ${ac_cv_prog_OBJDUMP+:} false; then :
13568 $as_echo_n "(cached
) " >&6
13570 if test -n "$OBJDUMP"; then
13571 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13590 OBJDUMP=$ac_cv_prog_OBJDUMP
13591 if test -n "$OBJDUMP"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13593 $as_echo "$OBJDUMP" >&6; }
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13596 $as_echo "no
" >&6; }
13601 if test -z "$ac_cv_prog_OBJDUMP"; then
13602 ac_ct_OBJDUMP=$OBJDUMP
13603 # Extract the first word of "objdump
", so it can be a program name with args.
13604 set dummy objdump; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13606 $as_echo_n "checking
for $ac_word...
" >&6; }
13607 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13608 $as_echo_n "(cached
) " >&6
13610 if test -n "$ac_ct_OBJDUMP"; then
13611 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13630 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13631 if test -n "$ac_ct_OBJDUMP"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13633 $as_echo "$ac_ct_OBJDUMP" >&6; }
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13636 $as_echo "no
" >&6; }
13639 if test "x
$ac_ct_OBJDUMP" = x; then
13642 case $cross_compiling:$ac_tool_warned in
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13645 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13646 ac_tool_warned=yes ;;
13648 OBJDUMP=$ac_ct_OBJDUMP
13651 OBJDUMP="$ac_cv_prog_OBJDUMP"
13654 test -z "$OBJDUMP" && OBJDUMP=objdump
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13665 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13666 if ${lt_cv_deplibs_check_method+:} false; then :
13667 $as_echo_n "(cached
) " >&6
13669 lt_cv_file_magic_cmd='$MAGIC_CMD'
13670 lt_cv_file_magic_test_file=
13671 lt_cv_deplibs_check_method='unknown'
13672 # Need to set the preceding variable on all platforms that support
13673 # interlibrary dependencies.
13674 # 'none' -- dependencies not supported.
13675 # `unknown' -- same as none, but documents that we really don't know.
13676 # 'pass_all' -- all dependencies passed with no checks.
13677 # 'test_compile' -- check by making test program.
13678 # 'file_magic [[regex]]' -- check by looking for files in library path
13679 # which responds to the $file_magic_cmd with a given extended regex.
13680 # If you have `file' or equivalent on your system and you're not sure
13681 # whether `pass_all' will *always* work, you probably want this one.
13685 lt_cv_deplibs_check_method=pass_all
13689 lt_cv_deplibs_check_method=pass_all
13693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13694 lt_cv_file_magic_cmd='/usr/bin/file -L'
13695 lt_cv_file_magic_test_file=/shlib/libc.so
13699 # func_win32_libid is a shell function defined in ltmain.sh
13700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13701 lt_cv_file_magic_cmd='func_win32_libid'
13705 # Base MSYS/MinGW do not provide the 'file' command needed by
13706 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13707 # unless we find 'file', for example because we are cross-compiling.
13708 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13709 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13711 lt_cv_file_magic_cmd='func_win32_libid'
13713 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13714 lt_cv_file_magic_cmd='$OBJDUMP -f'
13719 # use the weaker test based on 'objdump'. See mingw*.
13720 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13721 lt_cv_file_magic_cmd='$OBJDUMP -f'
13724 darwin* | rhapsody*)
13725 lt_cv_deplibs_check_method=pass_all
13728 freebsd* | dragonfly*)
13729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13732 # Not sure whether the presence of OpenBSD here was a mistake.
13733 # Let's accept both of them until this is cleared up.
13734 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13735 lt_cv_file_magic_cmd=/usr/bin/file
13736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13740 lt_cv_deplibs_check_method=pass_all
13745 lt_cv_deplibs_check_method=pass_all
13749 lt_cv_deplibs_check_method=pass_all
13752 hpux10.20* | hpux11*)
13753 lt_cv_file_magic_cmd=/usr/bin/file
13756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13757 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13760 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]'
13761 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13765 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13771 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13775 irix5* | irix6* | nonstopux*)
13777 *-32|*"-32 ") libmagic=32-bit;;
13778 *-n32|*"-n32 ") libmagic=N32;;
13779 *-64|*"-64 ") libmagic=64-bit;;
13780 *) libmagic=never-match;;
13782 lt_cv_deplibs_check_method=pass_all
13785 # This must be Linux ELF.
13786 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13787 lt_cv_deplibs_check_method=pass_all
13791 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13800 lt_cv_file_magic_cmd=/usr/bin/file
13801 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13805 lt_cv_deplibs_check_method=pass_all
13809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13816 osf3* | osf4* | osf5*)
13817 lt_cv_deplibs_check_method=pass_all
13821 lt_cv_deplibs_check_method=pass_all
13825 lt_cv_deplibs_check_method=pass_all
13828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13829 lt_cv_deplibs_check_method=pass_all
13833 case $host_vendor in
13835 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]'
13836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13839 lt_cv_deplibs_check_method=pass_all
13842 lt_cv_file_magic_cmd='/bin/file'
13843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13846 lt_cv_file_magic_cmd='/bin/file'
13847 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13848 lt_cv_file_magic_test_file=/lib/libc.so
13851 lt_cv_deplibs_check_method=pass_all
13854 lt_cv_deplibs_check_method=pass_all
13860 lt_cv_deplibs_check_method=pass_all
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13866 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13867 file_magic_cmd=$lt_cv_file_magic_cmd
13868 deplibs_check_method=$lt_cv_deplibs_check_method
13869 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13882 if test -n "$ac_tool_prefix"; then
13883 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13884 set dummy ${ac_tool_prefix}ar; ac_word=$2
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13886 $as_echo_n "checking
for $ac_word...
" >&6; }
13887 if ${ac_cv_prog_AR+:} false; then :
13888 $as_echo_n "(cached
) " >&6
13890 if test -n "$AR"; then
13891 ac_cv_prog_AR="$AR" # Let the user override the test.
13893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
13899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13900 ac_cv_prog_AR="${ac_tool_prefix}ar"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13911 if test -n "$AR"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13913 $as_echo "$AR" >&6; }
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13916 $as_echo "no
" >&6; }
13921 if test -z "$ac_cv_prog_AR"; then
13923 # Extract the first word of "ar", so it can be a program name with args.
13924 set dummy ar; ac_word=$2
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13926 $as_echo_n "checking
for $ac_word...
" >&6; }
13927 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13928 $as_echo_n "(cached
) " >&6
13930 if test -n "$ac_ct_AR"; then
13931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13934 for as_dir in $PATH
13937 test -z "$as_dir" && as_dir=.
13938 for ac_exec_ext in '' $ac_executable_extensions; do
13939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13940 ac_cv_prog_ac_ct_AR="ar"
13941 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13950 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13951 if test -n "$ac_ct_AR"; then
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13953 $as_echo "$ac_ct_AR" >&6; }
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13956 $as_echo "no
" >&6; }
13959 if test "x
$ac_ct_AR" = x; then
13962 case $cross_compiling:$ac_tool_warned in
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13965 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13966 ac_tool_warned=yes ;;
13971 AR="$ac_cv_prog_AR"
13974 test -z "$AR" && AR=ar
13975 test -z "$AR_FLAGS" && AR_FLAGS=cru
13987 if test -n "$ac_tool_prefix"; then
13988 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13989 set dummy ${ac_tool_prefix}strip; ac_word=$2
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13991 $as_echo_n "checking
for $ac_word...
" >&6; }
13992 if ${ac_cv_prog_STRIP+:} false; then :
13993 $as_echo_n "(cached
) " >&6
13995 if test -n "$STRIP"; then
13996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14002 test -z "$as_dir" && as_dir=.
14003 for ac_exec_ext in '' $ac_executable_extensions; do
14004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14005 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14006 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14015 STRIP=$ac_cv_prog_STRIP
14016 if test -n "$STRIP"; then
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14018 $as_echo "$STRIP" >&6; }
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14021 $as_echo "no
" >&6; }
14026 if test -z "$ac_cv_prog_STRIP"; then
14028 # Extract the first word of "strip
", so it can be a program name with args.
14029 set dummy strip; ac_word=$2
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14031 $as_echo_n "checking
for $ac_word...
" >&6; }
14032 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14033 $as_echo_n "(cached
) " >&6
14035 if test -n "$ac_ct_STRIP"; then
14036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039 for as_dir in $PATH
14042 test -z "$as_dir" && as_dir=.
14043 for ac_exec_ext in '' $ac_executable_extensions; do
14044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14045 ac_cv_prog_ac_ct_STRIP="strip
"
14046 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14056 if test -n "$ac_ct_STRIP"; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14058 $as_echo "$ac_ct_STRIP" >&6; }
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14061 $as_echo "no
" >&6; }
14064 if test "x
$ac_ct_STRIP" = x; then
14067 case $cross_compiling:$ac_tool_warned in
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14070 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14071 ac_tool_warned=yes ;;
14076 STRIP="$ac_cv_prog_STRIP"
14079 test -z "$STRIP" && STRIP=:
14086 if test -n "$ac_tool_prefix"; then
14087 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14090 $as_echo_n "checking
for $ac_word...
" >&6; }
14091 if ${ac_cv_prog_RANLIB+:} false; then :
14092 $as_echo_n "(cached
) " >&6
14094 if test -n "$RANLIB"; then
14095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14098 for as_dir in $PATH
14101 test -z "$as_dir" && as_dir=.
14102 for ac_exec_ext in '' $ac_executable_extensions; do
14103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14105 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14114 RANLIB=$ac_cv_prog_RANLIB
14115 if test -n "$RANLIB"; then
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14117 $as_echo "$RANLIB" >&6; }
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14120 $as_echo "no
" >&6; }
14125 if test -z "$ac_cv_prog_RANLIB"; then
14126 ac_ct_RANLIB=$RANLIB
14127 # Extract the first word of "ranlib
", so it can be a program name with args.
14128 set dummy ranlib; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14130 $as_echo_n "checking
for $ac_word...
" >&6; }
14131 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14132 $as_echo_n "(cached
) " >&6
14134 if test -n "$ac_ct_RANLIB"; then
14135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14155 if test -n "$ac_ct_RANLIB"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14157 $as_echo "$ac_ct_RANLIB" >&6; }
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14160 $as_echo "no
" >&6; }
14163 if test "x
$ac_ct_RANLIB" = x; then
14166 case $cross_compiling:$ac_tool_warned in
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14169 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14170 ac_tool_warned=yes ;;
14172 RANLIB=$ac_ct_RANLIB
14175 RANLIB="$ac_cv_prog_RANLIB"
14178 test -z "$RANLIB" && RANLIB=:
14185 # Determine commands to create old-style static archives.
14186 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14187 old_postinstall_cmds='chmod 644 $oldlib'
14188 old_postuninstall_cmds=
14190 if test -n "$RANLIB"; then
14193 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14196 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14199 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14204 lock_old_archive_extraction=yes ;;
14206 lock_old_archive_extraction=no ;;
14247 # If no C compiler was specified, use CC.
14250 # If no C compiler flags were specified, use CFLAGS.
14251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14253 # Allow CC to be a program name with arguments.
14257 # Check for command to grab the raw symbol name followed by C symbol from nm.
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14259 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14260 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14261 $as_echo_n "(cached
) " >&6
14264 # These are sane defaults that work on at least a few old systems.
14265 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14267 # Character class describing NM global symbol codes.
14268 symcode='[BCDEGRST]'
14270 # Regexp to match symbols that can be accessed directly from C.
14271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14273 # Define system-specific variables.
14278 cygwin* | mingw* | pw32* | cegcc*)
14279 symcode='[ABCDGISTW]'
14282 if test "$host_cpu" = ia64; then
14283 symcode='[ABCDEGRST]'
14286 irix* | nonstopux*)
14287 symcode='[BCDEGRST]'
14290 symcode='[BCDEGQRST]'
14301 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14309 # If we're using GNU nm, then use its standard symbol codes.
14310 case `$NM -V 2>&1` in
14311 *GNU* | *'with BFD'*)
14312 symcode='[ABCDGIRSTW]' ;;
14315 # Transform an extracted symbol line into a proper C declaration.
14316 # Some systems (esp. on ia64) link data and code symbols differently,
14317 # so use this general approach.
14318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14320 # Transform an extracted symbol line into symbol name and symbol address
14321 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14322 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'"
14324 # Handle CRLF in mingw tool chain
14328 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14332 # Try without a prefix underscore, then with it.
14333 for ac_symprfx in "" "_
"; do
14335 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14336 symxfrm="\\1 $ac_symprfx\\2 \\2"
14338 # Write the raw and C identifiers.
14339 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14340 # Fake it for dumpbin and say T for any non-static function
14341 # and D for any global variable.
14342 # Also find C++ and __fastcall symbols from MSVC++,
14343 # which start with @ or ?.
14344 lt_cv_sys_global_symbol_pipe="$AWK '"\
14345 " {last_section=section; section=\$ 3};"\
14346 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14347 " \$ 0!~/External *\|/{next};"\
14348 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14349 " {if(hide[section]) next};"\
14350 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14351 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14352 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14353 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14354 " ' prfx
=^
$ac_symprfx"
14356 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14359 # Check to see that the pipe works correctly.
14363 cat > conftest.$ac_ext <<_LT_EOF
14368 void nm_test_func(void);
14369 void nm_test_func(void){}
14373 int main(){nm_test_var='a';nm_test_func();return(0);}
14376 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14377 (eval $ac_compile) 2>&5
14379 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14380 test $ac_status = 0; }; then
14381 # Now try to grab the symbols.
14383 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14384 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14386 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14387 test $ac_status = 0; } && test -s "$nlist"; then
14388 # Try sorting and uniquifying the output.
14389 if sort "$nlist" | uniq > "$nlist"T; then
14390 mv -f "$nlist"T "$nlist"
14395 # Make sure that we snagged all the symbols we need.
14396 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14397 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14398 cat <<_LT_EOF > conftest.$ac_ext
14404 # Now generate the symbol file.
14405 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14407 cat <<_LT_EOF >> conftest.$ac_ext
14409 /* The mapping between symbol names and symbols. */
14414 lt__PROGRAM__LTX_preloaded_symbols[] =
14416 { "@PROGRAM@
", (void *) 0 },
14418 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14419 cat <<\_LT_EOF >> conftest.$ac_ext
14423 /* This works around a problem in FreeBSD linker */
14424 #ifdef FREEBSD_WORKAROUND
14425 static const void *lt_preloaded_setup() {
14426 return lt__PROGRAM__LTX_preloaded_symbols;
14434 # Now try linking the two files.
14435 mv conftest.$ac_objext conftstm.$ac_objext
14436 lt_save_LIBS="$LIBS"
14437 lt_save_CFLAGS="$CFLAGS"
14438 LIBS="conftstm.
$ac_objext"
14439 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14440 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14441 (eval $ac_link) 2>&5
14443 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14444 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14447 LIBS="$lt_save_LIBS"
14448 CFLAGS="$lt_save_CFLAGS"
14450 echo "cannot
find nm_test_func
in $nlist" >&5
14453 echo "cannot
find nm_test_var
in $nlist" >&5
14456 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14459 echo "$progname: failed program was
:" >&5
14460 cat conftest.$ac_ext >&5
14462 rm -rf conftest* conftst*
14464 # Do not use the global_symbol_pipe unless it works.
14465 if test "$pipe_works" = yes; then
14468 lt_cv_sys_global_symbol_pipe=
14474 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14475 lt_cv_sys_global_symbol_to_cdecl=
14477 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14479 $as_echo "failed
" >&6; }
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14482 $as_echo "ok
" >&6; }
14506 # Check whether --enable-libtool-lock was given.
14507 if test "${enable_libtool_lock+set}" = set; then :
14508 enableval=$enable_libtool_lock;
14511 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14513 # Some flags need to be propagated to the compiler or linker for good
14517 # Find out which ABI we are using.
14518 echo 'int i;' > conftest.$ac_ext
14519 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14520 (eval $ac_compile) 2>&5
14522 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14523 test $ac_status = 0; }; then
14524 case `/usr/bin/file conftest.$ac_objext` in
14526 HPUX_IA64_MODE="32"
14529 HPUX_IA64_MODE="64"
14536 # Find out which ABI we are using.
14537 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14538 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14539 (eval $ac_compile) 2>&5
14541 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14542 test $ac_status = 0; }; then
14543 if test "$lt_cv_prog_gnu_ld" = yes; then
14544 case `/usr/bin/file conftest.$ac_objext` in
14546 LD="${LD-ld} -melf32bsmip"
14549 LD="${LD-ld} -melf32bmipn32"
14552 LD="${LD-ld} -melf64bmip"
14556 case `/usr/bin/file conftest.$ac_objext` in
14572 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14573 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14574 # Find out which ABI we are using.
14575 echo 'int i;' > conftest.$ac_ext
14576 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14577 (eval $ac_compile) 2>&5
14579 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14580 test $ac_status = 0; }; then
14581 case `/usr/bin/file conftest.o` in
14584 x86_64-*kfreebsd*-gnu)
14585 LD="${LD-ld} -m elf_i386_fbsd
"
14588 case `/usr/bin/file conftest.o` in
14590 LD="${LD-ld} -m elf32_x86_64
"
14593 LD="${LD-ld} -m elf_i386
"
14597 powerpc64le-*linux*)
14598 LD="${LD-ld} -m elf32lppclinux
"
14601 LD="${LD-ld} -m elf32ppclinux
"
14604 LD="${LD-ld} -m elf_s390
"
14607 LD="${LD-ld} -m elf32_sparc
"
14613 x86_64-*kfreebsd*-gnu)
14614 LD="${LD-ld} -m elf_x86_64_fbsd
"
14617 LD="${LD-ld} -m elf_x86_64
"
14620 LD="${LD-ld} -m elf64lppc
"
14623 LD="${LD-ld} -m elf64ppc
"
14625 s390*-*linux*|s390*-*tpf*)
14626 LD="${LD-ld} -m elf64_s390
"
14629 LD="${LD-ld} -m elf64_sparc
"
14639 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14640 SAVE_CFLAGS="$CFLAGS"
14641 CFLAGS="$CFLAGS -belf"
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14643 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14644 if ${lt_cv_cc_needs_belf+:} false; then :
14645 $as_echo_n "(cached
) " >&6
14648 ac_cpp='$CPP $CPPFLAGS'
14649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14664 if ac_fn_c_try_link "$LINENO"; then :
14665 lt_cv_cc_needs_belf=yes
14667 lt_cv_cc_needs_belf=no
14669 rm -f core conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14672 ac_cpp='$CPP $CPPFLAGS'
14673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14679 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14680 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14681 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14682 CFLAGS="$SAVE_CFLAGS"
14686 # Find out which ABI we are using.
14687 echo 'int i;' > conftest.$ac_ext
14688 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14689 (eval $ac_compile) 2>&5
14691 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14692 test $ac_status = 0; }; then
14693 case `/usr/bin/file conftest.o` in
14695 case $lt_cv_prog_gnu_ld in
14696 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14698 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14710 need_locks="$enable_libtool_lock"
14714 rhapsody* | darwin*)
14715 if test -n "$ac_tool_prefix"; then
14716 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14719 $as_echo_n "checking
for $ac_word...
" >&6; }
14720 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14721 $as_echo_n "(cached
) " >&6
14723 if test -n "$DSYMUTIL"; then
14724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727 for as_dir in $PATH
14730 test -z "$as_dir" && as_dir=.
14731 for ac_exec_ext in '' $ac_executable_extensions; do
14732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14744 if test -n "$DSYMUTIL"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14746 $as_echo "$DSYMUTIL" >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14749 $as_echo "no
" >&6; }
14754 if test -z "$ac_cv_prog_DSYMUTIL"; then
14755 ac_ct_DSYMUTIL=$DSYMUTIL
14756 # Extract the first word of "dsymutil
", so it can be a program name with args.
14757 set dummy dsymutil; ac_word=$2
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14759 $as_echo_n "checking
for $ac_word...
" >&6; }
14760 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14761 $as_echo_n "(cached
) " >&6
14763 if test -n "$ac_ct_DSYMUTIL"; then
14764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14770 test -z "$as_dir" && as_dir=.
14771 for ac_exec_ext in '' $ac_executable_extensions; do
14772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14784 if test -n "$ac_ct_DSYMUTIL"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14789 $as_echo "no
" >&6; }
14792 if test "x
$ac_ct_DSYMUTIL" = x; then
14795 case $cross_compiling:$ac_tool_warned in
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14798 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14799 ac_tool_warned=yes ;;
14801 DSYMUTIL=$ac_ct_DSYMUTIL
14804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14807 if test -n "$ac_tool_prefix"; then
14808 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14811 $as_echo_n "checking
for $ac_word...
" >&6; }
14812 if ${ac_cv_prog_NMEDIT+:} false; then :
14813 $as_echo_n "(cached
) " >&6
14815 if test -n "$NMEDIT"; then
14816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819 for as_dir in $PATH
14822 test -z "$as_dir" && as_dir=.
14823 for ac_exec_ext in '' $ac_executable_extensions; do
14824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14835 NMEDIT=$ac_cv_prog_NMEDIT
14836 if test -n "$NMEDIT"; then
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14838 $as_echo "$NMEDIT" >&6; }
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14841 $as_echo "no
" >&6; }
14846 if test -z "$ac_cv_prog_NMEDIT"; then
14847 ac_ct_NMEDIT=$NMEDIT
14848 # Extract the first word of "nmedit
", so it can be a program name with args.
14849 set dummy nmedit; ac_word=$2
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14851 $as_echo_n "checking
for $ac_word...
" >&6; }
14852 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14853 $as_echo_n "(cached
) " >&6
14855 if test -n "$ac_ct_NMEDIT"; then
14856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14859 for as_dir in $PATH
14862 test -z "$as_dir" && as_dir=.
14863 for ac_exec_ext in '' $ac_executable_extensions; do
14864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14865 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14866 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14876 if test -n "$ac_ct_NMEDIT"; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14878 $as_echo "$ac_ct_NMEDIT" >&6; }
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14881 $as_echo "no
" >&6; }
14884 if test "x
$ac_ct_NMEDIT" = x; then
14887 case $cross_compiling:$ac_tool_warned in
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14890 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14891 ac_tool_warned=yes ;;
14893 NMEDIT=$ac_ct_NMEDIT
14896 NMEDIT="$ac_cv_prog_NMEDIT"
14899 if test -n "$ac_tool_prefix"; then
14900 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14903 $as_echo_n "checking
for $ac_word...
" >&6; }
14904 if ${ac_cv_prog_LIPO+:} false; then :
14905 $as_echo_n "(cached
) " >&6
14907 if test -n "$LIPO"; then
14908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14911 for as_dir in $PATH
14914 test -z "$as_dir" && as_dir=.
14915 for ac_exec_ext in '' $ac_executable_extensions; do
14916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14918 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14927 LIPO=$ac_cv_prog_LIPO
14928 if test -n "$LIPO"; then
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14930 $as_echo "$LIPO" >&6; }
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14933 $as_echo "no
" >&6; }
14938 if test -z "$ac_cv_prog_LIPO"; then
14940 # Extract the first word of "lipo
", so it can be a program name with args.
14941 set dummy lipo; ac_word=$2
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14943 $as_echo_n "checking
for $ac_word...
" >&6; }
14944 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14945 $as_echo_n "(cached
) " >&6
14947 if test -n "$ac_ct_LIPO"; then
14948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951 for as_dir in $PATH
14954 test -z "$as_dir" && as_dir=.
14955 for ac_exec_ext in '' $ac_executable_extensions; do
14956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14957 ac_cv_prog_ac_ct_LIPO="lipo
"
14958 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14968 if test -n "$ac_ct_LIPO"; then
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14970 $as_echo "$ac_ct_LIPO" >&6; }
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14973 $as_echo "no
" >&6; }
14976 if test "x
$ac_ct_LIPO" = x; then
14979 case $cross_compiling:$ac_tool_warned in
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14982 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14983 ac_tool_warned=yes ;;
14988 LIPO="$ac_cv_prog_LIPO"
14991 if test -n "$ac_tool_prefix"; then
14992 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14993 set dummy ${ac_tool_prefix}otool; ac_word=$2
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14995 $as_echo_n "checking
for $ac_word...
" >&6; }
14996 if ${ac_cv_prog_OTOOL+:} false; then :
14997 $as_echo_n "(cached
) " >&6
14999 if test -n "$OTOOL"; then
15000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15003 for as_dir in $PATH
15006 test -z "$as_dir" && as_dir=.
15007 for ac_exec_ext in '' $ac_executable_extensions; do
15008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15010 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15019 OTOOL=$ac_cv_prog_OTOOL
15020 if test -n "$OTOOL"; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15022 $as_echo "$OTOOL" >&6; }
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15025 $as_echo "no
" >&6; }
15030 if test -z "$ac_cv_prog_OTOOL"; then
15032 # Extract the first word of "otool
", so it can be a program name with args.
15033 set dummy otool; ac_word=$2
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15035 $as_echo_n "checking
for $ac_word...
" >&6; }
15036 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15037 $as_echo_n "(cached
) " >&6
15039 if test -n "$ac_ct_OTOOL"; then
15040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15043 for as_dir in $PATH
15046 test -z "$as_dir" && as_dir=.
15047 for ac_exec_ext in '' $ac_executable_extensions; do
15048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15049 ac_cv_prog_ac_ct_OTOOL="otool
"
15050 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15060 if test -n "$ac_ct_OTOOL"; then
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15062 $as_echo "$ac_ct_OTOOL" >&6; }
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15065 $as_echo "no
" >&6; }
15068 if test "x
$ac_ct_OTOOL" = x; then
15071 case $cross_compiling:$ac_tool_warned in
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15074 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15075 ac_tool_warned=yes ;;
15080 OTOOL="$ac_cv_prog_OTOOL"
15083 if test -n "$ac_tool_prefix"; then
15084 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15087 $as_echo_n "checking
for $ac_word...
" >&6; }
15088 if ${ac_cv_prog_OTOOL64+:} false; then :
15089 $as_echo_n "(cached
) " >&6
15091 if test -n "$OTOOL64"; then
15092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15095 for as_dir in $PATH
15098 test -z "$as_dir" && as_dir=.
15099 for ac_exec_ext in '' $ac_executable_extensions; do
15100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15102 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15111 OTOOL64=$ac_cv_prog_OTOOL64
15112 if test -n "$OTOOL64"; then
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15114 $as_echo "$OTOOL64" >&6; }
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15117 $as_echo "no
" >&6; }
15122 if test -z "$ac_cv_prog_OTOOL64"; then
15123 ac_ct_OTOOL64=$OTOOL64
15124 # Extract the first word of "otool64
", so it can be a program name with args.
15125 set dummy otool64; ac_word=$2
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15127 $as_echo_n "checking
for $ac_word...
" >&6; }
15128 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15129 $as_echo_n "(cached
) " >&6
15131 if test -n "$ac_ct_OTOOL64"; then
15132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15135 for as_dir in $PATH
15138 test -z "$as_dir" && as_dir=.
15139 for ac_exec_ext in '' $ac_executable_extensions; do
15140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15141 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15142 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15152 if test -n "$ac_ct_OTOOL64"; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15154 $as_echo "$ac_ct_OTOOL64" >&6; }
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15157 $as_echo "no
" >&6; }
15160 if test "x
$ac_ct_OTOOL64" = x; then
15163 case $cross_compiling:$ac_tool_warned in
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15166 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15167 ac_tool_warned=yes ;;
15169 OTOOL64=$ac_ct_OTOOL64
15172 OTOOL64="$ac_cv_prog_OTOOL64"
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15202 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15203 if ${lt_cv_apple_cc_single_mod+:} false; then :
15204 $as_echo_n "(cached
) " >&6
15206 lt_cv_apple_cc_single_mod=no
15207 if test -z "${LT_MULTI_MODULE}"; then
15208 # By default we will add the -single_module flag. You can override
15209 # by either setting the environment variable LT_MULTI_MODULE
15210 # non-empty at configure time, or by adding -multi_module to the
15212 rm -rf libconftest.dylib*
15213 echo "int foo
(void
){return 1;}" > conftest.c
15214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15215 -dynamiclib -Wl,-single_module conftest.c
" >&5
15216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15219 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15220 lt_cv_apple_cc_single_mod=yes
15222 cat conftest.err >&5
15224 rm -rf libconftest.dylib*
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15229 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15231 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15232 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15233 $as_echo_n "(cached
) " >&6
15235 lt_cv_ld_exported_symbols_list=no
15236 save_LDFLAGS=$LDFLAGS
15237 echo "_main
" > conftest.sym
15238 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15250 if ac_fn_c_try_link "$LINENO"; then :
15251 lt_cv_ld_exported_symbols_list=yes
15253 lt_cv_ld_exported_symbols_list=no
15255 rm -f core conftest.err conftest.$ac_objext \
15256 conftest$ac_exeext conftest.$ac_ext
15257 LDFLAGS="$save_LDFLAGS"
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15261 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15263 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15264 if ${lt_cv_ld_force_load+:} false; then :
15265 $as_echo_n "(cached
) " >&6
15267 lt_cv_ld_force_load=no
15268 cat > conftest.c << _LT_EOF
15269 int forced_loaded() { return 2;}
15271 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15272 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15273 echo "$AR cru libconftest.a conftest.o
" >&5
15274 $AR cru libconftest.a conftest.o 2>&5
15275 cat > conftest.c << _LT_EOF
15276 int main() { return 0;}
15278 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15279 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15281 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15282 lt_cv_ld_force_load=yes
15284 cat conftest.err >&5
15286 rm -f conftest.err libconftest.a conftest conftest.c
15287 rm -rf conftest.dSYM
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15291 $as_echo "$lt_cv_ld_force_load" >&6; }
15293 rhapsody* | darwin1.[012])
15294 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15296 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15297 darwin*) # darwin 5.x on
15298 # if running on 10.5 or later, the deployment target defaults
15299 # to the OS version, if on x86, and 10.4, the deployment
15300 # target defaults to 10.4. Don't you love it?
15301 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15302 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15303 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15307 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15311 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15312 _lt_dar_single_mod='$single_module'
15314 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15315 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15317 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15319 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15320 _lt_dsymutil='~$DSYMUTIL $lib || :'
15328 for ac_header in dlfcn.h
15330 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15331 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15332 cat >>confdefs.h <<_ACEOF
15333 #define HAVE_DLFCN_H 1
15350 enable_win32_dll=no
15353 # Check whether --enable-shared was given.
15354 if test "${enable_shared+set}" = set; then :
15355 enableval=$enable_shared; p=${PACKAGE-default}
15357 yes) enable_shared=yes ;;
15358 no) enable_shared=no ;;
15361 # Look at the argument we got. We use all the common list separators.
15362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15363 for pkg in $enableval; do
15365 if test "X
$pkg" = "X
$p"; then
15384 # Check whether --enable-static was given.
15385 if test "${enable_static+set}" = set; then :
15386 enableval=$enable_static; p=${PACKAGE-default}
15388 yes) enable_static=yes ;;
15389 no) enable_static=no ;;
15392 # Look at the argument we got. We use all the common list separators.
15393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15394 for pkg in $enableval; do
15396 if test "X
$pkg" = "X
$p"; then
15416 # Check whether --with-pic was given.
15417 if test "${with_pic+set}" = set; then :
15418 withval=$with_pic; pic_mode="$withval"
15424 test -z "$pic_mode" && pic_mode=default
15432 # Check whether --enable-fast-install was given.
15433 if test "${enable_fast_install+set}" = set; then :
15434 enableval=$enable_fast_install; p=${PACKAGE-default}
15436 yes) enable_fast_install=yes ;;
15437 no) enable_fast_install=no ;;
15439 enable_fast_install=no
15440 # Look at the argument we got. We use all the common list separators.
15441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15442 for pkg in $enableval; do
15444 if test "X
$pkg" = "X
$p"; then
15445 enable_fast_install=yes
15452 enable_fast_install=yes
15465 # This can be used to rebuild libtool when needed
15466 LIBTOOL_DEPS="$ltmain"
15468 # Always use our own libtool.
15469 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15496 test -z "$LN_S" && LN_S="ln -s"
15511 if test -n "${ZSH_VERSION+set}" ; then
15512 setopt NO_GLOB_SUBST
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15516 $as_echo_n "checking
for objdir...
" >&6; }
15517 if ${lt_cv_objdir+:} false; then :
15518 $as_echo_n "(cached
) " >&6
15520 rm -f .libs 2>/dev/null
15521 mkdir .libs 2>/dev/null
15522 if test -d .libs; then
15525 # MS-DOS does not allow filenames that begin with a dot.
15528 rmdir .libs 2>/dev/null
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15531 $as_echo "$lt_cv_objdir" >&6; }
15532 objdir=$lt_cv_objdir
15538 cat >>confdefs.h <<_ACEOF
15539 #define LT_OBJDIR "$lt_cv_objdir/"
15547 # AIX sometimes has problems with the GCC collect2 program. For some
15548 # reason, if we set the COLLECT_NAMES environment variable, the problems
15549 # vanish in a puff of smoke.
15550 if test "X
${COLLECT_NAMES+set}" != Xset; then
15552 export COLLECT_NAMES
15557 # Global variables:
15559 can_build_shared=yes
15561 # All known linkers require a `.a' archive for static linking (except MSVC,
15562 # which needs '.lib').
15565 with_gnu_ld="$lt_cv_prog_gnu_ld"
15568 old_CFLAGS="$CFLAGS"
15570 # Set sane defaults for various variables
15571 test -z "$CC" && CC=cc
15572 test -z "$LTCC" && LTCC=$CC
15573 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15574 test -z "$LD" && LD=ld
15575 test -z "$ac_objext" && ac_objext=o
15577 for cc_temp in $compiler""; do
15579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15585 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15588 # Only perform the check for file, if the check method requires it
15589 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15590 case $deplibs_check_method in
15592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15594 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15595 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15596 $as_echo_n "(cached
) " >&6
15600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15603 lt_save_MAGIC_CMD="$MAGIC_CMD"
15604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15605 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15606 for ac_dir in $ac_dummy; do
15608 test -z "$ac_dir" && ac_dir=.
15609 if test -f $ac_dir/${ac_tool_prefix}file; then
15610 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15611 if test -n "$file_magic_test_file"; then
15612 case $deplibs_check_method in
15614 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15617 $EGREP "$file_magic_regex" > /dev/null; then
15622 *** Warning: the command libtool uses to detect shared libraries,
15623 *** $file_magic_cmd, produces output that libtool cannot recognize.
15624 *** The result is that libtool may fail to recognize shared libraries
15625 *** as such. This will affect the creation of libtool libraries that
15626 *** depend on shared libraries, but programs linked with such libtool
15627 *** libraries will work regardless of this problem. Nevertheless, you
15628 *** may want to report the problem to your system manager and/or to
15629 *** bug-libtool@gnu.org
15639 MAGIC_CMD="$lt_save_MAGIC_CMD"
15644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15645 if test -n "$MAGIC_CMD"; then
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15647 $as_echo "$MAGIC_CMD" >&6; }
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15650 $as_echo "no
" >&6; }
15657 if test -z "$lt_cv_path_MAGIC_CMD"; then
15658 if test -n "$ac_tool_prefix"; then
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15660 $as_echo_n "checking
for file...
" >&6; }
15661 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15662 $as_echo_n "(cached
) " >&6
15666 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15669 lt_save_MAGIC_CMD="$MAGIC_CMD"
15670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15671 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15672 for ac_dir in $ac_dummy; do
15674 test -z "$ac_dir" && ac_dir=.
15675 if test -f $ac_dir/file; then
15676 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15677 if test -n "$file_magic_test_file"; then
15678 case $deplibs_check_method in
15680 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15683 $EGREP "$file_magic_regex" > /dev/null; then
15688 *** Warning: the command libtool uses to detect shared libraries,
15689 *** $file_magic_cmd, produces output that libtool cannot recognize.
15690 *** The result is that libtool may fail to recognize shared libraries
15691 *** as such. This will affect the creation of libtool libraries that
15692 *** depend on shared libraries, but programs linked with such libtool
15693 *** libraries will work regardless of this problem. Nevertheless, you
15694 *** may want to report the problem to your system manager and/or to
15695 *** bug-libtool@gnu.org
15705 MAGIC_CMD="$lt_save_MAGIC_CMD"
15710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15711 if test -n "$MAGIC_CMD"; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15713 $as_echo "$MAGIC_CMD" >&6; }
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15716 $as_echo "no
" >&6; }
15729 # Use C for the default configuration in the libtool script
15733 ac_cpp='$CPP $CPPFLAGS'
15734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15739 # Source file extension for C test sources.
15742 # Object file extension for compiled C test sources.
15746 # Code to be used in simple compile tests
15747 lt_simple_compile_test_code="int some_variable
= 0;"
15749 # Code to be used in simple link tests
15750 lt_simple_link_test_code='int main(){return(0);}'
15758 # If no C compiler was specified, use CC.
15761 # If no C compiler flags were specified, use CFLAGS.
15762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15764 # Allow CC to be a program name with arguments.
15767 # Save the default compiler, since it gets overwritten when the other
15768 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15769 compiler_DEFAULT=$CC
15771 # save warnings/boilerplate of simple test code
15772 ac_outfile=conftest.$ac_objext
15773 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15774 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15775 _lt_compiler_boilerplate=`cat conftest.err`
15778 ac_outfile=conftest.$ac_objext
15779 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15780 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15781 _lt_linker_boilerplate=`cat conftest.err`
15786 ## There is no encapsulation within the following macros, do not change
15787 ## the running order or otherwise move them around unless you know exactly
15788 ## what you are doing...
15789 if test -n "$compiler"; then
15791 lt_prog_compiler_no_builtin_flag=
15793 if test "$GCC" = yes; then
15794 case $cc_basename in
15796 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15798 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15802 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15803 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15804 $as_echo_n "(cached
) " >&6
15806 lt_cv_prog_compiler_rtti_exceptions=no
15807 ac_outfile=conftest.$ac_objext
15808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15809 lt_compiler_flag="-fno-rtti -fno-exceptions"
15810 # Insert the option either (1) after the last *FLAGS variable, or
15811 # (2) before a word containing "conftest.
", or (3) at the end.
15812 # Note that $ac_compile itself does not contain backslashes and begins
15813 # with a dollar sign (not a hyphen), so the echo should work correctly.
15814 # The option is referenced via a variable to avoid confusing sed.
15815 lt_compile=`echo "$ac_compile" | $SED \
15816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15818 -e 's:$: $lt_compiler_flag:'`
15819 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15820 (eval "$lt_compile" 2>conftest.err)
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15824 if (exit $ac_status) && test -s "$ac_outfile"; then
15825 # The compiler can only warn and ignore the option if not recognized
15826 # So say no if there are warnings other than the usual output.
15827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15830 lt_cv_prog_compiler_rtti_exceptions=yes
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15837 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15839 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15840 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15852 lt_prog_compiler_wl=
15853 lt_prog_compiler_pic=
15854 lt_prog_compiler_static=
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15857 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15859 if test "$GCC" = yes; then
15860 lt_prog_compiler_wl='-Wl,'
15861 lt_prog_compiler_static='-static'
15865 # All AIX code is PIC.
15866 if test "$host_cpu" = ia64; then
15867 # AIX 5 now supports IA64 processor
15868 lt_prog_compiler_static='-Bstatic'
15870 lt_prog_compiler_pic='-fPIC'
15876 # see comment about AmigaOS4 .so support
15877 lt_prog_compiler_pic='-fPIC'
15880 # FIXME: we need at least 68020 code to build shared libraries, but
15881 # adding the `-m68020' flag to GCC prevents building anything better,
15883 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15888 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15889 # PIC is the default for these OSes.
15892 mingw* | cygwin* | pw32* | os2* | cegcc*)
15893 # This hack is so that the source file can tell whether it is being
15894 # built for inclusion in a dll (and should export symbols for example).
15895 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15896 # (--disable-auto-import) libraries
15897 lt_prog_compiler_pic='-DDLL_EXPORT'
15900 darwin* | rhapsody*)
15901 # PIC is the default on this platform
15902 # Common symbols not allowed in MH_DYLIB files
15903 lt_prog_compiler_pic='-fno-common'
15907 # PIC is the default for Haiku.
15908 # The "-static" flag exists, but is broken.
15909 lt_prog_compiler_static=
15913 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15914 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15915 # sets the default TLS model and affects inlining.
15921 lt_prog_compiler_pic='-fPIC'
15927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15928 # Instead, we relocate shared libraries at runtime.
15932 # Just because we use GCC doesn't mean we suddenly get shared libraries
15933 # on systems that don't support them.
15934 lt_prog_compiler_can_build_shared=no
15939 # QNX uses GNU C++, but need to define -shared option too, otherwise
15940 # it will coredump.
15941 lt_prog_compiler_pic='-fPIC -shared'
15945 if test -d /usr/nec; then
15946 lt_prog_compiler_pic=-Kconform_pic
15951 lt_prog_compiler_pic='-fPIC'
15955 case $cc_basename in
15956 nvcc*) # Cuda Compiler Driver 2.2
15957 lt_prog_compiler_wl='-Xlinker '
15958 lt_prog_compiler_pic='-Xcompiler -fPIC'
15962 # PORTME Check for flag to pass linker flags through the system compiler.
15965 lt_prog_compiler_wl='-Wl,'
15966 if test "$host_cpu" = ia64; then
15967 # AIX 5 now supports IA64 processor
15968 lt_prog_compiler_static='-Bstatic'
15970 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15974 mingw* | cygwin* | pw32* | os2* | cegcc*)
15975 # This hack is so that the source file can tell whether it is being
15976 # built for inclusion in a dll (and should export symbols for example).
15977 lt_prog_compiler_pic='-DDLL_EXPORT'
15980 hpux9* | hpux10* | hpux11*)
15981 lt_prog_compiler_wl='-Wl,'
15982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15983 # not for PA HP-UX.
15989 lt_prog_compiler_pic='+Z'
15992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15993 lt_prog_compiler_static='${wl}-a ${wl}archive'
15996 irix5* | irix6* | nonstopux*)
15997 lt_prog_compiler_wl='-Wl,'
15998 # PIC (with -KPIC) is the default.
15999 lt_prog_compiler_static='-non_shared'
16002 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16003 case $cc_basename in
16004 # old Intel for x86_64 which still supported -KPIC.
16006 lt_prog_compiler_wl='-Wl,'
16007 lt_prog_compiler_pic='-KPIC'
16008 lt_prog_compiler_static='-static'
16010 # icc used to be incompatible with GCC.
16011 # ICC 10 doesn't accept -KPIC any more.
16013 lt_prog_compiler_wl='-Wl,'
16014 lt_prog_compiler_pic='-fPIC'
16015 lt_prog_compiler_static='-static'
16017 # Lahey Fortran 8.1.
16019 lt_prog_compiler_wl='-Wl,'
16020 lt_prog_compiler_pic='--shared'
16021 lt_prog_compiler_static='--static'
16023 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16024 # Portland Group compilers (*not* the Pentium gcc compiler,
16025 # which looks to be a dead project)
16026 lt_prog_compiler_wl='-Wl,'
16027 lt_prog_compiler_pic='-fpic'
16028 lt_prog_compiler_static='-Bstatic'
16031 lt_prog_compiler_wl='-Wl,'
16032 # All Alpha code is PIC.
16033 lt_prog_compiler_static='-non_shared'
16035 xl* | bgxl* | bgf* | mpixl*)
16036 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16037 lt_prog_compiler_wl='-Wl,'
16038 lt_prog_compiler_pic='-qpic'
16039 lt_prog_compiler_static='-qstaticlink'
16042 case `$CC -V 2>&1 | sed 5q` in
16043 *Sun\ F* | *Sun*Fortran*)
16044 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16045 lt_prog_compiler_pic='-KPIC'
16046 lt_prog_compiler_static='-Bstatic'
16047 lt_prog_compiler_wl=''
16051 lt_prog_compiler_pic='-KPIC'
16052 lt_prog_compiler_static='-Bstatic'
16053 lt_prog_compiler_wl='-Wl,'
16061 lt_prog_compiler_pic='-KPIC'
16062 lt_prog_compiler_static='-Bstatic'
16066 # QNX uses GNU C++, but need to define -shared option too, otherwise
16067 # it will coredump.
16068 lt_prog_compiler_pic='-fPIC -shared'
16071 osf3* | osf4* | osf5*)
16072 lt_prog_compiler_wl='-Wl,'
16073 # All OSF/1 code is PIC.
16074 lt_prog_compiler_static='-non_shared'
16078 lt_prog_compiler_static='-non_shared'
16082 lt_prog_compiler_pic='-KPIC'
16083 lt_prog_compiler_static='-Bstatic'
16084 case $cc_basename in
16085 f77* | f90* | f95*)
16086 lt_prog_compiler_wl='-Qoption ld ';;
16088 lt_prog_compiler_wl='-Wl,';;
16093 lt_prog_compiler_wl='-Qoption ld '
16094 lt_prog_compiler_pic='-PIC'
16095 lt_prog_compiler_static='-Bstatic'
16098 sysv4 | sysv4.2uw2* | sysv4.3*)
16099 lt_prog_compiler_wl='-Wl,'
16100 lt_prog_compiler_pic='-KPIC'
16101 lt_prog_compiler_static='-Bstatic'
16105 if test -d /usr/nec ;then
16106 lt_prog_compiler_pic='-Kconform_pic'
16107 lt_prog_compiler_static='-Bstatic'
16111 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16112 lt_prog_compiler_wl='-Wl,'
16113 lt_prog_compiler_pic='-KPIC'
16114 lt_prog_compiler_static='-Bstatic'
16118 lt_prog_compiler_wl='-Wl,'
16119 lt_prog_compiler_can_build_shared=no
16123 lt_prog_compiler_pic='-pic'
16124 lt_prog_compiler_static='-Bstatic'
16128 lt_prog_compiler_can_build_shared=no
16134 # For platforms which do not support PIC, -DPIC is meaningless:
16136 lt_prog_compiler_pic=
16139 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16143 $as_echo "$lt_prog_compiler_pic" >&6; }
16151 # Check to make sure the PIC flag actually works.
16153 if test -n "$lt_prog_compiler_pic"; then
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16155 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16156 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16157 $as_echo_n "(cached
) " >&6
16159 lt_cv_prog_compiler_pic_works=no
16160 ac_outfile=conftest.$ac_objext
16161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16162 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16163 # Insert the option either (1) after the last *FLAGS variable, or
16164 # (2) before a word containing "conftest.
", or (3) at the end.
16165 # Note that $ac_compile itself does not contain backslashes and begins
16166 # with a dollar sign (not a hyphen), so the echo should work correctly.
16167 # The option is referenced via a variable to avoid confusing sed.
16168 lt_compile=`echo "$ac_compile" | $SED \
16169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16171 -e 's:$: $lt_compiler_flag:'`
16172 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16173 (eval "$lt_compile" 2>conftest.err)
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16177 if (exit $ac_status) && test -s "$ac_outfile"; then
16178 # The compiler can only warn and ignore the option if not recognized
16179 # So say no if there are warnings other than the usual output.
16180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16183 lt_cv_prog_compiler_pic_works=yes
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16190 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16192 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16193 case $lt_prog_compiler_pic in
16195 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16198 lt_prog_compiler_pic=
16199 lt_prog_compiler_can_build_shared=no
16210 # Check to make sure the static flag actually works.
16212 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16214 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16215 if ${lt_cv_prog_compiler_static_works+:} false; then :
16216 $as_echo_n "(cached
) " >&6
16218 lt_cv_prog_compiler_static_works=no
16219 save_LDFLAGS="$LDFLAGS"
16220 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16221 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16223 # The linker can only warn and ignore the option if not recognized
16224 # So say no if there are warnings
16225 if test -s conftest.err; then
16226 # Append any errors to the config.log.
16227 cat conftest.err 1>&5
16228 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16230 if diff conftest.exp conftest.er2 >/dev/null; then
16231 lt_cv_prog_compiler_static_works=yes
16234 lt_cv_prog_compiler_static_works=yes
16238 LDFLAGS="$save_LDFLAGS"
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16242 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16244 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16247 lt_prog_compiler_static=
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16257 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16258 if ${lt_cv_prog_compiler_c_o+:} false; then :
16259 $as_echo_n "(cached
) " >&6
16261 lt_cv_prog_compiler_c_o=no
16262 $RM -r conftest 2>/dev/null
16266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16268 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16269 # Insert the option either (1) after the last *FLAGS variable, or
16270 # (2) before a word containing "conftest.
", or (3) at the end.
16271 # Note that $ac_compile itself does not contain backslashes and begins
16272 # with a dollar sign (not a hyphen), so the echo should work correctly.
16273 lt_compile=`echo "$ac_compile" | $SED \
16274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16276 -e 's:$: $lt_compiler_flag:'`
16277 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16278 (eval "$lt_compile" 2>out/conftest.err)
16280 cat out/conftest.err >&5
16281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16282 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16284 # The compiler can only warn and ignore the option if not recognized
16285 # So say no if there are warnings
16286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16289 lt_cv_prog_compiler_c_o=yes
16294 # SGI C++ compiler will create directory out/ii_files/ for
16295 # template instantiation
16296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16297 $RM out/* && rmdir out
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16304 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16312 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16313 if ${lt_cv_prog_compiler_c_o+:} false; then :
16314 $as_echo_n "(cached
) " >&6
16316 lt_cv_prog_compiler_c_o=no
16317 $RM -r conftest 2>/dev/null
16321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16323 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16324 # Insert the option either (1) after the last *FLAGS variable, or
16325 # (2) before a word containing "conftest.
", or (3) at the end.
16326 # Note that $ac_compile itself does not contain backslashes and begins
16327 # with a dollar sign (not a hyphen), so the echo should work correctly.
16328 lt_compile=`echo "$ac_compile" | $SED \
16329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16331 -e 's:$: $lt_compiler_flag:'`
16332 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16333 (eval "$lt_compile" 2>out/conftest.err)
16335 cat out/conftest.err >&5
16336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16337 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16339 # The compiler can only warn and ignore the option if not recognized
16340 # So say no if there are warnings
16341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16344 lt_cv_prog_compiler_c_o=yes
16349 # SGI C++ compiler will create directory out/ii_files/ for
16350 # template instantiation
16351 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16352 $RM out/* && rmdir out
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16359 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16364 hard_links="nottested
"
16365 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16366 # do not overwrite the value of need_locks provided by the user
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16368 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16373 ln conftest.a conftest.b 2>&5 || hard_links=no
16374 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16376 $as_echo "$hard_links" >&6; }
16377 if test "$hard_links" = no; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16379 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16392 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16395 allow_undefined_flag=
16396 always_export_symbols=no
16398 archive_expsym_cmds=
16399 compiler_needs_object=no
16400 enable_shared_with_static_runtimes=no
16401 export_dynamic_flag_spec=
16402 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16403 hardcode_automatic=no
16405 hardcode_direct_absolute=no
16406 hardcode_libdir_flag_spec=
16407 hardcode_libdir_flag_spec_ld=
16408 hardcode_libdir_separator=
16409 hardcode_minus_L=no
16410 hardcode_shlibpath_var=unsupported
16412 link_all_deplibs=unknown
16414 module_expsym_cmds=
16415 old_archive_from_new_cmds=
16416 old_archive_from_expsyms_cmds=
16417 thread_safe_flag_spec=
16418 whole_archive_flag_spec=
16419 # include_expsyms should be a list of space-separated symbols to be *always*
16420 # included in the symbol list
16422 # exclude_expsyms can be an extended regexp of symbols to exclude
16423 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16424 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16425 # as well as any symbol that contains `d'.
16426 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16427 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16428 # platforms (ab)use it in PIC code, but their linkers get confused if
16429 # the symbol is explicitly referenced. Since portable code cannot
16430 # rely on this symbol name, it's probably fine to never include it in
16431 # preloaded symbol tables.
16432 # Exclude shared library initialization/finalization symbols.
16433 extract_expsyms_cmds=
16436 cygwin* | mingw* | pw32* | cegcc*)
16437 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16438 # When not using gcc, we currently assume that we are using
16439 # Microsoft Visual C++.
16440 if test "$GCC" != yes; then
16445 # we just hope/assume this is gcc and not c89 (= MSVC++)
16455 # On some targets, GNU ld is compatible enough with the native linker
16456 # that we're better off using the native interface for both.
16457 lt_use_gnu_ld_interface=no
16458 if test "$with_gnu_ld" = yes; then
16461 # The AIX port of GNU ld has always aspired to compatibility
16462 # with the native linker. However, as the warning in the GNU ld
16463 # block says, versions before 2.19.5* couldn't really create working
16464 # shared libraries, regardless of the interface used.
16465 case `$LD -v 2>&1` in
16466 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16467 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16468 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16470 lt_use_gnu_ld_interface=yes
16475 lt_use_gnu_ld_interface=yes
16480 if test "$lt_use_gnu_ld_interface" = yes; then
16481 # If archive_cmds runs LD, not CC, wlarc should be empty
16484 # Set some defaults for GNU ld with shared library support. These
16485 # are reset later if shared libraries are not supported. Putting them
16486 # here allows them to be overridden if necessary.
16487 runpath_var=LD_RUN_PATH
16488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16489 export_dynamic_flag_spec='${wl}--export-dynamic'
16490 # ancient GNU ld didn't support --whole-archive et. al.
16491 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16492 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16494 whole_archive_flag_spec=
16496 supports_anon_versioning=no
16497 case `$LD -v 2>&1` in
16498 *GNU\ gold*) supports_anon_versioning=yes ;;
16499 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16502 *\ 2.11.*) ;; # other 2.11 versions
16503 *) supports_anon_versioning=yes ;;
16506 # See if GNU ld supports shared libraries.
16509 # On AIX/PPC, the GNU linker is very broken
16510 if test "$host_cpu" != ia64; then
16514 *** Warning: the GNU linker, at least up to release 2.19, is reported
16515 *** to be unable to reliably create shared libraries on AIX.
16516 *** Therefore, libtool is disabling shared libraries support. If you
16517 *** really care for shared libraries, you may want to install binutils
16518 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16519 *** You will then need to restart the configuration process.
16528 # see comment about AmigaOS4 .so support
16529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16530 archive_expsym_cmds=''
16533 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)'
16534 hardcode_libdir_flag_spec
='-L$libdir'
16535 hardcode_minus_L
=yes
16541 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16542 allow_undefined_flag
=unsupported
16543 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16544 # support --undefined. This deserves some investigation. FIXME
16545 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16551 cygwin
* | mingw
* | pw32
* | cegcc
*)
16552 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16553 # as there is no search path for DLLs.
16554 hardcode_libdir_flag_spec
='-L$libdir'
16555 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16556 allow_undefined_flag
=unsupported
16557 always_export_symbols
=no
16558 enable_shared_with_static_runtimes
=yes
16559 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16561 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16562 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16563 # If the export-symbols file already is a .def file (1st line
16564 # is EXPORTS), use it as is; otherwise, prepend...
16565 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16566 cp $export_symbols $output_objdir/$soname.def;
16568 echo EXPORTS > $output_objdir/$soname.def;
16569 cat $export_symbols >> $output_objdir/$soname.def;
16571 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16578 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16579 link_all_deplibs
=yes
16584 hardcode_shlibpath_var
=no
16585 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16586 export_dynamic_flag_spec
='${wl}-E'
16587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16588 # Instead, shared libraries are loaded at an image base (0x10000000 by
16589 # default) and relocated if they conflict, which is a slow very memory
16590 # consuming and fragmenting process. To avoid this, we pick a random,
16591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16593 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16594 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'
16597 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16599 if test "$host_os" = linux-dietlibc
; then
16600 case $cc_basename in
16601 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16604 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16605 && test "$tmp_diet" = no
16607 tmp_addflag
=' $pic_flag'
16608 tmp_sharedflag
='-shared'
16609 case $cc_basename,$host_cpu in
16610 pgcc
*) # Portland Group C compiler
16611 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'
16612 tmp_addflag
=' $pic_flag'
16614 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16615 # Portland Group f77 and f90 compilers
16616 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'
16617 tmp_addflag
=' $pic_flag -Mnomain' ;;
16618 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16619 tmp_addflag
=' -i_dynamic' ;;
16620 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16621 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16622 ifc
* | ifort
*) # Intel Fortran compiler
16623 tmp_addflag
=' -nofor_main' ;;
16624 lf95
*) # Lahey Fortran 8.1
16625 whole_archive_flag_spec
=
16626 tmp_sharedflag
='--shared' ;;
16627 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16628 tmp_sharedflag
='-qmkshrobj'
16630 nvcc
*) # Cuda Compiler Driver 2.2
16631 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'
16632 compiler_needs_object
=yes
16635 case `$CC -V 2>&1 | sed 5q` in
16636 *Sun\ C
*) # Sun C 5.9
16637 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'
16638 compiler_needs_object
=yes
16639 tmp_sharedflag
='-G' ;;
16640 *Sun\ F
*) # Sun Fortran 8.3
16641 tmp_sharedflag
='-G' ;;
16643 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16645 if test "x$supports_anon_versioning" = xyes
; then
16646 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16647 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16648 echo "local: *; };" >> $output_objdir/$libname.ver~
16649 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16652 case $cc_basename in
16653 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16654 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16655 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16656 hardcode_libdir_flag_spec
=
16657 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16658 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16659 if test "x$supports_anon_versioning" = xyes
; then
16660 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16661 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16662 echo "local: *; };" >> $output_objdir/$libname.ver~
16663 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16673 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16674 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16677 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16678 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16683 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16687 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16688 *** create shared libraries on Solaris systems. Therefore, libtool
16689 *** is disabling shared libraries support. We urge you to upgrade GNU
16690 *** binutils to release 2.9.1 or newer. Another option is to modify
16691 *** your PATH or compiler configuration so that the native linker is
16692 *** used, and then restart.
16695 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16696 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16697 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16703 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16704 case `$LD -v 2>&1` in
16705 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16709 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16710 *** reliably create shared libraries on SCO systems. Therefore, libtool
16711 *** is disabling shared libraries support. We urge you to upgrade GNU
16712 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16713 *** your PATH or compiler configuration so that the native linker is
16714 *** used, and then restart.
16719 # For security reasons, it is highly recommended that you always
16720 # use absolute paths for naming shared libraries, and exclude the
16721 # DT_RUNPATH tag from executables and libraries. But doing so
16722 # requires that you compile everything twice, which is a pain.
16723 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16724 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16725 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16726 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16735 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16737 hardcode_direct
=yes
16738 hardcode_shlibpath_var
=no
16742 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16743 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16744 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16751 if test "$ld_shlibs" = no
; then
16753 hardcode_libdir_flag_spec
=
16754 export_dynamic_flag_spec
=
16755 whole_archive_flag_spec
=
16758 # PORTME fill in a description of your system's linker (not GNU ld)
16761 allow_undefined_flag
=unsupported
16762 always_export_symbols
=yes
16763 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'
16764 # Note: this linker hardcodes the directories in LIBPATH if there
16765 # are no directories specified by -L.
16766 hardcode_minus_L
=yes
16767 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16768 # Neither direct hardcoding nor static linking is supported with a
16770 hardcode_direct
=unsupported
16775 if test "$host_cpu" = ia64
; then
16776 # On IA64, the linker does run time linking by default, so we don't
16777 # have to do anything special.
16778 aix_use_runtimelinking
=no
16779 exp_sym_flag
='-Bexport'
16782 # If we're using GNU nm, then we don't want the "-C" option.
16783 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16784 # Also, AIX nm treats weak defined symbols like other global
16785 # defined symbols, whereas GNU nm marks them as "W".
16786 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16787 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'
16789 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'
16791 aix_use_runtimelinking
=no
16793 # Test if we are trying to use run time linking or normal
16794 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16795 # need to do runtime linking.
16796 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16797 for ld_flag
in $LDFLAGS; do
16798 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16799 aix_use_runtimelinking
=yes
16806 exp_sym_flag
='-bexport'
16807 no_entry_flag
='-bnoentry'
16810 # When large executables or shared objects are built, AIX ld can
16811 # have problems creating the table of contents. If linking a library
16812 # or program results in "error TOC overflow" add -mminimal-toc to
16813 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16814 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16817 hardcode_direct
=yes
16818 hardcode_direct_absolute
=yes
16819 hardcode_libdir_separator
=':'
16820 link_all_deplibs
=yes
16821 file_list_spec
='${wl}-f,'
16823 if test "$GCC" = yes; then
16824 case $host_os in aix4.
[012]|aix4.
[012].
*)
16825 # We only want to do this on AIX 4.2 and lower, the check
16826 # below for broken collect2 doesn't work under 4.3+
16827 collect2name
=`${CC} -print-prog-name=collect2`
16828 if test -f "$collect2name" &&
16829 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16831 # We have reworked collect2
16834 # We have old collect2
16835 hardcode_direct
=unsupported
16836 # It fails to find uninstalled libraries when the uninstalled
16837 # path is not listed in the libpath. Setting hardcode_minus_L
16838 # to unsupported forces relinking
16839 hardcode_minus_L
=yes
16840 hardcode_libdir_flag_spec
='-L$libdir'
16841 hardcode_libdir_separator
=
16845 shared_flag
='-shared'
16846 if test "$aix_use_runtimelinking" = yes; then
16847 shared_flag
="$shared_flag "'${wl}-G'
16851 if test "$host_cpu" = ia64
; then
16852 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16853 # chokes on -Wl,-G. The following line is correct:
16856 if test "$aix_use_runtimelinking" = yes; then
16857 shared_flag
='${wl}-G'
16859 shared_flag
='${wl}-bM:SRE'
16864 export_dynamic_flag_spec
='${wl}-bexpall'
16865 # It seems that -bexpall does not export symbols beginning with
16866 # underscore (_), so it is better to generate a list of symbols to export.
16867 always_export_symbols
=yes
16868 if test "$aix_use_runtimelinking" = yes; then
16869 # Warning - without using the other runtime loading flags (-brtl),
16870 # -berok will link without error, but may produce a broken library.
16871 allow_undefined_flag
='-berok'
16872 # Determine the default libpath from the value encoded in an
16873 # empty executable.
16874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16885 if ac_fn_c_try_link
"$LINENO"; then :
16887 lt_aix_libpath_sed
='
16888 /Import File Strings/,/^$/ {
16894 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16895 # Check for a 64-bit object if we didn't find anything.
16896 if test -z "$aix_libpath"; then
16897 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16900 rm -f core conftest.err conftest.
$ac_objext \
16901 conftest
$ac_exeext conftest.
$ac_ext
16902 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16904 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16905 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"
16907 if test "$host_cpu" = ia64
; then
16908 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16909 allow_undefined_flag
="-z nodefs"
16910 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"
16912 # Determine the default libpath from the value encoded in an
16913 # empty executable.
16914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16925 if ac_fn_c_try_link
"$LINENO"; then :
16927 lt_aix_libpath_sed
='
16928 /Import File Strings/,/^$/ {
16934 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16935 # Check for a 64-bit object if we didn't find anything.
16936 if test -z "$aix_libpath"; then
16937 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16940 rm -f core conftest.err conftest.
$ac_objext \
16941 conftest
$ac_exeext conftest.
$ac_ext
16942 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16944 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16945 # Warning - without using the other run time loading flags,
16946 # -berok will link without error, but may produce a broken library.
16947 no_undefined_flag
=' ${wl}-bernotok'
16948 allow_undefined_flag
=' ${wl}-berok'
16949 if test "$with_gnu_ld" = yes; then
16950 # We only use this code for GNU lds that support --whole-archive.
16951 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16953 # Exported symbols can be pulled into shared objects from archives
16954 whole_archive_flag_spec
='$convenience'
16956 archive_cmds_need_lc
=yes
16957 # This is similar to how AIX traditionally builds its shared libraries.
16958 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'
16966 # see comment about AmigaOS4 .so support
16967 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16968 archive_expsym_cmds
=''
16971 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)'
16972 hardcode_libdir_flag_spec
='-L$libdir'
16973 hardcode_minus_L
=yes
16979 export_dynamic_flag_spec
=-rdynamic
16982 cygwin
* | mingw
* | pw32
* | cegcc
*)
16983 # When not using gcc, we currently assume that we are using
16984 # Microsoft Visual C++.
16985 # hardcode_libdir_flag_spec is actually meaningless, as there is
16986 # no search path for DLLs.
16987 hardcode_libdir_flag_spec
=' '
16988 allow_undefined_flag
=unsupported
16989 # Tell ltmain to make .lib files, not .a files.
16991 # Tell ltmain to make .dll files, not .so files.
16993 # FIXME: Setting linknames here is a bad hack.
16994 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16995 # The linker will automatically build a .lib file if we build a DLL.
16996 old_archive_from_new_cmds
='true'
16997 # FIXME: Should let the user specify the lib program.
16998 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16999 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17000 enable_shared_with_static_runtimes
=yes
17003 darwin
* | rhapsody
*)
17006 archive_cmds_need_lc
=no
17008 hardcode_automatic
=yes
17009 hardcode_shlibpath_var
=unsupported
17010 if test "$lt_cv_ld_force_load" = "yes"; then
17011 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\"`'
17013 whole_archive_flag_spec
=''
17015 link_all_deplibs
=yes
17016 allow_undefined_flag
="$_lt_dar_allow_undefined"
17017 case $cc_basename in
17018 ifort
*) _lt_dar_can_shared
=yes ;;
17019 *) _lt_dar_can_shared
=$GCC ;;
17021 if test "$_lt_dar_can_shared" = "yes"; then
17022 output_verbose_link_cmd
=func_echo_all
17023 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17024 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17025 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}"
17026 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}"
17035 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036 hardcode_libdir_flag_spec
='-L$libdir'
17037 hardcode_shlibpath_var
=no
17040 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17041 # support. Future versions do this automatically, but an explicit c++rt0.o
17042 # does not break anything, and helps significantly (at the cost of a little
17045 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17046 hardcode_libdir_flag_spec
='-R$libdir'
17047 hardcode_direct
=yes
17048 hardcode_shlibpath_var
=no
17051 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17053 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17054 hardcode_direct
=yes
17055 hardcode_minus_L
=yes
17056 hardcode_shlibpath_var
=no
17059 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17060 freebsd
* | dragonfly
*)
17061 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17062 hardcode_libdir_flag_spec
='-R$libdir'
17063 hardcode_direct
=yes
17064 hardcode_shlibpath_var
=no
17068 if test "$GCC" = yes; then
17069 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'
17071 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'
17073 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17074 hardcode_libdir_separator
=:
17075 hardcode_direct
=yes
17077 # hardcode_minus_L: Not really in the search PATH,
17078 # but as the default location of the library.
17079 hardcode_minus_L
=yes
17080 export_dynamic_flag_spec
='${wl}-E'
17084 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17085 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17087 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17089 if test "$with_gnu_ld" = no
; then
17090 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17091 hardcode_libdir_flag_spec_ld
='+b $libdir'
17092 hardcode_libdir_separator
=:
17093 hardcode_direct
=yes
17094 hardcode_direct_absolute
=yes
17095 export_dynamic_flag_spec
='${wl}-E'
17096 # hardcode_minus_L: Not really in the search PATH,
17097 # but as the default location of the library.
17098 hardcode_minus_L
=yes
17103 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17106 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17109 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17112 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17118 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17121 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17125 # Older versions of the 11.00 compiler do not understand -b yet
17126 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17128 $as_echo_n "checking if $CC understands -b... " >&6; }
17129 if ${lt_cv_prog_compiler__b+:} false
; then :
17130 $as_echo_n "(cached) " >&6
17132 lt_cv_prog_compiler__b
=no
17133 save_LDFLAGS
="$LDFLAGS"
17134 LDFLAGS
="$LDFLAGS -b"
17135 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17136 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17137 # The linker can only warn and ignore the option if not recognized
17138 # So say no if there are warnings
17139 if test -s conftest.err
; then
17140 # Append any errors to the config.log.
17141 cat conftest.err
1>&5
17142 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17143 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17144 if diff conftest.exp conftest.er2
>/dev
/null
; then
17145 lt_cv_prog_compiler__b
=yes
17148 lt_cv_prog_compiler__b
=yes
17152 LDFLAGS
="$save_LDFLAGS"
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17156 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17158 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17159 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17161 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17167 if test "$with_gnu_ld" = no
; then
17168 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17169 hardcode_libdir_separator
=:
17174 hardcode_shlibpath_var
=no
17177 hardcode_direct
=yes
17178 hardcode_direct_absolute
=yes
17179 export_dynamic_flag_spec
='${wl}-E'
17181 # hardcode_minus_L: Not really in the search PATH,
17182 # but as the default location of the library.
17183 hardcode_minus_L
=yes
17189 irix5
* | irix6
* | nonstopux
*)
17190 if test "$GCC" = yes; then
17191 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'
17192 # Try to use the -exported_symbol ld option, if it does not
17193 # work, assume that -exports_file does not work either and
17194 # implicitly export all symbols.
17195 save_LDFLAGS
="$LDFLAGS"
17196 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17201 if ac_fn_c_try_link
"$LINENO"; then :
17202 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'
17205 rm -f core conftest.err conftest.
$ac_objext \
17206 conftest
$ac_exeext conftest.
$ac_ext
17207 LDFLAGS
="$save_LDFLAGS"
17209 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'
17210 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'
17212 archive_cmds_need_lc
='no'
17213 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17214 hardcode_libdir_separator
=:
17216 link_all_deplibs
=yes
17220 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17221 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17223 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17225 hardcode_libdir_flag_spec
='-R$libdir'
17226 hardcode_direct
=yes
17227 hardcode_shlibpath_var
=no
17231 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17232 hardcode_direct
=yes
17233 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17234 hardcode_libdir_separator
=:
17235 hardcode_shlibpath_var
=no
17242 if test -f /usr
/libexec
/ld.so
; then
17243 hardcode_direct
=yes
17244 hardcode_shlibpath_var
=no
17245 hardcode_direct_absolute
=yes
17246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17247 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17248 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17249 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17250 export_dynamic_flag_spec
='${wl}-E'
17253 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17254 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17255 hardcode_libdir_flag_spec
='-R$libdir'
17258 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17259 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17269 hardcode_libdir_flag_spec
='-L$libdir'
17270 hardcode_minus_L
=yes
17271 allow_undefined_flag
=unsupported
17272 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'
17273 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17277 if test "$GCC" = yes; then
17278 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17279 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'
17281 allow_undefined_flag
=' -expect_unresolved \*'
17282 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'
17284 archive_cmds_need_lc
='no'
17285 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17286 hardcode_libdir_separator
=:
17289 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17290 if test "$GCC" = yes; then
17291 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17292 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'
17293 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17295 allow_undefined_flag
=' -expect_unresolved \*'
17296 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'
17297 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~
17298 $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'
17300 # Both c and cxx compiler support -rpath directly
17301 hardcode_libdir_flag_spec
='-rpath $libdir'
17303 archive_cmds_need_lc
='no'
17304 hardcode_libdir_separator
=:
17308 no_undefined_flag
=' -z defs'
17309 if test "$GCC" = yes; then
17311 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17312 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17313 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17315 case `$CC -V 2>&1` in
17318 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17319 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17320 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17324 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17325 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17326 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17330 hardcode_libdir_flag_spec
='-R$libdir'
17331 hardcode_shlibpath_var
=no
17333 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17335 # The compiler driver will combine and reorder linker options,
17336 # but understands `-z linker_flag'. GCC discards it without `$wl',
17337 # but is careful enough not to reorder.
17338 # Supported since Solaris 2.6 (maybe 2.5.1?)
17339 if test "$GCC" = yes; then
17340 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17342 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17346 link_all_deplibs
=yes
17350 if test "x$host_vendor" = xsequent
; then
17351 # Use $CC to link under sequent, because it throws in some extra .o
17352 # files that make .init and .fini sections work.
17353 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17355 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17357 hardcode_libdir_flag_spec
='-L$libdir'
17358 hardcode_direct
=yes
17359 hardcode_minus_L
=yes
17360 hardcode_shlibpath_var
=no
17364 case $host_vendor in
17366 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17367 hardcode_direct
=yes # is this really true???
17370 ## LD is ld it makes a PLAMLIB
17371 ## CC just makes a GrossModule.
17372 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17373 reload_cmds
='$CC -r -o $output$reload_objs'
17377 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17378 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17381 runpath_var
='LD_RUN_PATH'
17382 hardcode_shlibpath_var
=no
17386 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387 hardcode_shlibpath_var
=no
17388 export_dynamic_flag_spec
='-Bexport'
17392 if test -d /usr
/nec
; then
17393 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17394 hardcode_shlibpath_var
=no
17395 runpath_var
=LD_RUN_PATH
17396 hardcode_runpath_var
=yes
17401 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17402 no_undefined_flag
='${wl}-z,text'
17403 archive_cmds_need_lc
=no
17404 hardcode_shlibpath_var
=no
17405 runpath_var
='LD_RUN_PATH'
17407 if test "$GCC" = yes; then
17408 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17409 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17411 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17412 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17416 sysv5
* | sco3.2v5
* | sco5v6
*)
17417 # Note: We can NOT use -z defs as we might desire, because we do not
17418 # link with -lc, and that would cause any symbols used from libc to
17419 # always be unresolved, which means just about no library would
17420 # ever link correctly. If we're not using GNU ld we use -z text
17421 # though, which does catch some bad symbols but isn't as heavy-handed
17423 no_undefined_flag
='${wl}-z,text'
17424 allow_undefined_flag
='${wl}-z,nodefs'
17425 archive_cmds_need_lc
=no
17426 hardcode_shlibpath_var
=no
17427 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17428 hardcode_libdir_separator
=':'
17429 link_all_deplibs
=yes
17430 export_dynamic_flag_spec
='${wl}-Bexport'
17431 runpath_var
='LD_RUN_PATH'
17433 if test "$GCC" = yes; then
17434 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17435 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17437 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17438 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17443 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444 hardcode_libdir_flag_spec
='-L$libdir'
17445 hardcode_shlibpath_var
=no
17453 if test x
$host_vendor = xsni
; then
17455 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17456 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17463 $as_echo "$ld_shlibs" >&6; }
17464 test "$ld_shlibs" = no
&& can_build_shared
=no
17466 with_gnu_ld
=$with_gnu_ld
17483 # Do we need to explicitly link libc?
17485 case "x$archive_cmds_need_lc" in
17487 # Assume -lc should be added
17488 archive_cmds_need_lc
=yes
17490 if test "$enable_shared" = yes && test "$GCC" = yes; then
17491 case $archive_cmds in
17493 # FIXME: we may have to deal with multi-command sequences.
17496 # Test whether the compiler implicitly links with -lc since on some
17497 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17498 # to ld, don't add -lc before -lgcc.
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17500 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17501 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17502 $as_echo_n "(cached) " >&6
17505 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17508 (eval $ac_compile) 2>&5
17510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17511 test $ac_status = 0; } 2>conftest.err
; then
17514 libobjs
=conftest.
$ac_objext
17516 wl
=$lt_prog_compiler_wl
17517 pic_flag
=$lt_prog_compiler_pic
17523 lt_save_allow_undefined_flag
=$allow_undefined_flag
17524 allow_undefined_flag
=
17525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17526 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17529 test $ac_status = 0; }
17531 lt_cv_archive_cmds_need_lc
=no
17533 lt_cv_archive_cmds_need_lc
=yes
17535 allow_undefined_flag
=$lt_save_allow_undefined_flag
17537 cat conftest.err
1>&5
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17543 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17544 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17708 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17710 if test "$GCC" = yes; then
17712 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17713 *) lt_awk_arg
="/^libraries:/" ;;
17716 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17717 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17719 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17720 case $lt_search_path_spec in
17722 # if the path contains ";" then we assume it to be the separator
17723 # otherwise default to the standard path separator (i.e. ":") - it is
17724 # assumed that no part of a normal pathname contains ";" but that should
17725 # okay in the real world where ";" in dirpaths is itself problematic.
17726 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17729 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17732 # Ok, now we have the path, separated by spaces, we can step through it
17733 # and add multilib dir if necessary.
17734 lt_tmp_lt_search_path_spec
=
17735 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17736 for lt_sys_path
in $lt_search_path_spec; do
17737 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17738 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17740 test -d "$lt_sys_path" && \
17741 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17744 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17745 BEGIN {RS=" "; FS="/|\n";} {
17748 for (lt_i = NF; lt_i > 0; lt_i--) {
17749 if ($lt_i != "" && $lt_i != ".") {
17750 if ($lt_i == "..") {
17753 if (lt_count == 0) {
17754 lt_foo="/" $lt_i lt_foo;
17761 if (lt_foo != "") { lt_freq[lt_foo]++; }
17762 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17764 # AWK program above erroneously prepends '/' to C:/dos/paths
17767 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17768 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17770 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17772 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17774 library_names_spec
=
17775 libname_spec
='lib$name'
17779 postuninstall_cmds
=
17783 shlibpath_overrides_runpath
=unknown
17785 dynamic_linker
="$host_os ld.so"
17786 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17787 need_lib_prefix
=unknown
17788 hardcode_into_libs
=no
17790 # when you set need_version to no, make sure it does not cause -set_version
17791 # flags to be left without arguments
17792 need_version
=unknown
17797 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17798 shlibpath_var
=LIBPATH
17800 # AIX 3 has no versioning support, so we append a major version to the name.
17801 soname_spec
='${libname}${release}${shared_ext}$major'
17808 hardcode_into_libs
=yes
17809 if test "$host_cpu" = ia64
; then
17810 # AIX 5 supports IA64
17811 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17812 shlibpath_var
=LD_LIBRARY_PATH
17814 # With GCC up to 2.95.x, collect2 would create an import file
17815 # for dependence libraries. The import file would start with
17816 # the line `#! .'. This would cause the generated library to
17817 # depend on `.', always an invalid library. This was fixed in
17818 # development snapshots of GCC prior to 3.0.
17820 aix4 | aix4.
[01] | aix4.
[01].
*)
17821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17823 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17826 can_build_shared
=no
17830 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17831 # soname into executable. Probably we can add versioning support to
17832 # collect2, so additional links can be useful in future.
17833 if test "$aix_use_runtimelinking" = yes; then
17834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17835 # instead of lib<name>.a to let people know that these are not
17836 # typical AIX shared libraries.
17837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839 # We preserve .a as extension for shared libraries through AIX4.2
17840 # and later when we are not doing run time linking.
17841 library_names_spec
='${libname}${release}.a $libname.a'
17842 soname_spec
='${libname}${release}${shared_ext}$major'
17844 shlibpath_var
=LIBPATH
17851 # Since July 2007 AmigaOS4 officially supports .so libraries.
17852 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17853 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856 library_names_spec
='$libname.ixlibrary $libname.a'
17857 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17858 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'
17864 library_names_spec
='${libname}${shared_ext}'
17865 dynamic_linker
="$host_os ld.so"
17866 shlibpath_var
=LIBRARY_PATH
17872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17873 soname_spec
='${libname}${release}${shared_ext}$major'
17874 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17875 shlibpath_var
=LD_LIBRARY_PATH
17876 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17877 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17878 # the default ld.so.conf also contains /usr/contrib/lib and
17879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17880 # libtool to hard-code these into programs
17883 cygwin
* | mingw
* | pw32
* | cegcc
*)
17884 version_type
=windows
17889 case $GCC,$host_os in
17890 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17891 library_names_spec
='$libname.dll.a'
17892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17893 postinstall_cmds
='base_file=`basename \${file}`~
17894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17895 dldir=$destdir/`dirname \$dlpath`~
17896 test -d \$dldir || mkdir -p \$dldir~
17897 $install_prog $dir/$dlname \$dldir/$dlname~
17898 chmod a+x \$dldir/$dlname~
17899 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17900 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17902 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17903 dlpath=$dir/\$dldll~
17905 shlibpath_overrides_runpath
=yes
17909 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17910 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17912 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17915 # MinGW DLLs use traditional 'lib' prefix
17916 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17919 # pw32 DLLs use 'pw' prefix rather than 'lib'
17920 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17926 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17929 dynamic_linker
='Win32 ld.exe'
17930 # FIXME: first we should search . and the directory the executable is in
17934 darwin
* | rhapsody
*)
17935 dynamic_linker
="$host_os dyld"
17936 version_type
=darwin
17939 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17940 soname_spec
='${libname}${release}${major}$shared_ext'
17941 shlibpath_overrides_runpath
=yes
17942 shlibpath_var
=DYLD_LIBRARY_PATH
17943 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17945 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17946 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17954 soname_spec
='${libname}${release}${shared_ext}$major'
17955 shlibpath_var
=LD_LIBRARY_PATH
17958 freebsd
* | dragonfly
*)
17959 # DragonFly does not have aout. When/if they implement a new
17960 # versioning mechanism, adjust this.
17961 if test -x /usr
/bin
/objformat
; then
17962 objformat
=`/usr/bin/objformat`
17965 freebsd
[23].
*) objformat
=aout
;;
17966 *) objformat
=elf
;;
17969 version_type
=freebsd-
$objformat
17970 case $version_type in
17972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17977 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17981 shlibpath_var
=LD_LIBRARY_PATH
17984 shlibpath_overrides_runpath
=yes
17986 freebsd3.
[01]* | freebsdelf3.
[01]*)
17987 shlibpath_overrides_runpath
=yes
17988 hardcode_into_libs
=yes
17990 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17991 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17992 shlibpath_overrides_runpath
=no
17993 hardcode_into_libs
=yes
17995 *) # from 4.6 on, and DragonFly
17996 shlibpath_overrides_runpath
=yes
17997 hardcode_into_libs
=yes
18006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18007 soname_spec
='${libname}${release}${shared_ext}$major'
18008 shlibpath_var
=LD_LIBRARY_PATH
18009 hardcode_into_libs
=yes
18016 dynamic_linker
="$host_os runtime_loader"
18017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18018 soname_spec
='${libname}${release}${shared_ext}$major'
18019 shlibpath_var
=LIBRARY_PATH
18020 shlibpath_overrides_runpath
=yes
18021 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18022 hardcode_into_libs
=yes
18025 hpux9
* | hpux10
* | hpux11
*)
18026 # Give a soname corresponding to the major version so that dld.sl refuses to
18027 # link against other versions.
18034 hardcode_into_libs
=yes
18035 dynamic_linker
="$host_os dld.so"
18036 shlibpath_var
=LD_LIBRARY_PATH
18037 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039 soname_spec
='${libname}${release}${shared_ext}$major'
18040 if test "X$HPUX_IA64_MODE" = X32
; then
18041 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18043 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18045 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18049 hardcode_into_libs
=yes
18050 dynamic_linker
="$host_os dld.sl"
18051 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18052 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054 soname_spec
='${libname}${release}${shared_ext}$major'
18055 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18056 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18060 dynamic_linker
="$host_os dld.sl"
18061 shlibpath_var
=SHLIB_PATH
18062 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064 soname_spec
='${libname}${release}${shared_ext}$major'
18067 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18068 postinstall_cmds
='chmod 555 $lib'
18069 # or fails outright, so override atomically:
18070 install_override_mode
=555
18077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18078 soname_spec
='${libname}${release}${shared_ext}$major'
18079 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18080 shlibpath_var
=LD_LIBRARY_PATH
18081 shlibpath_overrides_runpath
=no
18082 hardcode_into_libs
=yes
18085 irix5
* | irix6
* | nonstopux
*)
18087 nonstopux
*) version_type
=nonstopux
;;
18089 if test "$lt_cv_prog_gnu_ld" = yes; then
18097 soname_spec
='${libname}${release}${shared_ext}$major'
18098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18100 irix5
* | nonstopux
*)
18101 libsuff
= shlibsuff
=
18104 case $LD in # libtool.m4 will add one of these switches to LD
18105 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18106 libsuff
= shlibsuff
= libmagic
=32-bit;;
18107 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18108 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18109 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18110 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18111 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18115 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18116 shlibpath_overrides_runpath
=no
18117 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18118 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18119 hardcode_into_libs
=yes
18122 # No shared lib support for Linux oldld, aout, or coff.
18123 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18127 # This must be Linux ELF.
18128 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18132 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18133 soname_spec
='${libname}${release}${shared_ext}$major'
18134 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18135 shlibpath_var
=LD_LIBRARY_PATH
18136 shlibpath_overrides_runpath
=no
18138 # Some binutils ld are patched to set DT_RUNPATH
18139 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18140 $as_echo_n "(cached) " >&6
18142 lt_cv_shlibpath_overrides_runpath
=no
18143 save_LDFLAGS
=$LDFLAGS
18144 save_libdir
=$libdir
18145 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18146 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18158 if ac_fn_c_try_link
"$LINENO"; then :
18159 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18160 lt_cv_shlibpath_overrides_runpath
=yes
18163 rm -f core conftest.err conftest.
$ac_objext \
18164 conftest
$ac_exeext conftest.
$ac_ext
18165 LDFLAGS
=$save_LDFLAGS
18166 libdir
=$save_libdir
18170 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18172 # This implies no fast_install, which is unacceptable.
18173 # Some rework will be needed to allow for fast_install
18174 # before this can be enabled.
18175 hardcode_into_libs
=yes
18177 # Append ld.so.conf contents to the search path
18178 if test -f /etc
/ld.so.conf
; then
18179 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' ' '`
18180 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18183 # We used to test for /lib/ld.so.1 and disable shared libraries on
18184 # powerpc, because MkLinux only supported shared libraries with the
18185 # GNU dynamic linker. Since this was broken with cross compilers,
18186 # most powerpc-linux boxes support dynamic linking these days and
18187 # people can always --disable-shared, the test was removed, and we
18188 # assume the GNU/Linux dynamic linker is in use.
18189 dynamic_linker
='GNU/Linux ld.so'
18196 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18198 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18199 dynamic_linker
='NetBSD (a.out) ld.so'
18201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18202 soname_spec
='${libname}${release}${shared_ext}$major'
18203 dynamic_linker
='NetBSD ld.elf_so'
18205 shlibpath_var
=LD_LIBRARY_PATH
18206 shlibpath_overrides_runpath
=yes
18207 hardcode_into_libs
=yes
18212 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 shlibpath_var
=LD_LIBRARY_PATH
18214 shlibpath_overrides_runpath
=yes
18221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18222 soname_spec
='${libname}${release}${shared_ext}$major'
18223 shlibpath_var
=LD_LIBRARY_PATH
18224 shlibpath_overrides_runpath
=no
18225 hardcode_into_libs
=yes
18226 dynamic_linker
='ldqnx.so'
18231 sys_lib_dlsearch_path_spec
="/usr/lib"
18233 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18235 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18236 *) need_version
=no
;;
18238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18239 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18240 shlibpath_var
=LD_LIBRARY_PATH
18241 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18243 openbsd2.
[89] | openbsd2.
[89].
*)
18244 shlibpath_overrides_runpath
=no
18247 shlibpath_overrides_runpath
=yes
18251 shlibpath_overrides_runpath
=yes
18256 libname_spec
='$name'
18259 library_names_spec
='$libname${shared_ext} $libname.a'
18260 dynamic_linker
='OS/2 ld.exe'
18261 shlibpath_var
=LIBPATH
18264 osf3
* | osf4
* | osf5
*)
18268 soname_spec
='${libname}${release}${shared_ext}$major'
18269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18270 shlibpath_var
=LD_LIBRARY_PATH
18271 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18272 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18284 soname_spec
='${libname}${release}${shared_ext}$major'
18285 shlibpath_var
=LD_LIBRARY_PATH
18286 shlibpath_overrides_runpath
=yes
18287 hardcode_into_libs
=yes
18288 # ldd complains unless libraries are executable
18289 postinstall_cmds
='chmod +x $lib'
18294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18295 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18296 shlibpath_var
=LD_LIBRARY_PATH
18297 shlibpath_overrides_runpath
=yes
18298 if test "$with_gnu_ld" = yes; then
18306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307 soname_spec
='${libname}${release}${shared_ext}$major'
18308 shlibpath_var
=LD_LIBRARY_PATH
18309 case $host_vendor in
18311 shlibpath_overrides_runpath
=no
18313 runpath_var
=LD_RUN_PATH
18321 shlibpath_overrides_runpath
=no
18322 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18328 if test -d /usr
/nec
;then
18330 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18331 soname_spec
='$libname${shared_ext}.$major'
18332 shlibpath_var
=LD_LIBRARY_PATH
18336 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18337 version_type
=freebsd-elf
18340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18341 soname_spec
='${libname}${release}${shared_ext}$major'
18342 shlibpath_var
=LD_LIBRARY_PATH
18343 shlibpath_overrides_runpath
=yes
18344 hardcode_into_libs
=yes
18345 if test "$with_gnu_ld" = yes; then
18346 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18348 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18351 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18355 sys_lib_dlsearch_path_spec
='/usr/lib'
18359 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364 shlibpath_var
=LD_LIBRARY_PATH
18365 shlibpath_overrides_runpath
=no
18366 hardcode_into_libs
=yes
18371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 soname_spec
='${libname}${release}${shared_ext}$major'
18373 shlibpath_var
=LD_LIBRARY_PATH
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18381 $as_echo "$dynamic_linker" >&6; }
18382 test "$dynamic_linker" = no
&& can_build_shared
=no
18384 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18385 if test "$GCC" = yes; then
18386 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18389 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18390 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18392 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18393 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18488 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18490 if test -n "$hardcode_libdir_flag_spec" ||
18491 test -n "$runpath_var" ||
18492 test "X$hardcode_automatic" = "Xyes" ; then
18494 # We can hardcode non-existent directories.
18495 if test "$hardcode_direct" != no
&&
18496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18497 # have to relink, otherwise we might link with an installed library
18498 # when we should be linking with a yet-to-be-installed one
18499 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18500 test "$hardcode_minus_L" != no
; then
18501 # Linking always hardcodes the temporary library directory.
18502 hardcode_action
=relink
18504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18505 hardcode_action
=immediate
18508 # We cannot hardcode anything, or else we can only hardcode existing
18510 hardcode_action
=unsupported
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18513 $as_echo "$hardcode_action" >&6; }
18515 if test "$hardcode_action" = relink ||
18516 test "$inherit_rpath" = yes; then
18517 # Fast installation is not supported
18518 enable_fast_install
=no
18519 elif test "$shlibpath_overrides_runpath" = yes ||
18520 test "$enable_shared" = no
; then
18521 # Fast installation is not necessary
18522 enable_fast_install
=needless
18530 if test "x$enable_dlopen" != xyes
; then
18531 enable_dlopen
=unknown
18532 enable_dlopen_self
=unknown
18533 enable_dlopen_self_static
=unknown
18540 lt_cv_dlopen
="load_add_on"
18542 lt_cv_dlopen_self
=yes
18545 mingw
* | pw32
* | cegcc
*)
18546 lt_cv_dlopen
="LoadLibrary"
18551 lt_cv_dlopen
="dlopen"
18556 # if libdl is installed we need to link against it
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18558 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18559 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18560 $as_echo_n "(cached) " >&6
18562 ac_check_lib_save_LIBS
=$LIBS
18564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18567 /* Override any GCC internal prototype to avoid an error.
18568 Use char because int might match the return type of a GCC
18569 builtin and then its argument prototype would still apply. */
18582 if ac_fn_c_try_link
"$LINENO"; then :
18583 ac_cv_lib_dl_dlopen
=yes
18585 ac_cv_lib_dl_dlopen
=no
18587 rm -f core conftest.err conftest.
$ac_objext \
18588 conftest
$ac_exeext conftest.
$ac_ext
18589 LIBS
=$ac_check_lib_save_LIBS
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18592 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18593 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18594 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18597 lt_cv_dlopen
="dyld"
18599 lt_cv_dlopen_self
=yes
18606 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18607 if test "x$ac_cv_func_shl_load" = xyes
; then :
18608 lt_cv_dlopen
="shl_load"
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18611 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18612 if ${ac_cv_lib_dld_shl_load+:} false
; then :
18613 $as_echo_n "(cached) " >&6
18615 ac_check_lib_save_LIBS
=$LIBS
18617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h. */
18620 /* Override any GCC internal prototype to avoid an error.
18621 Use char because int might match the return type of a GCC
18622 builtin and then its argument prototype would still apply. */
18630 return shl_load ();
18635 if ac_fn_c_try_link
"$LINENO"; then :
18636 ac_cv_lib_dld_shl_load
=yes
18638 ac_cv_lib_dld_shl_load
=no
18640 rm -f core conftest.err conftest.
$ac_objext \
18641 conftest
$ac_exeext conftest.
$ac_ext
18642 LIBS
=$ac_check_lib_save_LIBS
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18645 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18646 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
18647 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18649 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18650 if test "x$ac_cv_func_dlopen" = xyes
; then :
18651 lt_cv_dlopen
="dlopen"
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18654 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18655 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18656 $as_echo_n "(cached) " >&6
18658 ac_check_lib_save_LIBS
=$LIBS
18660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18661 /* end confdefs.h. */
18663 /* Override any GCC internal prototype to avoid an error.
18664 Use char because int might match the return type of a GCC
18665 builtin and then its argument prototype would still apply. */
18678 if ac_fn_c_try_link
"$LINENO"; then :
18679 ac_cv_lib_dl_dlopen
=yes
18681 ac_cv_lib_dl_dlopen
=no
18683 rm -f core conftest.err conftest.
$ac_objext \
18684 conftest
$ac_exeext conftest.
$ac_ext
18685 LIBS
=$ac_check_lib_save_LIBS
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18688 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18689 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18690 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18693 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18694 if ${ac_cv_lib_svld_dlopen+:} false
; then :
18695 $as_echo_n "(cached) " >&6
18697 ac_check_lib_save_LIBS
=$LIBS
18698 LIBS
="-lsvld $LIBS"
18699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18702 /* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18717 if ac_fn_c_try_link
"$LINENO"; then :
18718 ac_cv_lib_svld_dlopen
=yes
18720 ac_cv_lib_svld_dlopen
=no
18722 rm -f core conftest.err conftest.
$ac_objext \
18723 conftest
$ac_exeext conftest.
$ac_ext
18724 LIBS
=$ac_check_lib_save_LIBS
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18727 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18728 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
18729 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18732 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18733 if ${ac_cv_lib_dld_dld_link+:} false
; then :
18734 $as_echo_n "(cached) " >&6
18736 ac_check_lib_save_LIBS
=$LIBS
18738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18741 /* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18751 return dld_link ();
18756 if ac_fn_c_try_link
"$LINENO"; then :
18757 ac_cv_lib_dld_dld_link
=yes
18759 ac_cv_lib_dld_dld_link
=no
18761 rm -f core conftest.err conftest.
$ac_objext \
18762 conftest
$ac_exeext conftest.
$ac_ext
18763 LIBS
=$ac_check_lib_save_LIBS
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18766 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18767 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
18768 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18789 if test "x$lt_cv_dlopen" != xno
; then
18795 case $lt_cv_dlopen in
18797 save_CPPFLAGS
="$CPPFLAGS"
18798 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18800 save_LDFLAGS
="$LDFLAGS"
18801 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18804 LIBS
="$lt_cv_dlopen_libs $LIBS"
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18807 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18808 if ${lt_cv_dlopen_self+:} false
; then :
18809 $as_echo_n "(cached) " >&6
18811 if test "$cross_compiling" = yes; then :
18812 lt_cv_dlopen_self
=cross
18814 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18815 lt_status
=$lt_dlunknown
18816 cat > conftest.
$ac_ext <<_LT_EOF
18817 #line 18817 "configure"
18818 #include "confdefs.h"
18827 # define LT_DLGLOBAL RTLD_GLOBAL
18830 # define LT_DLGLOBAL DL_GLOBAL
18832 # define LT_DLGLOBAL 0
18836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18837 find out it does not work in some platform. */
18838 #ifndef LT_DLLAZY_OR_NOW
18840 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18843 # define LT_DLLAZY_OR_NOW DL_LAZY
18846 # define LT_DLLAZY_OR_NOW RTLD_NOW
18849 # define LT_DLLAZY_OR_NOW DL_NOW
18851 # define LT_DLLAZY_OR_NOW 0
18858 /* When -fvisbility=hidden is used, assume the code has been annotated
18859 correspondingly for the symbols needed. */
18860 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18861 void fnord () __attribute__((visibility("default")));
18864 void fnord () { int i=42; }
18867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18868 int status = $lt_dlunknown;
18872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18875 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18876 else puts (dlerror ());
18878 /* dlclose (self); */
18886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18887 (eval $ac_link) 2>&5
18889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18890 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18891 (.
/conftest
; exit; ) >&5 2>/dev
/null
18893 case x
$lt_status in
18894 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18895 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18896 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18899 # compilation failed
18900 lt_cv_dlopen_self
=no
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18908 $as_echo "$lt_cv_dlopen_self" >&6; }
18910 if test "x$lt_cv_dlopen_self" = xyes
; then
18911 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18913 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18914 if ${lt_cv_dlopen_self_static+:} false
; then :
18915 $as_echo_n "(cached) " >&6
18917 if test "$cross_compiling" = yes; then :
18918 lt_cv_dlopen_self_static
=cross
18920 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18921 lt_status
=$lt_dlunknown
18922 cat > conftest.
$ac_ext <<_LT_EOF
18923 #line 18923 "configure"
18924 #include "confdefs.h"
18933 # define LT_DLGLOBAL RTLD_GLOBAL
18936 # define LT_DLGLOBAL DL_GLOBAL
18938 # define LT_DLGLOBAL 0
18942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18943 find out it does not work in some platform. */
18944 #ifndef LT_DLLAZY_OR_NOW
18946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18949 # define LT_DLLAZY_OR_NOW DL_LAZY
18952 # define LT_DLLAZY_OR_NOW RTLD_NOW
18955 # define LT_DLLAZY_OR_NOW DL_NOW
18957 # define LT_DLLAZY_OR_NOW 0
18964 /* When -fvisbility=hidden is used, assume the code has been annotated
18965 correspondingly for the symbols needed. */
18966 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18967 void fnord () __attribute__((visibility("default")));
18970 void fnord () { int i=42; }
18973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18974 int status = $lt_dlunknown;
18978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18981 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18982 else puts (dlerror ());
18984 /* dlclose (self); */
18992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18993 (eval $ac_link) 2>&5
18995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18996 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18997 (.
/conftest
; exit; ) >&5 2>/dev
/null
18999 case x
$lt_status in
19000 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19001 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19002 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19005 # compilation failed
19006 lt_cv_dlopen_self_static
=no
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19014 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19017 CPPFLAGS
="$save_CPPFLAGS"
19018 LDFLAGS
="$save_LDFLAGS"
19023 case $lt_cv_dlopen_self in
19024 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19025 *) enable_dlopen_self
=unknown
;;
19028 case $lt_cv_dlopen_self_static in
19029 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19030 *) enable_dlopen_self_static
=unknown
;;
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19053 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19054 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19055 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19056 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19058 $as_echo "yes" >&6; }
19060 # FIXME - insert some real tests, host_os isn't really good enough
19063 if test -n "$STRIP" ; then
19064 striplib
="$STRIP -x"
19065 old_striplib
="$STRIP -S"
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19067 $as_echo "yes" >&6; }
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19070 $as_echo "no" >&6; }
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075 $as_echo "no" >&6; }
19091 # Report which library types will actually be built
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19093 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19095 $as_echo "$can_build_shared" >&6; }
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19098 $as_echo_n "checking whether to build shared libraries... " >&6; }
19099 test "$can_build_shared" = "no" && enable_shared
=no
19101 # On AIX, shared libraries and static libraries use the same namespace, and
19102 # are all built from PIC.
19105 test "$enable_shared" = yes && enable_static
=no
19106 if test -n "$RANLIB"; then
19107 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19108 postinstall_cmds
='$RANLIB $lib'
19113 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19114 test "$enable_shared" = yes && enable_static
=no
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19119 $as_echo "$enable_shared" >&6; }
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19122 $as_echo_n "checking whether to build static libraries... " >&6; }
19123 # Make sure either enable_shared or enable_static is yes.
19124 test "$enable_shared" = yes || enable_static
=yes
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19126 $as_echo "$enable_static" >&6; }
19133 ac_cpp
='$CXXCPP $CPPFLAGS'
19134 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19135 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19136 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19140 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19141 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19142 (test "X$CXX" != "Xg++"))) ; then
19144 ac_cpp
='$CXXCPP $CPPFLAGS'
19145 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19146 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19147 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19149 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19150 if test -z "$CXXCPP"; then
19151 if ${ac_cv_prog_CXXCPP+:} false
; then :
19152 $as_echo_n "(cached) " >&6
19154 # Double quotes because CXXCPP needs to be expanded
19155 for CXXCPP
in "$CXX -E" "/lib/cpp"
19157 ac_preproc_ok
=false
19158 for ac_cxx_preproc_warn_flag
in '' yes
19160 # Use a header file that comes with gcc, so configuring glibc
19161 # with a fresh cross-compiler works.
19162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19163 # <limits.h> exists even on freestanding compilers.
19164 # On the NeXT, cc -E runs the code through the compiler's parser,
19165 # not just through cpp. "Syntax error" is here to catch this case.
19166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h. */
19169 # include <limits.h>
19171 # include <assert.h>
19175 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19178 # Broken: fails on valid input.
19181 rm -f conftest.err conftest.i conftest.
$ac_ext
19183 # OK, works on sane cases. Now check whether nonexistent headers
19184 # can be detected and how.
19185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19187 #include <ac_nonexistent.h>
19189 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19190 # Broken: success on invalid input.
19193 # Passes both tests.
19197 rm -f conftest.err conftest.i conftest.
$ac_ext
19200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19201 rm -f conftest.i conftest.err conftest.
$ac_ext
19202 if $ac_preproc_ok; then :
19207 ac_cv_prog_CXXCPP
=$CXXCPP
19210 CXXCPP
=$ac_cv_prog_CXXCPP
19212 ac_cv_prog_CXXCPP
=$CXXCPP
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19215 $as_echo "$CXXCPP" >&6; }
19216 ac_preproc_ok
=false
19217 for ac_cxx_preproc_warn_flag
in '' yes
19219 # Use a header file that comes with gcc, so configuring glibc
19220 # with a fresh cross-compiler works.
19221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19222 # <limits.h> exists even on freestanding compilers.
19223 # On the NeXT, cc -E runs the code through the compiler's parser,
19224 # not just through cpp. "Syntax error" is here to catch this case.
19225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19226 /* end confdefs.h. */
19228 # include <limits.h>
19230 # include <assert.h>
19234 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19237 # Broken: fails on valid input.
19240 rm -f conftest.err conftest.i conftest.
$ac_ext
19242 # OK, works on sane cases. Now check whether nonexistent headers
19243 # can be detected and how.
19244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19246 #include <ac_nonexistent.h>
19248 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19249 # Broken: success on invalid input.
19252 # Passes both tests.
19256 rm -f conftest.err conftest.i conftest.
$ac_ext
19259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19260 rm -f conftest.i conftest.err conftest.
$ac_ext
19261 if $ac_preproc_ok; then :
19264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19266 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19267 See \`config.log' for more details" "$LINENO" 5; }
19271 ac_cpp
='$CXXCPP $CPPFLAGS'
19272 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19277 _lt_caught_CXX_error
=yes
19281 ac_cpp
='$CXXCPP $CPPFLAGS'
19282 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19283 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19284 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19286 archive_cmds_need_lc_CXX
=no
19287 allow_undefined_flag_CXX
=
19288 always_export_symbols_CXX
=no
19289 archive_expsym_cmds_CXX
=
19290 compiler_needs_object_CXX
=no
19291 export_dynamic_flag_spec_CXX
=
19292 hardcode_direct_CXX
=no
19293 hardcode_direct_absolute_CXX
=no
19294 hardcode_libdir_flag_spec_CXX
=
19295 hardcode_libdir_flag_spec_ld_CXX
=
19296 hardcode_libdir_separator_CXX
=
19297 hardcode_minus_L_CXX
=no
19298 hardcode_shlibpath_var_CXX
=unsupported
19299 hardcode_automatic_CXX
=no
19300 inherit_rpath_CXX
=no
19302 module_expsym_cmds_CXX
=
19303 link_all_deplibs_CXX
=unknown
19304 old_archive_cmds_CXX
=$old_archive_cmds
19305 reload_flag_CXX
=$reload_flag
19306 reload_cmds_CXX
=$reload_cmds
19307 no_undefined_flag_CXX
=
19308 whole_archive_flag_spec_CXX
=
19309 enable_shared_with_static_runtimes_CXX
=no
19311 # Source file extension for C++ test sources.
19314 # Object file extension for compiled C++ test sources.
19318 # No sense in running all these tests if we already determined that
19319 # the CXX compiler isn't working. Some variables (like enable_shared)
19320 # are currently assumed to apply to all compilers on this platform,
19321 # and will be corrupted by setting them based on a non-working compiler.
19322 if test "$_lt_caught_CXX_error" != yes; then
19323 # Code to be used in simple compile tests
19324 lt_simple_compile_test_code
="int some_variable = 0;"
19326 # Code to be used in simple link tests
19327 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19329 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19336 # If no C compiler was specified, use CC.
19339 # If no C compiler flags were specified, use CFLAGS.
19340 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19342 # Allow CC to be a program name with arguments.
19346 # save warnings/boilerplate of simple test code
19347 ac_outfile
=conftest.
$ac_objext
19348 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19349 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19350 _lt_compiler_boilerplate
=`cat conftest.err`
19353 ac_outfile
=conftest.
$ac_objext
19354 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19355 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19356 _lt_linker_boilerplate
=`cat conftest.err`
19360 # Allow CC to be a program name with arguments.
19365 lt_save_with_gnu_ld
=$with_gnu_ld
19366 lt_save_path_LD
=$lt_cv_path_LD
19367 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19368 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19370 $as_unset lt_cv_prog_gnu_ld
19372 if test -n "${lt_cv_path_LDCXX+set}"; then
19373 lt_cv_path_LD
=$lt_cv_path_LDCXX
19375 $as_unset lt_cv_path_LD
19377 test -z "${LDCXX+set}" || LD
=$LDCXX
19381 for cc_temp
in $compiler""; do
19383 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19384 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19389 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19392 if test -n "$compiler"; then
19393 # We don't want -fno-exception when compiling C++ code, so set the
19394 # no_builtin_flag separately
19395 if test "$GXX" = yes; then
19396 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19398 lt_prog_compiler_no_builtin_flag_CXX
=
19401 if test "$GXX" = yes; then
19402 # Set up default GNU C++ configuration
19406 # Check whether --with-gnu-ld was given.
19407 if test "${with_gnu_ld+set}" = set; then :
19408 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19414 if test "$GCC" = yes; then
19415 # Check if gcc -print-prog-name=ld gives a path.
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19417 $as_echo_n "checking for ld used by $CC... " >&6; }
19420 # gcc leaves a trailing carriage return which upsets mingw
19421 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19423 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19426 # Accept absolute paths.
19428 re_direlt
='/[^/][^/]*/\.\./'
19429 # Canonicalize the pathname of ld
19430 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19431 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19432 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19434 test -z "$LD" && LD
="$ac_prog"
19437 # If it fails, then pretend we aren't using GCC.
19441 # If it is relative, then search for the first ld in PATH.
19442 with_gnu_ld
=unknown
19445 elif test "$with_gnu_ld" = yes; then
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19447 $as_echo_n "checking for GNU ld... " >&6; }
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19450 $as_echo_n "checking for non-GNU ld... " >&6; }
19452 if ${lt_cv_path_LD+:} false
; then :
19453 $as_echo_n "(cached) " >&6
19455 if test -z "$LD"; then
19456 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19457 for ac_dir
in $PATH; do
19459 test -z "$ac_dir" && ac_dir
=.
19460 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19461 lt_cv_path_LD
="$ac_dir/$ac_prog"
19462 # Check to see if the program is GNU ld. I'd rather use --version,
19463 # but apparently some variants of GNU ld only accept -v.
19464 # Break only if it was the GNU/non-GNU ld that we prefer.
19465 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19466 *GNU
* |
*'with BFD'*)
19467 test "$with_gnu_ld" != no
&& break
19470 test "$with_gnu_ld" != yes && break
19477 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19481 LD
="$lt_cv_path_LD"
19482 if test -n "$LD"; then
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19484 $as_echo "$LD" >&6; }
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19487 $as_echo "no" >&6; }
19489 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19491 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19492 if ${lt_cv_prog_gnu_ld+:} false
; then :
19493 $as_echo_n "(cached) " >&6
19495 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19496 case `$LD -v 2>&1 </dev/null` in
19497 *GNU
* |
*'with BFD'*)
19498 lt_cv_prog_gnu_ld
=yes
19501 lt_cv_prog_gnu_ld
=no
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19506 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19507 with_gnu_ld
=$lt_cv_prog_gnu_ld
19515 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19516 # archiving commands below assume that GNU ld is being used.
19517 if test "$with_gnu_ld" = yes; then
19518 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19519 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'
19521 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19522 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19524 # If archive_cmds runs LD, not CC, wlarc should be empty
19525 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19526 # investigate it a little bit more. (MM)
19529 # ancient GNU ld didn't support --whole-archive et. al.
19530 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19531 $GREP 'no-whole-archive' > /dev
/null
; then
19532 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19534 whole_archive_flag_spec_CXX
=
19540 # A generic and very simple default shared library creation
19541 # command for GNU C++ for the case where it uses the native
19542 # linker, instead of GNU ld. If possible, this setting should
19543 # overridden to take advantage of the native linker features on
19544 # the platform it is being used on.
19545 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19548 # Commands to make compiler produce verbose output that lists
19549 # what "hidden" libraries, object files and flags are used when
19550 # linking a shared library.
19551 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19559 # PORTME: fill in a description of your system's C++ link characteristics
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19561 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19565 # FIXME: insert proper C++ library support
19569 if test "$host_cpu" = ia64
; then
19570 # On IA64, the linker does run time linking by default, so we don't
19571 # have to do anything special.
19572 aix_use_runtimelinking
=no
19573 exp_sym_flag
='-Bexport'
19576 aix_use_runtimelinking
=no
19578 # Test if we are trying to use run time linking or normal
19579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19580 # need to do runtime linking.
19581 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19582 for ld_flag
in $LDFLAGS; do
19585 aix_use_runtimelinking
=yes
19593 exp_sym_flag
='-bexport'
19594 no_entry_flag
='-bnoentry'
19597 # When large executables or shared objects are built, AIX ld can
19598 # have problems creating the table of contents. If linking a library
19599 # or program results in "error TOC overflow" add -mminimal-toc to
19600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19603 archive_cmds_CXX
=''
19604 hardcode_direct_CXX
=yes
19605 hardcode_direct_absolute_CXX
=yes
19606 hardcode_libdir_separator_CXX
=':'
19607 link_all_deplibs_CXX
=yes
19608 file_list_spec_CXX
='${wl}-f,'
19610 if test "$GXX" = yes; then
19611 case $host_os in aix4.
[012]|aix4.
[012].
*)
19612 # We only want to do this on AIX 4.2 and lower, the check
19613 # below for broken collect2 doesn't work under 4.3+
19614 collect2name
=`${CC} -print-prog-name=collect2`
19615 if test -f "$collect2name" &&
19616 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19618 # We have reworked collect2
19621 # We have old collect2
19622 hardcode_direct_CXX
=unsupported
19623 # It fails to find uninstalled libraries when the uninstalled
19624 # path is not listed in the libpath. Setting hardcode_minus_L
19625 # to unsupported forces relinking
19626 hardcode_minus_L_CXX
=yes
19627 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19628 hardcode_libdir_separator_CXX
=
19631 shared_flag
='-shared'
19632 if test "$aix_use_runtimelinking" = yes; then
19633 shared_flag
="$shared_flag "'${wl}-G'
19637 if test "$host_cpu" = ia64
; then
19638 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19639 # chokes on -Wl,-G. The following line is correct:
19642 if test "$aix_use_runtimelinking" = yes; then
19643 shared_flag
='${wl}-G'
19645 shared_flag
='${wl}-bM:SRE'
19650 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19651 # It seems that -bexpall does not export symbols beginning with
19652 # underscore (_), so it is better to generate a list of symbols to
19654 always_export_symbols_CXX
=yes
19655 if test "$aix_use_runtimelinking" = yes; then
19656 # Warning - without using the other runtime loading flags (-brtl),
19657 # -berok will link without error, but may produce a broken library.
19658 allow_undefined_flag_CXX
='-berok'
19659 # Determine the default libpath from the value encoded in an empty
19661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19672 if ac_fn_cxx_try_link
"$LINENO"; then :
19674 lt_aix_libpath_sed
='
19675 /Import File Strings/,/^$/ {
19681 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19682 # Check for a 64-bit object if we didn't find anything.
19683 if test -z "$aix_libpath"; then
19684 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19687 rm -f core conftest.err conftest.
$ac_objext \
19688 conftest
$ac_exeext conftest.
$ac_ext
19689 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19691 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19693 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"
19695 if test "$host_cpu" = ia64
; then
19696 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19697 allow_undefined_flag_CXX
="-z nodefs"
19698 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"
19700 # Determine the default libpath from the value encoded in an
19701 # empty executable.
19702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h. */
19713 if ac_fn_cxx_try_link
"$LINENO"; then :
19715 lt_aix_libpath_sed
='
19716 /Import File Strings/,/^$/ {
19722 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19723 # Check for a 64-bit object if we didn't find anything.
19724 if test -z "$aix_libpath"; then
19725 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19728 rm -f core conftest.err conftest.
$ac_objext \
19729 conftest
$ac_exeext conftest.
$ac_ext
19730 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19732 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19733 # Warning - without using the other run time loading flags,
19734 # -berok will link without error, but may produce a broken library.
19735 no_undefined_flag_CXX
=' ${wl}-bernotok'
19736 allow_undefined_flag_CXX
=' ${wl}-berok'
19737 if test "$with_gnu_ld" = yes; then
19738 # We only use this code for GNU lds that support --whole-archive.
19739 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19741 # Exported symbols can be pulled into shared objects from archives
19742 whole_archive_flag_spec_CXX
='$convenience'
19744 archive_cmds_need_lc_CXX
=yes
19745 # This is similar to how AIX traditionally builds its shared
19747 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'
19753 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19754 allow_undefined_flag_CXX
=unsupported
19755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19756 # support --undefined. This deserves some investigation. FIXME
19757 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19764 case $cc_basename in
19766 # FIXME: insert proper C++ library support
19772 cygwin
* | mingw
* | pw32
* | cegcc
*)
19773 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19774 # as there is no search path for DLLs.
19775 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19776 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19777 allow_undefined_flag_CXX
=unsupported
19778 always_export_symbols_CXX
=no
19779 enable_shared_with_static_runtimes_CXX
=yes
19781 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19782 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'
19783 # If the export-symbols file already is a .def file (1st line
19784 # is EXPORTS), use it as is; otherwise, prepend...
19785 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19786 cp $export_symbols $output_objdir/$soname.def;
19788 echo EXPORTS > $output_objdir/$soname.def;
19789 cat $export_symbols >> $output_objdir/$soname.def;
19791 $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'
19796 darwin
* | rhapsody
*)
19799 archive_cmds_need_lc_CXX
=no
19800 hardcode_direct_CXX
=no
19801 hardcode_automatic_CXX
=yes
19802 hardcode_shlibpath_var_CXX
=unsupported
19803 if test "$lt_cv_ld_force_load" = "yes"; then
19804 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\"`'
19806 whole_archive_flag_spec_CXX
=''
19808 link_all_deplibs_CXX
=yes
19809 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19810 case $cc_basename in
19811 ifort
*) _lt_dar_can_shared
=yes ;;
19812 *) _lt_dar_can_shared
=$GCC ;;
19814 if test "$_lt_dar_can_shared" = "yes"; then
19815 output_verbose_link_cmd
=func_echo_all
19816 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}"
19817 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19818 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}"
19819 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}"
19820 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19821 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}"
19822 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}"
19832 case $cc_basename in
19834 # FIXME: insert proper C++ library support
19838 # Green Hills C++ Compiler
19839 # FIXME: insert proper C++ library support
19843 # FIXME: insert proper C++ library support
19850 # C++ shared libraries reported to be fairly broken before
19856 archive_cmds_need_lc_CXX
=no
19859 freebsd
* | dragonfly
*)
19860 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19869 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19870 link_all_deplibs_CXX
=yes
19874 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19875 hardcode_libdir_separator_CXX
=:
19876 export_dynamic_flag_spec_CXX
='${wl}-E'
19877 hardcode_direct_CXX
=yes
19878 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19879 # but as the default
19880 # location of the library.
19882 case $cc_basename in
19884 # FIXME: insert proper C++ library support
19888 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'
19889 # Commands to make compiler produce verbose output that lists
19890 # what "hidden" libraries, object files and flags are used when
19891 # linking a shared library.
19893 # There doesn't appear to be a way to prevent this compiler from
19894 # explicitly linking system object files so we need to strip them
19895 # from the output so that they don't get included in the library
19897 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"'
19900 if test "$GXX" = yes; then
19901 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'
19903 # FIXME: insert proper C++ library support
19911 if test $with_gnu_ld = no
; then
19912 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19913 hardcode_libdir_separator_CXX
=:
19919 export_dynamic_flag_spec_CXX
='${wl}-E'
19925 hardcode_direct_CXX
=no
19926 hardcode_shlibpath_var_CXX
=no
19929 hardcode_direct_CXX
=yes
19930 hardcode_direct_absolute_CXX
=yes
19931 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19932 # but as the default
19933 # location of the library.
19937 case $cc_basename in
19939 # FIXME: insert proper C++ library support
19945 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19948 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19951 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19954 # Commands to make compiler produce verbose output that lists
19955 # what "hidden" libraries, object files and flags are used when
19956 # linking a shared library.
19958 # There doesn't appear to be a way to prevent this compiler from
19959 # explicitly linking system object files so we need to strip them
19960 # from the output so that they don't get included in the library
19962 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"'
19965 if test "$GXX" = yes; then
19966 if test $with_gnu_ld = no
; then
19969 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19972 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19975 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'
19980 # FIXME: insert proper C++ library support
19988 hardcode_direct_CXX
=no
19989 hardcode_shlibpath_var_CXX
=no
19990 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19991 export_dynamic_flag_spec_CXX
='${wl}-E'
19992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19993 # Instead, shared libraries are loaded at an image base (0x10000000 by
19994 # default) and relocated if they conflict, which is a slow very memory
19995 # consuming and fragmenting process. To avoid this, we pick a random,
19996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19997 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19998 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'
19999 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'
20002 case $cc_basename in
20005 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'
20007 # Archives containing C++ object files must be created using
20008 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20009 # necessary to make sure instantiated templates are included
20011 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20014 if test "$GXX" = yes; then
20015 if test "$with_gnu_ld" = no
; then
20016 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'
20018 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'
20021 link_all_deplibs_CXX
=yes
20024 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20025 hardcode_libdir_separator_CXX
=:
20026 inherit_rpath_CXX
=yes
20029 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20030 case $cc_basename in
20032 # Kuck and Associates, Inc. (KAI) C++ Compiler
20034 # KCC will only create a shared library if the output file
20035 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20036 # to its proper name (with version) after linking.
20037 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'
20038 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'
20039 # Commands to make compiler produce verbose output that lists
20040 # what "hidden" libraries, object files and flags are used when
20041 # linking a shared library.
20043 # There doesn't appear to be a way to prevent this compiler from
20044 # explicitly linking system object files so we need to strip them
20045 # from the output so that they don't get included in the library
20047 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"'
20049 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20050 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20052 # Archives containing C++ object files must be created using
20053 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20054 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20059 # version 8.0 and above of icpc choke on multiply defined symbols
20060 # if we add $predep_objects and $postdep_objects, however 7.1 and
20061 # earlier do not add the objects themselves.
20062 case `$CC -V 2>&1` in
20064 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20065 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'
20067 *) # Version 8.0 or newer
20070 ia64
*) tmp_idyn
=' -i_dynamic';;
20072 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20073 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'
20076 archive_cmds_need_lc_CXX
=no
20077 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20078 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20079 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20082 # Portland Group C++ compiler
20084 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20085 prelink_cmds_CXX
='tpldir=Template.dir~
20087 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20088 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20089 old_archive_cmds_CXX
='tpldir=Template.dir~
20091 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20092 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20094 archive_cmds_CXX
='tpldir=Template.dir~
20096 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20097 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20098 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20100 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20101 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
20103 *) # Version 6 and above use weak symbols
20104 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20105 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'
20109 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20110 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20111 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'
20115 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20116 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'
20118 runpath_var
=LD_RUN_PATH
20119 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20120 hardcode_libdir_separator_CXX
=:
20122 # Commands to make compiler produce verbose output that lists
20123 # what "hidden" libraries, object files and flags are used when
20124 # linking a shared library.
20126 # There doesn't appear to be a way to prevent this compiler from
20127 # explicitly linking system object files so we need to strip them
20128 # from the output so that they don't get included in the library
20130 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'
20132 xl
* | mpixl
* | bgxl
*)
20133 # IBM XL 8.0 on PPC, with GNU ld
20134 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20135 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20136 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20137 if test "x$supports_anon_versioning" = xyes
; then
20138 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20139 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20140 echo "local: *; };" >> $output_objdir/$libname.ver~
20141 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20145 case `$CC -V 2>&1 | sed 5q` in
20148 no_undefined_flag_CXX
=' -zdefs'
20149 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20150 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'
20151 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20152 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'
20153 compiler_needs_object_CXX
=yes
20155 # Not sure whether something based on
20156 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20158 output_verbose_link_cmd
='func_echo_all'
20160 # Archives containing C++ object files must be created using
20161 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20162 # necessary to make sure instantiated templates are included
20164 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20172 # FIXME: insert proper C++ library support
20177 # FIXME: insert proper C++ library support
20182 case $cc_basename in
20184 # FIXME: insert proper C++ library support
20188 # FIXME: insert proper C++ library support
20195 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20196 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20198 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20199 hardcode_direct_CXX
=yes
20200 hardcode_shlibpath_var_CXX
=no
20202 # Workaround some broken pre-1.5 toolchains
20203 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20211 # C++ shared libraries are fairly broken
20216 if test -f /usr
/libexec
/ld.so
; then
20217 hardcode_direct_CXX
=yes
20218 hardcode_shlibpath_var_CXX
=no
20219 hardcode_direct_absolute_CXX
=yes
20220 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20221 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20222 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20223 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20224 export_dynamic_flag_spec_CXX
='${wl}-E'
20225 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20227 output_verbose_link_cmd
=func_echo_all
20233 osf3
* | osf4
* | osf5
*)
20234 case $cc_basename in
20236 # Kuck and Associates, Inc. (KAI) C++ Compiler
20238 # KCC will only create a shared library if the output file
20239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20240 # to its proper name (with version) after linking.
20241 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'
20243 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20244 hardcode_libdir_separator_CXX
=:
20246 # Archives containing C++ object files must be created using
20247 # the KAI C++ compiler.
20249 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20250 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20254 # Rational C++ 2.4.1
20255 # FIXME: insert proper C++ library support
20261 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20262 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'
20263 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20266 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20267 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'
20268 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20269 echo "-hidden">> $lib.exp~
20270 $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~
20272 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20276 hardcode_libdir_separator_CXX
=:
20278 # Commands to make compiler produce verbose output that lists
20279 # what "hidden" libraries, object files and flags are used when
20280 # linking a shared library.
20282 # There doesn't appear to be a way to prevent this compiler from
20283 # explicitly linking system object files so we need to strip them
20284 # from the output so that they don't get included in the library
20286 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"'
20289 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20290 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20293 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'
20296 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'
20300 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20301 hardcode_libdir_separator_CXX
=:
20303 # Commands to make compiler produce verbose output that lists
20304 # what "hidden" libraries, object files and flags are used when
20305 # linking a shared library.
20306 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20309 # FIXME: insert proper C++ library support
20317 # FIXME: insert proper C++ library support
20322 case $cc_basename in
20325 # FIXME: insert proper C++ library support
20330 # FIXME: insert proper C++ library support
20334 # FIXME: insert proper C++ library support
20341 case $cc_basename in
20343 # Sun C++ 4.2, 5.x and Centerline C++
20344 archive_cmds_need_lc_CXX
=yes
20345 no_undefined_flag_CXX
=' -zdefs'
20346 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20347 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20348 $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'
20350 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20351 hardcode_shlibpath_var_CXX
=no
20353 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20355 # The compiler driver will combine and reorder linker options,
20356 # but understands `-z linker_flag'.
20357 # Supported since Solaris 2.6 (maybe 2.5.1?)
20358 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20361 link_all_deplibs_CXX
=yes
20363 output_verbose_link_cmd
='func_echo_all'
20365 # Archives containing C++ object files must be created using
20366 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20367 # necessary to make sure instantiated templates are included
20369 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20372 # Green Hills C++ Compiler
20373 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20375 # The C++ compiler must be used to create the archive.
20376 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20379 # GNU C++ compiler with Solaris linker
20380 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20381 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20382 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20383 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20384 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20385 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20387 # Commands to make compiler produce verbose output that lists
20388 # what "hidden" libraries, object files and flags are used when
20389 # linking a shared library.
20390 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20392 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20394 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20395 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20396 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20398 # Commands to make compiler produce verbose output that lists
20399 # what "hidden" libraries, object files and flags are used when
20400 # linking a shared library.
20401 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20404 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20406 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20408 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20416 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20417 no_undefined_flag_CXX
='${wl}-z,text'
20418 archive_cmds_need_lc_CXX
=no
20419 hardcode_shlibpath_var_CXX
=no
20420 runpath_var
='LD_RUN_PATH'
20422 case $cc_basename in
20424 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20425 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20428 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20429 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20434 sysv5
* | sco3.2v5
* | sco5v6
*)
20435 # Note: We can NOT use -z defs as we might desire, because we do not
20436 # link with -lc, and that would cause any symbols used from libc to
20437 # always be unresolved, which means just about no library would
20438 # ever link correctly. If we're not using GNU ld we use -z text
20439 # though, which does catch some bad symbols but isn't as heavy-handed
20441 no_undefined_flag_CXX
='${wl}-z,text'
20442 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20443 archive_cmds_need_lc_CXX
=no
20444 hardcode_shlibpath_var_CXX
=no
20445 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20446 hardcode_libdir_separator_CXX
=':'
20447 link_all_deplibs_CXX
=yes
20448 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20449 runpath_var
='LD_RUN_PATH'
20451 case $cc_basename in
20453 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20454 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20455 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20456 '"$old_archive_cmds_CXX"
20457 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20458 '"$reload_cmds_CXX"
20461 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20462 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20468 case $cc_basename in
20470 # NonStop-UX NCC 3.20
20471 # FIXME: insert proper C++ library support
20475 # FIXME: insert proper C++ library support
20482 # FIXME: insert proper C++ library support
20487 # FIXME: insert proper C++ library support
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20493 $as_echo "$ld_shlibs_CXX" >&6; }
20494 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20500 ## There is no encapsulation within the following macros, do not change
20501 ## the running order or otherwise move them around unless you know exactly
20502 ## what you are doing...
20503 # Dependencies to place before and after the object being linked:
20504 predep_objects_CXX
=
20505 postdep_objects_CXX
=
20508 compiler_lib_search_path_CXX
=
20510 cat > conftest.
$ac_ext <<_LT_EOF
20514 Foo (void) { a = 0; }
20520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20521 (eval $ac_compile) 2>&5
20523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20524 test $ac_status = 0; }; then
20525 # Parse the compiler output and extract the necessary
20526 # objects, libraries and library flags.
20528 # Sentinel used to keep track of whether or not we are before
20529 # the conftest object file.
20530 pre_test_object_deps_done
=no
20532 for p
in `eval "$output_verbose_link_cmd"`; do
20536 # Some compilers place space between "-{L,R}" and the path.
20537 # Remove the space.
20538 if test $p = "-L" ||
20539 test $p = "-R"; then
20546 if test "$pre_test_object_deps_done" = no
; then
20549 # Internal compiler library paths should come after those
20550 # provided the user. The postdeps already come after the
20551 # user supplied libs so there is no need to process them.
20552 if test -z "$compiler_lib_search_path_CXX"; then
20553 compiler_lib_search_path_CXX
="${prev}${p}"
20555 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20558 # The "-l" case would never come before the object being
20559 # linked, so don't bother handling this case.
20562 if test -z "$postdeps_CXX"; then
20563 postdeps_CXX
="${prev}${p}"
20565 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20571 # This assumes that the test object file only shows up
20572 # once in the compiler output.
20573 if test "$p" = "conftest.$objext"; then
20574 pre_test_object_deps_done
=yes
20578 if test "$pre_test_object_deps_done" = no
; then
20579 if test -z "$predep_objects_CXX"; then
20580 predep_objects_CXX
="$p"
20582 predep_objects_CXX
="$predep_objects_CXX $p"
20585 if test -z "$postdep_objects_CXX"; then
20586 postdep_objects_CXX
="$p"
20588 postdep_objects_CXX
="$postdep_objects_CXX $p"
20593 *) ;; # Ignore the rest.
20601 echo "libtool.m4: error: problem compiling CXX test program"
20604 $RM -f confest.
$objext
20606 # PORTME: override above test on systems where it is broken
20609 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20610 # hack all around it, let's just trust "g++" to DTRT.
20611 predep_objects_CXX
=
20612 postdep_objects_CXX
=
20617 case `$CC -V 2>&1 | sed 5q` in
20621 # The more standards-conforming stlport4 library is
20622 # incompatible with the Cstd library. Avoid specifying
20623 # it if it's in CXXFLAGS. Ignore libCrun as
20624 # -library=stlport4 depends on it.
20625 case " $CXX $CXXFLAGS " in
20626 *" -library=stlport4 "*)
20627 solaris_use_stlport4
=yes
20631 if test "$solaris_use_stlport4" != yes; then
20632 postdeps_CXX
='-library=Cstd -library=Crun'
20639 case $cc_basename in
20641 # The more standards-conforming stlport4 library is
20642 # incompatible with the Cstd library. Avoid specifying
20643 # it if it's in CXXFLAGS. Ignore libCrun as
20644 # -library=stlport4 depends on it.
20645 case " $CXX $CXXFLAGS " in
20646 *" -library=stlport4 "*)
20647 solaris_use_stlport4
=yes
20651 # Adding this requires a known-good setup of shared libraries for
20652 # Sun compiler versions before 5.6, else PIC objects from an old
20653 # archive will be linked into the output, leading to subtle bugs.
20654 if test "$solaris_use_stlport4" != yes; then
20655 postdeps_CXX
='-library=Cstd -library=Crun'
20663 case " $postdeps_CXX " in
20664 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20666 compiler_lib_search_dirs_CXX
=
20667 if test -n "${compiler_lib_search_path_CXX}"; then
20668 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20701 lt_prog_compiler_wl_CXX
=
20702 lt_prog_compiler_pic_CXX
=
20703 lt_prog_compiler_static_CXX
=
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20706 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20708 # C++ specific cases for pic, static, wl, etc.
20709 if test "$GXX" = yes; then
20710 lt_prog_compiler_wl_CXX
='-Wl,'
20711 lt_prog_compiler_static_CXX
='-static'
20715 # All AIX code is PIC.
20716 if test "$host_cpu" = ia64
; then
20717 # AIX 5 now supports IA64 processor
20718 lt_prog_compiler_static_CXX
='-Bstatic'
20720 lt_prog_compiler_pic_CXX
='-fPIC'
20726 # see comment about AmigaOS4 .so support
20727 lt_prog_compiler_pic_CXX
='-fPIC'
20730 # FIXME: we need at least 68020 code to build shared libraries, but
20731 # adding the `-m68020' flag to GCC prevents building anything better,
20733 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20738 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20739 # PIC is the default for these OSes.
20741 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20742 # This hack is so that the source file can tell whether it is being
20743 # built for inclusion in a dll (and should export symbols for example).
20744 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20745 # (--disable-auto-import) libraries
20746 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20748 darwin
* | rhapsody
*)
20749 # PIC is the default on this platform
20750 # Common symbols not allowed in MH_DYLIB files
20751 lt_prog_compiler_pic_CXX
='-fno-common'
20754 # DJGPP does not support shared libraries at all
20755 lt_prog_compiler_pic_CXX
=
20758 # PIC is the default for Haiku.
20759 # The "-static" flag exists, but is broken.
20760 lt_prog_compiler_static_CXX
=
20763 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20764 # Instead, we relocate shared libraries at runtime.
20767 if test -d /usr
/nec
; then
20768 lt_prog_compiler_pic_CXX
=-Kconform_pic
20772 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20773 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20774 # sets the default TLS model and affects inlining.
20779 lt_prog_compiler_pic_CXX
='-fPIC'
20784 # QNX uses GNU C++, but need to define -shared option too, otherwise
20785 # it will coredump.
20786 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20789 lt_prog_compiler_pic_CXX
='-fPIC'
20795 # All AIX code is PIC.
20796 if test "$host_cpu" = ia64
; then
20797 # AIX 5 now supports IA64 processor
20798 lt_prog_compiler_static_CXX
='-Bstatic'
20800 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20804 case $cc_basename in
20806 # Green Hills C++ Compiler
20807 # _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"
20812 case $cc_basename in
20814 lt_prog_compiler_pic_CXX
='-KPIC'
20817 # Green Hills C++ Compiler
20818 lt_prog_compiler_pic_CXX
='-pic'
20824 freebsd
* | dragonfly
*)
20825 # FreeBSD uses GNU C++
20827 hpux9
* | hpux10
* | hpux11
*)
20828 case $cc_basename in
20830 lt_prog_compiler_wl_CXX
='-Wl,'
20831 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20832 if test "$host_cpu" != ia64
; then
20833 lt_prog_compiler_pic_CXX
='+Z'
20837 lt_prog_compiler_wl_CXX
='-Wl,'
20838 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20844 lt_prog_compiler_pic_CXX
='+Z'
20853 # This is c89, which is MS Visual C++ (no shared libs)
20854 # Anyone wants to do a port?
20856 irix5
* | irix6
* | nonstopux
*)
20857 case $cc_basename in
20859 lt_prog_compiler_wl_CXX
='-Wl,'
20860 lt_prog_compiler_static_CXX
='-non_shared'
20861 # CC pic flag -KPIC is the default.
20867 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20868 case $cc_basename in
20871 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20872 lt_prog_compiler_pic_CXX
='-fPIC'
20875 # old Intel C++ for x86_64 which still supported -KPIC.
20876 lt_prog_compiler_wl_CXX
='-Wl,'
20877 lt_prog_compiler_pic_CXX
='-KPIC'
20878 lt_prog_compiler_static_CXX
='-static'
20881 # Intel C++, used to be incompatible with GCC.
20882 # ICC 10 doesn't accept -KPIC any more.
20883 lt_prog_compiler_wl_CXX
='-Wl,'
20884 lt_prog_compiler_pic_CXX
='-fPIC'
20885 lt_prog_compiler_static_CXX
='-static'
20888 # Portland Group C++ compiler
20889 lt_prog_compiler_wl_CXX
='-Wl,'
20890 lt_prog_compiler_pic_CXX
='-fpic'
20891 lt_prog_compiler_static_CXX
='-Bstatic'
20895 # Make sure the PIC flag is empty. It appears that all Alpha
20896 # Linux and Compaq Tru64 Unix objects are PIC.
20897 lt_prog_compiler_pic_CXX
=
20898 lt_prog_compiler_static_CXX
='-non_shared'
20900 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20901 # IBM XL 8.0, 9.0 on PPC and BlueGene
20902 lt_prog_compiler_wl_CXX
='-Wl,'
20903 lt_prog_compiler_pic_CXX
='-qpic'
20904 lt_prog_compiler_static_CXX
='-qstaticlink'
20907 case `$CC -V 2>&1 | sed 5q` in
20910 lt_prog_compiler_pic_CXX
='-KPIC'
20911 lt_prog_compiler_static_CXX
='-Bstatic'
20912 lt_prog_compiler_wl_CXX
='-Qoption ld '
20923 case $cc_basename in
20925 lt_prog_compiler_pic_CXX
='-W c,exportall'
20934 # QNX uses GNU C++, but need to define -shared option too, otherwise
20935 # it will coredump.
20936 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20938 osf3
* | osf4
* | osf5
*)
20939 case $cc_basename in
20941 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20944 # Rational C++ 2.4.1
20945 lt_prog_compiler_pic_CXX
='-pic'
20948 # Digital/Compaq C++
20949 lt_prog_compiler_wl_CXX
='-Wl,'
20950 # Make sure the PIC flag is empty. It appears that all Alpha
20951 # Linux and Compaq Tru64 Unix objects are PIC.
20952 lt_prog_compiler_pic_CXX
=
20953 lt_prog_compiler_static_CXX
='-non_shared'
20962 case $cc_basename in
20964 # Sun C++ 4.2, 5.x and Centerline C++
20965 lt_prog_compiler_pic_CXX
='-KPIC'
20966 lt_prog_compiler_static_CXX
='-Bstatic'
20967 lt_prog_compiler_wl_CXX
='-Qoption ld '
20970 # Green Hills C++ Compiler
20971 lt_prog_compiler_pic_CXX
='-PIC'
20978 case $cc_basename in
20981 lt_prog_compiler_pic_CXX
='-pic'
20982 lt_prog_compiler_static_CXX
='-Bstatic'
20986 lt_prog_compiler_pic_CXX
='-pic'
20992 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20993 case $cc_basename in
20995 lt_prog_compiler_wl_CXX
='-Wl,'
20996 lt_prog_compiler_pic_CXX
='-KPIC'
20997 lt_prog_compiler_static_CXX
='-Bstatic'
21002 case $cc_basename in
21004 # NonStop-UX NCC 3.20
21005 lt_prog_compiler_pic_CXX
='-KPIC'
21014 lt_prog_compiler_can_build_shared_CXX
=no
21020 # For platforms which do not support PIC, -DPIC is meaningless:
21022 lt_prog_compiler_pic_CXX
=
21025 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21029 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21034 # Check to make sure the PIC flag actually works.
21036 if test -n "$lt_prog_compiler_pic_CXX"; then
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21038 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21039 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21040 $as_echo_n "(cached) " >&6
21042 lt_cv_prog_compiler_pic_works_CXX
=no
21043 ac_outfile
=conftest.
$ac_objext
21044 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21045 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21046 # Insert the option either (1) after the last *FLAGS variable, or
21047 # (2) before a word containing "conftest.", or (3) at the end.
21048 # Note that $ac_compile itself does not contain backslashes and begins
21049 # with a dollar sign (not a hyphen), so the echo should work correctly.
21050 # The option is referenced via a variable to avoid confusing sed.
21051 lt_compile
=`echo "$ac_compile" | $SED \
21052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21054 -e 's:$: $lt_compiler_flag:'`
21055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21056 (eval "$lt_compile" 2>conftest.err
)
21058 cat conftest.err
>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 if (exit $ac_status) && test -s "$ac_outfile"; then
21061 # The compiler can only warn and ignore the option if not recognized
21062 # So say no if there are warnings other than the usual output.
21063 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21064 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21065 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21066 lt_cv_prog_compiler_pic_works_CXX
=yes
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21073 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21075 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21076 case $lt_prog_compiler_pic_CXX in
21078 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21081 lt_prog_compiler_pic_CXX
=
21082 lt_prog_compiler_can_build_shared_CXX
=no
21090 # Check to make sure the static flag actually works.
21092 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21095 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21096 $as_echo_n "(cached) " >&6
21098 lt_cv_prog_compiler_static_works_CXX
=no
21099 save_LDFLAGS
="$LDFLAGS"
21100 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21101 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21102 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21103 # The linker can only warn and ignore the option if not recognized
21104 # So say no if there are warnings
21105 if test -s conftest.err
; then
21106 # Append any errors to the config.log.
21107 cat conftest.err
1>&5
21108 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21109 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21110 if diff conftest.exp conftest.er2
>/dev
/null
; then
21111 lt_cv_prog_compiler_static_works_CXX
=yes
21114 lt_cv_prog_compiler_static_works_CXX
=yes
21118 LDFLAGS
="$save_LDFLAGS"
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21122 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21124 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21127 lt_prog_compiler_static_CXX
=
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21135 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21136 $as_echo_n "(cached) " >&6
21138 lt_cv_prog_compiler_c_o_CXX
=no
21139 $RM -r conftest
2>/dev
/null
21143 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21145 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21146 # Insert the option either (1) after the last *FLAGS variable, or
21147 # (2) before a word containing "conftest.", or (3) at the end.
21148 # Note that $ac_compile itself does not contain backslashes and begins
21149 # with a dollar sign (not a hyphen), so the echo should work correctly.
21150 lt_compile
=`echo "$ac_compile" | $SED \
21151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21153 -e 's:$: $lt_compiler_flag:'`
21154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21155 (eval "$lt_compile" 2>out
/conftest.err
)
21157 cat out
/conftest.err
>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21161 # The compiler can only warn and ignore the option if not recognized
21162 # So say no if there are warnings
21163 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21164 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21165 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21166 lt_cv_prog_compiler_c_o_CXX
=yes
21171 # SGI C++ compiler will create directory out/ii_files/ for
21172 # template instantiation
21173 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21174 $RM out
/* && rmdir out
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21181 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21187 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21188 $as_echo_n "(cached) " >&6
21190 lt_cv_prog_compiler_c_o_CXX
=no
21191 $RM -r conftest
2>/dev
/null
21195 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21197 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21198 # Insert the option either (1) after the last *FLAGS variable, or
21199 # (2) before a word containing "conftest.", or (3) at the end.
21200 # Note that $ac_compile itself does not contain backslashes and begins
21201 # with a dollar sign (not a hyphen), so the echo should work correctly.
21202 lt_compile
=`echo "$ac_compile" | $SED \
21203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21205 -e 's:$: $lt_compiler_flag:'`
21206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21207 (eval "$lt_compile" 2>out
/conftest.err
)
21209 cat out
/conftest.err
>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21213 # The compiler can only warn and ignore the option if not recognized
21214 # So say no if there are warnings
21215 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21216 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21217 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21218 lt_cv_prog_compiler_c_o_CXX
=yes
21223 # SGI C++ compiler will create directory out/ii_files/ for
21224 # template instantiation
21225 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21226 $RM out
/* && rmdir out
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21233 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21238 hard_links
="nottested"
21239 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21240 # do not overwrite the value of need_locks provided by the user
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21242 $as_echo_n "checking if we can lock with hard links... " >&6; }
21245 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21247 ln conftest.a conftest.b
2>&5 || hard_links
=no
21248 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21250 $as_echo "$hard_links" >&6; }
21251 if test "$hard_links" = no
; then
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21253 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21265 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21268 # If we're using GNU nm, then we don't want the "-C" option.
21269 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21270 # Also, AIX nm treats weak defined symbols like other global defined
21271 # symbols, whereas GNU nm marks them as "W".
21272 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21273 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'
21275 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'
21279 export_symbols_cmds_CXX
="$ltdll_cmds"
21281 cygwin
* | mingw
* | cegcc
*)
21282 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'
21285 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21288 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21291 $as_echo "$ld_shlibs_CXX" >&6; }
21292 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21294 with_gnu_ld_CXX
=$with_gnu_ld
21302 # Do we need to explicitly link libc?
21304 case "x$archive_cmds_need_lc_CXX" in
21306 # Assume -lc should be added
21307 archive_cmds_need_lc_CXX
=yes
21309 if test "$enable_shared" = yes && test "$GCC" = yes; then
21310 case $archive_cmds_CXX in
21312 # FIXME: we may have to deal with multi-command sequences.
21315 # Test whether the compiler implicitly links with -lc since on some
21316 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21317 # to ld, don't add -lc before -lgcc.
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21319 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21320 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21321 $as_echo_n "(cached) " >&6
21324 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21327 (eval $ac_compile) 2>&5
21329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21330 test $ac_status = 0; } 2>conftest.err
; then
21333 libobjs
=conftest.
$ac_objext
21335 wl
=$lt_prog_compiler_wl_CXX
21336 pic_flag
=$lt_prog_compiler_pic_CXX
21342 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21343 allow_undefined_flag_CXX
=
21344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21345 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21348 test $ac_status = 0; }
21350 lt_cv_archive_cmds_need_lc_CXX
=no
21352 lt_cv_archive_cmds_need_lc_CXX
=yes
21354 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21356 cat conftest.err
1>&5
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21362 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21363 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21434 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21436 library_names_spec
=
21437 libname_spec
='lib$name'
21441 postuninstall_cmds
=
21445 shlibpath_overrides_runpath
=unknown
21447 dynamic_linker
="$host_os ld.so"
21448 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21449 need_lib_prefix
=unknown
21450 hardcode_into_libs
=no
21452 # when you set need_version to no, make sure it does not cause -set_version
21453 # flags to be left without arguments
21454 need_version
=unknown
21459 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21460 shlibpath_var
=LIBPATH
21462 # AIX 3 has no versioning support, so we append a major version to the name.
21463 soname_spec
='${libname}${release}${shared_ext}$major'
21470 hardcode_into_libs
=yes
21471 if test "$host_cpu" = ia64
; then
21472 # AIX 5 supports IA64
21473 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21474 shlibpath_var
=LD_LIBRARY_PATH
21476 # With GCC up to 2.95.x, collect2 would create an import file
21477 # for dependence libraries. The import file would start with
21478 # the line `#! .'. This would cause the generated library to
21479 # depend on `.', always an invalid library. This was fixed in
21480 # development snapshots of GCC prior to 3.0.
21482 aix4 | aix4.
[01] | aix4.
[01].
*)
21483 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21485 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21488 can_build_shared
=no
21492 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21493 # soname into executable. Probably we can add versioning support to
21494 # collect2, so additional links can be useful in future.
21495 if test "$aix_use_runtimelinking" = yes; then
21496 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21497 # instead of lib<name>.a to let people know that these are not
21498 # typical AIX shared libraries.
21499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21501 # We preserve .a as extension for shared libraries through AIX4.2
21502 # and later when we are not doing run time linking.
21503 library_names_spec
='${libname}${release}.a $libname.a'
21504 soname_spec
='${libname}${release}${shared_ext}$major'
21506 shlibpath_var
=LIBPATH
21513 # Since July 2007 AmigaOS4 officially supports .so libraries.
21514 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21518 library_names_spec
='$libname.ixlibrary $libname.a'
21519 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21520 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'
21526 library_names_spec
='${libname}${shared_ext}'
21527 dynamic_linker
="$host_os ld.so"
21528 shlibpath_var
=LIBRARY_PATH
21534 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21535 soname_spec
='${libname}${release}${shared_ext}$major'
21536 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21537 shlibpath_var
=LD_LIBRARY_PATH
21538 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21539 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21540 # the default ld.so.conf also contains /usr/contrib/lib and
21541 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21542 # libtool to hard-code these into programs
21545 cygwin
* | mingw
* | pw32
* | cegcc
*)
21546 version_type
=windows
21551 case $GCC,$host_os in
21552 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21553 library_names_spec
='$libname.dll.a'
21554 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21555 postinstall_cmds
='base_file=`basename \${file}`~
21556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21557 dldir=$destdir/`dirname \$dlpath`~
21558 test -d \$dldir || mkdir -p \$dldir~
21559 $install_prog $dir/$dlname \$dldir/$dlname~
21560 chmod a+x \$dldir/$dlname~
21561 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21562 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21564 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21565 dlpath=$dir/\$dldll~
21567 shlibpath_overrides_runpath
=yes
21571 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21572 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21576 # MinGW DLLs use traditional 'lib' prefix
21577 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21580 # pw32 DLLs use 'pw' prefix rather than 'lib'
21581 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21587 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21590 dynamic_linker
='Win32 ld.exe'
21591 # FIXME: first we should search . and the directory the executable is in
21595 darwin
* | rhapsody
*)
21596 dynamic_linker
="$host_os dyld"
21597 version_type
=darwin
21600 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21601 soname_spec
='${libname}${release}${major}$shared_ext'
21602 shlibpath_overrides_runpath
=yes
21603 shlibpath_var
=DYLD_LIBRARY_PATH
21604 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21606 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21614 soname_spec
='${libname}${release}${shared_ext}$major'
21615 shlibpath_var
=LD_LIBRARY_PATH
21618 freebsd
* | dragonfly
*)
21619 # DragonFly does not have aout. When/if they implement a new
21620 # versioning mechanism, adjust this.
21621 if test -x /usr
/bin
/objformat
; then
21622 objformat
=`/usr/bin/objformat`
21625 freebsd
[23].
*) objformat
=aout
;;
21626 *) objformat
=elf
;;
21629 version_type
=freebsd-
$objformat
21630 case $version_type in
21632 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21637 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21641 shlibpath_var
=LD_LIBRARY_PATH
21644 shlibpath_overrides_runpath
=yes
21646 freebsd3.
[01]* | freebsdelf3.
[01]*)
21647 shlibpath_overrides_runpath
=yes
21648 hardcode_into_libs
=yes
21650 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21651 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21652 shlibpath_overrides_runpath
=no
21653 hardcode_into_libs
=yes
21655 *) # from 4.6 on, and DragonFly
21656 shlibpath_overrides_runpath
=yes
21657 hardcode_into_libs
=yes
21666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21667 soname_spec
='${libname}${release}${shared_ext}$major'
21668 shlibpath_var
=LD_LIBRARY_PATH
21669 hardcode_into_libs
=yes
21676 dynamic_linker
="$host_os runtime_loader"
21677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21678 soname_spec
='${libname}${release}${shared_ext}$major'
21679 shlibpath_var
=LIBRARY_PATH
21680 shlibpath_overrides_runpath
=yes
21681 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21682 hardcode_into_libs
=yes
21685 hpux9
* | hpux10
* | hpux11
*)
21686 # Give a soname corresponding to the major version so that dld.sl refuses to
21687 # link against other versions.
21694 hardcode_into_libs
=yes
21695 dynamic_linker
="$host_os dld.so"
21696 shlibpath_var
=LD_LIBRARY_PATH
21697 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21699 soname_spec
='${libname}${release}${shared_ext}$major'
21700 if test "X$HPUX_IA64_MODE" = X32
; then
21701 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21703 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21705 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21709 hardcode_into_libs
=yes
21710 dynamic_linker
="$host_os dld.sl"
21711 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21712 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21714 soname_spec
='${libname}${release}${shared_ext}$major'
21715 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21716 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21720 dynamic_linker
="$host_os dld.sl"
21721 shlibpath_var
=SHLIB_PATH
21722 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21724 soname_spec
='${libname}${release}${shared_ext}$major'
21727 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21728 postinstall_cmds
='chmod 555 $lib'
21729 # or fails outright, so override atomically:
21730 install_override_mode
=555
21737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21738 soname_spec
='${libname}${release}${shared_ext}$major'
21739 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21740 shlibpath_var
=LD_LIBRARY_PATH
21741 shlibpath_overrides_runpath
=no
21742 hardcode_into_libs
=yes
21745 irix5
* | irix6
* | nonstopux
*)
21747 nonstopux
*) version_type
=nonstopux
;;
21749 if test "$lt_cv_prog_gnu_ld" = yes; then
21757 soname_spec
='${libname}${release}${shared_ext}$major'
21758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21760 irix5
* | nonstopux
*)
21761 libsuff
= shlibsuff
=
21764 case $LD in # libtool.m4 will add one of these switches to LD
21765 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21766 libsuff
= shlibsuff
= libmagic
=32-bit;;
21767 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21768 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21769 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21770 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21771 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21775 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21776 shlibpath_overrides_runpath
=no
21777 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21778 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21779 hardcode_into_libs
=yes
21782 # No shared lib support for Linux oldld, aout, or coff.
21783 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21787 # This must be Linux ELF.
21788 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21793 soname_spec
='${libname}${release}${shared_ext}$major'
21794 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21795 shlibpath_var
=LD_LIBRARY_PATH
21796 shlibpath_overrides_runpath
=no
21798 # Some binutils ld are patched to set DT_RUNPATH
21799 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
21800 $as_echo_n "(cached) " >&6
21802 lt_cv_shlibpath_overrides_runpath
=no
21803 save_LDFLAGS
=$LDFLAGS
21804 save_libdir
=$libdir
21805 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21806 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h. */
21818 if ac_fn_cxx_try_link
"$LINENO"; then :
21819 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21820 lt_cv_shlibpath_overrides_runpath
=yes
21823 rm -f core conftest.err conftest.
$ac_objext \
21824 conftest
$ac_exeext conftest.
$ac_ext
21825 LDFLAGS
=$save_LDFLAGS
21826 libdir
=$save_libdir
21830 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21832 # This implies no fast_install, which is unacceptable.
21833 # Some rework will be needed to allow for fast_install
21834 # before this can be enabled.
21835 hardcode_into_libs
=yes
21837 # Append ld.so.conf contents to the search path
21838 if test -f /etc
/ld.so.conf
; then
21839 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' ' '`
21840 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21843 # We used to test for /lib/ld.so.1 and disable shared libraries on
21844 # powerpc, because MkLinux only supported shared libraries with the
21845 # GNU dynamic linker. Since this was broken with cross compilers,
21846 # most powerpc-linux boxes support dynamic linking these days and
21847 # people can always --disable-shared, the test was removed, and we
21848 # assume the GNU/Linux dynamic linker is in use.
21849 dynamic_linker
='GNU/Linux ld.so'
21856 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21858 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21859 dynamic_linker
='NetBSD (a.out) ld.so'
21861 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21862 soname_spec
='${libname}${release}${shared_ext}$major'
21863 dynamic_linker
='NetBSD ld.elf_so'
21865 shlibpath_var
=LD_LIBRARY_PATH
21866 shlibpath_overrides_runpath
=yes
21867 hardcode_into_libs
=yes
21872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21873 shlibpath_var
=LD_LIBRARY_PATH
21874 shlibpath_overrides_runpath
=yes
21881 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21882 soname_spec
='${libname}${release}${shared_ext}$major'
21883 shlibpath_var
=LD_LIBRARY_PATH
21884 shlibpath_overrides_runpath
=no
21885 hardcode_into_libs
=yes
21886 dynamic_linker
='ldqnx.so'
21891 sys_lib_dlsearch_path_spec
="/usr/lib"
21893 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21895 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21896 *) need_version
=no
;;
21898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21899 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21900 shlibpath_var
=LD_LIBRARY_PATH
21901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21903 openbsd2.
[89] | openbsd2.
[89].
*)
21904 shlibpath_overrides_runpath
=no
21907 shlibpath_overrides_runpath
=yes
21911 shlibpath_overrides_runpath
=yes
21916 libname_spec
='$name'
21919 library_names_spec
='$libname${shared_ext} $libname.a'
21920 dynamic_linker
='OS/2 ld.exe'
21921 shlibpath_var
=LIBPATH
21924 osf3
* | osf4
* | osf5
*)
21928 soname_spec
='${libname}${release}${shared_ext}$major'
21929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21930 shlibpath_var
=LD_LIBRARY_PATH
21931 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21932 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21944 soname_spec
='${libname}${release}${shared_ext}$major'
21945 shlibpath_var
=LD_LIBRARY_PATH
21946 shlibpath_overrides_runpath
=yes
21947 hardcode_into_libs
=yes
21948 # ldd complains unless libraries are executable
21949 postinstall_cmds
='chmod +x $lib'
21954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21955 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21956 shlibpath_var
=LD_LIBRARY_PATH
21957 shlibpath_overrides_runpath
=yes
21958 if test "$with_gnu_ld" = yes; then
21966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21967 soname_spec
='${libname}${release}${shared_ext}$major'
21968 shlibpath_var
=LD_LIBRARY_PATH
21969 case $host_vendor in
21971 shlibpath_overrides_runpath
=no
21973 runpath_var
=LD_RUN_PATH
21981 shlibpath_overrides_runpath
=no
21982 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21988 if test -d /usr
/nec
;then
21990 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21991 soname_spec
='$libname${shared_ext}.$major'
21992 shlibpath_var
=LD_LIBRARY_PATH
21996 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21997 version_type
=freebsd-elf
22000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22001 soname_spec
='${libname}${release}${shared_ext}$major'
22002 shlibpath_var
=LD_LIBRARY_PATH
22003 shlibpath_overrides_runpath
=yes
22004 hardcode_into_libs
=yes
22005 if test "$with_gnu_ld" = yes; then
22006 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22008 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22011 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22015 sys_lib_dlsearch_path_spec
='/usr/lib'
22019 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22024 shlibpath_var
=LD_LIBRARY_PATH
22025 shlibpath_overrides_runpath
=no
22026 hardcode_into_libs
=yes
22031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22032 soname_spec
='${libname}${release}${shared_ext}$major'
22033 shlibpath_var
=LD_LIBRARY_PATH
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22041 $as_echo "$dynamic_linker" >&6; }
22042 test "$dynamic_linker" = no
&& can_build_shared
=no
22044 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22045 if test "$GCC" = yes; then
22046 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22049 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22050 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22052 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22053 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22094 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22095 hardcode_action_CXX
=
22096 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22097 test -n "$runpath_var_CXX" ||
22098 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22100 # We can hardcode non-existent directories.
22101 if test "$hardcode_direct_CXX" != no
&&
22102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22103 # have to relink, otherwise we might link with an installed library
22104 # when we should be linking with a yet-to-be-installed one
22105 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22106 test "$hardcode_minus_L_CXX" != no
; then
22107 # Linking always hardcodes the temporary library directory.
22108 hardcode_action_CXX
=relink
22110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22111 hardcode_action_CXX
=immediate
22114 # We cannot hardcode anything, or else we can only hardcode existing
22116 hardcode_action_CXX
=unsupported
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22119 $as_echo "$hardcode_action_CXX" >&6; }
22121 if test "$hardcode_action_CXX" = relink ||
22122 test "$inherit_rpath_CXX" = yes; then
22123 # Fast installation is not supported
22124 enable_fast_install
=no
22125 elif test "$shlibpath_overrides_runpath" = yes ||
22126 test "$enable_shared" = no
; then
22127 # Fast installation is not necessary
22128 enable_fast_install
=needless
22137 fi # test -n "$compiler"
22143 with_gnu_ld
=$lt_save_with_gnu_ld
22144 lt_cv_path_LDCXX
=$lt_cv_path_LD
22145 lt_cv_path_LD
=$lt_save_path_LD
22146 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22147 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22148 fi # test "$_lt_caught_CXX_error" != yes
22151 ac_cpp
='$CXXCPP $CPPFLAGS'
22152 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22153 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22154 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22171 # Only expand once:
22177 # Identify the assembler which will work hand-in-glove with the newly
22178 # built GCC, so that we can examine its features. This is the assembler
22179 # which will be driven by the driver program.
22181 # If build != host, and we aren't building gas in-tree, we identify a
22182 # build->target assembler and hope that it will have the same features
22183 # as the host->target assembler we'll be using.
22184 gcc_cv_gas_major_version
=
22185 gcc_cv_gas_minor_version
=
22186 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22188 if ${gcc_cv_as+:} false
; then :
22192 if test -x "$DEFAULT_ASSEMBLER"; then
22193 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22194 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22195 && test -f ..
/gas
/Makefile \
22196 && test x
$build = x
$host; then
22197 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22198 elif test -x as
$build_exeext; then
22199 # Build using assembler in the current directory.
22200 gcc_cv_as
=.
/as
$build_exeext
22201 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22202 gcc_cv_as
="$AS_FOR_TARGET"
22204 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22205 set dummy
$AS_FOR_TARGET; ac_word
=$2
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22207 $as_echo_n "checking for $ac_word... " >&6; }
22208 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22209 $as_echo_n "(cached) " >&6
22213 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22217 for as_dir
in $PATH
22220 test -z "$as_dir" && as_dir
=.
22221 for ac_exec_ext
in '' $ac_executable_extensions; do
22222 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22223 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22234 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22235 if test -n "$gcc_cv_as"; then
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22237 $as_echo "$gcc_cv_as" >&6; }
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22240 $as_echo "no" >&6; }
22247 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22249 case "$ORIGINAL_AS_FOR_TARGET" in
22250 .
/as | .
/as
$build_exeext) ;;
22251 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22256 $as_echo_n "checking what assembler to use... " >&6; }
22257 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22258 # Single tree build which includes gas. We want to prefer it
22259 # over whatever linker top-level may have detected, since
22260 # we'll use what we're building after installation anyway.
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22262 $as_echo "newly built gas" >&6; }
22264 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22265 for f
in $gcc_cv_as_bfd_srcdir/configure \
22266 $gcc_cv_as_gas_srcdir/configure \
22267 $gcc_cv_as_gas_srcdir/configure.ac \
22268 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22269 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22270 if test x
$gcc_cv_gas_version != x
; then
22274 case $gcc_cv_gas_version in
22276 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22278 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22279 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22280 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22281 case $gcc_cv_gas_patch_version in
22282 "") gcc_cv_gas_patch_version
="0" ;;
22284 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22285 + $gcc_cv_gas_minor_version \) \* 1000 \
22286 + $gcc_cv_gas_patch_version`
22288 in_tree_gas_is_elf
=no
22289 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22290 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22291 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22293 in_tree_gas_is_elf
=yes
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22297 $as_echo "$gcc_cv_as" >&6; }
22302 # Check whether --enable-ld was given.
22303 if test "${enable_ld+set}" = set; then :
22304 enableval
=$enable_ld; case "${enableval}" in
22312 install_gold_as_default
=no
22313 # Check whether --enable-gold was given.
22314 if test "${enable_gold+set}" = set; then :
22315 enableval
=$enable_gold; case "${enableval}" in
22317 install_gold_as_default
=yes
22320 if test x
${default_ld} != x
; then
22321 install_gold_as_default
=yes
22327 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22333 # Identify the linker which will work hand-in-glove with the newly
22334 # built GCC, so that we can examine its features. This is the linker
22335 # which will be driven by the driver program.
22337 # If build != host, and we aren't building gas in-tree, we identify a
22338 # build->target linker and hope that it will have the same features
22339 # as the host->target linker we'll be using.
22340 gcc_cv_gld_major_version
=
22341 gcc_cv_gld_minor_version
=
22342 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22343 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22344 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22346 if ${gcc_cv_ld+:} false
; then :
22350 if test -x "$DEFAULT_LINKER"; then
22351 gcc_cv_ld
="$DEFAULT_LINKER"
22352 elif test $install_gold_as_default = yes \
22353 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22354 && test -f ..
/gold
/Makefile \
22355 && test x
$build = x
$host; then
22356 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22357 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22358 && test -f ..
/ld
/Makefile \
22359 && test x
$build = x
$host; then
22360 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22361 elif test -x collect-ld
$build_exeext; then
22362 # Build using linker in the current directory.
22363 gcc_cv_ld
=.
/collect-ld
$build_exeext
22364 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22365 gcc_cv_ld
="$LD_FOR_TARGET"
22367 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22368 set dummy
$LD_FOR_TARGET; ac_word
=$2
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22370 $as_echo_n "checking for $ac_word... " >&6; }
22371 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22372 $as_echo_n "(cached) " >&6
22376 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22380 for as_dir
in $PATH
22383 test -z "$as_dir" && as_dir
=.
22384 for ac_exec_ext
in '' $ac_executable_extensions; do
22385 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22386 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22397 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22398 if test -n "$gcc_cv_ld"; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22400 $as_echo "$gcc_cv_ld" >&6; }
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403 $as_echo "no" >&6; }
22410 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22411 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22412 # if the PLUGIN_LD is set ld-new, just have it as ld
22413 # as that is the installed named.
22414 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22415 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22416 PLUGIN_LD_SUFFIX
=ld
22419 # Check whether --with-plugin-ld was given.
22420 if test "${with_plugin_ld+set}" = set; then :
22421 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22422 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22423 PLUGIN_LD_SUFFIX
="$withval"
22429 cat >>confdefs.h
<<_ACEOF
22430 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22434 # Check to see if we are using gold instead of ld
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22436 $as_echo_n "checking whether we are using gold... " >&6; }
22438 if test x
$gcc_cv_ld != x
; then
22439 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22440 |
grep "GNU gold" > /dev
/null
; then
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22445 $as_echo "$ld_is_gold" >&6; }
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22448 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22449 # Check to see if default ld is not gold, but gold is
22450 # available and has support for split stack. If gcc was configured
22451 # with gold then no checking is done.
22453 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22455 # For platforms other than powerpc64*, enable as appropriate.
22457 gold_non_default
=no
22458 ld_gold
=`which ${gcc_cv_ld}.gold`
22459 # Make sure this gold has minimal split stack support
22460 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22461 ld_vers
=`$ld_gold --version | sed 1q`
22462 gold_vers
=`echo $ld_vers | sed -n \
22463 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22465 # check that the gold version contains the complete split stack support
22466 # on powerpc64 big and little endian
22468 case "$gold_vers" in
22469 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22471 *) gold_non_default
=no
22477 if test $gold_non_default = yes; then
22479 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22484 $as_echo "$gold_non_default" >&6; }
22486 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22488 case "$ORIGINAL_LD_FOR_TARGET" in
22489 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22490 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22495 $as_echo_n "checking what linker to use... " >&6; }
22496 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22497 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22498 # Single tree build which includes ld. We want to prefer it
22499 # over whatever linker top-level may have detected, since
22500 # we'll use what we're building after installation anyway.
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22502 $as_echo "newly built ld" >&6; }
22504 in_tree_ld_is_elf
=no
22505 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22506 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22507 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22508 in_tree_ld_is_elf
=yes
22509 elif test "$ld_is_gold" = yes; then
22510 in_tree_ld_is_elf
=yes
22512 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
22514 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22515 if test x
$gcc_cv_gld_version != x
; then
22519 case $gcc_cv_gld_version in
22521 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22523 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22524 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22525 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22526 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22529 $as_echo "$gcc_cv_ld" >&6; }
22531 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22532 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22533 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22539 # Figure out what nm we will be using.
22540 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22541 if ${gcc_cv_nm+:} false
; then :
22545 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22546 && test -f ..
/binutils
/Makefile \
22547 && test x
$build = x
$host; then
22548 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22549 elif test -x nm
$build_exeext; then
22550 gcc_cv_nm
=.
/nm
$build_exeext
22551 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22552 gcc_cv_nm
="$NM_FOR_TARGET"
22554 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22555 set dummy
$NM_FOR_TARGET; ac_word
=$2
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22557 $as_echo_n "checking for $ac_word... " >&6; }
22558 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
22559 $as_echo_n "(cached) " >&6
22563 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22567 for as_dir
in $PATH
22570 test -z "$as_dir" && as_dir
=.
22571 for ac_exec_ext
in '' $ac_executable_extensions; do
22572 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22573 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22584 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22585 if test -n "$gcc_cv_nm"; then
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22587 $as_echo "$gcc_cv_nm" >&6; }
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22590 $as_echo "no" >&6; }
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22598 $as_echo_n "checking what nm to use... " >&6; }
22599 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22600 # Single tree build which includes binutils.
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22602 $as_echo "newly built nm" >&6; }
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22606 $as_echo "$gcc_cv_nm" >&6; }
22610 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22612 case "$ORIGINAL_NM_FOR_TARGET" in
22613 .
/nm | .
/nm
$build_exeext) ;;
22614 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22619 # Figure out what objdump we will be using.
22620 if ${gcc_cv_objdump+:} false
; then :
22624 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22625 && test -f ..
/binutils
/Makefile \
22626 && test x
$build = x
$host; then
22627 # Single tree build which includes binutils.
22628 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22629 elif test -x objdump
$build_exeext; then
22630 gcc_cv_objdump
=.
/objdump
$build_exeext
22631 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22632 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22634 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22635 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22637 $as_echo_n "checking for $ac_word... " >&6; }
22638 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
22639 $as_echo_n "(cached) " >&6
22641 case $gcc_cv_objdump in
22643 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22647 for as_dir
in $PATH
22650 test -z "$as_dir" && as_dir
=.
22651 for ac_exec_ext
in '' $ac_executable_extensions; do
22652 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22653 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22664 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22665 if test -n "$gcc_cv_objdump"; then
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22667 $as_echo "$gcc_cv_objdump" >&6; }
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22670 $as_echo "no" >&6; }
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22678 $as_echo_n "checking what objdump to use... " >&6; }
22679 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22680 # Single tree build which includes binutils.
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22682 $as_echo "newly built objdump" >&6; }
22683 elif test x
$gcc_cv_objdump = x
; then
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22685 $as_echo "not found" >&6; }
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22688 $as_echo "$gcc_cv_objdump" >&6; }
22691 # Figure out what readelf we will be using.
22692 if ${gcc_cv_readelf+:} false
; then :
22696 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22697 && test -f ..
/binutils
/Makefile \
22698 && test x
$build = x
$host; then
22699 # Single tree build which includes binutils.
22700 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22701 elif test -x readelf
$build_exeext; then
22702 gcc_cv_readelf
=.
/readelf
$build_exeext
22703 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22704 gcc_cv_readelf
="$READELF_FOR_TARGET"
22706 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22707 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22709 $as_echo_n "checking for $ac_word... " >&6; }
22710 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
22711 $as_echo_n "(cached) " >&6
22713 case $gcc_cv_readelf in
22715 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22719 for as_dir
in $PATH
22722 test -z "$as_dir" && as_dir
=.
22723 for ac_exec_ext
in '' $ac_executable_extensions; do
22724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22725 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22736 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22737 if test -n "$gcc_cv_readelf"; then
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22739 $as_echo "$gcc_cv_readelf" >&6; }
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22742 $as_echo "no" >&6; }
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22750 $as_echo_n "checking what readelf to use... " >&6; }
22751 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22752 # Single tree build which includes binutils.
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22754 $as_echo "newly built readelf" >&6; }
22755 elif test x
$gcc_cv_readelf = x
; then
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22757 $as_echo "not found" >&6; }
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22760 $as_echo "$gcc_cv_readelf" >&6; }
22763 # Figure out what otool we will be using.
22764 if ${gcc_cv_otool+:} false
; then :
22768 if test -x otool
$build_exeext; then
22769 gcc_cv_otool
=.
/otool
$build_exeext
22770 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
22771 gcc_cv_otool
="$OTOOL_FOR_TARGET"
22773 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22774 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22776 $as_echo_n "checking for $ac_word... " >&6; }
22777 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
22778 $as_echo_n "(cached) " >&6
22780 case $gcc_cv_otool in
22782 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
22785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22786 for as_dir
in $PATH
22789 test -z "$as_dir" && as_dir
=.
22790 for ac_exec_ext
in '' $ac_executable_extensions; do
22791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22792 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
22793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22803 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
22804 if test -n "$gcc_cv_otool"; then
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22806 $as_echo "$gcc_cv_otool" >&6; }
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22809 $as_echo "no" >&6; }
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22817 $as_echo_n "checking what otool to use... " >&6; }
22818 if test x
$gcc_cv_otool = x
; then
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22820 $as_echo "not found" >&6; }
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22823 $as_echo "$gcc_cv_otool" >&6; }
22826 # Figure out what assembler alignment features are present.
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22828 $as_echo_n "checking assembler flags... " >&6; }
22829 if ${gcc_cv_as_flags+:} false
; then :
22830 $as_echo_n "(cached) " >&6
22833 i
[34567]86-*-linux*)
22834 gcc_cv_as_flags
=--32
22836 x86_64-
*-linux-gnux32)
22837 gcc_cv_as_flags
=--x32
22840 gcc_cv_as_flags
=--64
22842 powerpc
*-*-darwin*)
22843 gcc_cv_as_flags
="-arch ppc"
22846 gcc_cv_as_flags
=" "
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22851 $as_echo "$gcc_cv_as_flags" >&6; }
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22854 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22855 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
22856 $as_echo_n "(cached) " >&6
22858 gcc_cv_as_balign_and_p2align
=no
22859 if test $in_tree_gas = yes; then
22860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22861 then gcc_cv_as_balign_and_p2align
=yes
22863 elif test x
$gcc_cv_as != x
; then
22864 $as_echo '.balign 4
22865 .p2align 2' > conftest.s
22866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22868 (eval $ac_try) 2>&5
22870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22871 test $ac_status = 0; }; }
22873 gcc_cv_as_balign_and_p2align
=yes
22875 echo "configure: failed program was" >&5
22878 rm -f conftest.o conftest.s
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22882 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22883 if test $gcc_cv_as_balign_and_p2align = yes; then
22885 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22891 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22892 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
22893 $as_echo_n "(cached) " >&6
22895 gcc_cv_as_max_skip_p2align
=no
22896 if test $in_tree_gas = yes; then
22897 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22898 then gcc_cv_as_max_skip_p2align
=yes
22900 elif test x
$gcc_cv_as != x
; then
22901 $as_echo '.p2align 4,,7' > conftest.s
22902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22904 (eval $ac_try) 2>&5
22906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22907 test $ac_status = 0; }; }
22909 gcc_cv_as_max_skip_p2align
=yes
22911 echo "configure: failed program was" >&5
22914 rm -f conftest.o conftest.s
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22918 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22919 if test $gcc_cv_as_max_skip_p2align = yes; then
22921 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22927 $as_echo_n "checking assembler for .literal16... " >&6; }
22928 if ${gcc_cv_as_literal16+:} false
; then :
22929 $as_echo_n "(cached) " >&6
22931 gcc_cv_as_literal16
=no
22932 if test $in_tree_gas = yes; then
22933 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22934 then gcc_cv_as_literal16
=yes
22936 elif test x
$gcc_cv_as != x
; then
22937 $as_echo '.literal16' > conftest.s
22938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22940 (eval $ac_try) 2>&5
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; }
22945 gcc_cv_as_literal16
=yes
22947 echo "configure: failed program was" >&5
22950 rm -f conftest.o conftest.s
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22954 $as_echo "$gcc_cv_as_literal16" >&6; }
22955 if test $gcc_cv_as_literal16 = yes; then
22957 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22963 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22964 if ${gcc_cv_as_subsection_m1+:} false
; then :
22965 $as_echo_n "(cached) " >&6
22967 gcc_cv_as_subsection_m1
=no
22968 if test $in_tree_gas = yes; then
22969 if test $in_tree_gas_is_elf = yes \
22970 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22971 then gcc_cv_as_subsection_m1
=yes
22973 elif test x
$gcc_cv_as != x
; then
22974 $as_echo 'conftest_label1: .word 0
22976 conftest_label2: .word 0
22977 .previous' > conftest.s
22978 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22980 (eval $ac_try) 2>&5
22982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22983 test $ac_status = 0; }; }
22985 if test x
$gcc_cv_nm != x
; then
22986 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22987 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22988 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22990 else gcc_cv_as_subsection_m1
=yes
22992 rm -f conftest.nm1 conftest.nm2
22995 echo "configure: failed program was" >&5
22998 rm -f conftest.o conftest.s
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23002 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23003 if test $gcc_cv_as_subsection_m1 = yes; then
23005 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23011 $as_echo_n "checking assembler for .weak... " >&6; }
23012 if ${gcc_cv_as_weak+:} false
; then :
23013 $as_echo_n "(cached) " >&6
23016 if test $in_tree_gas = yes; then
23017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23018 then gcc_cv_as_weak
=yes
23020 elif test x
$gcc_cv_as != x
; then
23021 $as_echo ' .weak foobar' > conftest.s
23022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23024 (eval $ac_try) 2>&5
23026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23027 test $ac_status = 0; }; }
23031 echo "configure: failed program was" >&5
23034 rm -f conftest.o conftest.s
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23038 $as_echo "$gcc_cv_as_weak" >&6; }
23039 if test $gcc_cv_as_weak = yes; then
23041 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23047 $as_echo_n "checking assembler for .weakref... " >&6; }
23048 if ${gcc_cv_as_weakref+:} false
; then :
23049 $as_echo_n "(cached) " >&6
23051 gcc_cv_as_weakref
=no
23052 if test $in_tree_gas = yes; then
23053 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23054 then gcc_cv_as_weakref
=yes
23056 elif test x
$gcc_cv_as != x
; then
23057 $as_echo ' .weakref foobar, barfnot' > conftest.s
23058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23060 (eval $ac_try) 2>&5
23062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23063 test $ac_status = 0; }; }
23065 gcc_cv_as_weakref
=yes
23067 echo "configure: failed program was" >&5
23070 rm -f conftest.o conftest.s
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23074 $as_echo "$gcc_cv_as_weakref" >&6; }
23075 if test $gcc_cv_as_weakref = yes; then
23077 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23083 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23084 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23085 $as_echo_n "(cached) " >&6
23087 gcc_cv_as_nsubspa_comdat
=no
23088 if test $in_tree_gas = yes; then
23089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23090 then gcc_cv_as_nsubspa_comdat
=yes
23092 elif test x
$gcc_cv_as != x
; then
23093 $as_echo ' .SPACE $TEXT$
23094 .NSUBSPA $CODE$,COMDAT' > conftest.s
23095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23097 (eval $ac_try) 2>&5
23099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23100 test $ac_status = 0; }; }
23102 gcc_cv_as_nsubspa_comdat
=yes
23104 echo "configure: failed program was" >&5
23107 rm -f conftest.o conftest.s
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23111 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23112 if test $gcc_cv_as_nsubspa_comdat = yes; then
23114 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23119 # .hidden needs to be supported in both the assembler and the linker,
23120 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23121 # This is irritatingly difficult to feature test for; we have to check the
23122 # date string after the version number. If we've got an in-tree
23123 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23125 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23126 case "${target}" in
23128 conftest_s
=' .globl foobar,hidden'
23131 conftest_s
=' .hidden foobar
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23136 $as_echo_n "checking assembler for .hidden... " >&6; }
23137 if ${gcc_cv_as_hidden+:} false
; then :
23138 $as_echo_n "(cached) " >&6
23140 gcc_cv_as_hidden
=no
23141 if test $in_tree_gas = yes; then
23142 if test $in_tree_gas_is_elf = yes \
23143 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23144 then gcc_cv_as_hidden
=yes
23146 elif test x
$gcc_cv_as != x
; then
23147 $as_echo "$conftest_s" > conftest.s
23148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23155 gcc_cv_as_hidden
=yes
23157 echo "configure: failed program was" >&5
23160 rm -f conftest.o conftest.s
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23164 $as_echo "$gcc_cv_as_hidden" >&6; }
23167 case "${target}" in
23169 # Darwin as has some visibility support, though with a different syntax.
23170 gcc_cv_as_hidden
=yes
23174 # gnu_indirect_function type is an extension proposed at
23175 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23176 # selection of function implementation
23177 # Check whether --enable-gnu-indirect-function was given.
23178 if test "${enable_gnu_indirect_function+set}" = set; then :
23179 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23181 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23182 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23185 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23189 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23191 cat >>confdefs.h
<<_ACEOF
23192 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23197 if test $in_tree_ld != yes ; then
23198 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23199 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23200 if test x
"$ld_is_gold" = xyes
; then
23201 # GNU gold --version looks like this:
23203 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23205 # We extract the binutils version which is more familiar and specific
23206 # than the gold version.
23207 ld_vers
=`echo $ld_ver | sed -n \
23208 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23210 # GNU ld --version looks like this:
23212 # GNU ld (GNU Binutils) 2.21.51.20110225
23213 ld_vers
=`echo $ld_ver | sed -n \
23214 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23216 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'`
23217 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23218 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23219 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23221 case "${target}" in
23223 # Solaris 2 ld -V output looks like this for a regular version:
23225 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23227 # but test versions add stuff at the end:
23229 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23231 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23232 # numbers can be used in ld.so.1 feature checks even if a different
23233 # linker is configured.
23234 ld_ver
=`$gcc_cv_ld -V 2>&1`
23235 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23236 ld_vers
=`echo $ld_ver | sed -n \
23237 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23238 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23239 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23247 $as_echo_n "checking linker for .hidden support... " >&6; }
23248 if ${gcc_cv_ld_hidden+:} false
; then :
23249 $as_echo_n "(cached) " >&6
23251 if test $in_tree_ld = yes ; then
23252 gcc_cv_ld_hidden
=no
23253 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 \
23254 && test $in_tree_ld_is_elf = yes; then
23255 gcc_cv_ld_hidden
=yes
23258 gcc_cv_ld_hidden
=yes
23259 if test x
"$ld_is_gold" = xyes
; then
23261 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23262 case "${target}" in
23263 mmix-knuth-mmixware
)
23264 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23265 gcc_cv_ld_hidden
=no
23268 if test 0"$ld_date" -lt 20020404; then
23269 if test -n "$ld_date"; then
23270 # If there was date string, but was earlier than 2002-04-04, fail
23271 gcc_cv_ld_hidden
=no
23272 elif test -z "$ld_vers"; then
23273 # If there was no date string nor ld version number, something is wrong
23274 gcc_cv_ld_hidden
=no
23276 test -z "$ld_vers_patch" && ld_vers_patch
=0
23277 if test "$ld_vers_major" -lt 2; then
23278 gcc_cv_ld_hidden
=no
23279 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23280 gcc_cv_ld_hidden
="no"
23281 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23282 gcc_cv_ld_hidden
=no
23287 case "${target}" in
23289 gcc_cv_ld_hidden
=yes
23292 # Darwin ld has some visibility support.
23293 gcc_cv_ld_hidden
=yes
23295 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23296 gcc_cv_ld_hidden
=yes
23299 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23300 # .symbolic was only added in Solaris 9 12/02.
23301 gcc_cv_ld_hidden
=yes
23304 gcc_cv_ld_hidden
=no
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23311 $as_echo "$gcc_cv_ld_hidden" >&6; }
23312 libgcc_visibility
=no
23315 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23316 libgcc_visibility
=yes
23318 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23323 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23324 gcc_cv_ld_ro_rw_mix
=unknown
23325 if test $in_tree_ld = yes ; then
23326 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 \
23327 && test $in_tree_ld_is_elf = yes; then
23328 gcc_cv_ld_ro_rw_mix
=read-write
23330 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23331 echo '.section myfoosect, "a"' > conftest1.s
23332 echo '.section myfoosect, "aw"' > conftest2.s
23333 echo '.byte 1' >> conftest2.s
23334 echo '.section myfoosect, "a"' > conftest3.s
23335 echo '.byte 0' >> conftest3.s
23336 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23337 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23338 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23339 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23340 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23341 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23342 | sed -e '/myfoosect/!d' -e N`
23343 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23344 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23345 gcc_cv_ld_ro_rw_mix
=read-only
23347 gcc_cv_ld_ro_rw_mix
=read-write
23351 rm -f conftest.
* conftest
[123].
*
23353 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23355 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23359 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23361 # Check whether --enable-initfini-array was given.
23362 if test "${enable_initfini_array+set}" = set; then :
23363 enableval
=$enable_initfini_array;
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23367 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23368 if ${gcc_cv_initfini_array+:} false
; then :
23369 $as_echo_n "(cached) " >&6
23371 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23372 case "${target}" in
23374 if test "$cross_compiling" = yes; then :
23375 gcc_cv_initfini_array
=no
23377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23378 /* end confdefs.h. */
23381 #error Not an ELF OS
23383 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23384 if it can be used. */
23386 int main (void) { return x; }
23387 int foo (void) { x = 0; }
23388 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23391 if ac_fn_cxx_try_run
"$LINENO"; then :
23392 gcc_cv_initfini_array
=yes
23394 gcc_cv_initfini_array
=no
23396 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23397 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23401 gcc_cv_initfini_array
=no
23402 if test $in_tree_ld = yes ; then
23403 if test "$gcc_cv_gld_major_version" -eq 2 \
23404 -a "$gcc_cv_gld_minor_version" -ge 22 \
23405 -o "$gcc_cv_gld_major_version" -gt 2 \
23406 && test $in_tree_ld_is_elf = yes; then
23407 gcc_cv_initfini_array
=yes
23409 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23410 case $target:$gas in
23413 sh_type
='%progbits'
23415 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23417 sh_type
='@progbits'
23419 sparc
*-*-solaris2*:no
)
23421 sh_type
='#progbits'
23425 case "$target:$gnu_ld" in
23427 cat > conftest.s
<<EOF
23428 .section .dtors,$sh_flags,$sh_type
23430 .byte 'A', 'A', 'A', 'A'
23431 .section .ctors,$sh_flags,$sh_type
23433 .byte 'B', 'B', 'B', 'B'
23434 .section .fini_array.65530,$sh_flags,$sh_type
23436 .byte 'C', 'C', 'C', 'C'
23437 .section .init_array.65530,$sh_flags,$sh_type
23439 .byte 'D', 'D', 'D', 'D'
23440 .section .dtors.64528,$sh_flags,$sh_type
23442 .byte 'E', 'E', 'E', 'E'
23443 .section .ctors.64528,$sh_flags,$sh_type
23445 .byte 'F', 'F', 'F', 'F'
23446 .section .fini_array.01005,$sh_flags,$sh_type
23448 .byte 'G', 'G', 'G', 'G'
23449 .section .init_array.01005,$sh_flags,$sh_type
23451 .byte 'H', 'H', 'H', 'H'
23456 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23457 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23458 && $gcc_cv_objdump -s -j .init_array conftest \
23459 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23460 && $gcc_cv_objdump -s -j .fini_array conftest \
23461 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23462 gcc_cv_initfini_array
=yes
23466 # When Solaris ld added constructor priority support, it was
23467 # decided to only handle .init_array.N/.fini_array.N since
23468 # there was no need for backwards compatibility with
23469 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23470 # sections with correct execution order resp. to
23471 # .init_array/.fini_array, while gld merges them into
23472 # .init_array/.fini_array.
23473 cat > conftest.s
<<EOF
23474 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23476 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23477 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23479 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23480 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23482 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23483 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23485 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23490 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23491 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23492 && $gcc_cv_objdump -s -j .init_array conftest \
23493 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
23494 && $gcc_cv_objdump -s -j .fini_array conftest \
23495 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
23496 gcc_cv_initfini_array
=yes
23500 rm -f conftest conftest.
*
23502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23503 /* end confdefs.h. */
23506 # error Not an ELF OS
23508 #include <stdlib.h>
23509 #if defined __GLIBC_PREREQ
23510 # if __GLIBC_PREREQ (2, 4)
23512 # error GLIBC 2.4 required
23515 # if defined __sun__ && defined __svr4__
23516 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23518 # error The C library not known to support .init_array/.fini_array
23523 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23526 gcc_cv_initfini_array
=no
23528 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23532 $as_echo_n "checking cross compile... guessing... " >&6; }
23533 gcc_cv_initfini_array
=no
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23537 $as_echo "$gcc_cv_initfini_array" >&6; }
23538 enable_initfini_array
=$gcc_cv_initfini_array
23543 cat >>confdefs.h
<<_ACEOF
23544 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23549 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23551 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23552 if ${gcc_cv_as_leb128+:} false
; then :
23553 $as_echo_n "(cached) " >&6
23555 gcc_cv_as_leb128
=no
23556 if test $in_tree_gas = yes; then
23557 if test $in_tree_gas_is_elf = yes \
23558 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23559 then gcc_cv_as_leb128
=yes
23561 elif test x
$gcc_cv_as != x
; then
23568 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23570 (eval $ac_try) 2>&5
23572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23573 test $ac_status = 0; }; }
23575 # GAS versions before 2.11 do not support uleb128,
23576 # despite appearing to.
23577 # ??? There exists an elf-specific test that will crash
23578 # the assembler. Perhaps it's better to figure out whether
23579 # arbitrary sections are supported and try the test.
23580 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23581 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23582 as_vers
=`echo $as_ver | sed -n \
23583 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23584 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23585 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23586 if test $as_major -eq 2 && test $as_minor -lt 11
23588 else gcc_cv_as_leb128
=yes
23592 echo "configure: failed program was" >&5
23595 rm -f conftest.o conftest.s
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23599 $as_echo "$gcc_cv_as_leb128" >&6; }
23600 if test $gcc_cv_as_leb128 = yes; then
23602 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23605 if test $gcc_cv_as_leb128 != yes; then
23607 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23611 # Determine if an .eh_frame section is read-only.
23612 gcc_fn_eh_frame_ro
() {
23613 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23614 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23615 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23618 # Check if we have assembler support for unwind directives.
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23620 $as_echo_n "checking assembler for cfi directives... " >&6; }
23621 if ${gcc_cv_as_cfi_directive+:} false
; then :
23622 $as_echo_n "(cached) " >&6
23624 gcc_cv_as_cfi_directive
=no
23625 if test x
$gcc_cv_as != x
; then
23631 .cfi_escape 1, 2, 3, 4, 5
23632 .cfi_endproc' > conftest.s
23633 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23635 (eval $ac_try) 2>&5
23637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23638 test $ac_status = 0; }; }
23642 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23643 # read-only and read-write sections, we need to make sure that the
23644 # assembler used emits read-write .eh_frame sections.
23645 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23646 gcc_cv_as_cfi_directive
=yes
23647 elif test "x$gcc_cv_objdump" = x
; then
23648 # No objdump, err on the side of caution.
23649 gcc_cv_as_cfi_directive
=no
23651 if test x
$gas = xyes
; then
23659 sparc
*-*-solaris2.
*)
23660 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23661 if gcc_fn_eh_frame_ro
$as_32_opt \
23662 || gcc_fn_eh_frame_ro
$as_64_opt; then
23663 gcc_cv_as_cfi_directive
=no
23665 gcc_cv_as_cfi_directive
=yes
23668 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23669 # On Solaris/x86, make sure that GCC and assembler agree on using
23670 # read-only .eh_frame sections for 64-bit.
23671 if gcc_fn_eh_frame_ro
$as_32_opt; then
23672 gcc_cv_as_cfi_directive
=no
23673 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23674 gcc_cv_as_cfi_directive
=yes
23676 gcc_cv_as_cfi_directive
=no
23683 gcc_cv_as_cfi_directive
=yes
23687 echo "configure: failed program was" >&5
23690 rm -f conftest.o conftest.s
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23694 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23697 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23699 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23700 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
23701 $as_echo_n "(cached) " >&6
23703 gcc_cv_as_cfi_advance_working
=no
23704 if test x
$gcc_cv_as != x
; then
23707 .cfi_adjust_cfa_offset 64
23709 .cfi_adjust_cfa_offset 128
23710 .cfi_endproc' > conftest.s
23711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23713 (eval $ac_try) 2>&5
23715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23716 test $ac_status = 0; }; }
23719 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23720 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23721 gcc_cv_as_cfi_advance_working
=yes
23725 echo "configure: failed program was" >&5
23728 rm -f conftest.o conftest.s
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23732 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23736 # no objdump, err on the side of caution
23737 gcc_cv_as_cfi_advance_working
=no
23741 cat >>confdefs.h
<<_ACEOF
23742 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23743 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23749 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23750 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
23751 $as_echo_n "(cached) " >&6
23753 gcc_cv_as_cfi_personality_directive
=no
23754 if test x
$gcc_cv_as != x
; then
23757 .cfi_personality 0, symbol
23758 .cfi_endproc' > conftest.s
23759 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23761 (eval $ac_try) 2>&5
23763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23764 test $ac_status = 0; }; }
23766 gcc_cv_as_cfi_personality_directive
=yes
23768 echo "configure: failed program was" >&5
23771 rm -f conftest.o conftest.s
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23775 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23779 cat >>confdefs.h
<<_ACEOF
23780 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23785 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23786 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
23787 $as_echo_n "(cached) " >&6
23789 gcc_cv_as_cfi_sections_directive
=no
23790 if test x
$gcc_cv_as != x
; then
23792 .cfi_sections .debug_frame, .eh_frame
23794 .cfi_endproc' > conftest.s
23795 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23797 (eval $ac_try) 2>&5
23799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23800 test $ac_status = 0; }; }
23803 win32 | pe | cygwin
* | mingw32
*)
23804 # Need to check that we generated the correct relocation for the
23805 # .debug_frame section. This was fixed for binutils 2.21.
23806 gcc_cv_as_cfi_sections_directive
=no
23807 if test "x$gcc_cv_objdump" != x
; then
23808 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23809 grep secrel
> /dev
/null
; then
23810 gcc_cv_as_cfi_sections_directive
=yes
23815 gcc_cv_as_cfi_sections_directive
=yes
23819 echo "configure: failed program was" >&5
23822 rm -f conftest.o conftest.s
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23826 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23831 cat >>confdefs.h
<<_ACEOF
23832 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23836 # GAS versions up to and including 2.11.0 may mis-optimize
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23839 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23840 if ${gcc_cv_as_eh_frame+:} false
; then :
23841 $as_echo_n "(cached) " >&6
23843 gcc_cv_as_eh_frame
=no
23844 if test $in_tree_gas = yes; then
23845 if test $in_tree_gas_is_elf = yes \
23846 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23847 then gcc_cv_as_eh_frame
=yes
23849 elif test x
$gcc_cv_as != x
; then
23856 .section .eh_frame,"aw",@progbits
23858 .4byte .LECIE1-.LSCIE1
23872 .4byte .LEFDE1-.LASFDE1
23874 .4byte .LASFDE1-__FRAME_BEGIN__
23881 .LEFDE1:' > conftest.s
23882 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23884 (eval $ac_try) 2>&5
23886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23887 test $ac_status = 0; }; }
23889 cat > conftest.lit
<<EOF
23890 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23891 0010 01000000 12000000 18000000 00000000 ................
23892 0020 08000000 04080000 0044 .........D
23894 cat > conftest.big
<<EOF
23895 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23896 0010 00000001 00000012 00000018 00000000 ................
23897 0020 00000008 04000000 0844 .........D
23899 # If the assembler didn't choke, and we can objdump,
23900 # and we got the correct data, then succeed.
23901 # The text in the here-document typically retains its unix-style line
23902 # endings, while the output of objdump will use host line endings.
23903 # Therefore, use diff -b for the comparisons.
23904 if test x
$gcc_cv_objdump != x \
23905 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23906 |
tail -3 > conftest.got \
23907 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23908 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23910 gcc_cv_as_eh_frame
=yes
23911 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23913 (eval $ac_try) 2>&5
23915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23916 test $ac_status = 0; }; }; then
23917 gcc_cv_as_eh_frame
=buggy
23919 # Uh oh, what do we do now?
23920 gcc_cv_as_eh_frame
=no
23923 echo "configure: failed program was" >&5
23926 rm -f conftest.o conftest.s
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23930 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23934 if test $gcc_cv_as_eh_frame = buggy
; then
23936 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23940 # Test if the assembler supports the section flag 'e' or #exclude for
23941 # specifying an excluded section.
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23943 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23944 if ${gcc_cv_as_section_exclude_e+:} false
; then :
23945 $as_echo_n "(cached) " >&6
23947 gcc_cv_as_section_exclude_e
=no
23948 if test $in_tree_gas = yes; then
23949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23950 then gcc_cv_as_section_exclude_e
=yes
23952 elif test x
$gcc_cv_as != x
; then
23953 $as_echo '.section foo1,"e"
23954 .byte 0,0,0,0' > conftest.s
23955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23957 (eval $ac_try) 2>&5
23959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23960 test $ac_status = 0; }; }
23962 gcc_cv_as_section_exclude_e
=yes
23964 echo "configure: failed program was" >&5
23967 rm -f conftest.o conftest.s
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23971 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23974 if test $gcc_cv_as_section_exclude_e = no
; then
23975 case "${target}" in
23976 # Solaris as uses #exclude instead.
23978 case "${target}" in
23979 sparc
*-*-solaris2*)
23980 conftest_s
='.section "foo1", #exclude'
23982 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23983 conftest_s
='.section foo1, #exclude'
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23989 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23990 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
23991 $as_echo_n "(cached) " >&6
23993 gcc_cv_as_section_exclude_hash
=no
23994 if test x
$gcc_cv_as != x
; then
23995 $as_echo "$conftest_s
23996 .byte 0,0,0,0" > conftest.s
23997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; }
24004 gcc_cv_as_section_exclude_hash
=yes
24006 echo "configure: failed program was" >&5
24009 rm -f conftest.o conftest.s
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24013 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24018 cat >>confdefs.h
<<_ACEOF
24019 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24024 $as_echo_n "checking assembler for section merging support... " >&6; }
24025 if ${gcc_cv_as_shf_merge+:} false
; then :
24026 $as_echo_n "(cached) " >&6
24028 gcc_cv_as_shf_merge
=no
24029 if test $in_tree_gas = yes; then
24030 if test $in_tree_gas_is_elf = yes \
24031 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24032 then gcc_cv_as_shf_merge
=yes
24034 elif test x
$gcc_cv_as != x
; then
24035 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24043 gcc_cv_as_shf_merge
=yes
24045 echo "configure: failed program was" >&5
24048 rm -f conftest.o conftest.s
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24052 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24055 if test $gcc_cv_as_shf_merge = no
; then
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24057 $as_echo_n "checking assembler for section merging support... " >&6; }
24058 if ${gcc_cv_as_shf_merge+:} false
; then :
24059 $as_echo_n "(cached) " >&6
24061 gcc_cv_as_shf_merge
=no
24062 if test $in_tree_gas = yes; then
24063 if test $in_tree_gas_is_elf = yes \
24064 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24065 then gcc_cv_as_shf_merge
=yes
24067 elif test x
$gcc_cv_as != x
; then
24068 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24071 (eval $ac_try) 2>&5
24073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24074 test $ac_status = 0; }; }
24076 gcc_cv_as_shf_merge
=yes
24078 echo "configure: failed program was" >&5
24081 rm -f conftest.o conftest.s
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24085 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24090 cat >>confdefs.h
<<_ACEOF
24091 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24095 gcc_cv_ld_aligned_shf_merge
=yes
24097 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24099 sparc
*-*-solaris2.11
*)
24100 if test x
"$gnu_ld" = xno \
24101 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24102 gcc_cv_ld_aligned_shf_merge
=no
24107 cat >>confdefs.h
<<_ACEOF
24108 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24113 $as_echo_n "checking assembler for stabs directive... " >&6; }
24114 if ${gcc_cv_as_stabs_directive+:} false
; then :
24115 $as_echo_n "(cached) " >&6
24117 gcc_cv_as_stabs_directive
=no
24118 if test x
$gcc_cv_as != x
; then
24119 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24122 (eval $ac_try) 2>&5
24124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24125 test $ac_status = 0; }; }
24127 gcc_cv_as_stabs_directive
=yes
24129 echo "configure: failed program was" >&5
24132 rm -f conftest.o conftest.s
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24136 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24137 if test $gcc_cv_as_stabs_directive = yes; then
24139 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24145 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24146 if ${gcc_cv_as_comdat_group+:} false
; then :
24147 $as_echo_n "(cached) " >&6
24149 gcc_cv_as_comdat_group
=no
24150 if test $in_tree_gas = yes; then
24151 if test $in_tree_gas_is_elf = yes \
24152 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24153 then gcc_cv_as_comdat_group
=yes
24155 elif test x
$gcc_cv_as != x
; then
24156 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24159 (eval $ac_try) 2>&5
24161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24162 test $ac_status = 0; }; }
24164 gcc_cv_as_comdat_group
=yes
24166 echo "configure: failed program was" >&5
24169 rm -f conftest.o conftest.s
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24173 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24176 if test $gcc_cv_as_comdat_group = yes; then
24177 gcc_cv_as_comdat_group_percent
=no
24178 gcc_cv_as_comdat_group_group
=no
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24181 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24182 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24183 $as_echo_n "(cached) " >&6
24185 gcc_cv_as_comdat_group_percent
=no
24186 if test $in_tree_gas = yes; then
24187 if test $in_tree_gas_is_elf = yes \
24188 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24189 then gcc_cv_as_comdat_group_percent
=yes
24191 elif test x
$gcc_cv_as != x
; then
24192 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24195 (eval $ac_try) 2>&5
24197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24198 test $ac_status = 0; }; }
24200 gcc_cv_as_comdat_group_percent
=yes
24202 echo "configure: failed program was" >&5
24205 rm -f conftest.o conftest.s
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24209 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24212 if test $gcc_cv_as_comdat_group_percent = yes; then
24213 gcc_cv_as_comdat_group_group
=no
24215 case "${target}" in
24216 # Sun as uses a completely different syntax.
24218 case "${target}" in
24219 sparc
*-*-solaris2*)
24221 .group foo,".text%foo",#comdat
24222 .section ".text%foo", #alloc,#execinstr,#progbits
24227 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24229 .group foo,.text%foo,#comdat
24230 .section .text%foo, "ax", @progbits
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24237 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24238 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24239 $as_echo_n "(cached) " >&6
24241 gcc_cv_as_comdat_group_group
=no
24242 if test x
$gcc_cv_as != x
; then
24243 $as_echo "$conftest_s" > conftest.s
24244 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24246 (eval $ac_try) 2>&5
24248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24249 test $ac_status = 0; }; }
24251 gcc_cv_as_comdat_group_group
=yes
24253 echo "configure: failed program was" >&5
24256 rm -f conftest.o conftest.s
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24260 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24265 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24266 gcc_cv_as_comdat_group_group
=no
24270 if test x
"$ld_is_gold" = xyes
; then
24272 elif test $in_tree_ld = yes ; then
24274 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 \
24275 && test $in_tree_ld_is_elf = yes; then
24278 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24280 if test 0"$ld_date" -lt 20050308; then
24281 if test -n "$ld_date"; then
24282 # If there was date string, but was earlier than 2005-03-08, fail
24284 elif test "$ld_vers_major" -lt 2; then
24286 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24291 case "${target}" in
24292 *-*-solaris2.1
[1-9]*)
24294 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24295 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24298 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24299 # least ld version 1.2267.
24300 if test "$ld_vers_major" -gt 1; then
24302 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
24304 elif test "$ld_vers_minor" -ge 2267; then
24309 # Assume linkers other than GNU ld don't support COMDAT group.
24314 # Allow overriding the automatic COMDAT group tests above.
24315 # Check whether --enable-comdat was given.
24316 if test "${enable_comdat+set}" = set; then :
24317 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
24320 if test $comdat_group = no
; then
24321 gcc_cv_as_comdat_group
=no
24322 gcc_cv_as_comdat_group_percent
=no
24323 gcc_cv_as_comdat_group_group
=no
24326 cat >>confdefs.h
<<_ACEOF
24327 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24328 || test $gcc_cv_as_comdat_group_percent = yes \
24329 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24333 # Restrict this test to Solaris/x86: other targets define this statically.
24334 case "${target}" in
24335 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24337 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24338 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24339 hidden_linkonce
=yes
24341 case "${target}" in
24342 # Full support for hidden thunks in linkonce sections only appeared in
24343 # Solaris 11/OpenSolaris.
24344 *-*-solaris2.1
[1-9]*)
24345 hidden_linkonce
=yes
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24353 $as_echo "$hidden_linkonce" >&6; }
24355 cat >>confdefs.h
<<_ACEOF
24356 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24363 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24364 if ${gcc_cv_as_is_stmt+:} false
; then :
24365 $as_echo_n "(cached) " >&6
24367 gcc_cv_as_is_stmt
=no
24368 if test $in_tree_gas = yes; then
24369 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24370 then gcc_cv_as_is_stmt
=yes
24372 elif test x
$gcc_cv_as != x
; then
24375 .loc 1 1 0 is_stmt 1' > conftest.s
24376 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378 (eval $ac_try) 2>&5
24380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381 test $ac_status = 0; }; }
24383 gcc_cv_as_is_stmt
=yes
24385 echo "configure: failed program was" >&5
24388 rm -f conftest.o conftest.s
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24392 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24393 if test $gcc_cv_as_is_stmt = yes; then
24395 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24401 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24402 if ${gcc_cv_as_discriminator+:} false
; then :
24403 $as_echo_n "(cached) " >&6
24405 gcc_cv_as_discriminator
=no
24406 if test $in_tree_gas = yes; then
24407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24408 then gcc_cv_as_discriminator
=yes
24410 elif test x
$gcc_cv_as != x
; then
24413 .loc 1 1 0 discriminator 1' > conftest.s
24414 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24416 (eval $ac_try) 2>&5
24418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419 test $ac_status = 0; }; }
24421 gcc_cv_as_discriminator
=yes
24423 echo "configure: failed program was" >&5
24426 rm -f conftest.o conftest.s
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24430 $as_echo "$gcc_cv_as_discriminator" >&6; }
24431 if test $gcc_cv_as_discriminator = yes; then
24433 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24438 # Thread-local storage - the check is heavily parameterized.
24446 .section ".tdata","awT",@progbits
24449 ldq $27,__tls_get_addr($29) !literal!1
24450 lda $16,foo($29) !tlsgd!1
24451 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24452 ldq $27,__tls_get_addr($29) !literal!2
24453 lda $16,foo($29) !tlsldm!2
24454 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24455 ldq $1,foo($29) !gotdtprel
24456 ldah $2,foo($29) !dtprelhi
24457 lda $3,foo($2) !dtprello
24458 lda $4,foo($29) !dtprel
24459 ldq $1,foo($29) !gottprel
24460 ldah $2,foo($29) !tprelhi
24461 lda $3,foo($2) !tprello
24462 lda $4,foo($29) !tprel'
24465 tls_as_opt
=--fatal-warnings
24469 add_s r0,r0, @foo@tpoff'
24473 cris-
*-*|crisv32-
*-*)
24475 .section ".tdata","awT",@progbits
24482 tls_as_opt
=--fatal-warnings
24486 .section ".tdata","awT",@progbits
24489 call #gettlsoff(x)'
24498 .section ".tdata","awT",@progbits
24502 addil LT%foo-$tls_gdidx$,gp
24503 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24506 addil LT%foo-$tls_ldidx$,gp
24508 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24509 addil LR%foo-$tls_dtpoff$,%ret0
24510 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24512 addil LT%foo-$tls_ieoff$,gp
24513 ldw RT%foo-$tls_ieoff$(%r1),%t2
24516 addil LR%foo-$tls_leoff$,%t1
24517 ldo RR%foo-$tls_leoff$(%r1),%t2'
24520 tls_as_opt
=--fatal-warnings
24524 .section ".tdata","awT",%progbits
24527 .word foo(gottpoff)
24535 i
[34567]86-*-* | x86_64-
*-*)
24537 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24544 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24546 .section .tdata,"awt",@progbits'
24551 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24555 .section ".tdata","awT",@progbits'
24559 tls_as_opt
="--fatal-warnings"
24563 conftest_s
="$conftest_s
24567 leal foo@tlsgd(,%ebx,1), %eax
24568 leal foo@tlsldm(%ebx), %eax
24569 leal foo@dtpoff(%eax), %edx
24570 movl foo@gottpoff(%ebx), %eax
24571 subl foo@gottpoff(%ebx), %eax
24572 addl foo@gotntpoff(%ebx), %eax
24573 movl foo@indntpoff, %eax
24574 movl \$foo@tpoff, %eax
24575 subl \$foo@tpoff, %eax
24576 leal foo@ntpoff(%ecx), %eax"
24579 if test x
$on_solaris = xyes
; then
24581 yes) tls_as_opt
="$tls_as_opt --64" ;;
24582 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24585 conftest_s
="$conftest_s
24589 leaq foo@tlsgd(%rip), %rdi
24590 leaq foo@tlsld(%rip), %rdi
24591 leaq foo@dtpoff(%rax), %rdx
24592 movq foo@gottpoff(%rip), %rax
24593 movq \$foo@tpoff, %rax"
24599 .section ".tdata","awT",@progbits
24602 addl r16 = @ltoff(@dtpmod(foo#)), gp
24603 addl r17 = @ltoff(@dtprel(foo#)), gp
24604 addl r18 = @ltoff(@tprel(foo#)), gp
24605 addl r19 = @dtprel(foo#), gp
24606 adds r21 = @dtprel(foo#), r13
24607 movl r23 = @dtprel(foo#)
24608 addl r20 = @tprel(foo#), gp
24609 adds r22 = @tprel(foo#), r13
24610 movl r24 = @tprel(foo#)'
24613 tls_as_opt
=--fatal-warnings
24617 .section .tdata,"awT",@progbits
24621 addik r5,r20,x@TLSGD
24622 addik r5,r20,x@TLSLDM'
24625 tls_as_opt
='--fatal-warnings'
24629 .section .tdata,"awT",@progbits
24633 addiu $4, $28, %tlsgd(x)
24634 addiu $4, $28, %tlsldm(x)
24635 lui $4, %dtprel_hi(x)
24636 addiu $4, $4, %dtprel_lo(x)
24637 lw $4, %gottprel(x)($28)
24638 lui $4, %tprel_hi(x)
24639 addiu $4, $4, %tprel_lo(x)'
24642 tls_as_opt
='-32 --fatal-warnings'
24646 .section .tdata,"awT",@progbits
24651 move.l x@TLSGD(%a5),%a0
24652 move.l x@TLSLDM(%a5),%a0
24653 move.l x@TLSLDO(%a5),%a0
24654 move.l x@TLSIE(%a5),%a0
24655 move.l x@TLSLE(%a5),%a0'
24658 tls_as_opt
='--fatal-warnings'
24662 .section ".tdata","awT",@progbits'
24665 tls_as_opt
="--fatal-warnings"
24669 .section ".tdata","awT",%progbits
24673 add x0, x0, #:tlsgd_lo12:x
24678 tls_as_opt
='--fatal-warnings'
24682 .section ".tdata","awT",@progbits
24685 l.movhi r3, tpoffha(foo)
24687 l.lwz r4, tpofflo(foo)(r3)'
24690 tls_as_opt
=--fatal-warnings
24694 .extern __get_tpointer
24712 .section ".tdata","awT",@progbits
24720 addi 3,2,ld0@got@tlsgd
24726 addi 3,2,x1@got@tlsld
24732 addis 9,3,x2@dtprel@ha
24733 addi 9,9,x2@dtprel@l
24736 ld 9,x3@got@dtprel(2)
24742 tls_as_opt
="-a64 --fatal-warnings"
24746 .section ".tdata","awT",@progbits
24754 addi 3,31,ld0@got@tlsgd
24756 addi 3,31,x1@got@tlsld
24759 addis 9,3,x2@dtprel@ha
24760 addi 9,9,x2@dtprel@l
24761 lwz 9,x3@got@tprel(31)
24764 addis 9,2,x2@tprel@ha
24765 addi 9,9,x2@tprel@l'
24768 tls_as_opt
="-a32 --fatal-warnings"
24772 .section .tdata,"awT",@progbits
24776 call __tls_get_addr'
24779 tls_as_opt
='--fatal-warnings'
24783 .section ".tdata","awT",@progbits
24790 .long foo@GOTNTPOFF
24791 .long foo@INDNTPOFF
24792 l %r1,foo@GOTNTPOFF(%r12)
24793 l %r1,0(%r1):tls_load:foo
24794 bas %r14,0(%r1,%r13):tls_gdcall:foo
24795 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24798 tls_as_opt
="-m31 --fatal-warnings"
24802 .section ".tdata","awT",@progbits
24809 .quad foo@GOTNTPOFF
24810 lg %r1,foo@GOTNTPOFF(%r12)
24811 larl %r1,foo@INDNTPOFF
24812 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24813 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24816 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24818 sh-
*-* | sh
[123456789lbe
]*-*-*)
24820 .section ".tdata","awT",@progbits
24830 tls_as_opt
=--fatal-warnings
24834 sparc
*-sun-solaris2.
*)
24841 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24843 .section ".tdata",#alloc,#write,#tls'
24848 .section ".tdata","awT",@progbits'
24851 tls_as_opt
="-32 --fatal-warnings"
24853 conftest_s
="$conftest_s
24856 sethi %tgd_hi22(foo), %o0
24857 add %o0, %tgd_lo10(foo), %o1
24858 add %l7, %o1, %o0, %tgd_add(foo)
24859 call __tls_get_addr, %tgd_call(foo)
24860 sethi %tldm_hi22(foo), %l1
24861 add %l1, %tldm_lo10(foo), %l2
24862 add %l7, %l2, %o0, %tldm_add(foo)
24863 call __tls_get_addr, %tldm_call(foo)
24864 sethi %tldo_hix22(foo), %l3
24865 xor %l3, %tldo_lox10(foo), %l4
24866 add %o0, %l4, %l5, %tldo_add(foo)
24867 sethi %tie_hi22(foo), %o3
24868 add %o3, %tie_lo10(foo), %o3
24869 ld [%l7 + %o3], %o2, %tie_ld(foo)
24870 add %g7, %o2, %o4, %tie_add(foo)
24871 sethi %tle_hix22(foo), %l1
24872 xor %l1, %tle_lox10(foo), %o5
24873 ld [%g7 + %o5], %o1"
24877 .section ".tdata","awT",@progbits
24880 addli r0, zero, tls_gd(foo)
24881 auli r0, zero, tls_gd_ha16(foo)
24882 addli r0, r0, tls_gd_lo16(foo)
24884 addli r0, zero, tls_ie(foo)
24885 auli r0, r0, tls_ie_ha16(foo)
24886 addli r0, r0, tls_ie_lo16(foo)'
24889 tls_as_opt
="--fatal-warnings"
24893 .section ".tdata","awT",@progbits
24896 shl16insli r0, zero, hw0_last_tls_gd(foo)
24897 shl16insli r0, zero, hw1_last_tls_gd(foo)
24898 shl16insli r0, r0, hw0_tls_gd(foo)
24900 shl16insli r0, zero, hw1_last_tls_ie(foo)
24901 shl16insli r0, r0, hw0_tls_ie(foo)'
24904 tls_as_opt
="--fatal-warnings"
24908 .section ".tdata","awT",@progbits
24911 movi a8, foo@TLSFUNC
24912 movi a10, foo@TLSARG
24913 callx8.tls a8, foo@TLSCALL'
24919 if test "x$enable_tls" = xno
; then
24920 : # TLS explicitly disabled.
24921 elif test "x$enable_tls" = xyes
; then
24922 set_have_as_tls
=yes # TLS explicitly enabled.
24923 elif test -z "$tls_first_major"; then
24924 : # If we don't have a check, assume no support.
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24927 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24928 if ${gcc_cv_as_tls+:} false
; then :
24929 $as_echo_n "(cached) " >&6
24932 if test $in_tree_gas = yes; then
24933 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24934 then gcc_cv_as_tls
=yes
24936 elif test x
$gcc_cv_as != x
; then
24937 $as_echo "$conftest_s" > conftest.s
24938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24940 (eval $ac_try) 2>&5
24942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24943 test $ac_status = 0; }; }
24947 echo "configure: failed program was" >&5
24950 rm -f conftest.o conftest.s
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24954 $as_echo "$gcc_cv_as_tls" >&6; }
24955 if test $gcc_cv_as_tls = yes; then
24956 set_have_as_tls
=yes
24960 if test $set_have_as_tls = yes ; then
24962 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24966 # Target-specific assembler checks.
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24969 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24970 gcc_cv_ld_static_dynamic
=no
24971 gcc_cv_ld_static_option
='-Bstatic'
24972 gcc_cv_ld_dynamic_option
='-Bdynamic'
24973 if test $in_tree_ld = yes ; then
24974 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
24975 gcc_cv_ld_static_dynamic
=yes
24977 elif test x
$gcc_cv_ld != x
; then
24978 # Check if linker supports -Bstatic/-Bdynamic option
24979 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
24980 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
24981 gcc_cv_ld_static_dynamic
=yes
24984 # AIX ld uses -b flags
24985 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24986 gcc_cv_ld_static_dynamic
=yes
24987 gcc_cv_ld_static_option
="-bstatic"
24988 gcc_cv_ld_dynamic_option
="-bdynamic"
24990 # HP-UX ld uses -a flags to select between shared and archive.
24992 if test x
"$gnu_ld" = xno
; then
24993 gcc_cv_ld_static_dynamic
=yes
24994 gcc_cv_ld_static_option
="-aarchive_shared"
24995 gcc_cv_ld_dynamic_option
="-adefault"
24998 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25000 gcc_cv_ld_static_dynamic
=yes
25005 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25007 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25010 cat >>confdefs.h
<<_ACEOF
25011 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25015 cat >>confdefs.h
<<_ACEOF
25016 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25021 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25024 $as_echo_n "checking linker --version-script option... " >&6; }
25025 gcc_cv_ld_version_script
=no
25026 ld_version_script_option
=''
25027 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25028 gcc_cv_ld_version_script
=yes
25029 ld_version_script_option
='--version-script'
25030 elif test x
$gcc_cv_ld != x
; then
25032 # Solaris 2 ld always supports -M. It also supports a subset of
25033 # --version-script since Solaris 11.4, but requires
25034 # -z gnu-version-script-compat to activate.
25036 gcc_cv_ld_version_script
=yes
25037 ld_version_script_option
='-M'
25041 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25043 $as_echo "$gcc_cv_ld_version_script" >&6; }
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25047 $as_echo_n "checking linker soname option... " >&6; }
25048 gcc_cv_ld_soname
=no
25049 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25050 gcc_cv_ld_soname
=yes
25051 ld_soname_option
='-soname'
25052 elif test x
$gcc_cv_ld != x
; then
25055 gcc_cv_ld_soname
=yes
25056 ld_soname_option
='-install_name'
25058 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25059 # ld compatiblity since some Solaris 10 update.
25061 gcc_cv_ld_soname
=yes
25062 ld_soname_option
='-h'
25066 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25068 $as_echo "$gcc_cv_ld_soname" >&6; }
25071 if test x
"$demangler_in_ld" = xyes
; then
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25073 $as_echo_n "checking linker --demangle support... " >&6; }
25074 gcc_cv_ld_demangle
=no
25075 if test $in_tree_ld = yes; then
25076 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 \
25077 gcc_cv_ld_demangle
=yes
25079 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25080 # Check if the GNU linker supports --demangle option
25081 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25082 gcc_cv_ld_demangle
=yes
25085 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25087 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25091 $as_echo "$gcc_cv_ld_demangle" >&6; }
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25095 $as_echo_n "checking linker plugin support... " >&6; }
25096 gcc_cv_lto_plugin
=0
25097 if test -f liblto_plugin.la
; then
25098 save_ld_ver
="$ld_ver"
25099 save_ld_vers_major
="$ld_vers_major"
25100 save_ld_vers_minor
="$ld_vers_minor"
25101 save_ld_is_gold
="$ld_is_gold"
25105 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25107 # FIXME: ld_is_gold?
25108 ld_vers_major
="$gcc_cv_gld_major_version"
25109 ld_vers_minor
="$gcc_cv_gld_minor_version"
25111 # Determine plugin linker version.
25112 # FIXME: Partial duplicate from above, generalize.
25113 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25114 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25115 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25117 ld_vers
=`echo $ld_ver | sed -n \
25118 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25120 ld_vers
=`echo $ld_ver | sed -n \
25121 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25123 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25124 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25128 # Determine plugin support.
25129 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25130 # Require GNU ld or gold 2.21+ for plugin support by default.
25131 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25132 gcc_cv_lto_plugin
=2
25133 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25134 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25135 gcc_cv_lto_plugin
=1
25139 ld_ver
="$save_ld_ver"
25140 ld_vers_major
="$save_ld_vers_major"
25141 ld_vers_minor
="$save_ld_vers_minor"
25142 ld_is_gold
="$save_ld_is_gold"
25145 cat >>confdefs.h
<<_ACEOF
25146 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25150 $as_echo "$gcc_cv_lto_plugin" >&6; }
25152 # Target OS-specific assembler checks.
25154 case "$target_os" in
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25157 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25158 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25159 $as_echo_n "(cached) " >&6
25161 gcc_cv_as_mmacosx_version_min
=no
25162 if test x
$gcc_cv_as != x
; then
25163 $as_echo '.text' > conftest.s
25164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25166 (eval $ac_try) 2>&5
25168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25169 test $ac_status = 0; }; }
25171 gcc_cv_as_mmacosx_version_min
=yes
25173 echo "configure: failed program was" >&5
25176 rm -f conftest.o conftest.s
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25180 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25181 if test $gcc_cv_as_mmacosx_version_min = yes; then
25183 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25190 # Target CPU-specific assembler checks.
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25195 $as_echo_n "checking assembler for -mabi option... " >&6; }
25196 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25197 $as_echo_n "(cached) " >&6
25199 gcc_cv_as_aarch64_mabi
=no
25200 if test x
$gcc_cv_as != x
; then
25201 $as_echo '.text' > conftest.s
25202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25204 (eval $ac_try) 2>&5
25206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25207 test $ac_status = 0; }; }
25209 gcc_cv_as_aarch64_mabi
=yes
25211 echo "configure: failed program was" >&5
25214 rm -f conftest.o conftest.s
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25218 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25221 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25223 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25226 if test x
$with_abi = xilp32
; then
25227 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25228 Upgrade the Assembler." "$LINENO" 5
25230 if test x
"$with_multilib_list" = xdefault
; then
25231 TM_MULTILIB_CONFIG
=lp64
25233 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25234 for aarch64_multilib
in ${aarch64_multilibs}; do
25235 case ${aarch64_multilib} in
25237 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25238 Upgrade the Assembler." "$LINENO" 5
25246 # Check if we have binutils support for relocations types needed by -fpic
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25248 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25249 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25250 $as_echo_n "(cached) " >&6
25252 gcc_cv_as_aarch64_picreloc
=no
25253 if test x
$gcc_cv_as != x
; then
25256 ldr x0, [x2, #:gotpage_lo15:globalsym]
25258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25260 (eval $ac_try) 2>&5
25262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25263 test $ac_status = 0; }; }
25265 gcc_cv_as_aarch64_picreloc
=yes
25267 echo "configure: failed program was" >&5
25270 rm -f conftest.o conftest.s
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25274 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25275 if test $gcc_cv_as_aarch64_picreloc = yes; then
25277 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25281 # Enable Branch Target Identification Mechanism and Return Address
25282 # Signing by default.
25283 # Check whether --enable-standard-branch-protection was given.
25284 if test "${enable_standard_branch_protection+set}" = set; then :
25285 enableval
=$enable_standard_branch_protection;
25288 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25293 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
25294 Valid choices are 'yes' and 'no'." "$LINENO" 5
25300 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25301 # Check whether --enable-fix-cortex-a53-835769 was given.
25302 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25303 enableval
=$enable_fix_cortex_a53_835769;
25306 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25311 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25312 Valid choices are 'yes' and 'no'." "$LINENO" 5
25319 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25320 # Check whether --enable-fix-cortex-a53-843419 was given.
25321 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25322 enableval
=$enable_fix_cortex_a53_843419;
25325 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25330 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25331 Valid choices are 'yes' and 'no'." "$LINENO" 5
25340 # All TARGET_ABI_OSF targets.
25341 alpha
*-*-linux* | alpha
*-*-*bsd
*)
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25343 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25344 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
25345 $as_echo_n "(cached) " >&6
25347 gcc_cv_as_alpha_explicit_relocs
=no
25348 if test $in_tree_gas = yes; then
25349 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25350 then gcc_cv_as_alpha_explicit_relocs
=yes
25352 elif test x
$gcc_cv_as != x
; then
25353 $as_echo ' .set nomacro
25355 extbl $3, $2, $3 !lituse_bytoff!1
25356 ldq $2, a($29) !literal!1
25357 ldq $4, b($29) !literal!2
25358 ldq_u $3, 0($2) !lituse_base!1
25359 ldq $27, f($29) !literal!5
25360 jsr $26, ($27), f !lituse_jsr!5
25361 ldah $29, 0($26) !gpdisp!3
25362 lda $0, c($29) !gprel
25363 ldah $1, d($29) !gprelhigh
25364 lda $1, d($1) !gprellow
25365 lda $29, 0($29) !gpdisp!3' > conftest.s
25366 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25368 (eval $ac_try) 2>&5
25370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25371 test $ac_status = 0; }; }
25373 gcc_cv_as_alpha_explicit_relocs
=yes
25375 echo "configure: failed program was" >&5
25378 rm -f conftest.o conftest.s
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25382 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25383 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25385 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25390 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25391 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
25392 $as_echo_n "(cached) " >&6
25394 gcc_cv_as_alpha_jsrdirect_relocs
=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25397 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25399 elif test x
$gcc_cv_as != x
; then
25400 $as_echo ' .set nomacro
25402 ldq $27, a($29) !literal!1
25403 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25406 (eval $ac_try) 2>&5
25408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25409 test $ac_status = 0; }; }
25411 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25413 echo "configure: failed program was" >&5
25416 rm -f conftest.o conftest.s
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25420 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25421 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25423 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25431 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25432 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
25433 $as_echo_n "(cached) " >&6
25435 gcc_cv_as_avr_mlink_relax
=no
25436 if test x
$gcc_cv_as != x
; then
25437 $as_echo '.text' > conftest.s
25438 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25440 (eval $ac_try) 2>&5
25442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25443 test $ac_status = 0; }; }
25445 gcc_cv_as_avr_mlink_relax
=yes
25447 echo "configure: failed program was" >&5
25450 rm -f conftest.o conftest.s
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25454 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25455 if test $gcc_cv_as_avr_mlink_relax = yes; then
25457 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25463 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25464 if ${gcc_cv_as_avr_mrmw+:} false
; then :
25465 $as_echo_n "(cached) " >&6
25467 gcc_cv_as_avr_mrmw
=no
25468 if test x
$gcc_cv_as != x
; then
25469 $as_echo '.text' > conftest.s
25470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25472 (eval $ac_try) 2>&5
25474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25475 test $ac_status = 0; }; }
25477 gcc_cv_as_avr_mrmw
=yes
25479 echo "configure: failed program was" >&5
25482 rm -f conftest.o conftest.s
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25486 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25487 if test $gcc_cv_as_avr_mrmw = yes; then
25489 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25495 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25496 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
25497 $as_echo_n "(cached) " >&6
25499 gcc_cv_as_avr_mgccisr
=no
25500 if test x
$gcc_cv_as != x
; then
25506 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25508 (eval $ac_try) 2>&5
25510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25511 test $ac_status = 0; }; }
25513 gcc_cv_as_avr_mgccisr
=yes
25515 echo "configure: failed program was" >&5
25518 rm -f conftest.o conftest.s
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25522 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25523 if test $gcc_cv_as_avr_mgccisr = yes; then
25525 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25530 # Check how default linker description file implements .rodata for
25531 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25532 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25534 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25535 cat > conftest.s
<<EOF
25536 .section .rodata,"a",@progbits
25538 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25543 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25545 (eval $ac_try) 2>&5
25547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25548 test $ac_status = 0; }; }
25549 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25551 (eval $ac_try) 2>&5
25553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25554 test $ac_status = 0; }; }
25555 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25561 if test -s conftest.nm
25563 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25565 $as_echo "yes" >&6; }
25567 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25571 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25572 echo "$as_me: nm output was" >&5
25573 cat conftest.nm
>&5
25574 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25576 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25580 $as_echo "test failed" >&6; }
25581 echo "$as_me: failed program was" >&5
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25584 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25586 rm -f conftest.s conftest.o conftest.elf conftest.nm
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25591 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25592 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
25593 $as_echo_n "(cached) " >&6
25595 gcc_cv_as_cris_no_mul_bug
=no
25596 if test $in_tree_gas = yes; then
25597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25598 then gcc_cv_as_cris_no_mul_bug
=yes
25600 elif test x
$gcc_cv_as != x
; then
25601 $as_echo '.text' > conftest.s
25602 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25604 (eval $ac_try) 2>&5
25606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25607 test $ac_status = 0; }; }
25609 gcc_cv_as_cris_no_mul_bug
=yes
25611 echo "configure: failed program was" >&5
25614 rm -f conftest.o conftest.s
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25618 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25619 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25621 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25629 $as_echo_n "checking assembler for -relax option... " >&6; }
25630 if ${gcc_cv_as_sparc_relax+:} false
; then :
25631 $as_echo_n "(cached) " >&6
25633 gcc_cv_as_sparc_relax
=no
25634 if test x
$gcc_cv_as != x
; then
25635 $as_echo '.text' > conftest.s
25636 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25638 (eval $ac_try) 2>&5
25640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25641 test $ac_status = 0; }; }
25643 gcc_cv_as_sparc_relax
=yes
25645 echo "configure: failed program was" >&5
25648 rm -f conftest.o conftest.s
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25652 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25653 if test $gcc_cv_as_sparc_relax = yes; then
25655 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25661 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25662 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
25663 $as_echo_n "(cached) " >&6
25665 gcc_cv_as_sparc_gotdata_op
=no
25666 if test x
$gcc_cv_as != x
; then
25672 sethi %gdop_hix22(foo), %g1
25673 xor %g1, %gdop_lox10(foo), %g1
25674 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25675 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25677 (eval $ac_try) 2>&5
25679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25680 test $ac_status = 0; }; }
25682 if test x
$gcc_cv_ld != x \
25683 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25684 if test x
$gcc_cv_objdump != x
; then
25685 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25686 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25687 gcc_cv_as_sparc_gotdata_op
=no
25689 gcc_cv_as_sparc_gotdata_op
=yes
25695 echo "configure: failed program was" >&5
25698 rm -f conftest.o conftest.s
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25702 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25703 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25705 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25711 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25712 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
25713 $as_echo_n "(cached) " >&6
25715 gcc_cv_as_sparc_ua_pcrel
=no
25716 if test x
$gcc_cv_as != x
; then
25723 .uaword %r_disp32(foo)' > conftest.s
25724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25726 (eval $ac_try) 2>&5
25728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25729 test $ac_status = 0; }; }
25731 if test x
$gcc_cv_ld != x \
25732 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25733 gcc_cv_as_sparc_ua_pcrel
=yes
25737 echo "configure: failed program was" >&5
25740 rm -f conftest.o conftest.s
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25744 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25745 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25747 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25751 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25752 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
25753 $as_echo_n "(cached) " >&6
25755 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25756 if test x
$gcc_cv_as != x
; then
25760 .uaword %r_disp32(foo)
25761 .byte 0x32, 0x33, 0x34
25765 .skip 4' > conftest.s
25766 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25768 (eval $ac_try) 2>&5
25770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25771 test $ac_status = 0; }; }
25773 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25774 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25775 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25776 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25777 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25778 |
grep 'DISP32' > /dev
/null
2>&1; then
25781 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25786 echo "configure: failed program was" >&5
25789 rm -f conftest.o conftest.s
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25793 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25794 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25796 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25802 # unaligned pcrel relocs
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25805 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25806 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
25807 $as_echo_n "(cached) " >&6
25809 gcc_cv_as_sparc_offsetable_lo10
=no
25810 if test x
$gcc_cv_as != x
; then
25812 or %g1, %lo(ab) + 12, %g1
25813 or %g1, %lo(ab + 12), %g1' > conftest.s
25814 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25816 (eval $ac_try) 2>&5
25818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25819 test $ac_status = 0; }; }
25821 if test x
$gcc_cv_objdump != x \
25822 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25823 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25824 gcc_cv_as_sparc_offsetable_lo10
=yes
25827 echo "configure: failed program was" >&5
25830 rm -f conftest.o conftest.s
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25834 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25835 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25837 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25843 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25844 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
25845 $as_echo_n "(cached) " >&6
25847 gcc_cv_as_sparc_fmaf
=no
25848 if test x
$gcc_cv_as != x
; then
25850 .register %g2, #scratch
25851 .register %g3, #scratch
25853 fmaddd %f0, %f2, %f4, %f6
25854 addxccc %g1, %g2, %g3
25855 fsrl32 %f2, %f4, %f8
25856 fnaddd %f10, %f12, %f14' > conftest.s
25857 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859 (eval $ac_try) 2>&5
25861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }; }
25864 gcc_cv_as_sparc_fmaf
=yes
25866 echo "configure: failed program was" >&5
25869 rm -f conftest.o conftest.s
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25873 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25874 if test $gcc_cv_as_sparc_fmaf = yes; then
25876 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25882 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25883 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
25884 $as_echo_n "(cached) " >&6
25886 gcc_cv_as_sparc_sparc4
=no
25887 if test x
$gcc_cv_as != x
; then
25889 .register %g2, #scratch
25890 .register %g3, #scratch
25893 1: cwbneg %g2, %g3, 1f
25896 aes_kexpand0 %f4, %f6, %f8
25897 des_round %f38, %f40, %f42, %f44
25898 camellia_f %f54, %f56, %f58, %f60
25899 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25902 (eval $ac_try) 2>&5
25904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25905 test $ac_status = 0; }; }
25907 gcc_cv_as_sparc_sparc4
=yes
25909 echo "configure: failed program was" >&5
25912 rm -f conftest.o conftest.s
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25916 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25917 if test $gcc_cv_as_sparc_sparc4 = yes; then
25919 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25925 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25926 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
25927 $as_echo_n "(cached) " >&6
25929 gcc_cv_as_sparc_sparc5
=no
25930 if test x
$gcc_cv_as != x
; then
25932 .register %g2, #scratch
25933 .register %g3, #scratch
25935 subxc %g1, %g2, %g3
25936 fpadd8 %f0, %f2, %f4' > conftest.s
25937 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -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 gcc_cv_as_sparc_sparc5
=yes
25946 echo "configure: failed program was" >&5
25949 rm -f conftest.o conftest.s
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25953 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25954 if test $gcc_cv_as_sparc_sparc5 = yes; then
25956 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25962 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25963 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
25964 $as_echo_n "(cached) " >&6
25966 gcc_cv_as_sparc_sparc6
=no
25967 if test x
$gcc_cv_as != x
; then
25969 .register %g2, #scratch
25970 .register %g3, #scratch
25973 fpsll64x %f0, %f2, %f4' > conftest.s
25974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25976 (eval $ac_try) 2>&5
25978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25979 test $ac_status = 0; }; }
25981 gcc_cv_as_sparc_sparc6
=yes
25983 echo "configure: failed program was" >&5
25986 rm -f conftest.o conftest.s
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25990 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25991 if test $gcc_cv_as_sparc_sparc6 = yes; then
25993 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25999 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26000 if ${gcc_cv_as_sparc_leon+:} false
; then :
26001 $as_echo_n "(cached) " >&6
26003 gcc_cv_as_sparc_leon
=no
26004 if test x
$gcc_cv_as != x
; then
26006 .register %g2, #scratch
26007 .register %g3, #scratch
26011 casa [%g2] 0xb, %g3, %g1' > conftest.s
26012 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26014 (eval $ac_try) 2>&5
26016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26017 test $ac_status = 0; }; }
26019 gcc_cv_as_sparc_leon
=yes
26021 echo "configure: failed program was" >&5
26024 rm -f conftest.o conftest.s
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26028 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26029 if test $gcc_cv_as_sparc_leon = yes; then
26031 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26037 i
[34567]86-*-* | x86_64-
*-*)
26040 # Full C++ conformance when using a shared libstdc++-v3 requires some
26041 # support from the Cygwin DLL, which in more recent versions exports
26042 # wrappers to aid in interposing and redirecting operators new, delete,
26043 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26044 # are configuring for a version of Cygwin that exports the wrappers.
26045 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26046 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26047 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26048 gcc_ac_cygwin_dll_wrappers
=yes
26050 gcc_ac_cygwin_dll_wrappers
=no
26054 # Can't check presence of libc functions during cross-compile, so
26055 # we just have to assume we're building for an up-to-date target.
26056 gcc_ac_cygwin_dll_wrappers
=yes
26059 cat >>confdefs.h
<<_ACEOF
26060 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26065 cygwin
* | pe | mingw32
*)
26066 # Recent binutils allows the three-operand form of ".comm" on PE. This
26067 # definition is used unconditionally to initialise the default state of
26068 # the target option variable that governs usage of the feature.
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26070 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26071 if ${gcc_cv_as_comm_has_align+:} false
; then :
26072 $as_echo_n "(cached) " >&6
26074 gcc_cv_as_comm_has_align
=no
26075 if test $in_tree_gas = yes; then
26076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26077 then gcc_cv_as_comm_has_align
=yes
26079 elif test x
$gcc_cv_as != x
; then
26080 $as_echo '.comm foo,1,32' > conftest.s
26081 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26083 (eval $ac_try) 2>&5
26085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26086 test $ac_status = 0; }; }
26088 gcc_cv_as_comm_has_align
=yes
26090 echo "configure: failed program was" >&5
26093 rm -f conftest.o conftest.s
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26097 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26101 cat >>confdefs.h
<<_ACEOF
26102 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26105 # Used for DWARF 2 in PE
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26107 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26108 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26109 $as_echo_n "(cached) " >&6
26111 gcc_cv_as_ix86_pe_secrel32
=no
26112 if test $in_tree_gas = yes; then
26113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26114 then gcc_cv_as_ix86_pe_secrel32
=yes
26116 elif test x
$gcc_cv_as != x
; then
26120 .secrel32 foo' > conftest.s
26121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26123 (eval $ac_try) 2>&5
26125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26126 test $ac_status = 0; }; }
26128 if test x
$gcc_cv_ld != x \
26129 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26130 gcc_cv_as_ix86_pe_secrel32
=yes
26134 echo "configure: failed program was" >&5
26137 rm -f conftest.o conftest.s
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26141 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26142 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26144 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26148 # Test if the assembler supports the extended form of the .section
26149 # directive that specifies section alignment. LTO support uses this,
26150 # but normally only after installation, so we warn but don't fail the
26151 # configure if LTO is enabled but the assembler does not support it.
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26153 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26154 if ${gcc_cv_as_section_has_align+:} false
; then :
26155 $as_echo_n "(cached) " >&6
26157 gcc_cv_as_section_has_align
=no
26158 if test $in_tree_gas = yes; then
26159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26160 then gcc_cv_as_section_has_align
=yes
26162 elif test x
$gcc_cv_as != x
; then
26163 $as_echo '.section lto_test,"dr0"' > conftest.s
26164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26166 (eval $ac_try) 2>&5
26168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26169 test $ac_status = 0; }; }
26171 gcc_cv_as_section_has_align
=yes
26173 echo "configure: failed program was" >&5
26176 rm -f conftest.o conftest.s
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26180 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26183 if test x
$gcc_cv_as_section_has_align != xyes
; then
26184 case ",$enable_languages," in
26186 { $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
26187 $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;}
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26195 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26196 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26197 $as_echo_n "(cached) " >&6
26199 gcc_cv_as_ix86_xbrace_comment
=no
26200 if test x
$gcc_cv_as != x
; then
26201 $as_echo '.text' > conftest.s
26202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26204 (eval $ac_try) 2>&5
26206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26207 test $ac_status = 0; }; }
26209 gcc_cv_as_ix86_xbrace_comment
=yes
26211 echo "configure: failed program was" >&5
26214 rm -f conftest.o conftest.s
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26218 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26219 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26221 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26227 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26228 if ${gcc_cv_as_ix86_filds+:} false
; then :
26229 $as_echo_n "(cached) " >&6
26231 gcc_cv_as_ix86_filds
=no
26232 if test x
$gcc_cv_as != x
; then
26233 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26234 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26236 (eval $ac_try) 2>&5
26238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26239 test $ac_status = 0; }; }
26241 gcc_cv_as_ix86_filds
=yes
26243 echo "configure: failed program was" >&5
26246 rm -f conftest.o conftest.s
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26250 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26251 if test $gcc_cv_as_ix86_filds = yes; then
26253 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26259 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26260 if ${gcc_cv_as_ix86_fildq+:} false
; then :
26261 $as_echo_n "(cached) " >&6
26263 gcc_cv_as_ix86_fildq
=no
26264 if test x
$gcc_cv_as != x
; then
26265 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26268 (eval $ac_try) 2>&5
26270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26271 test $ac_status = 0; }; }
26273 gcc_cv_as_ix86_fildq
=yes
26275 echo "configure: failed program was" >&5
26278 rm -f conftest.o conftest.s
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26282 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26283 if test $gcc_cv_as_ix86_fildq = yes; then
26285 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26291 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26292 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
26293 $as_echo_n "(cached) " >&6
26295 gcc_cv_as_ix86_cmov_sun_syntax
=no
26296 if test x
$gcc_cv_as != x
; then
26297 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26300 (eval $ac_try) 2>&5
26302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26303 test $ac_status = 0; }; }
26305 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26307 echo "configure: failed program was" >&5
26310 rm -f conftest.o conftest.s
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26314 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26315 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26317 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26323 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26324 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
26325 $as_echo_n "(cached) " >&6
26327 gcc_cv_as_ix86_ffreep
=no
26328 if test x
$gcc_cv_as != x
; then
26329 $as_echo 'ffreep %st(1)' > conftest.s
26330 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26337 gcc_cv_as_ix86_ffreep
=yes
26339 echo "configure: failed program was" >&5
26342 rm -f conftest.o conftest.s
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26346 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26347 if test $gcc_cv_as_ix86_ffreep = yes; then
26349 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26355 $as_echo_n "checking assembler for .quad directive... " >&6; }
26356 if ${gcc_cv_as_ix86_quad+:} false
; then :
26357 $as_echo_n "(cached) " >&6
26359 gcc_cv_as_ix86_quad
=no
26360 if test x
$gcc_cv_as != x
; then
26361 $as_echo '.quad 0' > conftest.s
26362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26364 (eval $ac_try) 2>&5
26366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26367 test $ac_status = 0; }; }
26369 gcc_cv_as_ix86_quad
=yes
26371 echo "configure: failed program was" >&5
26374 rm -f conftest.o conftest.s
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26378 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26379 if test $gcc_cv_as_ix86_quad = yes; then
26381 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26387 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26388 if ${gcc_cv_as_ix86_sahf+:} false
; then :
26389 $as_echo_n "(cached) " >&6
26391 gcc_cv_as_ix86_sahf
=no
26392 if test x
$gcc_cv_as != x
; then
26395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; }
26402 gcc_cv_as_ix86_sahf
=yes
26404 echo "configure: failed program was" >&5
26407 rm -f conftest.o conftest.s
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26411 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26412 if test $gcc_cv_as_ix86_sahf = yes; then
26414 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26420 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26421 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
26422 $as_echo_n "(cached) " >&6
26424 gcc_cv_as_ix86_interunit_movq
=no
26425 if test x
$gcc_cv_as != x
; then
26428 movq %rax, %xmm0' > conftest.s
26429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26431 (eval $ac_try) 2>&5
26433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26434 test $ac_status = 0; }; }
26436 gcc_cv_as_ix86_interunit_movq
=yes
26438 echo "configure: failed program was" >&5
26441 rm -f conftest.o conftest.s
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26445 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26449 cat >>confdefs.h
<<_ACEOF
26450 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26455 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26456 if ${gcc_cv_as_ix86_hle+:} false
; then :
26457 $as_echo_n "(cached) " >&6
26459 gcc_cv_as_ix86_hle
=no
26460 if test x
$gcc_cv_as != x
; then
26461 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26464 (eval $ac_try) 2>&5
26466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467 test $ac_status = 0; }; }
26469 gcc_cv_as_ix86_hle
=yes
26471 echo "configure: failed program was" >&5
26474 rm -f conftest.o conftest.s
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26478 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26479 if test $gcc_cv_as_ix86_hle = yes; then
26481 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26487 $as_echo_n "checking assembler for swap suffix... " >&6; }
26488 if ${gcc_cv_as_ix86_swap+:} false
; then :
26489 $as_echo_n "(cached) " >&6
26491 gcc_cv_as_ix86_swap
=no
26492 if test x
$gcc_cv_as != x
; then
26493 $as_echo 'movl.s %esp, %ebp' > conftest.s
26494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26496 (eval $ac_try) 2>&5
26498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26499 test $ac_status = 0; }; }
26501 gcc_cv_as_ix86_swap
=yes
26503 echo "configure: failed program was" >&5
26506 rm -f conftest.o conftest.s
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26510 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26511 if test $gcc_cv_as_ix86_swap = yes; then
26513 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26519 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26520 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
26521 $as_echo_n "(cached) " >&6
26523 gcc_cv_as_ix86_diff_sect_delta
=no
26524 if test x
$gcc_cv_as != x
; then
26525 $as_echo '.section .rodata
26531 .L2: nop' > conftest.s
26532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26534 (eval $ac_try) 2>&5
26536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26537 test $ac_status = 0; }; }
26539 gcc_cv_as_ix86_diff_sect_delta
=yes
26541 echo "configure: failed program was" >&5
26544 rm -f conftest.o conftest.s
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26548 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26549 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26551 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26557 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26558 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
26559 $as_echo_n "(cached) " >&6
26561 gcc_cv_as_ix86_rep_lock_prefix
=no
26562 if test x
$gcc_cv_as != x
; then
26563 $as_echo 'rep movsl
26568 lock addl %edi, (%eax,%esi)
26569 lock orl $0, (%esp)' > conftest.s
26570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26572 (eval $ac_try) 2>&5
26574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26575 test $ac_status = 0; }; }
26577 gcc_cv_as_ix86_rep_lock_prefix
=yes
26579 echo "configure: failed program was" >&5
26582 rm -f conftest.o conftest.s
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26586 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26587 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26589 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26595 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26596 if ${gcc_cv_as_ix86_ud2+:} false
; then :
26597 $as_echo_n "(cached) " >&6
26599 gcc_cv_as_ix86_ud2
=no
26600 if test x
$gcc_cv_as != x
; then
26601 $as_echo 'ud2' > conftest.s
26602 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26604 (eval $ac_try) 2>&5
26606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26607 test $ac_status = 0; }; }
26609 gcc_cv_as_ix86_ud2
=yes
26611 echo "configure: failed program was" >&5
26614 rm -f conftest.o conftest.s
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26618 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26619 if test $gcc_cv_as_ix86_ud2 = yes; then
26621 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26626 # Enforce 32-bit output with gas and gld.
26627 if test x
$gas = xyes
; then
26628 as_ix86_gas_32_opt
="--32"
26630 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26631 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26632 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26634 ld_ix86_gld_32_opt
="-melf_i386"
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26639 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26640 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
26641 $as_echo_n "(cached) " >&6
26643 gcc_cv_as_ix86_tlsgdplt
=no
26644 if test x
$gcc_cv_as != x
; then
26645 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26648 (eval $ac_try) 2>&5
26650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26651 test $ac_status = 0; }; }
26653 if test x
$gcc_cv_ld != x \
26654 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26655 gcc_cv_as_ix86_tlsgdplt
=yes
26659 echo "configure: failed program was" >&5
26662 rm -f conftest.o conftest.s
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26666 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26667 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26669 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26675 .section .tdata,"aw'$tls_section_flag'",@progbits
26677 .section .text,"ax",@progbits
26678 call tls_ld@tlsldmplt'
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26681 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26682 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
26683 $as_echo_n "(cached) " >&6
26685 gcc_cv_as_ix86_tlsldmplt
=no
26686 if test x
$gcc_cv_as != x
; then
26687 $as_echo "$conftest_s" > conftest.s
26688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26690 (eval $ac_try) 2>&5
26692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26693 test $ac_status = 0; }; }
26695 if test x
$gcc_cv_ld != x \
26696 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26697 gcc_cv_as_ix86_tlsldmplt
=yes
26701 echo "configure: failed program was" >&5
26704 rm -f conftest.o conftest.s
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26708 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26712 cat >>confdefs.h
<<_ACEOF
26713 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26718 .section .text,"ax",@progbits
26720 .type _start, @function
26722 leal value@tlsldm(%ebx), %eax
26723 call ___tls_get_addr@plt
26725 .section .tdata,"aw'$tls_section_flag'",@progbits
26726 .type value, @object
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26729 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26730 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
26731 $as_echo_n "(cached) " >&6
26733 gcc_cv_as_ix86_tlsldm
=no
26734 if test x
$gcc_cv_as != x
; then
26735 $as_echo "$conftest_s" > conftest.s
26736 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26738 (eval $ac_try) 2>&5
26740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26741 test $ac_status = 0; }; }
26743 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26744 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26745 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26746 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26747 gcc_cv_as_ix86_tlsldm
=yes
26752 echo "configure: failed program was" >&5
26755 rm -f conftest.o conftest.s
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26759 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26763 cat >>confdefs.h
<<_ACEOF
26764 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26778 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26779 if ${gcc_cv_as_ix86_got32x+:} false
; then :
26780 $as_echo_n "(cached) " >&6
26782 gcc_cv_as_ix86_got32x
=no
26783 if test x
$gcc_cv_as != x
; then
26784 $as_echo "$conftest_s" > conftest.s
26785 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26787 (eval $ac_try) 2>&5
26789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26790 test $ac_status = 0; }; }
26792 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26793 && test x
$gcc_cv_readelf != x \
26794 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26795 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26796 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26797 if $gcc_cv_objdump -dw conftest
2>&1 \
26798 |
grep 0xffffff > /dev
/null
2>&1; then
26799 gcc_cv_as_ix86_got32x
=no
26801 gcc_cv_as_ix86_got32x
=yes
26806 echo "configure: failed program was" >&5
26809 rm -f conftest.o conftest.s
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26813 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26817 cat >>confdefs.h
<<_ACEOF
26818 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26823 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26824 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
26825 $as_echo_n "(cached) " >&6
26827 gcc_cv_as_ix86_gotoff_in_data
=no
26828 if test $in_tree_gas = yes; then
26829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26830 then gcc_cv_as_ix86_gotoff_in_data
=yes
26832 elif test x
$gcc_cv_as != x
; then
26837 .long .L0@GOTOFF' > conftest.s
26838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26840 (eval $ac_try) 2>&5
26842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26843 test $ac_status = 0; }; }
26845 gcc_cv_as_ix86_gotoff_in_data
=yes
26847 echo "configure: failed program was" >&5
26850 rm -f conftest.o conftest.s
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26854 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26858 cat >>confdefs.h
<<_ACEOF
26859 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26864 .section .text,"ax",@progbits
26866 .type _start, @function
26868 leal ld@tlsldm(%ecx), %eax
26869 call *___tls_get_addr@GOT(%ecx)
26870 leal gd@tlsgd(%ecx), %eax
26871 call *___tls_get_addr@GOT(%ecx)
26873 .section .tdata,"aw'$tls_section_flag'",@progbits
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26882 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26883 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
26884 $as_echo_n "(cached) " >&6
26886 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26887 if test x
$gcc_cv_as != x
; then
26888 $as_echo "$conftest_s" > conftest.s
26889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26891 (eval $ac_try) 2>&5
26893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26894 test $ac_status = 0; }; }
26896 if test x
$gcc_cv_ld != x \
26897 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26898 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26902 echo "configure: failed program was" >&5
26905 rm -f conftest.o conftest.s
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26909 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26913 cat >>confdefs.h
<<_ACEOF
26914 #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`
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26921 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26922 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
26923 $as_echo_n "(cached) " >&6
26925 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26926 if test $in_tree_gas = yes; then
26927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26928 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26930 elif test x
$gcc_cv_as != x
; then
26932 addl r15 = @ltoffx(x#), gp
26934 ld8.mov r16 = [r15], x#
26936 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26938 (eval $ac_try) 2>&5
26940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26941 test $ac_status = 0; }; }
26943 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26945 echo "configure: failed program was" >&5
26948 rm -f conftest.o conftest.s
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26952 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26953 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26955 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26967 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26968 if ${gcc_cv_as_machine_directive+:} false
; then :
26969 $as_echo_n "(cached) " >&6
26971 gcc_cv_as_machine_directive
=no
26972 if test x
$gcc_cv_as != x
; then
26973 $as_echo ' .machine ppc7400' > conftest.s
26974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26976 (eval $ac_try) 2>&5
26978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26979 test $ac_status = 0; }; }
26981 gcc_cv_as_machine_directive
=yes
26983 echo "configure: failed program was" >&5
26986 rm -f conftest.o conftest.s
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26990 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26993 if test x
$gcc_cv_as_machine_directive != xyes
; then
26994 echo "*** This target requires an assembler supporting \".machine\"" >&2
26995 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26996 test x
$build = x
$target && exit 1
27002 *-*-aix*) conftest_s
=' .machine "pwr5"
27005 *-*-darwin*) conftest_s
=' .text
27007 *) conftest_s
=' .machine power4
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27013 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27014 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27015 $as_echo_n "(cached) " >&6
27017 gcc_cv_as_powerpc_mfcrf
=no
27018 if test $in_tree_gas = yes; then
27019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27020 then gcc_cv_as_powerpc_mfcrf
=yes
27022 elif test x
$gcc_cv_as != x
; then
27023 $as_echo "$conftest_s" > conftest.s
27024 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27026 (eval $ac_try) 2>&5
27028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27029 test $ac_status = 0; }; }
27031 gcc_cv_as_powerpc_mfcrf
=yes
27033 echo "configure: failed program was" >&5
27036 rm -f conftest.o conftest.s
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27040 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27041 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27043 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27049 *-*-aix*) conftest_s
=' .csect .text[PR]
27051 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27055 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27056 *) conftest_s
=' .text
27058 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27062 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27063 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27064 $as_echo_n "(cached) " >&6
27066 gcc_cv_as_powerpc_rel16
=no
27067 if test $in_tree_gas = yes; then
27068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27069 then gcc_cv_as_powerpc_rel16
=yes
27071 elif test x
$gcc_cv_as != x
; then
27072 $as_echo "$conftest_s" > conftest.s
27073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27075 (eval $ac_try) 2>&5
27077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078 test $ac_status = 0; }; }
27080 gcc_cv_as_powerpc_rel16
=yes
27082 echo "configure: failed program was" >&5
27085 rm -f conftest.o conftest.s
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27089 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27090 if test $gcc_cv_as_powerpc_rel16 = yes; then
27092 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27098 *-*-aix*) conftest_s
=' .machine "pwr7"
27101 *) conftest_s
=' .machine power7
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27107 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27108 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27109 $as_echo_n "(cached) " >&6
27111 gcc_cv_as_powerpc_vsx
=no
27112 if test $in_tree_gas = yes; then
27113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27114 then gcc_cv_as_powerpc_vsx
=yes
27116 elif test x
$gcc_cv_as != x
; then
27117 $as_echo "$conftest_s" > conftest.s
27118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27120 (eval $ac_try) 2>&5
27122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27123 test $ac_status = 0; }; }
27125 gcc_cv_as_powerpc_vsx
=yes
27127 echo "configure: failed program was" >&5
27130 rm -f conftest.o conftest.s
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27134 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27135 if test $gcc_cv_as_powerpc_vsx = yes; then
27137 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27143 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27144 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
27145 $as_echo_n "(cached) " >&6
27147 gcc_cv_as_powerpc_gnu_attribute
=no
27148 if test $in_tree_gas = yes; then
27149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27150 then gcc_cv_as_powerpc_gnu_attribute
=yes
27152 elif test x
$gcc_cv_as != x
; then
27153 $as_echo '.gnu_attribute 4,1' > conftest.s
27154 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27156 (eval $ac_try) 2>&5
27158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27159 test $ac_status = 0; }; }
27161 gcc_cv_as_powerpc_gnu_attribute
=yes
27163 echo "configure: failed program was" >&5
27166 rm -f conftest.o conftest.s
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27170 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27171 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27173 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27179 $as_echo_n "checking assembler for tls marker support... " >&6; }
27180 if ${gcc_cv_as_powerpc_tls_markers+:} false
; then :
27181 $as_echo_n "(cached) " >&6
27183 gcc_cv_as_powerpc_tls_markers
=no
27184 if test $in_tree_gas = yes; then
27185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27186 then gcc_cv_as_powerpc_tls_markers
=yes
27188 elif test x
$gcc_cv_as != x
; then
27189 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27190 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27192 (eval $ac_try) 2>&5
27194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27195 test $ac_status = 0; }; }
27197 gcc_cv_as_powerpc_tls_markers
=yes
27199 echo "configure: failed program was" >&5
27202 rm -f conftest.o conftest.s
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27206 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27207 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27209 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27215 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27216 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27217 $as_echo_n "(cached) " >&6
27219 gcc_cv_as_powerpc_entry_markers
=no
27220 if test $in_tree_gas = yes; then
27221 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27222 then gcc_cv_as_powerpc_entry_markers
=yes
27224 elif test x
$gcc_cv_as != x
; then
27225 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27226 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27228 (eval $ac_try) 2>&5
27230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27231 test $ac_status = 0; }; }
27233 gcc_cv_as_powerpc_entry_markers
=yes
27235 echo "configure: failed program was" >&5
27238 rm -f conftest.o conftest.s
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27242 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27243 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27245 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27251 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27252 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27253 $as_echo_n "(cached) " >&6
27255 gcc_cv_as_powerpc_pltseq_markers
=no
27256 if test $in_tree_gas = yes; then
27257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27258 then gcc_cv_as_powerpc_pltseq_markers
=yes
27260 elif test x
$gcc_cv_as != x
; then
27261 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27262 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27264 (eval $ac_try) 2>&5
27266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27267 test $ac_status = 0; }; }
27269 gcc_cv_as_powerpc_pltseq_markers
=yes
27271 echo "configure: failed program was" >&5
27274 rm -f conftest.o conftest.s
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27278 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27279 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27281 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27289 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27290 if ${gcc_cv_as_aix_ref+:} false
; then :
27291 $as_echo_n "(cached) " >&6
27293 gcc_cv_as_aix_ref
=no
27294 if test $in_tree_gas = yes; then
27295 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27296 then gcc_cv_as_aix_ref
=yes
27298 elif test x
$gcc_cv_as != x
; then
27299 $as_echo ' .csect stuff[rw]
27305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27307 (eval $ac_try) 2>&5
27309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27310 test $ac_status = 0; }; }
27312 gcc_cv_as_aix_ref
=yes
27314 echo "configure: failed program was" >&5
27317 rm -f conftest.o conftest.s
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27321 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27322 if test $gcc_cv_as_aix_ref = yes; then
27324 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27330 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27331 if ${gcc_cv_as_aix_dwloc+:} false
; then :
27332 $as_echo_n "(cached) " >&6
27334 gcc_cv_as_aix_dwloc
=no
27335 if test $in_tree_gas = yes; then
27336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27337 then gcc_cv_as_aix_dwloc
=yes
27339 elif test x
$gcc_cv_as != x
; then
27340 $as_echo ' .dwsect 0xA0000
27344 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27346 (eval $ac_try) 2>&5
27348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27349 test $ac_status = 0; }; }
27351 gcc_cv_as_aix_dwloc
=yes
27353 echo "configure: failed program was" >&5
27356 rm -f conftest.o conftest.s
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27360 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27361 if test $gcc_cv_as_aix_dwloc = yes; then
27363 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27373 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27374 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
27375 $as_echo_n "(cached) " >&6
27377 gcc_cv_as_mips_explicit_relocs
=no
27378 if test $in_tree_gas = yes; then
27379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27380 then gcc_cv_as_mips_explicit_relocs
=yes
27382 elif test x
$gcc_cv_as != x
; then
27383 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27384 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27386 (eval $ac_try) 2>&5
27388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27389 test $ac_status = 0; }; }
27391 gcc_cv_as_mips_explicit_relocs
=yes
27393 echo "configure: failed program was" >&5
27396 rm -f conftest.o conftest.s
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27400 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27401 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27402 if test x
$target_cpu_default = x
27403 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27404 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27410 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27411 if ${gcc_cv_as_mips_no_shared+:} false
; then :
27412 $as_echo_n "(cached) " >&6
27414 gcc_cv_as_mips_no_shared
=no
27415 if test $in_tree_gas = yes; then
27416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27417 then gcc_cv_as_mips_no_shared
=yes
27419 elif test x
$gcc_cv_as != x
; then
27420 $as_echo 'nop' > conftest.s
27421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27423 (eval $ac_try) 2>&5
27425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27426 test $ac_status = 0; }; }
27428 gcc_cv_as_mips_no_shared
=yes
27430 echo "configure: failed program was" >&5
27433 rm -f conftest.o conftest.s
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27437 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27438 if test $gcc_cv_as_mips_no_shared = yes; then
27440 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27446 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27447 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
27448 $as_echo_n "(cached) " >&6
27450 gcc_cv_as_mips_gnu_attribute
=no
27451 if test $in_tree_gas = yes; then
27452 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27453 then gcc_cv_as_mips_gnu_attribute
=yes
27455 elif test x
$gcc_cv_as != x
; then
27456 $as_echo '.gnu_attribute 4,1' > conftest.s
27457 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27459 (eval $ac_try) 2>&5
27461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27462 test $ac_status = 0; }; }
27464 gcc_cv_as_mips_gnu_attribute
=yes
27466 echo "configure: failed program was" >&5
27469 rm -f conftest.o conftest.s
27472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27473 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27474 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27476 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27482 $as_echo_n "checking assembler for .module support... " >&6; }
27483 if ${gcc_cv_as_mips_dot_module+:} false
; then :
27484 $as_echo_n "(cached) " >&6
27486 gcc_cv_as_mips_dot_module
=no
27487 if test x
$gcc_cv_as != x
; then
27488 $as_echo '.module mips2
27489 .module fp=xx' > conftest.s
27490 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27492 (eval $ac_try) 2>&5
27494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27495 test $ac_status = 0; }; }
27497 gcc_cv_as_mips_dot_module
=yes
27499 echo "configure: failed program was" >&5
27502 rm -f conftest.o conftest.s
27505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27506 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27507 if test $gcc_cv_as_mips_dot_module = yes; then
27509 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27513 if test x
$gcc_cv_as_mips_dot_module = xno \
27514 && test x
$with_fp_32 != x
; then
27515 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27519 $as_echo_n "checking assembler for .micromips support... " >&6; }
27520 if ${gcc_cv_as_micromips_support+:} false
; then :
27521 $as_echo_n "(cached) " >&6
27523 gcc_cv_as_micromips_support
=no
27524 if test x
$gcc_cv_as != x
; then
27525 $as_echo '.set micromips' > conftest.s
27526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27528 (eval $ac_try) 2>&5
27530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27531 test $ac_status = 0; }; }
27533 gcc_cv_as_micromips_support
=yes
27535 echo "configure: failed program was" >&5
27538 rm -f conftest.o conftest.s
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27542 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27543 if test $gcc_cv_as_micromips_support = yes; then
27545 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27551 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27552 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
27553 $as_echo_n "(cached) " >&6
27555 gcc_cv_as_mips_dtprelword
=no
27556 if test $in_tree_gas = yes; then
27557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27558 then gcc_cv_as_mips_dtprelword
=yes
27560 elif test x
$gcc_cv_as != x
; then
27561 $as_echo '.section .tdata,"awT",@progbits
27565 .dtprelword x+0x8000' > 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_mips_dtprelword
=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_mips_dtprelword" >&5
27582 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27583 if test $gcc_cv_as_mips_dtprelword = yes; then
27585 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27591 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27592 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
27593 $as_echo_n "(cached) " >&6
27595 gcc_cv_as_mips_dspr1_mult
=no
27596 if test x
$gcc_cv_as != x
; then
27597 $as_echo ' .set mips32r2
27605 multu $ac3,$4,$5' > conftest.s
27606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_mips_dspr1_mult
=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_mips_dspr1_mult" >&5
27622 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27623 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27625 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27631 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27632 gcc_cv_as_ld_jalr_reloc
=no
27633 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27634 if test $in_tree_ld = yes ; then
27635 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 \
27636 && test $in_tree_ld_is_elf = yes; then
27637 gcc_cv_as_ld_jalr_reloc
=yes
27639 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27640 echo ' .ent x' > conftest.s
27641 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27642 echo ' lw $25,%call16(y)($28)' >> conftest.s
27643 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27644 echo '1: jalr $25' >> conftest.s
27645 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27646 echo '1: jalr $25' >> conftest.s
27647 echo ' .end x' >> conftest.s
27648 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27649 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27650 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27651 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27652 gcc_cv_as_ld_jalr_reloc
=yes
27658 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27659 if test x
$target_cpu_default = x
; then
27660 target_cpu_default
=MASK_RELAX_PIC_CALLS
27662 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27666 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27669 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27670 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
27671 $as_echo_n "(cached) " >&6
27673 gcc_cv_ld_mips_personality_relaxation
=no
27674 if test $in_tree_ld = yes ; then
27675 if test "$gcc_cv_gld_major_version" -eq 2 \
27676 -a "$gcc_cv_gld_minor_version" -ge 21 \
27677 -o "$gcc_cv_gld_major_version" -gt 2; then
27678 gcc_cv_ld_mips_personality_relaxation
=yes
27680 elif test x
$gcc_cv_as != x \
27681 -a x
$gcc_cv_ld != x \
27682 -a x
$gcc_cv_readelf != x
; then
27683 cat > conftest.s
<<EOF
27685 .cfi_personality 0x80,indirect_ptr
27692 .section .data,"aw",@progbits
27696 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27697 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27698 if $gcc_cv_readelf -d conftest
2>&1 \
27699 |
grep TEXTREL
> /dev
/null
2>&1; then
27701 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27702 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27705 gcc_cv_ld_mips_personality_relaxation
=yes
27709 rm -f conftest.s conftest.o conftest
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27712 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27713 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27715 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27720 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27721 if ${gcc_cv_as_mips_nan+:} false
; then :
27722 $as_echo_n "(cached) " >&6
27724 gcc_cv_as_mips_nan
=no
27725 if test x
$gcc_cv_as != x
; then
27726 $as_echo '' > conftest.s
27727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27729 (eval $ac_try) 2>&5
27731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27732 test $ac_status = 0; }; }
27734 gcc_cv_as_mips_nan
=yes
27736 echo "configure: failed program was" >&5
27739 rm -f conftest.o conftest.s
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27743 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27744 if test $gcc_cv_as_mips_nan = yes; then
27746 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27750 if test x
$gcc_cv_as_mips_nan = xno \
27751 && test x
$with_nan != x
; then
27752 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27757 $as_echo_n "checking assembler for .attribute support... " >&6; }
27758 if ${gcc_cv_as_riscv_attribute+:} false
; then :
27759 $as_echo_n "(cached) " >&6
27761 gcc_cv_as_riscv_attribute
=no
27762 if test $in_tree_gas = yes; then
27763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27764 then gcc_cv_as_riscv_attribute
=yes
27766 elif test x
$gcc_cv_as != x
; then
27767 $as_echo '.attribute stack_align,4' > conftest.s
27768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27770 (eval $ac_try) 2>&5
27772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27773 test $ac_status = 0; }; }
27775 gcc_cv_as_riscv_attribute
=yes
27777 echo "configure: failed program was" >&5
27780 rm -f conftest.o conftest.s
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
27784 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
27785 if test $gcc_cv_as_riscv_attribute = yes; then
27787 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27794 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27795 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
27796 $as_echo_n "(cached) " >&6
27798 gcc_cv_as_s390_gnu_attribute
=no
27799 if test $in_tree_gas = yes; then
27800 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27801 then gcc_cv_as_s390_gnu_attribute
=yes
27803 elif test x
$gcc_cv_as != x
; then
27804 $as_echo '.gnu_attribute 8,1' > conftest.s
27805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27807 (eval $ac_try) 2>&5
27809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27810 test $ac_status = 0; }; }
27812 gcc_cv_as_s390_gnu_attribute
=yes
27814 echo "configure: failed program was" >&5
27817 rm -f conftest.o conftest.s
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27821 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27822 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27824 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27829 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27830 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
27831 $as_echo_n "(cached) " >&6
27833 gcc_cv_as_s390_machine_machinemode
=no
27834 if test $in_tree_gas = yes; then
27835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27836 then gcc_cv_as_s390_machine_machinemode
=yes
27838 elif test x
$gcc_cv_as != x
; then
27839 $as_echo ' .machinemode push
27842 .machine pop' > conftest.s
27843 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27845 (eval $ac_try) 2>&5
27847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27848 test $ac_status = 0; }; }
27850 gcc_cv_as_s390_machine_machinemode
=yes
27852 echo "configure: failed program was" >&5
27855 rm -f conftest.o conftest.s
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27859 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27860 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27862 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27867 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27868 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
27869 $as_echo_n "(cached) " >&6
27871 gcc_cv_as_s390_architecture_modifiers
=no
27872 if test $in_tree_gas = yes; then
27873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27874 then gcc_cv_as_s390_architecture_modifiers
=yes
27876 elif test x
$gcc_cv_as != x
; then
27877 $as_echo ' .machine z13+vx ' > conftest.s
27878 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27880 (eval $ac_try) 2>&5
27882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27883 test $ac_status = 0; }; }
27885 gcc_cv_as_s390_architecture_modifiers
=yes
27887 echo "configure: failed program was" >&5
27890 rm -f conftest.o conftest.s
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27894 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27895 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27897 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27902 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27903 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
27904 $as_echo_n "(cached) " >&6
27906 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
27907 if test $in_tree_gas = yes; then
27908 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27909 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
27911 elif test x
$gcc_cv_as != x
; then
27912 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
27913 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27915 (eval $ac_try) 2>&5
27917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27918 test $ac_status = 0; }; }
27920 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
27922 echo "configure: failed program was" >&5
27925 rm -f conftest.o conftest.s
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27929 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27930 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27932 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27940 # Mips and HP-UX need the GNU assembler.
27941 # Linux on IA64 might be able to use the Intel assembler.
27944 mips
*-*-* |
*-*-hpux* )
27945 if test x
$gas_flag = xyes \
27946 ||
test x
"$host" != x
"$build" \
27947 ||
test ! -x "$gcc_cv_as" \
27948 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27951 echo "*** This configuration requires the GNU assembler" >&2
27957 # ??? Not all targets support dwarf2 debug_line, even within a version
27958 # of gas. Moreover, we need to emit a valid instruction to trigger any
27959 # info to the output file. So, as supported targets are added to gas 2.11,
27960 # add some instruction here to (also) show we expect this might work.
27961 # ??? Once 2.11 is released, probably need to add first known working
27962 # version to the per-target configury.
27963 case "$cpu_type" in
27964 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27965 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27966 | tilegx | tilepro | visium | xstormy16 | xtensa
)
27976 if test x
"$insn" != x
; then
27978 .file 1 \"conftest.s\"
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27982 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27983 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
27984 $as_echo_n "(cached) " >&6
27986 gcc_cv_as_dwarf2_debug_line
=no
27987 if test $in_tree_gas = yes; then
27988 if test $in_tree_gas_is_elf = yes \
27989 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27990 then gcc_cv_as_dwarf2_debug_line
=yes
27992 elif test x
$gcc_cv_as != x
; then
27993 $as_echo "$conftest_s" > conftest.s
27994 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27996 (eval $ac_try) 2>&5
27998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27999 test $ac_status = 0; }; }
28001 if test x
$gcc_cv_objdump != x \
28002 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
28003 |
grep debug_line
> /dev
/null
2>&1; then
28004 gcc_cv_as_dwarf2_debug_line
=yes
28005 elif test x
$gcc_cv_otool != x \
28006 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
28007 |
grep debug_line
> /dev
/null
2>&1; then
28008 gcc_cv_as_dwarf2_debug_line
=yes
28011 echo "configure: failed program was" >&5
28014 rm -f conftest.o conftest.s
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28018 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28022 # The .debug_line file table must be in the exact order that
28023 # we specified the files, since these indices are also used
28024 # by DW_AT_decl_file. Approximate this test by testing if
28025 # the assembler bitches if the same index is assigned twice.
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28027 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28028 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
28029 $as_echo_n "(cached) " >&6
28031 gcc_cv_as_dwarf2_file_buggy
=no
28032 if test x
$gcc_cv_as != x
; then
28033 $as_echo ' .file 1 "foo.s"
28034 .file 1 "bar.s"' > conftest.s
28035 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28037 (eval $ac_try) 2>&5
28039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28040 test $ac_status = 0; }; }
28042 gcc_cv_as_dwarf2_file_buggy
=yes
28044 echo "configure: failed program was" >&5
28047 rm -f conftest.o conftest.s
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28051 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28055 if test $gcc_cv_as_dwarf2_debug_line = yes \
28056 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
28058 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28061 if test $gcc_cv_as_leb128 = yes; then
28063 .file 1 \"conftest.s\"
28064 .loc 1 3 0 view .LVU1
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28071 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28072 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
28073 $as_echo_n "(cached) " >&6
28075 gcc_cv_as_dwarf2_debug_view
=no
28076 if test $in_tree_gas = yes; then
28077 if test $in_tree_gas_is_elf = yes \
28078 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28079 then gcc_cv_as_dwarf2_debug_view
=yes
28081 elif test x
$gcc_cv_as != x
; then
28082 $as_echo "$conftest_s" > conftest.s
28083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28085 (eval $ac_try) 2>&5
28087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28088 test $ac_status = 0; }; }
28090 gcc_cv_as_dwarf2_debug_view
=yes
28092 echo "configure: failed program was" >&5
28095 rm -f conftest.o conftest.s
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28099 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28100 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28102 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28110 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28111 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
28112 $as_echo_n "(cached) " >&6
28114 gcc_cv_as_gdwarf2_flag
=no
28115 if test $in_tree_gas = yes; then
28116 if test $in_tree_gas_is_elf = yes \
28117 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28118 then gcc_cv_as_gdwarf2_flag
=yes
28120 elif test x
$gcc_cv_as != x
; then
28121 $as_echo "$insn" > conftest.s
28122 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28124 (eval $ac_try) 2>&5
28126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28127 test $ac_status = 0; }; }
28129 gcc_cv_as_gdwarf2_flag
=yes
28131 echo "configure: failed program was" >&5
28134 rm -f conftest.o conftest.s
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28138 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28139 if test $gcc_cv_as_gdwarf2_flag = yes; then
28141 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28147 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28148 if ${gcc_cv_as_gstabs_flag+:} false
; then :
28149 $as_echo_n "(cached) " >&6
28151 gcc_cv_as_gstabs_flag
=no
28152 if test $in_tree_gas = yes; then
28153 if test $in_tree_gas_is_elf = yes \
28154 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28155 then gcc_cv_as_gstabs_flag
=yes
28157 elif test x
$gcc_cv_as != x
; then
28158 $as_echo "$insn" > conftest.s
28159 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28161 (eval $ac_try) 2>&5
28163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28164 test $ac_status = 0; }; }
28166 gcc_cv_as_gstabs_flag
=yes
28168 echo "configure: failed program was" >&5
28171 rm -f conftest.o conftest.s
28174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28175 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28176 if test $gcc_cv_as_gstabs_flag = yes; then
28178 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28184 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28185 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
28186 $as_echo_n "(cached) " >&6
28188 gcc_cv_as_debug_prefix_map_flag
=no
28189 if test $in_tree_gas = yes; then
28190 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28191 then gcc_cv_as_debug_prefix_map_flag
=yes
28193 elif test x
$gcc_cv_as != x
; then
28194 $as_echo "$insn" > conftest.s
28195 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28197 (eval $ac_try) 2>&5
28199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28200 test $ac_status = 0; }; }
28202 gcc_cv_as_debug_prefix_map_flag
=yes
28204 echo "configure: failed program was" >&5
28207 rm -f conftest.o conftest.s
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28211 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28212 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28214 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28221 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28222 if ${gcc_cv_as_compress_debug+:} false
; then :
28223 $as_echo_n "(cached) " >&6
28225 gcc_cv_as_compress_debug
=no
28226 if test x
$gcc_cv_as != x
; then
28227 $as_echo '' > conftest.s
28228 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28230 (eval $ac_try) 2>&5
28232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28233 test $ac_status = 0; }; }
28235 # gas compiled without zlib cannot compress debug sections and warns
28236 # about it, but still exits successfully. So check for this, too.
28237 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28239 gcc_cv_as_compress_debug
=0
28240 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28241 # defaulting to the ELF gABI format.
28242 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28244 gcc_cv_as_compress_debug
=2
28245 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28246 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28247 # Before binutils 2.26, gas only supported --compress-debug-options and
28248 # emitted the traditional GNU format.
28249 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
28251 gcc_cv_as_compress_debug
=1
28252 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28253 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28255 gcc_cv_as_compress_debug
=0
28258 echo "configure: failed program was" >&5
28261 rm -f conftest.o conftest.s
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28265 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28269 cat >>confdefs.h
<<_ACEOF
28270 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28274 cat >>confdefs.h
<<_ACEOF
28275 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28279 cat >>confdefs.h
<<_ACEOF
28280 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28285 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28286 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
28287 $as_echo_n "(cached) " >&6
28289 gcc_cv_as_lcomm_with_alignment
=no
28290 if test x
$gcc_cv_as != x
; then
28291 $as_echo '.lcomm bar,4,16' > conftest.s
28292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28294 (eval $ac_try) 2>&5
28296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28297 test $ac_status = 0; }; }
28299 gcc_cv_as_lcomm_with_alignment
=yes
28301 echo "configure: failed program was" >&5
28304 rm -f conftest.o conftest.s
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28308 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28309 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28311 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28316 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28317 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28318 && test "$prefix" != "NONE"; then
28320 cat >>confdefs.h
<<_ACEOF
28321 #define PREFIX_INCLUDE_DIR "$prefix/include"
28326 # Determine the version of glibc, if any, used on the target.
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28328 $as_echo_n "checking for target glibc version... " >&6; }
28330 # Check whether --with-glibc-version was given.
28331 if test "${with_glibc_version+set}" = set; then :
28332 withval
=$with_glibc_version;
28333 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28334 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28335 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28337 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28341 glibc_version_major
=0
28342 glibc_version_minor
=0
28343 if test -f $target_header_dir/features.h \
28344 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28345 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28346 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28347 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28352 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28354 cat >>confdefs.h
<<_ACEOF
28355 #define TARGET_GLIBC_MAJOR $glibc_version_major
28359 cat >>confdefs.h
<<_ACEOF
28360 #define TARGET_GLIBC_MINOR $glibc_version_minor
28364 # Check whether --enable-gnu-unique-object was given.
28365 if test "${enable_gnu_unique_object+set}" = set; then :
28366 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28368 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28369 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28373 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28374 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
28375 $as_echo_n "(cached) " >&6
28377 gcc_cv_as_gnu_unique_object
=no
28378 if test $in_tree_gas = yes; then
28379 if test $in_tree_gas_is_elf = yes \
28380 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28381 then gcc_cv_as_gnu_unique_object
=yes
28383 elif test x
$gcc_cv_as != x
; then
28384 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28387 (eval $ac_try) 2>&5
28389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28390 test $ac_status = 0; }; }
28392 gcc_cv_as_gnu_unique_object
=yes
28394 echo "configure: failed program was" >&5
28397 rm -f conftest.o conftest.s
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28401 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28402 if test $gcc_cv_as_gnu_unique_object = yes; then
28403 # We need to unquote above to to use the definition from config.gcc.
28404 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28406 if test $glibc_version_major -gt 2 \
28407 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28408 enable_gnu_unique_object
=yes
28415 if test x
$enable_gnu_unique_object = xyes
; then
28417 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28422 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28423 if ${gcc_cv_as_line_zero+:} false
; then :
28424 $as_echo_n "(cached) " >&6
28426 gcc_cv_as_line_zero
=no
28427 if test $in_tree_gas = yes; then
28428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28429 then gcc_cv_as_line_zero
=yes
28431 elif test "x$gcc_cv_as" != x
; then
28432 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28433 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28435 (eval $ac_try) 2>&5
28437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28438 test $ac_status = 0; }; } &&
28439 test "x`cat conftest.out`" = x
28441 gcc_cv_as_line_zero
=yes
28443 echo "configure: failed program was" >&5
28445 echo "configure: error output was" >&5
28446 cat conftest.out
>&5
28448 rm -f conftest.o conftest.s conftest.out
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28452 $as_echo "$gcc_cv_as_line_zero" >&6; }
28453 if test "x$gcc_cv_as_line_zero" = xyes
; then
28455 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28460 $as_echo_n "checking support for thin archives... " >&6; }
28461 thin_archive_support
=no
28462 echo 'int main (void) { return 0; }' > conftest.c
28463 if ($AR --version |
sed 1q |
grep "GNU ar" \
28464 && $CC $CFLAGS -c conftest.c \
28465 && $AR rcT conftest.a conftest.o \
28466 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28467 thin_archive_support
=yes
28469 rm -f conftest.c conftest.o conftest.a conftest
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28471 $as_echo "$thin_archive_support" >&6; }
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28475 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28476 gcc_cv_ld_eh_frame_hdr
=no
28477 if test $in_tree_ld = yes ; then
28478 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 \
28479 && test $in_tree_ld_is_elf = yes; then
28480 gcc_cv_ld_eh_frame_hdr
=yes
28482 elif test x
$gcc_cv_ld != x
; then
28483 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28484 # Check if linker supports --eh-frame-hdr option
28485 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28486 gcc_cv_ld_eh_frame_hdr
=yes
28491 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28492 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28493 gcc_cv_ld_eh_frame_hdr
=yes
28500 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28502 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28506 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28509 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28510 gcc_cv_ld_eh_frame_ciev3
=no
28511 if test $in_tree_ld = yes ; then
28512 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 \
28513 && test $in_tree_ld_is_elf = yes; then
28514 gcc_cv_ld_eh_frame_ciev3
=yes
28516 elif test x
$gcc_cv_ld != x
; then
28517 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28518 gcc_cv_ld_eh_frame_ciev3
=yes
28519 if test 0"$ld_date" -lt 20040513; then
28520 if test -n "$ld_date"; then
28521 # If there was date string, but was earlier than 2004-05-13, fail
28522 gcc_cv_ld_eh_frame_ciev3
=no
28523 elif test "$ld_vers_major" -lt 2; then
28524 gcc_cv_ld_eh_frame_ciev3
=no
28525 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28526 gcc_cv_ld_eh_frame_ciev3
=no
28532 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28533 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28534 gcc_cv_ld_eh_frame_ciev3
=yes
28541 cat >>confdefs.h
<<_ACEOF
28542 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28546 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28549 $as_echo_n "checking linker position independent executable support... " >&6; }
28551 if test $in_tree_ld = yes ; then
28553 # Full PIE support on Solaris was only introduced in gld 2.26.
28554 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28555 *) gcc_gld_pie_min_version
=15 ;;
28557 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 \
28558 && test $in_tree_ld_is_elf = yes; then
28561 elif test x
$gcc_cv_ld != x
; then
28562 # Check if linker supports -pie option
28563 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28567 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28568 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28575 *-*-solaris2.1
[1-9]*)
28576 # Solaris 11.3 added PIE support.
28577 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28584 if test x
"$gcc_cv_ld_pie" = xyes
; then
28586 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28590 $as_echo "$gcc_cv_ld_pie" >&6; }
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28593 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28594 gcc_cv_ld_pie_copyreloc
=no
28595 if test $gcc_cv_ld_pie = yes ; then
28596 if test $in_tree_ld = yes ; then
28597 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
28598 gcc_cv_ld_pie_copyreloc
=yes
28600 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28601 # Check if linker supports -pie option with copy reloc
28603 i?
86-*-linux* | x86_64-
*-linux*)
28604 cat > conftest1.s
<<EOF
28607 .type a_glob, @object
28612 cat > conftest2.s
<<EOF
28615 .type main, @function
28617 movl %eax, a_glob(%rip)
28620 .section .data.rel,"aw",@progbits
28625 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28626 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28627 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28628 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28629 gcc_cv_ld_pie_copyreloc
=yes
28631 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28637 cat >>confdefs.h
<<_ACEOF
28638 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28642 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28645 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28646 gcc_cv_ld_eh_gc_sections
=no
28647 if test $in_tree_ld = yes ; then
28648 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 \
28649 && test $in_tree_ld_is_elf = yes; then
28650 gcc_cv_ld_eh_gc_sections
=yes
28652 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28653 cat > conftest.s
<<EOF
28656 .type _start, @function
28659 .size _start, .-_start
28660 .section .text.foo,"ax",@progbits
28661 .type foo, @function
28665 .section .gcc_except_table.foo,"a",@progbits
28668 .section .eh_frame,"a",@progbits
28671 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28672 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28673 |
grep "gc-sections option ignored" > /dev
/null
; then
28674 gcc_cv_ld_eh_gc_sections
=no
28675 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28676 |
grep gcc_except_table
> /dev
/null
; then
28677 gcc_cv_ld_eh_gc_sections
=yes
28678 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28679 if test x
$gcc_cv_as_comdat_group != xyes
; then
28680 gcc_cv_ld_eh_gc_sections
=no
28681 cat > conftest.s
<<EOF
28684 .type _start, @function
28687 .size _start, .-_start
28688 .section .gnu.linkonce.t.foo,"ax",@progbits
28689 .type foo, @function
28693 .section .gcc_except_table.foo,"a",@progbits
28696 .section .eh_frame,"a",@progbits
28699 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28700 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28701 |
grep "gc-sections option ignored" > /dev
/null
; then
28702 gcc_cv_ld_eh_gc_sections
=no
28703 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28704 |
grep gcc_except_table
> /dev
/null
; then
28705 gcc_cv_ld_eh_gc_sections
=yes
28711 rm -f conftest.s conftest.o conftest
28715 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28716 gcc_cv_ld_eh_gc_sections
=no
28719 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28721 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28725 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28728 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28729 gcc_cv_ld_eh_gc_sections_bug
=no
28730 if test $in_tree_ld = yes ; then
28731 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 \
28732 && test $in_tree_ld_is_elf = yes; then
28733 gcc_cv_ld_eh_gc_sections_bug
=yes
28735 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
28736 gcc_cv_ld_eh_gc_sections_bug
=yes
28737 cat > conftest.s
<<EOF
28740 .type _start, @function
28743 .size _start, .-_start
28744 .section .text.startup.foo,"ax",@progbits
28745 .type foo, @function
28749 .section .gcc_except_table.foo,"a",@progbits
28752 .section .eh_frame,"a",@progbits
28755 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28756 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28757 |
grep "gc-sections option ignored" > /dev
/null
; then
28759 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28760 |
grep gcc_except_table
> /dev
/null
; then
28761 gcc_cv_ld_eh_gc_sections_bug
=no
28764 rm -f conftest.s conftest.o conftest
28766 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28768 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28772 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28775 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28776 # gold/gld support compressed debug sections since binutils 2.19/2.21
28777 # In binutils 2.26, gld gained support for the ELF gABI format.
28778 if test $in_tree_ld = yes ; then
28779 gcc_cv_ld_compress_debug
=0
28780 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 \
28781 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28782 gcc_cv_ld_compress_debug
=2
28783 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28784 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 \
28785 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28786 gcc_cv_ld_compress_debug
=3
28787 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28788 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 \
28789 && test $in_tree_ld_is_elf = yes; then
28790 gcc_cv_ld_compress_debug
=1
28792 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28793 if test "$ld_vers_major" -lt 2 \
28794 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28795 gcc_cv_ld_compress_debug
=0
28796 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28797 gcc_cv_ld_compress_debug
=1
28799 gcc_cv_ld_compress_debug
=3
28800 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28802 if test $ld_is_gold = yes; then
28803 gcc_cv_ld_compress_debug
=2
28804 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28807 case "${target}" in
28809 # Introduced in Solaris 11.2.
28810 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28811 gcc_cv_ld_compress_debug
=3
28812 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28814 gcc_cv_ld_compress_debug
=0
28818 # Assume linkers other than GNU ld don't support compessed debug
28820 gcc_cv_ld_compress_debug
=0
28825 cat >>confdefs.h
<<_ACEOF
28826 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28830 cat >>confdefs.h
<<_ACEOF
28831 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28835 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28837 if test x
"$ld64_flag" = x
"yes"; then
28839 # Set defaults for possibly untestable items.
28840 gcc_cv_ld64_export_dynamic
=0
28842 if test "$build" = "$host"; then
28848 # On Darwin, because of FAT library support, it is often possible to execute
28849 # exes from compatible archs even when the host differs from the build system.
28850 case "$build","$host" in
28851 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28852 darwin_try_test
=1;;
28856 # If the configurer specified a minimum ld64 version to be supported, then use
28857 # that to determine feature support.
28858 if test x
"${gcc_cv_ld64_version}" != x
; then
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28860 $as_echo_n "checking ld64 specified version... " >&6; }
28861 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28863 $as_echo "$gcc_cv_ld64_major" >&6; }
28864 if test "$gcc_cv_ld64_major" -ge 236; then
28865 gcc_cv_ld64_export_dynamic
=1
28867 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28868 # If the version was not specified, try to find it.
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28870 $as_echo_n "checking linker version... " >&6; }
28871 if test x
"${gcc_cv_ld64_version}" = x
; then
28872 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28875 $as_echo "$gcc_cv_ld64_version" >&6; }
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28878 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28879 gcc_cv_ld64_export_dynamic
=1
28880 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28881 gcc_cv_ld64_export_dynamic
=0
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28884 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28887 if test x
"${gcc_cv_ld64_version}" != x
; then
28889 cat >>confdefs.h
<<_ACEOF
28890 #define LD64_VERSION "${gcc_cv_ld64_version}"
28896 cat >>confdefs.h
<<_ACEOF
28897 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28907 $as_echo_n "checking linker --as-needed support... " >&6; }
28908 if ${gcc_cv_ld_as_needed+:} false
; then :
28909 $as_echo_n "(cached) " >&6
28911 gcc_cv_ld_as_needed
=no
28912 gcc_cv_ld_as_needed_option
='--as-needed'
28913 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28914 if test $in_tree_ld = yes ; then
28915 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 \
28916 && test $in_tree_ld_is_elf = yes; then
28917 gcc_cv_ld_as_needed
=yes
28918 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28919 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28920 gcc_cv_ld_no_as_needed_option
='--pop-state'
28923 elif test x
$gcc_cv_ld != x
; then
28924 # Check if linker supports --as-needed and --no-as-needed options
28925 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
28926 gcc_cv_ld_as_needed
=yes
28927 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
28928 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
28929 && echo "$ld_ver" |
grep GNU
> /dev
/null \
28930 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28931 # Use these options only when both ld.bfd and ld.gold support
28932 # --push-state/--pop-state, which unfortunately wasn't added
28933 # at the same time.
28934 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28935 gcc_cv_ld_no_as_needed_option
='--pop-state'
28938 case "$target:$gnu_ld" in
28940 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28942 gcc_cv_ld_as_needed
=yes
28943 gcc_cv_ld_as_needed_option
="-z ignore"
28944 gcc_cv_ld_no_as_needed_option
="-z record"
28948 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28949 # dl_iterate_phdr, i.e. since Solaris 11.
28951 *-*-solaris2.1
[1-9]*)
28953 i?
86-*-* | x86_64-
*-*)
28954 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28955 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28956 gcc_cv_ld_as_needed
=no
28962 gcc_cv_ld_as_needed
=no
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28968 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28969 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28971 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28974 cat >>confdefs.h
<<_ACEOF
28975 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28979 cat >>confdefs.h
<<_ACEOF
28980 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28986 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28987 saved_LDFLAGS
="$LDFLAGS"
28988 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28989 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28991 /* end confdefs.h. */
28992 int main(void) {return 0;}
28994 if ac_fn_cxx_try_link
"$LINENO"; then :
28995 gcc_cv_ld_clearcap
=yes; break
28997 gcc_cv_ld_clearcap
=no
28999 rm -f core conftest.err conftest.
$ac_objext \
29000 conftest
$ac_exeext conftest.
$ac_ext
29002 LDFLAGS
="$saved_LDFLAGS"
29003 if test "x$gcc_cv_ld_clearcap" = xyes
; then
29005 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29007 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29011 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29017 emul_name
="-melf32lppc"
29020 emul_name
="-melf32ppc"
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29024 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29025 if ${gcc_cv_ld_ppc_attr+:} false
; then :
29026 $as_echo_n "(cached) " >&6
29028 gcc_cv_ld_ppc_attr
=no
29029 if test x
"$ld_is_gold" = xyes
; then
29030 gcc_cv_ld_ppc_attr
=yes
29031 elif test $in_tree_ld = yes ; then
29032 if test "$gcc_cv_gld_major_version" -eq 2 \
29033 -a "$gcc_cv_gld_minor_version" -ge 28 \
29034 -o "$gcc_cv_gld_major_version" -gt 2; then
29035 gcc_cv_ld_ppc_attr
=yes
29037 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29038 # check that merging the long double .gnu_attribute doesn't warn
29039 cat > conftest1.s
<<EOF
29042 cat > conftest2.s
<<EOF
29045 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29046 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29047 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
29048 && test ! -s conftest.err
; then
29049 gcc_cv_ld_ppc_attr
=yes
29051 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29056 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29057 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
29059 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29065 case "$target:$tm_file" in
29066 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
29069 emul_name
="-melf64lppc"
29072 emul_name
="-melf64ppc"
29075 emul_name
="-melf64ppc_fbsd"
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29079 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29080 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
29081 $as_echo_n "(cached) " >&6
29083 gcc_cv_ld_no_dot_syms
=no
29084 if test x
"$ld_is_gold" = xyes
; then
29085 gcc_cv_ld_no_dot_syms
=yes
29086 elif test $in_tree_ld = yes ; then
29087 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
29088 gcc_cv_ld_no_dot_syms
=yes
29090 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29091 cat > conftest1.s
<<EOF
29095 cat > conftest2.s
<<EOF
29096 .section ".opd","aw"
29099 .type foo,@function
29101 .quad .LEfoo,.TOC.@tocbase,0
29107 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29108 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29109 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
29110 gcc_cv_ld_no_dot_syms
=yes
29112 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29117 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29118 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
29120 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29125 $as_echo_n "checking linker large toc support... " >&6; }
29126 if ${gcc_cv_ld_large_toc+:} false
; then :
29127 $as_echo_n "(cached) " >&6
29129 gcc_cv_ld_large_toc
=no
29130 if test x
"$ld_is_gold" = xyes
; then
29131 gcc_cv_ld_large_toc
=yes
29132 elif test $in_tree_ld = yes ; then
29133 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
29134 gcc_cv_ld_large_toc
=yes
29136 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29137 cat > conftest.s
<<EOF
29138 .section ".tbss","awT",@nobits
29144 addis 9,13,ie0@got@tprel@ha
29145 ld 9,ie0@got@tprel@l(9)
29147 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29148 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
29149 gcc_cv_ld_large_toc
=yes
29151 rm -f conftest conftest.o conftest.s
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29156 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29157 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29159 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29164 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29165 if ${gcc_cv_ld_toc_align+:} false
; then :
29166 $as_echo_n "(cached) " >&6
29168 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
29169 cat > conftest.s
<<EOF
29174 .section .data.rel.ro,"aw",@progbits
29179 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29180 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
29181 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)) }'`
29183 rm -f conftest conftest.o conftest.s
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29188 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29189 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29191 cat >>confdefs.h
<<_ACEOF
29192 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29202 $as_echo_n "checking linker large toc support... " >&6; }
29203 if ${gcc_cv_ld_large_toc+:} false
; then :
29204 $as_echo_n "(cached) " >&6
29206 gcc_cv_ld_large_toc
=no
29207 if test x
$gcc_cv_as != x
; then
29208 cat > conftest.s
<<EOF
29218 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29219 gcc_cv_ld_large_toc
=yes
29221 rm -f conftest conftest.o conftest.s
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29226 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29227 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29229 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29236 $as_echo_n "checking linker --build-id support... " >&6; }
29237 if ${gcc_cv_ld_buildid+:} false
; then :
29238 $as_echo_n "(cached) " >&6
29240 gcc_cv_ld_buildid
=no
29241 if test $in_tree_ld = yes ; then
29242 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29243 "$gcc_cv_gld_minor_version" -ge 18 -o \
29244 "$gcc_cv_gld_major_version" -gt 2 \
29245 && test $in_tree_ld_is_elf = yes; then
29246 gcc_cv_ld_buildid
=yes
29248 elif test x
$gcc_cv_ld != x
; then
29249 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
29250 gcc_cv_ld_buildid
=yes
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29255 $as_echo "$gcc_cv_ld_buildid" >&6; }
29256 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29258 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29262 # Check whether --enable-linker-build-id was given.
29263 if test "${enable_linker_build_id+set}" = set; then :
29264 enableval
=$enable_linker_build_id;
29266 enable_linker_build_id
=no
29270 if test x
"$enable_linker_build_id" = xyes
; then
29271 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29273 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29277 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29281 # In binutils 2.21, GNU ld gained support for new emulations fully
29282 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29284 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29285 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
29286 $as_echo_n "(cached) " >&6
29288 gcc_cv_ld_sol2_emulation
=no
29289 if test $in_tree_ld = yes ; then
29290 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29291 "$gcc_cv_gld_minor_version" -ge 21 -o \
29292 "$gcc_cv_gld_major_version" -gt 2 \
29293 && test $in_tree_ld_is_elf = yes; then
29294 gcc_cv_ld_sol2_emulation
=yes
29296 elif test x
$gcc_cv_ld != x
; then
29297 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
29298 grep _sol2
> /dev
/null
; then
29299 gcc_cv_ld_sol2_emulation
=yes
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29304 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29305 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29307 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29312 $as_echo_n "checking linker --sysroot support... " >&6; }
29313 if ${gcc_cv_ld_sysroot+:} false
; then :
29314 $as_echo_n "(cached) " >&6
29316 gcc_cv_ld_sysroot
=no
29317 if test $in_tree_ld = yes ; then
29318 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
29319 gcc_cv_ld_sysroot
=yes
29321 elif test x
$gcc_cv_ld != x
; then
29322 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29323 gcc_cv_ld_sysroot
=yes
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29328 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29329 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29331 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29337 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29339 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29340 if ${gcc_cv_solaris_crts+:} false
; then :
29341 $as_echo_n "(cached) " >&6
29343 gcc_cv_solaris_crts
=no
29344 if test x
$host != x
$target; then
29345 if test "x$with_sysroot" = xyes
; then
29346 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29348 target_sysroot
="${with_sysroot}"
29351 target_libdir
="$target_sysroot/usr/lib"
29352 # At the time they were added, gcrt1.o became a symlink for backwards
29353 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29355 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29356 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
29358 sparc
*-*-solaris2*)
29359 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29364 $as_echo "$gcc_cv_solaris_crts" >&6; }
29367 if test x
$gcc_cv_solaris_crts = xyes
; then
29369 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29373 # Check whether --enable-libssp was given.
29374 if test "${enable_libssp+set}" = set; then :
29375 enableval
=$enable_libssp; case "${enableval}" in
29379 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
29385 # Test for stack protector support in target C library.
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29387 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29388 if ${gcc_cv_libc_provides_ssp+:} false
; then :
29389 $as_echo_n "(cached) " >&6
29391 gcc_cv_libc_provides_ssp
=no
29392 if test "x$enable_libssp" = "xno"; then
29393 gcc_cv_libc_provides_ssp
=yes
29394 elif test "x$enable_libssp" = "xyes"; then
29395 gcc_cv_libc_provides_ssp
=no
29399 # All versions of musl provide stack protector
29400 gcc_cv_libc_provides_ssp
=yes;;
29401 *-*-linux* |
*-*-kfreebsd*-gnu)
29402 # glibc 2.4 and later provides __stack_chk_fail and
29403 # either __stack_chk_guard, or TLS access to stack guard canary.
29405 if test $glibc_version_major -gt 2 \
29406 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29407 gcc_cv_libc_provides_ssp
=yes
29410 if test -f $target_header_dir/features.h \
29411 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29412 $target_header_dir/features.h
> /dev
/null
; then
29413 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29414 $target_header_dir/features.h
> /dev
/null
&& \
29415 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29416 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29417 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29418 gcc_cv_libc_provides_ssp
=yes
29420 # all versions of Bionic support stack protector
29421 elif test -f $target_header_dir/sys
/cdefs.h \
29422 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29423 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29424 gcc_cv_libc_provides_ssp
=yes
29429 # Avoid complicated tests (see
29430 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29431 # simply assert that glibc does provide this, which is true for all
29432 # realistically usable GNU/Hurd configurations.
29433 # All supported versions of musl provide it as well
29434 gcc_cv_libc_provides_ssp
=yes;;
29435 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29436 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29437 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
29438 gcc_cv_libc_provides_ssp
=yes
29440 echo "no __stack_chk_fail on this target"
29444 *) gcc_cv_libc_provides_ssp
=no
;;
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29449 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29451 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29453 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29457 # Check whether --enable-default-ssp was given.
29458 # Check whether --enable-default-ssp was given.
29459 if test "${enable_default_ssp+set}" = set; then :
29460 enableval
=$enable_default_ssp;
29461 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29463 ia64
*-*-*) enable_default_ssp
=no
;;
29464 *) enable_default_ssp
=$enableval ;;
29467 enable_default_ssp
=no
29470 enable_default_ssp
=no
29473 if test x
$enable_default_ssp = xyes
; then
29475 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29480 # Test for <sys/sdt.h> on the target.
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29483 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29485 if test -f $target_header_dir/sys
/sdt.h
; then
29488 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29492 $as_echo "$have_sys_sdt_h" >&6; }
29494 # Check if TFmode long double should be used by default or not.
29495 # Some glibc targets used DFmode long double, but with glibc 2.4
29496 # and later they can use TFmode.
29498 powerpc
*-*-linux* | \
29499 sparc
*-*-linux* | \
29503 # Check whether --with-long-double-128 was given.
29504 if test "${with_long_double_128+set}" = set; then :
29505 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29508 if test $glibc_version_major -gt 2 \
29509 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29510 gcc_cv_target_ldbl128
=yes
29513 gcc_cv_target_ldbl128
=no
29514 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29515 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29516 && gcc_cv_target_ldbl128
=yes
29523 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29525 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29529 # Check if TFmode long double target should use the IBM extended double or IEEE
29530 # 128-bit floating point formats if long doubles are 128-bits long. The long
29531 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29532 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29535 # Check whether --with-long-double-format was given.
29536 if test "${with_long_double_format+set}" = set; then :
29537 withval
=$with_long_double_format;
29538 case "$target:$with_long_double_format" in
29539 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29542 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29543 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29544 case "$with_cpu" in
29545 power7 | power8 | power9 | power1
*)
29549 as_fn_error $?
"Configuration option --with-long-double-format is only \
29550 supported if the default cpu is power7 or newer" "$LINENO" 5
29551 with_long_double_format
=""
29555 xpowerpc64
*-*-linux*:*)
29556 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29557 with_long_double_format
=""
29560 as_fn_error $?
"Configure option --with-long-double-format is only supported \
29561 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29562 with_long_double_format
=""
29568 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29569 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29570 gcc_cv_libc_provides_hwcap_in_tcb
=no
29574 if test $glibc_version_major -gt 2 \
29575 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29576 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29580 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29582 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29587 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29588 gcc_cv_target_dl_iterate_phdr
=unknown
29591 # <link.h> needs both a dl_iterate_phdr declaration and support for
29592 # compilation with largefile support.
29593 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29594 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29595 gcc_cv_target_dl_iterate_phdr
=yes
29597 gcc_cv_target_dl_iterate_phdr
=no
29600 *-*-dragonfly* |
*-*-freebsd*)
29601 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29602 gcc_cv_target_dl_iterate_phdr
=yes
29604 gcc_cv_target_dl_iterate_phdr
=no
29608 gcc_cv_target_dl_iterate_phdr
=yes
29612 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29614 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29618 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29620 # We no longer support different GC mechanisms. Emit an error if
29621 # the user configures with --with-gc.
29623 # Check whether --with-gc was given.
29624 if test "${with_gc+set}" = set; then :
29625 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29629 # Libraries to use on the host. This will normally be set by the top
29630 # level Makefile. Here we simply capture the value for our Makefile.
29631 if test -z "${HOST_LIBS+set}"; then
29636 # Use the system's zlib library.
29638 # Use the system's zlib library.
29639 zlibdir
="-L\$(top_builddir)/../zlib"
29640 zlibinc
="-I\$(top_srcdir)/../zlib"
29642 # Check whether --with-system-zlib was given.
29643 if test "${with_system_zlib+set}" = set; then :
29644 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29657 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29658 # Check whether --enable-maintainer-mode was given.
29659 if test "${enable_maintainer_mode+set}" = set; then :
29660 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29667 $as_echo "$maintainer_mode" >&6; }
29669 if test "$maintainer_mode" = "yes"; then
29676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29677 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29678 # Check whether --enable-link-mutex was given.
29679 if test "${enable_link_mutex+set}" = set; then :
29680 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29686 $as_echo "$do_link_mutex" >&6; }
29688 if test "$do_link_mutex" = "yes"; then
29691 DO_LINK_MUTEX
=false
29699 # Make empty files to contain the specs and options for each language.
29700 # Then add #include lines to for a compiler that has specs and/or options.
29706 # These (without "all_") are set in each config-lang.in.
29707 # `language' must be a single word so is spelled singularly.
29710 all_outputs
='Makefile'
29711 # List of language makefile fragments.
29712 all_lang_makefrags
=
29713 # Additional files for gengtype
29714 all_gtfiles
="$target_gtfiles"
29716 # These are the languages that are set in --enable-languages,
29717 # and are available in the GCC tree.
29718 all_selected_languages
=
29720 # Add the language fragments.
29721 # Languages are added via two mechanisms. Some information must be
29722 # recorded in makefile variables, these are defined in config-lang.in.
29723 # We accumulate them and plug them into the main Makefile.
29724 # The other mechanism is a set of hooks for each of the main targets
29725 # like `clean', `install', etc.
29727 language_hooks
="Make-hooks"
29729 for lang
in ${srcdir}/*/config-lang.
in
29731 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29733 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29734 if test "x$lang_alias" = x
29736 echo "$lang doesn't set \$language." 1>&2
29739 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29740 subdirs
="$subdirs $subdir"
29742 # $gcc_subdir is where the gcc integration files are to be found
29743 # for a language, both for internal compiler purposes (compiler
29744 # sources implementing front-end to GCC tree converters), and for
29745 # build infrastructure purposes (Make-lang.in, etc.)
29747 # This will be <subdir> (relative to $srcdir) if a line like
29748 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29749 # is found in <langdir>/config-lang.in, and will remain <langdir>
29752 # Except for the language alias (fetched above), the regular
29753 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29754 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29755 # only this and the language alias.
29757 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29758 if [ "$gcc_subdir" = "" ]; then
29759 gcc_subdir
="$subdir"
29762 case ",$enable_languages," in
29764 all_selected_languages
="$all_selected_languages $lang_alias"
29765 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29766 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29777 .
${srcdir}/$gcc_subdir/config-lang.
in
29778 if test "x$language" = x
29780 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29785 case ",$enable_languages," in
29786 *,$lang_alias,*) ;;
29788 for i
in $subdir_requires; do
29789 test -f "${srcdir}/$i/config-lang.in" && continue
29797 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29798 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29799 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29800 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29802 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29803 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29805 all_languages
="$all_languages $language"
29806 all_compilers
="$all_compilers $compilers"
29807 all_outputs
="$all_outputs $outputs"
29808 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29809 case ",$enable_languages," in
29812 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29822 for language
in $all_selected_languages
29824 check_languages
="$check_languages check-$language"
29827 selftest_languages
=
29828 for language
in $all_selected_languages
29830 selftest_languages
="$selftest_languages selftest-$language"
29833 # We link each language in with a set of hooks, reached indirectly via
29834 # lang.${target}. Only do so for selected languages.
29838 target_list
="all.cross start.encap rest.encap tags \
29839 install-common install-man install-info install-pdf install-html dvi \
29840 pdf html uninstall info man srcextra srcman srcinfo \
29841 mostlyclean clean distclean maintainer-clean install-plugin"
29843 for t
in $target_list
29846 for lang
in $all_selected_languages
29850 echo "lang.$t: $x" >> Make-hooks
29854 # Option include files
29857 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29858 option_includes
="option-includes.mk"
29867 echo "dir ." > .gdbinit
29868 echo "dir ${srcdir}" >> .gdbinit
29869 if test x
$gdb_needs_out_file_path = xyes
29871 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29873 if test "x$subdirs" != x
; then
29876 echo "dir ${srcdir}/$s" >> .gdbinit
29879 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29880 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29882 # Put a breakpoint on __asan_report_error to help with debugging buffer
29885 *-fsanitize=address
*)
29886 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29890 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29894 # Find a directory in which to install a shared libgcc.
29896 # Check whether --enable-version-specific-runtime-libs was given.
29897 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29898 enableval
=$enable_version_specific_runtime_libs;
29902 # Substitute configuration variables
29970 if test x
${build} = x
${host} ; then
29971 if test x
${host} = x
${target} ; then
29972 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29974 echo "Links are now set up to build a cross-compiler" 1>&2
29975 echo " from ${host} to ${target}." 1>&2
29978 if test x
${host} = x
${target} ; then
29979 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29980 echo " for ${target}." 1>&2
29982 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29983 echo " from ${host} to ${target}." 1>&2
29992 if test "x${ISLLIBS}" != "x" ; then
29994 $as_echo "#define HAVE_isl 1" >>confdefs.h
29998 # Check for plugin support
29999 # Check whether --enable-plugin was given.
30000 if test "${enable_plugin+set}" = set; then :
30001 enableval
=$enable_plugin; enable_plugin
=$enableval
30003 enable_plugin
=yes; default_plugin
=yes
30012 # Since plugin support under MinGW is not as straightforward as on
30013 # other platforms (e.g., we have to link import library, etc), we
30014 # only enable it if explicitly requested.
30015 if test x
"$default_plugin" = x
"yes"; then
30017 elif test x
"$enable_plugin" = x
"yes"; then
30018 # Use make's target variable to derive import library name.
30019 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30024 if test x
$build = x
$host; then
30025 export_sym_check
="nm${exeext} -g"
30026 elif test x
$host = x
$target; then
30027 export_sym_check
="$gcc_cv_nm -g"
30033 if test x
$build = x
$host; then
30034 export_sym_check
="objdump${exeext} -T"
30035 elif test x
$host = x
$target; then
30036 export_sym_check
="$gcc_cv_objdump -T"
30043 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
30045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30046 $as_echo_n "checking for exported symbols... " >&6; }
30047 if test "x$export_sym_check" != x
; then
30048 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30049 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30050 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30051 : # No need to use a flag
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30053 $as_echo "yes" >&6; }
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30056 $as_echo "yes" >&6; }
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30058 $as_echo_n "checking for -rdynamic... " >&6; }
30059 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30060 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30061 plugin_rdynamic
=yes
30062 pluginlibs
="-rdynamic"
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30068 $as_echo "$plugin_rdynamic" >&6; }
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30072 $as_echo "unable to check" >&6; }
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30078 $as_echo_n "checking for library containing dlopen... " >&6; }
30079 if ${ac_cv_search_dlopen+:} false
; then :
30080 $as_echo_n "(cached) " >&6
30082 ac_func_search_save_LIBS
=$LIBS
30083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30084 /* end confdefs.h. */
30086 /* Override any GCC internal prototype to avoid an error.
30087 Use char because int might match the return type of a GCC
30088 builtin and then its argument prototype would still apply. */
30101 for ac_lib
in '' dl
; do
30102 if test -z "$ac_lib"; then
30103 ac_res
="none required"
30106 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
30108 if ac_fn_cxx_try_link
"$LINENO"; then :
30109 ac_cv_search_dlopen
=$ac_res
30111 rm -f core conftest.err conftest.
$ac_objext \
30113 if ${ac_cv_search_dlopen+:} false
; then :
30117 if ${ac_cv_search_dlopen+:} false
; then :
30120 ac_cv_search_dlopen
=no
30122 rm conftest.
$ac_ext
30123 LIBS
=$ac_func_search_save_LIBS
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30126 $as_echo "$ac_cv_search_dlopen" >&6; }
30127 ac_res
=$ac_cv_search_dlopen
30128 if test "$ac_res" != no
; then :
30129 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30133 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
30134 pluginlibs
="$pluginlibs -ldl"
30138 # Check that we can build shared objects with -fPIC -shared
30139 saved_LDFLAGS
="$LDFLAGS"
30140 saved_CFLAGS
="$CFLAGS"
30143 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30144 CFLAGS
="$CFLAGS -fPIC"
30145 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
30148 CFLAGS
="$CFLAGS -fPIC"
30149 LDFLAGS
="$LDFLAGS -fPIC -shared"
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30153 $as_echo_n "checking for -fPIC -shared... " >&6; }
30154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30155 /* end confdefs.h. */
30165 if ac_fn_cxx_try_link
"$LINENO"; then :
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30167 $as_echo "yes" >&6; }; have_pic_shared
=yes
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30170 $as_echo "no" >&6; }; have_pic_shared
=no
30172 rm -f core conftest.err conftest.
$ac_objext \
30173 conftest
$ac_exeext conftest.
$ac_ext
30174 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
30178 LDFLAGS
="$saved_LDFLAGS"
30179 CFLAGS
="$saved_CFLAGS"
30181 # If plugin support had been requested but not available, fail.
30182 if test x
"$enable_plugin" = x
"no" ; then
30183 if test x
"$default_plugin" != x
"yes"; then
30185 Building GCC with plugin support requires a host that supports
30186 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30193 if test x
"$enable_plugin" = x
"yes"; then
30195 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30200 # Enable --enable-host-shared
30201 # Check whether --enable-host-shared was given.
30202 if test "${enable_host_shared+set}" = set; then :
30203 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30212 # Check whether --enable-libquadmath-support was given.
30213 if test "${enable_libquadmath_support+set}" = set; then :
30214 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
30216 ENABLE_LIBQUADMATH_SUPPORT
=yes
30219 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30221 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30226 # Specify what hash style to use by default.
30228 # Check whether --with-linker-hash-style was given.
30229 if test "${with_linker_hash_style+set}" = set; then :
30230 withval
=$with_linker_hash_style; case x
"$withval" in
30232 LINKER_HASH_STYLE
=sysv
30235 LINKER_HASH_STYLE
=gnu
30238 LINKER_HASH_STYLE
=both
30241 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30245 LINKER_HASH_STYLE
=''
30248 if test x
"${LINKER_HASH_STYLE}" != x
; then
30250 cat >>confdefs.h
<<_ACEOF
30251 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30256 # Specify what should be the default of -fdiagnostics-color option.
30258 # Check whether --with-diagnostics-color was given.
30259 if test "${with_diagnostics_color+set}" = set; then :
30260 withval
=$with_diagnostics_color; case x
"$withval" in
30262 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
30265 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30268 DIAGNOSTICS_COLOR_DEFAULT
=-1
30271 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
30274 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30278 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30282 cat >>confdefs.h
<<_ACEOF
30283 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30287 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30288 # of jit/jit-playback.c.
30289 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30290 echo "gcc_driver_version: ${gcc_driver_version}"
30291 cat > gcc-driver-name.h
<<EOF
30292 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30295 # Check whether --enable-default-pie was given.
30296 # Check whether --enable-default-pie was given.
30297 if test "${enable_default_pie+set}" = set; then :
30298 enableval
=$enable_default_pie; enable_default_pie
=$enableval
30300 enable_default_pie
=no
30303 if test x
$enable_default_pie = xyes
; then
30305 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30310 # Check if -fno-PIE works.
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30312 $as_echo_n "checking for -fno-PIE option... " >&6; }
30313 if ${gcc_cv_c_no_fpie+:} false
; then :
30314 $as_echo_n "(cached) " >&6
30316 saved_CXXFLAGS
="$CXXFLAGS"
30317 CXXFLAGS
="$CXXFLAGS -fno-PIE"
30318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30319 /* end confdefs.h. */
30320 int main(void) {return 0;}
30322 if ac_fn_cxx_try_compile
"$LINENO"; then :
30323 gcc_cv_c_no_fpie
=yes
30325 gcc_cv_c_no_fpie
=no
30327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30328 CXXFLAGS
="$saved_CXXFLAGS"
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30331 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30332 if test "$gcc_cv_c_no_fpie" = "yes"; then
30333 NO_PIE_CFLAGS
="-fno-PIE"
30337 # Check if -no-pie works.
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30339 $as_echo_n "checking for -no-pie option... " >&6; }
30340 if ${gcc_cv_no_pie+:} false
; then :
30341 $as_echo_n "(cached) " >&6
30343 saved_LDFLAGS
="$LDFLAGS"
30344 LDFLAGS
="$LDFLAGS -no-pie"
30345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30346 /* end confdefs.h. */
30347 int main(void) {return 0;}
30349 if ac_fn_cxx_try_link
"$LINENO"; then :
30354 rm -f core conftest.err conftest.
$ac_objext \
30355 conftest
$ac_exeext conftest.
$ac_ext
30356 LDFLAGS
="$saved_LDFLAGS"
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30359 $as_echo "$gcc_cv_no_pie" >&6; }
30360 if test "$gcc_cv_no_pie" = "yes"; then
30361 NO_PIE_FLAG
="-no-pie"
30365 # Check linker supports '-z bndplt'
30366 ld_bndplt_support
=no
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30368 $as_echo_n "checking linker -z bndplt option... " >&6; }
30369 if test x
"$ld_is_gold" = xno
; then
30370 if test $in_tree_ld = yes ; then
30371 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
30372 ld_bndplt_support
=yes
30374 elif test x
$gcc_cv_ld != x
; then
30375 # Check if linker supports -a bndplt option
30376 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
30377 ld_bndplt_support
=yes
30381 if test x
"$ld_bndplt_support" = xyes
; then
30383 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30387 $as_echo "$ld_bndplt_support" >&6; }
30389 # Check linker supports '--push-state'/'--pop-state'
30390 ld_pushpopstate_support
=no
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30392 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30393 if test x
"$ld_is_gold" = xno
; then
30394 if test $in_tree_ld = yes ; then
30395 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
30396 ld_pushpopstate_support
=yes
30398 elif test x
$gcc_cv_ld != x
; then
30399 # Check if linker supports --push-state/--pop-state options
30400 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
30401 ld_pushpopstate_support
=yes
30405 if test x
"$ld_pushpopstate_support" = xyes
; then
30407 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30411 $as_echo "$ld_pushpopstate_support" >&6; }
30413 # Configure the subdirectories
30414 # AC_CONFIG_SUBDIRS($subdirs)
30416 # Create the Makefile
30417 # and configure language subdirectories
30418 ac_config_files
="$ac_config_files $all_outputs"
30421 ac_config_commands
="$ac_config_commands default"
30423 cat >confcache
<<\_ACEOF
30424 # This file is a shell script that caches the results of configure
30425 # tests run on this system so they can be shared between configure
30426 # scripts and configure runs, see configure's option --config-cache.
30427 # It is not useful on other systems. If it contains results you don't
30428 # want to keep, you may remove or edit it.
30430 # config.status only pays attention to the cache file if you give it
30431 # the --recheck option to rerun configure.
30433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30435 # following values.
30439 # The following way of writing the cache mishandles newlines in values,
30440 # but we know of no workaround that is simple, portable, and efficient.
30441 # So, we kill variables containing newlines.
30442 # Ultrix sh set writes to stderr and can't be redirected directly,
30443 # and sets the high bit in the cache file unless we assign to the vars.
30445 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30446 eval ac_val
=\$
$ac_var
30450 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30454 _ | IFS | as_nl
) ;; #(
30455 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30456 *) { eval $ac_var=; unset $ac_var;} ;;
30462 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30463 *${as_nl}ac_space
=\
*)
30464 # `set' does not quote correctly, so add quotes: double-quote
30465 # substitution turns \\\\ into \\, and sed turns \\ into \.
30468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30471 # `set' quotes correctly as required by POSIX, so do not add quotes.
30472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30485 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30486 if test -w "$cache_file"; then
30487 if test "x$cache_file" != "x/dev/null"; then
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30489 $as_echo "$as_me: updating cache $cache_file" >&6;}
30490 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30491 cat confcache
>"$cache_file"
30493 case $cache_file in #(
30495 mv -f confcache
"$cache_file"$$
&&
30496 mv -f "$cache_file"$$
"$cache_file" ;; #(
30498 mv -f confcache
"$cache_file" ;;
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30504 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30509 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30510 # Let make expand exec_prefix.
30511 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30513 DEFS
=-DHAVE_CONFIG_H
30518 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30519 # 1. Remove the extension, and $U if already installed.
30520 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30521 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30522 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30523 # will be set to the directory where LIBOBJS objects are built.
30524 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30525 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30527 LIBOBJS
=$ac_libobjs
30529 LTLIBOBJS
=$ac_ltlibobjs
30534 : "${CONFIG_STATUS=./config.status}"
30536 ac_clean_files_save
=$ac_clean_files
30537 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30539 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30541 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30543 # Generated by $as_me.
30544 # Run this file to recreate the current configuration.
30545 # Compiler output produced by configure, useful for debugging
30546 # configure, is in config.log if it exists.
30549 ac_cs_recheck=false
30552 SHELL=\${CONFIG_SHELL-$SHELL}
30555 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30556 ## -------------------- ##
30557 ## M4sh Initialization. ##
30558 ## -------------------- ##
30560 # Be more Bourne compatible
30561 DUALCASE
=1; export DUALCASE
# for MKS sh
30562 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30565 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30566 # is contrary to our usage. Disable this feature.
30567 alias -g '${1+"$@"}'='"$@"'
30568 setopt NO_GLOB_SUBST
30570 case `(set -o) 2>/dev/null` in #(
30582 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30583 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30586 # Prefer a ksh shell builtin over an external printf program on Solaris,
30587 # but without wasting forks for bash or zsh.
30588 if test -z "$BASH_VERSION$ZSH_VERSION" \
30589 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30590 as_echo='print
-r --'
30591 as_echo_n='print
-rn --'
30592 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30593 as_echo='printf %s
\n'
30594 as_echo_n='printf %s
'
30596 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30597 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30598 as_echo_n='/usr
/ucb
/echo -n'
30600 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30601 as_echo_n_body='eval
30605 expr "X$arg" : "X\\(.*\\)$as_nl";
30606 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30608 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30610 export as_echo_n_body
30611 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30613 export as_echo_body
30614 as_echo='sh
-c $as_echo_body as_echo
'
30617 # The user is always right.
30618 if test "${PATH_SEPARATOR+set}" != set; then
30620 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30621 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30628 # We need space, tab and new line, in precisely that order. Quoting is
30629 # there to prevent editors from complaining about space-tab.
30630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30631 # splitting by setting IFS to empty value.)
30634 # Find who we are. Look in the path if we contain no directory separator.
30637 *[\\/]* ) as_myself=$0 ;;
30638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30639 for as_dir in $PATH
30642 test -z "$as_dir" && as_dir=.
30643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30649 # We did not find ourselves, most probably we were run as `sh COMMAND'
30650 # in which case we are not to be found in the path.
30651 if test "x$as_myself" = x
; then
30654 if test ! -f "$as_myself"; then
30655 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30659 # Unset variables that we do not need and which cause bugs (e.g. in
30660 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30661 # suppresses any "Segmentation fault" message there. '((' could
30662 # trigger a bug in pdksh 5.2.14.
30663 for as_var
in BASH_ENV ENV MAIL MAILPATH
30664 do eval test x\
${$as_var+set} = xset \
30665 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30678 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30681 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30682 # ----------------------------------------
30683 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30684 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30685 # script with STATUS, using 1 if that was 0.
30688 as_status
=$1; test $as_status -eq 0 && as_status
=1
30690 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30691 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30693 $as_echo "$as_me: error: $2" >&2
30694 as_fn_exit
$as_status
30698 # as_fn_set_status STATUS
30699 # -----------------------
30700 # Set $? to STATUS, without forking.
30701 as_fn_set_status
()
30704 } # as_fn_set_status
30706 # as_fn_exit STATUS
30707 # -----------------
30708 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30712 as_fn_set_status
$1
30718 # Portably unset VAR.
30721 { eval $1=; unset $1;}
30723 as_unset
=as_fn_unset
30724 # as_fn_append VAR VALUE
30725 # ----------------------
30726 # Append the text in VALUE to the end of the definition contained in VAR. Take
30727 # advantage of any shell optimizations that allow amortized linear growth over
30728 # repeated appends, instead of the typical quadratic growth present in naive
30730 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30731 eval 'as_fn_append ()
30742 # as_fn_arith ARG...
30743 # ------------------
30744 # Perform arithmetic evaluation on the ARGs, and store the result in the
30745 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30746 # must be portable across $(()) and expr.
30747 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30748 eval 'as_fn_arith ()
30755 as_val
=`expr "$@" || test $? -eq 1`
30760 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30761 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30767 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30768 as_basename
=basename
30773 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30779 as_me
=`$as_basename -- "$0" ||
30780 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30781 X"$0" : 'X\(//\)$' \| \
30782 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30784 sed '/^.*\/\([^/][^/]*\)\/*$/{
30798 # Avoid depending upon Character Ranges.
30799 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30800 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30801 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30802 as_cr_digits
='0123456789'
30803 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30805 ECHO_C
= ECHO_N
= ECHO_T
=
30806 case `echo -n x` in #(((((
30808 case `echo 'xy\c'` in
30809 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30811 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30818 rm -f conf$$ conf$$.exe conf$$.
file
30819 if test -d conf$$.dir
; then
30820 rm -f conf$$.dir
/conf$$.
file
30823 mkdir conf$$.dir
2>/dev
/null
30825 if (echo >conf$$.
file) 2>/dev
/null
; then
30826 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30828 # ... but there are two gotchas:
30829 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30830 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30831 # In both cases, we have to default to `cp -pR'.
30832 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30834 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30842 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30843 rmdir conf$$.dir
2>/dev
/null
30848 # Create "$as_dir" as a directory, including parents if necessary.
30853 -*) as_dir
=.
/$as_dir;;
30855 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30859 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30860 *) as_qdir
=$as_dir;;
30862 as_dirs
="'$as_qdir' $as_dirs"
30863 as_dir
=`$as_dirname -- "$as_dir" ||
30864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30865 X"$as_dir" : 'X\(//\)[^/]' \| \
30866 X"$as_dir" : 'X\(//\)$' \| \
30867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30868 $as_echo X"$as_dir" |
30869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30873 /^X\(\/\/\)[^/].*/{
30886 test -d "$as_dir" && break
30888 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30889 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
30893 if mkdir
-p .
2>/dev
/null
; then
30894 as_mkdir_p
='mkdir -p "$as_dir"'
30896 test -d .
/-p && rmdir .
/-p
30901 # as_fn_executable_p FILE
30902 # -----------------------
30903 # Test if FILE is an executable regular file.
30904 as_fn_executable_p
()
30906 test -f "$1" && test -x "$1"
30907 } # as_fn_executable_p
30908 as_test_x
='test -x'
30909 as_executable_p
=as_fn_executable_p
30911 # Sed expression to map a string onto a valid CPP name.
30912 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30914 # Sed expression to map a string onto a valid variable name.
30915 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30919 ## ----------------------------------- ##
30920 ## Main body of $CONFIG_STATUS script. ##
30921 ## ----------------------------------- ##
30923 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30926 # Save the log message, to keep $0 and so on meaningful, and to
30927 # report actual input values of CONFIG_FILES etc. instead of their
30928 # values after options handling.
30930 This file was extended by $as_me, which was
30931 generated by GNU Autoconf 2.69. Invocation command line was
30933 CONFIG_FILES = $CONFIG_FILES
30934 CONFIG_HEADERS = $CONFIG_HEADERS
30935 CONFIG_LINKS = $CONFIG_LINKS
30936 CONFIG_COMMANDS = $CONFIG_COMMANDS
30939 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30944 case $ac_config_files in *"
30945 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30948 case $ac_config_headers in *"
30949 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30954 # Files that config.status was made for.
30955 config_files="$ac_config_files"
30956 config_headers="$ac_config_headers"
30957 config_links="$ac_config_links"
30958 config_commands="$ac_config_commands"
30962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30964 \`$as_me' instantiates files and other configuration actions
30965 from templates according to the current configuration. Unless the files
30966 and actions are specified as TAGs, all are instantiated by default.
30968 Usage: $0 [OPTION]... [TAG]...
30970 -h, --help print this help, then exit
30971 -V, --version print version number and configuration settings, then exit
30972 --config print configuration, then exit
30973 -q, --quiet, --silent
30974 do not print progress messages
30975 -d, --debug don't remove temporary files
30976 --recheck update $as_me by reconfiguring in the same conditions
30977 --file=FILE[:TEMPLATE]
30978 instantiate the configuration file FILE
30979 --header=FILE[:TEMPLATE]
30980 instantiate the configuration header FILE
30982 Configuration files:
30985 Configuration headers:
30988 Configuration links:
30991 Configuration commands:
30994 Report bugs to the package provider."
30997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30998 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31001 configured by $0, generated by GNU Autoconf 2.69,
31002 with options \\"\$ac_cs_config\\"
31004 Copyright (C) 2012 Free Software Foundation, Inc.
31005 This config.status script is free software; the Free Software Foundation
31006 gives unlimited permission to copy, distribute and modify it."
31011 test -n "\$AWK" || AWK=awk
31014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31015 # The default lists apply if the user does not specify any file.
31021 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31022 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31026 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31038 # Handling of the options.
31039 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31041 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31042 $as_echo "$ac_cs_version"; exit ;;
31043 --config |
--confi |
--conf |
--con |
--co |
--c )
31044 $as_echo "$ac_cs_config"; exit ;;
31045 --debug |
--debu |
--deb |
--de |
--d |
-d )
31047 --file |
--fil |
--fi |
--f )
31050 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31051 '') as_fn_error $?
"missing file argument" ;;
31053 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31054 ac_need_defaults
=false
;;
31055 --header |
--heade |
--head |
--hea )
31058 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31060 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31061 ac_need_defaults
=false
;;
31063 # Conflict between --help and --header
31064 as_fn_error $?
"ambiguous option: \`$1'
31065 Try \`$0 --help' for more information.";;
31066 --help |
--hel |
-h )
31067 $as_echo "$ac_cs_usage"; exit ;;
31068 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31069 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31072 # This is an error.
31073 -*) as_fn_error $?
"unrecognized option: \`$1'
31074 Try \`$0 --help' for more information." ;;
31076 *) as_fn_append ac_config_targets
" $1"
31077 ac_need_defaults
=false
;;
31083 ac_configure_extra_args
=
31085 if $ac_cs_silent; then
31087 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31092 if \$ac_cs_recheck; then
31093 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31095 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31096 CONFIG_SHELL='$SHELL'
31097 export CONFIG_SHELL
31102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31107 ## Running $as_me. ##
31113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31117 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31118 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31125 # Handling of arguments.
31126 for ac_config_target
in $ac_config_targets
31128 case $ac_config_target in
31129 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
31130 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
31131 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
31132 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
31133 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31134 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
31135 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31136 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
31137 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
31139 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31144 # If the user did not use the arguments to specify the items to instantiate,
31145 # then the envvar interface is used. Set only those that are not.
31146 # We use the long form for the default assignment because of an extremely
31147 # bizarre bug on SunOS 4.1.3.
31148 if $ac_need_defaults; then
31149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31151 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
31152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31155 # Have a temporary directory for convenience. Make it in the build tree
31156 # simply because there is no reason against having it here, and in addition,
31157 # creating and moving files from /tmp can sometimes cause problems.
31158 # Hook for its removal unless debugging.
31159 # Note that there is a small window in which the directory will not be cleaned:
31160 # after its creation but before its name has been assigned to `$tmp'.
31164 trap 'exit_status=$?
31165 : "${ac_tmp:=$tmp}"
31166 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31168 trap 'as_fn_exit 1' 1 2 13 15
31170 # Create a (secure) tmp directory for tmp files.
31173 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31177 tmp
=.
/conf$$
-$RANDOM
31178 (umask 077 && mkdir
"$tmp")
31179 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31182 # Set up the scripts for CONFIG_FILES section.
31183 # No need to generate them if there are no CONFIG_FILES.
31184 # This happens for instance with `./config.status config.h'.
31185 if test -n "$CONFIG_FILES"; then
31187 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31188 ac_cs_awk_getline
=:
31189 ac_cs_awk_pipe_init
=
31190 ac_cs_awk_read_file
='
31191 while ((getline aline < (F[key])) > 0)
31194 ac_cs_awk_pipe_fini
=
31196 ac_cs_awk_getline
=false
31197 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31198 ac_cs_awk_read_file
='
31200 print "cat " F[key] " &&"
31201 '$ac_cs_awk_pipe_init
31202 # The final `:' finishes the AND list.
31203 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31205 ac_cr
=`echo X | tr X '\015'`
31206 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31207 # But we know of no other shell where ac_cr would be empty at this
31208 # point, so we can use a bashism as a fallback.
31209 if test "x$ac_cr" = x
; then
31210 eval ac_cr
=\$
\'\\r
\'
31212 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31213 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31216 ac_cs_awk_cr
=$ac_cr
31219 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31222 # Create commands to substitute file output variables.
31224 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31225 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31226 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31229 } >conf$
$files.sh
&&
31230 . .
/conf$
$files.sh ||
31231 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
31232 rm -f conf$
$files.sh
31235 echo "cat >conf$$subs.awk <<_ACEOF" &&
31236 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31238 } >conf$$subs.sh ||
31239 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31240 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31242 for ac_last_try in false false false false false :; do
31243 . ./conf$$subs.sh ||
31244 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31246 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31247 if test $ac_delim_n = $ac_delim_num; then
31249 elif $ac_last_try; then
31250 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31252 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31255 rm -f conf$$subs.sh
31257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31258 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31262 s/^/S["/; s
/!.
*/"]=/
31272 s/\(.\{148\}\)..*/\1/
31274 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31279 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31286 s/\(.\{148\}\)..*/\1/
31288 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31292 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31297 ' <conf$$subs.awk | sed '
31302 ' >>$CONFIG_STATUS || ac_write_fail=1
31303 rm -f conf$$subs.awk
31304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31306 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31307 for (key in S) S_is_set[key] = 1
31309 \$ac_cs_awk_pipe_init
31313 nfields = split(line, field, "@
")
31315 len = length(field[1])
31316 for (i = 2; i < nfields; i++) {
31318 keylen = length(key)
31319 if (S_is_set[key]) {
31321 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31322 len += length(value) + length(field[++i])
31327 if (nfields == 3 && !substed) {
31329 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31330 \$ac_cs_awk_read_file
31336 \$ac_cs_awk_pipe_fini
31339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31340 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31341 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31344 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31345 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31348 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31349 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31350 # trailing colons and then remove the whole line if VPATH becomes empty
31351 # (actually we leave an empty line to preserve line numbers).
31352 if test "x
$srcdir" = x.; then
31353 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31372 fi # test -n "$CONFIG_FILES"
31374 # Set up the scripts for CONFIG_HEADERS section.
31375 # No need to generate them if there are no CONFIG_HEADERS.
31376 # This happens for instance with `./config.status Makefile'.
31377 if test -n "$CONFIG_HEADERS"; then
31378 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31382 # Transform confdefs.h into an awk script `defines.awk', embedded as
31383 # here-document in config.status, that substitutes the proper values into
31384 # config.h.in to produce config.h.
31386 # Create a delimiter string that does not exist in confdefs.h, to ease
31387 # handling of long lines.
31389 for ac_last_try in false false :; do
31390 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31391 if test -z "$ac_tt"; then
31393 elif $ac_last_try; then
31394 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31396 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31400 # For the awk script, D is an array of macro values keyed by name,
31401 # likewise P contains macro parameters if any. Preserve backslash
31402 # newline sequences.
31404 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31406 s/.\{148\}/&'"$ac_delim"'/g
31409 s/^[ ]*#[ ]*define[ ][ ]*/ /
31416 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31418 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31423 D["\
1"]=" \
3\\\\\\n
"\\/p
31425 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31430 s/.\{148\}/&'"$ac_delim"'/g
31435 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31438 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31440 ' <confdefs.h | sed '
31441 s/'"$ac_delim"'/"\\\
31442 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31445 for (key in D) D_is_set[key] = 1
31448 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31450 split(line, arg, " ")
31451 if (arg[1] == "#") {
31455 defundef
= substr
(arg
[1], 2)
31458 split(mac1
, mac2
, "(") #)
31460 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31461 if (D_is_set
[macro
]) {
31462 # Preserve the white space surrounding the "#".
31463 print prefix
"define", macro P
[macro
] D
[macro
]
31466 # Replace #undef with comments. This is necessary, for example,
31467 # in the case of _POSIX_SOURCE, which is predefined and required
31468 # on some systems where configure will not decide to define it.
31469 if (defundef
== "undef") {
31470 print
"/*", prefix defundef
, macro
, "*/"
31478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31479 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31480 fi # test -n "$CONFIG_HEADERS"
31483 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31488 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31490 case $ac_mode$ac_tag in
31492 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31493 :[FH
]-) ac_tag
=-:-;;
31494 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31511 -) ac_f
="$ac_tmp/stdin";;
31512 *) # Look for the file first in the build tree, then in the source tree
31513 # (if the path is not absolute). The absolute path cannot be DOS-style,
31514 # because $ac_f cannot contain `:'.
31518 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31520 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31522 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31523 as_fn_append ac_file_inputs
" '$ac_f'"
31526 # Let's still pretend it is `configure' which instantiates (i.e., don't
31527 # use $as_me), people would be surprised to read:
31528 # /* config.h. Generated by config.status. */
31529 configure_input
='Generated from '`
31530 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31532 if test x
"$ac_file" != x-
; then
31533 configure_input
="$ac_file. $configure_input"
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31535 $as_echo "$as_me: creating $ac_file" >&6;}
31537 # Neutralize special characters interpreted by sed in replacement strings.
31538 case $configure_input in #(
31539 *\
&* |
*\|
* |
*\\* )
31540 ac_sed_conf_input
=`$as_echo "$configure_input" |
31541 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31542 *) ac_sed_conf_input
=$configure_input;;
31546 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31547 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31552 ac_dir
=`$as_dirname -- "$ac_file" ||
31553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31554 X"$ac_file" : 'X\(//\)[^/]' \| \
31555 X"$ac_file" : 'X\(//\)$' \| \
31556 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31557 $as_echo X"$ac_file" |
31558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31562 /^X\(\/\/\)[^/].*/{
31575 as_dir
="$ac_dir"; as_fn_mkdir_p
31579 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31581 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31582 # A ".." for each directory in $ac_dir_suffix.
31583 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31584 case $ac_top_builddir_sub in
31585 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31586 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31589 ac_abs_top_builddir
=$ac_pwd
31590 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31591 # for backward compatibility:
31592 ac_top_builddir
=$ac_top_build_prefix
31595 .
) # We are building in place.
31597 ac_top_srcdir
=$ac_top_builddir_sub
31598 ac_abs_top_srcdir
=$ac_pwd ;;
31599 [\\/]* | ?
:[\\/]* ) # Absolute name.
31600 ac_srcdir
=$srcdir$ac_dir_suffix;
31601 ac_top_srcdir
=$srcdir
31602 ac_abs_top_srcdir
=$srcdir ;;
31603 *) # Relative name.
31604 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31605 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31606 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31608 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31620 # If the template does not know about datarootdir, expand it.
31621 # FIXME: This hack should be removed a few years after 2.60.
31622 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31634 *datarootdir
*) ac_datarootdir_seen
=yes;;
31635 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31637 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31640 ac_datarootdir_hack='
31641 s&@datadir@&$datadir&g
31642 s&@docdir@&$docdir&g
31643 s&@infodir@&$infodir&g
31644 s&@localedir@&$localedir&g
31645 s&@mandir@&$mandir&g
31646 s&\\\${datarootdir}&$datarootdir&g' ;;
31650 # Neutralize VPATH when `$srcdir' = `.'.
31651 # Shell code in configure.ac might set extrasub.
31652 # FIXME: do we really want to maintain this feature?
31653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31654 ac_sed_extra="$ac_vpsub
31657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31659 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31660 s|@configure_input@|
$ac_sed_conf_input|
;t t
31661 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31662 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31663 s
&@srcdir@
&$ac_srcdir&;t t
31664 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31665 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31666 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31667 s
&@builddir@
&$ac_builddir&;t t
31668 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31669 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31670 $ac_datarootdir_hack
31672 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31673 if $ac_cs_awk_getline; then
31674 $AWK -f "$ac_tmp/subs.
awk"
31676 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
31678 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
31680 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31681 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
31682 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31683 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
31684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31685 which seems to be undefined. Please make sure it is defined" >&5
31686 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31687 which seems to be undefined. Please make sure it is defined" >&2;}
31689 rm -f "$ac_tmp/stdin"
31691 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31692 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31700 if test x"$ac_file" != x-; then
31702 $as_echo "/* $configure_input */" \
31703 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31704 } >"$ac_tmp/config.h" \
31705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31706 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31707 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31708 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31711 mv "$ac_tmp/config.h" "$ac_file" \
31712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31715 $as_echo "/* $configure_input */" \
31716 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31717 || as_fn_error $? "could not create -" "$LINENO" 5
31725 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31728 # Prefer the file from the source tree if names are identical.
31729 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31730 ac_source=$srcdir/$ac_source
31733 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31734 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31736 if test ! -r "$ac_source"; then
31737 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31741 # Try a relative symlink, then a hard link, then a copy.
31743 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31744 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31746 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31747 ln "$ac_source" "$ac_file" 2>/dev/null ||
31748 cp -p "$ac_source" "$ac_file" ||
31749 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31752 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31753 $as_echo "$as_me: executing $ac_file commands" >&6;}
31758 case $ac_file$ac_mode in
31759 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31761 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31762 for lang in $subdirs c-family common
31764 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31766 "as":F) chmod +x as ;;
31767 "collect-ld":F) chmod +x collect-ld ;;
31768 "nm":F) chmod +x nm ;;
31770 case ${CONFIG_HEADERS} in
31771 *auto-host.h:config.in*)
31774 # Make sure all the subdirs exist.
31775 for d in $subdirs doc build common c-family
31777 test -d $d || mkdir $d
31787 ac_clean_files=$ac_clean_files_save
31789 test $ac_write_fail = 0 ||
31790 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31793 # configure is writing to config.log, and then calls config.status.
31794 # config.status does its own redirection, appending to config.log.
31795 # Unfortunately, on DOS this fails, as config.log is still kept open
31796 # by configure, so config.status won't be able to
write to it
; its
31797 # output is simply discarded. So we exec the FD to /dev/null,
31798 # effectively closing config.log, so it can be properly (re)opened and
31799 # appended to by config.status. When coming back to configure, we
31800 # need to make the FD available again.
31801 if test "$no_create" != yes; then
31803 ac_config_status_args
=
31804 test "$silent" = yes &&
31805 ac_config_status_args
="$ac_config_status_args --quiet"
31807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31810 # would make configure fail if this is the last instruction.
31811 $ac_cs_success || as_fn_exit
1
31813 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31815 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}