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
662 common_out_object_file
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
690 TM_MULTILIB_EXCEPTIONS_CONFIG
700 build_xm_include_list
702 build_install_headers_dir
704 all_selected_languages
707 all_lang_configurefrags
715 DO_LINK_SERIALIZATION
724 ld_version_script_option
726 ORIGINAL_DSYMUTIL_FOR_TARGET
731 ORIGINAL_NM_FOR_TARGET
733 ORIGINAL_LD_GOLD_FOR_TARGET
734 ORIGINAL_LD_BFD_FOR_TARGET
735 ORIGINAL_LD_FOR_TARGET
736 ORIGINAL_PLUGIN_LD_FOR_TARGET
738 ORIGINAL_AS_FOR_TARGET
756 NO_PIE_FLAG_FOR_BUILD
757 NO_PIE_CFLAGS_FOR_BUILD
767 BUILD_SYSTEM_HEADER_DIR
787 NATIVE_SYSTEM_HEADER_DIR
825 omp_device_property_deps
826 omp_device_properties
828 real_target_noncanonical
829 enable_as_accelerator
845 valgrind_path_defines
875 CROSS_SYSTEM_HEADER_DIR
876 TARGET_SYSTEM_ROOT_DEFINE
878 SYSROOT_CFLAGS_FOR_TARGET
924 program_transform_name
935 ac_subst_files
='option_includes
938 enable_option_checking
941 with_native_system_header_dir
945 with_gxx_libcxx_include_dir
947 enable_generated_files_in_srcdir
955 enable_build_format_warnings
959 enable_gather_detailed_mem_stats
960 enable_valgrind_annotations
964 with_stack_clash_protection_guard_size
979 with_documentation_root_url
980 with_changes_root_url
983 with_multilib_generator
990 enable_sjlj_exceptions
991 with_gcc_major_version_only
993 enable_mingw_wildcard
994 enable_large_address_aware
995 enable_leading_mingw64_underscores
998 enable_win32_registry
1006 enable_gnu_indirect_function
1007 enable_initfini_array
1009 enable_newlib_nano_formatted_io
1010 enable_standard_branch_protection
1011 enable_fix_cortex_a53_835769
1012 enable_fix_cortex_a53_843419
1014 enable_gnu_unique_object
1015 enable_linker_build_id
1018 with_long_double_128
1019 with_long_double_format
1022 enable_maintainer_mode
1024 enable_link_serialization
1025 enable_version_specific_runtime_libs
1028 enable_libquadmath_support
1029 with_linker_hash_style
1030 with_diagnostics_color
1031 with_diagnostics_urls
1034 enable_s390_excess_float_precision
1036 ac_precious_vars
='build_alias
1055 # Initialize some variables set by options.
1057 ac_init_version
=false
1058 ac_unrecognized_opts
=
1059 ac_unrecognized_sep
=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file
=/dev
/null
1069 program_transform_name
=s
,x
,x
,
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir
='${exec_prefix}/bin'
1084 sbindir
='${exec_prefix}/sbin'
1085 libexecdir
='${exec_prefix}/libexec'
1086 datarootdir
='${prefix}/share'
1087 datadir
='${datarootdir}'
1088 sysconfdir
='${prefix}/etc'
1089 sharedstatedir
='${prefix}/com'
1090 localstatedir
='${prefix}/var'
1091 includedir
='${prefix}/include'
1092 oldincludedir
='/usr/include'
1093 docdir
='${datarootdir}/doc/${PACKAGE}'
1094 infodir
='${datarootdir}/info'
1099 libdir
='${exec_prefix}/lib'
1100 localedir
='${datarootdir}/locale'
1101 mandir
='${datarootdir}/man'
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\
$ac_option
1115 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1122 case $ac_dashdash$ac_option in
1126 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1128 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1129 bindir
=$ac_optarg ;;
1131 -build |
--build |
--buil |
--bui |
--bu)
1132 ac_prev
=build_alias
;;
1133 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1134 build_alias
=$ac_optarg ;;
1136 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1137 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1138 ac_prev
=cache_file
;;
1139 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1140 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1141 cache_file
=$ac_optarg ;;
1143 --config-cache |
-C)
1144 cache_file
=config.cache
;;
1146 -datadir |
--datadir |
--datadi |
--datad)
1148 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1149 datadir
=$ac_optarg ;;
1151 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1152 |
--dataroo |
--dataro |
--datar)
1153 ac_prev
=datarootdir
;;
1154 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1155 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1156 datarootdir
=$ac_optarg ;;
1158 -disable-* |
--disable-*)
1159 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep
=', ';;
1172 eval enable_
$ac_useropt=no
;;
1174 -docdir |
--docdir |
--docdi |
--doc |
--do)
1176 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1177 docdir
=$ac_optarg ;;
1179 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1181 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1182 dvidir
=$ac_optarg ;;
1184 -enable-* |
--enable-*)
1185 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1188 as_fn_error $?
"invalid feature name: $ac_useropt"
1189 ac_useropt_orig
=$ac_useropt
1190 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_
$ac_useropt"
1195 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep
=', ';;
1198 eval enable_
$ac_useropt=\
$ac_optarg ;;
1200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1202 |
--exec |
--exe |
--ex)
1203 ac_prev
=exec_prefix
;;
1204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1206 |
--exec=* |
--exe=* |
--ex=*)
1207 exec_prefix
=$ac_optarg ;;
1209 -gas |
--gas |
--ga |
--g)
1210 # Obsolete; use --with-gas.
1213 -help |
--help |
--hel |
--he |
-h)
1214 ac_init_help
=long
;;
1215 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1216 ac_init_help
=recursive
;;
1217 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1218 ac_init_help
=short
;;
1220 -host |
--host |
--hos |
--ho)
1221 ac_prev
=host_alias
;;
1222 -host=* |
--host=* |
--hos=* |
--ho=*)
1223 host_alias
=$ac_optarg ;;
1225 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1227 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1229 htmldir
=$ac_optarg ;;
1231 -includedir |
--includedir |
--includedi |
--included |
--include \
1232 |
--includ |
--inclu |
--incl |
--inc)
1233 ac_prev
=includedir
;;
1234 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1235 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1236 includedir
=$ac_optarg ;;
1238 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1240 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1241 infodir
=$ac_optarg ;;
1243 -libdir |
--libdir |
--libdi |
--libd)
1245 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1246 libdir
=$ac_optarg ;;
1248 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1249 |
--libexe |
--libex |
--libe)
1250 ac_prev
=libexecdir
;;
1251 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1252 |
--libexe=* |
--libex=* |
--libe=*)
1253 libexecdir
=$ac_optarg ;;
1255 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1256 ac_prev
=localedir
;;
1257 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1258 localedir
=$ac_optarg ;;
1260 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1261 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1262 ac_prev
=localstatedir
;;
1263 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1264 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1265 localstatedir
=$ac_optarg ;;
1267 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1269 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1270 mandir
=$ac_optarg ;;
1272 -nfp |
--nfp |
--nf)
1273 # Obsolete; use --without-fp.
1276 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1277 |
--no-cr |
--no-c |
-n)
1280 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1281 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1284 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1285 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1286 |
--oldin |
--oldi |
--old |
--ol |
--o)
1287 ac_prev
=oldincludedir
;;
1288 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1289 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1290 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1291 oldincludedir
=$ac_optarg ;;
1293 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1295 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1296 prefix
=$ac_optarg ;;
1298 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1299 |
--program-pre |
--program-pr |
--program-p)
1300 ac_prev
=program_prefix
;;
1301 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1302 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1303 program_prefix
=$ac_optarg ;;
1305 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1306 |
--program-suf |
--program-su |
--program-s)
1307 ac_prev
=program_suffix
;;
1308 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1309 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1310 program_suffix
=$ac_optarg ;;
1312 -program-transform-name |
--program-transform-name \
1313 |
--program-transform-nam |
--program-transform-na \
1314 |
--program-transform-n |
--program-transform- \
1315 |
--program-transform |
--program-transfor \
1316 |
--program-transfo |
--program-transf \
1317 |
--program-trans |
--program-tran \
1318 |
--progr-tra |
--program-tr |
--program-t)
1319 ac_prev
=program_transform_name
;;
1320 -program-transform-name=* |
--program-transform-name=* \
1321 |
--program-transform-nam=* |
--program-transform-na=* \
1322 |
--program-transform-n=* |
--program-transform-=* \
1323 |
--program-transform=* |
--program-transfor=* \
1324 |
--program-transfo=* |
--program-transf=* \
1325 |
--program-trans=* |
--program-tran=* \
1326 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1327 program_transform_name
=$ac_optarg ;;
1329 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1331 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1332 pdfdir
=$ac_optarg ;;
1334 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1336 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1339 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1340 |
-silent |
--silent |
--silen |
--sile |
--sil)
1343 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1345 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1347 sbindir
=$ac_optarg ;;
1349 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1350 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1351 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1353 ac_prev
=sharedstatedir
;;
1354 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1355 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1356 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1358 sharedstatedir
=$ac_optarg ;;
1360 -site |
--site |
--sit)
1362 -site=* |
--site=* |
--sit=*)
1365 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1367 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1368 srcdir
=$ac_optarg ;;
1370 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1371 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1372 ac_prev
=sysconfdir
;;
1373 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1374 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1375 sysconfdir
=$ac_optarg ;;
1377 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1378 ac_prev
=target_alias
;;
1379 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1380 target_alias
=$ac_optarg ;;
1382 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1385 -version |
--version |
--versio |
--versi |
--vers |
-V)
1386 ac_init_version
=: ;;
1389 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1392 as_fn_error $?
"invalid package name: $ac_useropt"
1393 ac_useropt_orig
=$ac_useropt
1394 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1399 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400 ac_unrecognized_sep
=', ';;
1402 eval with_
$ac_useropt=\
$ac_optarg ;;
1404 -without-* |
--without-*)
1405 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1408 as_fn_error $?
"invalid package name: $ac_useropt"
1409 ac_useropt_orig
=$ac_useropt
1410 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1415 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep
=', ';;
1418 eval with_
$ac_useropt=no
;;
1421 # Obsolete; use --with-x.
1424 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1425 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1426 ac_prev
=x_includes
;;
1427 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1428 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1429 x_includes
=$ac_optarg ;;
1431 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1432 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1433 ac_prev
=x_libraries
;;
1434 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1435 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1436 x_libraries
=$ac_optarg ;;
1438 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1443 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1447 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1449 eval $ac_envvar=\
$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1463 if test -n "$ac_prev"; then
1464 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $?
"missing argument to $ac_option"
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1471 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1476 # Check all directory arguments for consistency.
1477 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1482 eval ac_val
=\$
$ac_var
1483 # Remove trailing slashes.
1486 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\
$ac_val;;
1489 # Be sure to have absolute directory names.
1491 [\\/$
]* | ?
:[\\/]* ) continue;;
1492 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1494 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1502 target
=$target_alias
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x
; then
1506 if test "x$build_alias" = x
; then
1507 cross_compiling
=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1514 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1516 test "$silent" = yes && exec 6>/dev
/null
1519 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di
=`ls -di .` &&
1521 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $?
"working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $?
"pwd does not report name of working directory"
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted
=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir
=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1559 ac_srcdir_defaulted
=no
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1563 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1565 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1577 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1579 for ac_var
in $ac_precious_vars; do
1580 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1582 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1587 # Report the --help message.
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1593 \`configure' configures this package to adapt to many kinds of systems.
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1600 Defaults for the options are specified in brackets.
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1624 For better control, use the options below.
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1656 --build=BUILD configure
for building on BUILD
[guessed
]
1657 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1658 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1662 if test -n "$ac_init_help"; then
1667 --disable-option-checking ignore unrecognized
--enable/--with options
1668 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1669 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1670 --enable-generated-files-in-srcdir
1671 put copies of generated files
in source dir intended
1672 for creating
source tarballs
for users without
1673 texinfo bison or flex
1674 --disable-largefile omit support
for large files
1675 --disable-build-format-warnings
1676 don
't use -Wformat while building GCC
1677 --enable-werror-always enable -Werror despite compiler version
1678 --enable-checking[=LIST]
1679 enable expensive run-time checks. With LIST, enable
1680 only specific categories of checks. Categories are:
1681 yes,no,all,none,release. Flags are:
1682 assert,df,extra,fold,gc,gcac,gimple,misc,
1683 rtlflag,rtl,runtime,tree,valgrind,types
1684 --enable-coverage[=LEVEL]
1685 enable compiler's code coverage collection. Use to
1686 measure compiler performance and
locate unused parts
1687 of the compiler. With LEVEL
, specify optimization.
1688 Values are opt
, noopt
, default is noopt
1689 --enable-gather-detailed-mem-stats
1690 enable detailed memory allocation stats gathering
1691 --enable-valgrind-annotations
1692 enable valgrind runtime interaction
1693 --enable-multilib enable library support
for multiple ABIs
1694 --enable-multiarch enable support
for multiarch paths
1695 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1696 --enable-decimal-float={no
,yes,bid
,dpd
}
1697 enable decimal float extension to C. Selecting
'bid'
1698 or
'dpd' choses
which decimal floating point format
1700 --enable-fixed-point enable fixed-point arithmetic extension to C
1701 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1703 --enable-tls enable or disable generation of tls code overriding
1704 the assembler check
for tls support
1705 --enable-vtable-verify enable vtable verification feature
1706 --disable-analyzer disable
-fanalyzer static analyzer
1707 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1708 GNU Objective-C runtime
1709 --disable-shared don't provide a shared libgcc
1710 --disable-gcov don
't provide libgcov and related host tools
1711 --enable-languages=LIST specify which front-ends to build
1712 --disable-rpath do not hardcode runtime library paths
1713 --enable-sjlj-exceptions
1714 arrange to use setjmp/longjmp exception handling
1715 --enable-secureplt enable -msecure-plt by default for PowerPC
1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717 Default to platform configuration
1718 --enable-large-address-aware
1719 Link mingw executables with --large-address-aware
1720 --enable-leading-mingw64-underscores
1721 enable leading underscores on 64 bit mingw targets
1722 --enable-cld enable -mcld by default for 32bit x86
1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the Registry
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1738 --enable-gnu-indirect-function
1739 enable the use of the @gnu_indirect_function to
1741 --enable-initfini-array use .init_array/.fini_array sections
1742 --enable-comdat enable COMDAT group support
1743 --enable-newlib-nano-formatted-io
1744 Use nano version formatted IO
1746 --enable-standard-branch-protection
1747 enable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749 --disable-standard-branch-protection
1750 disable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1754 --enable-fix-cortex-a53-835769
1755 enable workaround for AArch64 Cortex-A53 erratum
1757 --disable-fix-cortex-a53-835769
1758 disable workaround for AArch64 Cortex-A53 erratum
1762 --enable-fix-cortex-a53-843419
1763 enable workaround for AArch64 Cortex-A53 erratum
1765 --disable-fix-cortex-a53-843419
1766 disable workaround for AArch64 Cortex-A53 erratum
1769 --enable-gnu-unique-object
1770 enable the use of the @gnu_unique_object ELF
1771 extension on glibc systems
1772 --enable-linker-build-id
1773 compiler will always pass --build-id to linker
1774 --enable-libssp enable linking against libssp
1775 --enable-default-ssp enable Stack Smashing Protection as default
1776 --enable-maintainer-mode
1777 enable make rules and dependencies not useful (and
1778 sometimes confusing) to the casual installer
1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1780 thrashing on the build machine
1781 --enable-link-serialization
1782 avoid linking multiple GCC front-ends at once using
1783 make dependencies to avoid thrashing on the build
1785 --enable-version-specific-runtime-libs
1786 specify that runtime libraries should be installed
1787 in a compiler-specific directory
1788 --enable-plugin enable plugin support
1789 --enable-host-shared build host code as shared libraries
1790 --disable-libquadmath-support
1791 disable libquadmath support for Fortran
1792 --enable-default-pie enable Position Independent Executable as default
1793 --enable-cet enable Intel CET in host libraries [default=auto]
1794 --enable-s390-excess-float-precision
1795 on s390 targets, evaluate float with double
1796 precision when in standards-conforming mode
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-build-libsubdir=DIR Directory where to find libraries for build system
1802 --with-local-prefix=DIR specifies directory to put local include
1803 --with-native-system-header-dir=dir
1804 use dir as the directory to look for standard
1805 system header files in. Defaults to /usr/include.
1806 --with-build-sysroot=sysroot
1807 use sysroot as the system root during the build
1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1809 --with-gxx-include-dir=DIR
1810 specifies directory to put g++ header files
1811 --with-gxx-libcxx-include-dir=DIR
1812 specifies directory to find libc++ header files
1813 --with-cpp-install-dir=DIR
1814 install the user visible C preprocessor in DIR
1815 (relative to PREFIX) as well as PREFIX/bin
1816 --with-gnu-ld arrange to work with GNU ld
1817 --with-ld arrange to use the specified ld (full pathname)
1818 --with-demangler-in-ld try to use demangler in GNU ld
1819 --with-dsymutil arrange to use the specified dsymutil (full
1821 --with-gnu-as arrange to work with GNU as
1822 --with-as arrange to use the specified as (full pathname)
1823 --with-stabs arrange to use stabs instead of host debug format
1824 --with-stack-clash-protection-guard-size=size
1825 Set the default stack clash protection guard size
1826 for specific targets as a power of two in bytes.
1827 --with-dwarf2 force the default debug format to be DWARF 2
1828 --with-specs=SPECS add SPECS to driver command-line processing
1829 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1830 --with-bugurl=URL Direct users to URL to report a bug
1831 --with-documentation-root-url=URL
1832 Root for documentation URLs
1833 --with-changes-root-url=URL
1834 Root for GCC changes URLs
1835 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1836 --with-multilib-generator
1837 Multi-libs configuration string (RISC-V only)
1838 --with-zstd=PATH specify prefix directory for installed zstd library.
1839 Equivalent to --with-zstd-include=PATH/include plus
1840 --with-zstd-lib=PATH/lib
1841 --with-zstd-include=PATH
1842 specify directory for installed zstd include files
1843 --with-zstd-lib=PATH specify directory for the installed zstd library
1844 --with-gnu-ld assume the C compiler uses GNU ld default=no
1845 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1846 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1847 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1848 --with-gcc-major-version-only
1849 use only GCC major number
in filesystem paths
1850 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1852 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1853 --with-plugin-ld=[ARG
] specify the plugin linker
1854 --with-glibc-version=M.N
1855 assume GCC used with glibc version M.N or later
1856 --with-long-double-128 use
128-bit long double by default
1857 --with-long-double-format={ieee
,ibm
}
1858 Specify whether PowerPC long double uses IEEE or IBM format
1860 --with-gc={page
,zone
} this option is not supported anymore. It used to
1861 choose the garbage collection mechanism to use with
1863 --with-system-zlib use installed libz
1864 --with-linker-hash-style={sysv
,gnu
,both
}
1865 specify the linker
hash style
1866 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1867 specify the default of
-fdiagnostics-color option
1868 auto-if-env stands
for -fdiagnostics-color=auto
if
1869 GCC_COLOR environment variable is present and
1870 -fdiagnostics-color=never otherwise
1871 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1872 specify the default of
-fdiagnostics-urls option
1873 auto-if-env stands
for -fdiagnostics-urls=auto
if
1874 GCC_URLS or TERM_URLS environment variable is
1875 present and
-fdiagnostics-urls=never otherwise
1877 Some influential environment variables
:
1878 CC C compiler
command
1879 CFLAGS C compiler flags
1880 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1881 nonstandard directory
<lib dir
>
1882 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1883 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1884 you have headers
in a nonstandard directory
<include dir
>
1885 CXX C
++ compiler
command
1886 CXXFLAGS C
++ compiler flags
1887 CXXCPP C
++ preprocessor
1889 GMPLIBS How to link GMP
1890 GMPINC How to
find GMP include files
1891 ISLLIBS How to link isl
1892 ISLINC How to
find isl include files
1894 Use these variables to override the choices made by
`configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1897 Report bugs to the package provider.
1902 if test "$ac_init_help" = "recursive"; then
1903 # If there are subdirs, report their specific --help.
1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905 test -d "$ac_dir" ||
1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1914 # A ".." for each directory in $ac_dir_suffix.
1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1916 case $ac_top_builddir_sub in
1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1921 ac_abs_top_builddir=$ac_pwd
1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923 # for backward compatibility:
1924 ac_top_builddir=$ac_top_build_prefix
1927 .) # We are building in place.
1929 ac_top_srcdir=$ac_top_builddir_sub
1930 ac_abs_top_srcdir=$ac_pwd ;;
1931 [\\/]* | ?:[\\/]* ) # Absolute name.
1932 ac_srcdir=$srcdir$ac_dir_suffix;
1933 ac_top_srcdir=$srcdir
1934 ac_abs_top_srcdir=$srcdir ;;
1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937 ac_top_srcdir=$ac_top_build_prefix$srcdir
1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1942 cd "$ac_dir" || { ac_status=$?; continue; }
1943 # Check for guested configure.
1944 if test -f "$ac_srcdir/configure.gnu"; then
1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947 elif test -f "$ac_srcdir/configure"; then
1949 $SHELL "$ac_srcdir/configure" --help=recursive
1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1953 cd "$ac_pwd" || { ac_status=$?; break; }
1957 test -n "$ac_init_help" && exit $ac_status
1958 if $ac_init_version; then
1961 generated by GNU Autoconf 2.69
1963 Copyright (C) 2012 Free Software Foundation, Inc.
1964 This configure script is free software; the Free Software Foundation
1965 gives unlimited permission to copy, distribute and modify it.
1970 ## ------------------------ ##
1971 ## Autoconf initialization. ##
1972 ## ------------------------ ##
1974 # ac_fn_c_try_compile LINENO
1975 # --------------------------
1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext
1981 if { { ac_try="$ac_compile"
1983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1984 *) ac_try_echo
=$ac_try;;
1986 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_compile") 2>conftest.err
1990 if test -s conftest.err
; then
1991 grep -v '^ *+' conftest.err
>conftest.er1
1992 cat conftest.er1
>&5
1993 mv -f conftest.er1 conftest.err
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest.
$ac_objext; then :
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.
$ac_ext >&5
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status
$ac_retval
2010 } # ac_fn_c_try_compile
2012 # ac_fn_cxx_try_compile LINENO
2013 # ----------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_compile
()
2017 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2018 rm -f conftest.
$ac_objext
2019 if { { ac_try
="$ac_compile"
2021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_cxx_try_compile
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2059 *) ac_try_echo
=$ac_try;;
2061 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2065 if test -s conftest.err
; then
2066 grep -v '^ *+' conftest.err
>conftest.er1
2067 cat conftest.er1
>&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i
&& {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.
$ac_ext >&5
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status
$ac_retval
2085 } # ac_fn_cxx_try_cpp
2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2092 ac_fn_cxx_check_header_mongrel
()
2094 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2095 if eval \
${$3+:} false
; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \
${$3+:} false
; then :
2099 $as_echo_n "(cached) " >&6
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2113 if ac_fn_cxx_try_compile
"$LINENO"; then :
2114 ac_header_compiler
=yes
2116 ac_header_compiler
=no
2118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2129 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2130 ac_header_preproc
=yes
2132 ac_header_preproc
=no
2134 rm -f conftest.err conftest.i conftest.
$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \
${$3+:} false
; then :
2162 $as_echo_n "(cached) " >&6
2164 eval "$3=\$ac_header_compiler"
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_cxx_check_header_mongrel
2174 # ac_fn_cxx_try_run LINENO
2175 # ------------------------
2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2177 # that executables *can* be run.
2178 ac_fn_cxx_try_run
()
2180 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2181 if { { ac_try
="$ac_link"
2183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_link") 2>&5
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2192 { { case "(($ac_try" in
2193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2194 *) ac_try_echo
=$ac_try;;
2196 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_try") 2>&5
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; }; }; then :
2204 $as_echo "$as_me: program exited with status $ac_status" >&5
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.
$ac_ext >&5
2208 ac_retval
=$ac_status
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status
$ac_retval
2214 } # ac_fn_cxx_try_run
2216 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists and can be compiled using the include files in
2219 # INCLUDES, setting the cache variable VAR accordingly.
2220 ac_fn_cxx_check_header_compile
()
2222 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \
${$3+:} false
; then :
2226 $as_echo_n "(cached) " >&6
2228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2233 if ac_fn_cxx_try_compile
"$LINENO"; then :
2238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_cxx_check_header_compile
2247 # ac_fn_c_try_cpp LINENO
2248 # ----------------------
2249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2252 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2253 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } > conftest.i && {
2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2284 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2285 # ----------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2289 ac_fn_cxx_compute_int ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2302 return test_array [0];
2308 if ac_fn_cxx_try_compile "$LINENO"; then :
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2319 return test_array [0];
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2344 static int test_array [1 - 2 * !(($2) < 0)];
2346 return test_array [0];
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2363 return test_array [0];
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2398 return test_array [0];
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2427 FILE *f = fopen ("conftest.val", "w");
2432 long int i = longval ();
2435 fprintf (f, "%ld", i);
2439 unsigned long int i = ulongval ();
2442 fprintf (f, "%lu", i);
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2452 if ac_fn_cxx_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_cxx_compute_int
2467 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2468 # ---------------------------------------------
2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
2470 # variable VAR accordingly.
2471 ac_fn_cxx_check_type ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2492 if ac_fn_cxx_try_compile "$LINENO"; then :
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2505 if ac_fn_cxx_try_compile "$LINENO"; then :
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_cxx_check_type
2521 # ac_fn_c_find_intX_t LINENO BITS VAR
2522 # -----------------------------------
2523 # Finds a signed integer type with width BITS, setting cache variable VAR
2525 ac_fn_c_find_intX_t ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2529 $as_echo_n "checking for int$2_t... " >&6; }
2530 if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2534 # Order is important - never check a type that is potentially smaller
2535 # than half of the expected target width.
2536 for ac_type in int$2_t 'int' 'long int' \
2537 'long long int' 'short int' 'signed char'; do
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $ac_includes_default
2541 enum { N = $2 / 2 - 1 };
2545 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2547 return test_array [0];
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $ac_includes_default
2557 enum { N = $2 / 2 - 1 };
2561 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2562 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2564 return test_array [0];
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2577 eval "$3=\$ac_type" ;;
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 if eval test \"x\$"$3"\" = x"no"; then :
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 } # ac_fn_c_find_intX_t
2597 # ac_fn_cxx_try_link LINENO
2598 # -------------------------
2599 # Try to link conftest.$ac_ext, and return whether this succeeded.
2600 ac_fn_cxx_try_link ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { { ac_try="$ac_link"
2606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2607 *) ac_try_echo
=$ac_try;;
2609 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 $as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_link") 2>conftest.err
2613 if test -s conftest.err
; then
2614 grep -v '^ *+' conftest.err
>conftest.er1
2615 cat conftest.er1
>&5
2616 mv -f conftest.er1 conftest.err
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; } && {
2620 test -z "$ac_cxx_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest
$ac_exeext && {
2623 test "$cross_compiling" = yes ||
2624 test -x conftest
$ac_exeext
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.
$ac_ext >&5
2633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2635 # interfere with the next link command; also delete a directory that is
2636 # left behind by Apple's compiler. We do this before executing the actions.
2637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 as_fn_set_status
$ac_retval
2641 } # ac_fn_cxx_try_link
2643 # ac_fn_c_find_uintX_t LINENO BITS VAR
2644 # ------------------------------------
2645 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2647 ac_fn_c_find_uintX_t
()
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 uint$2_t" >&5
2651 $as_echo_n "checking for uint$2_t... " >&6; }
2652 if eval \
${$3+:} false
; then :
2653 $as_echo_n "(cached) " >&6
2656 # Order is important - never check a type that is potentially smaller
2657 # than half of the expected target width.
2658 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2659 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $ac_includes_default
2666 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2668 return test_array [0];
2674 if ac_fn_cxx_try_compile
"$LINENO"; then :
2679 eval "$3=\$ac_type" ;;
2682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 if eval test \"x\$
"$3"\" = x
"no"; then :
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_find_uintX_t
2697 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2698 # ------------------------------------------------
2699 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2700 ac_fn_cxx_check_header_preproc
()
2702 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704 $as_echo_n "checking for $2... " >&6; }
2705 if eval \
${$3+:} false
; then :
2706 $as_echo_n "(cached) " >&6
2708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2712 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2717 rm -f conftest.err conftest.i conftest.
$ac_ext
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724 } # ac_fn_cxx_check_header_preproc
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func
()
2731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \
${$3+:} false
; then :
2735 $as_echo_n "(cached) " >&6
2737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2741 #define $2 innocuous_$2
2743 /* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char $2 (); below.
2745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 <limits.h> exists even on freestanding compilers. */
2749 # include <limits.h>
2751 # include <assert.h>
2756 /* Override any GCC internal prototype to avoid an error.
2757 Use char because int might match the return type of a GCC
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined __stub_$2 || defined __stub___$2
2778 if ac_fn_cxx_try_link
"$LINENO"; then :
2783 rm -f core conftest.err conftest.
$ac_objext \
2784 conftest
$ac_exeext conftest.
$ac_ext
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 } # ac_fn_cxx_check_func
2793 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2794 # -----------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2797 ac_fn_cxx_check_decl
()
2799 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2800 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2801 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \
${$3+:} false
; then :
2805 $as_echo_n "(cached) " >&6
2807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2813 #ifndef $as_decl_name
2815 (void) $as_decl_use;
2817 (void) $as_decl_name;
2825 if ac_fn_cxx_try_compile
"$LINENO"; then :
2830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837 } # ac_fn_cxx_check_decl
2839 # ac_fn_c_try_link LINENO
2840 # -----------------------
2841 # Try to link conftest.$ac_ext, and return whether this succeeded.
2844 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2845 rm -f conftest.
$ac_objext conftest
$ac_exeext
2846 if { { ac_try
="$ac_link"
2848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_link") 2>conftest.err
2855 if test -s conftest.err; then
2856 grep -v '^ *+' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
2858 mv -f conftest.er1 conftest.err
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest$ac_exeext && {
2865 test "$cross_compiling" = yes ||
2866 test -x conftest$ac_exeext
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2877 # interfere with the next link command; also delete a directory that is
2878 # left behind by Apple's compiler. We do this before executing the actions.
2879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881 as_fn_set_status $ac_retval
2883 } # ac_fn_c_try_link
2885 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2886 # ----------------------------------------------
2887 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2888 ac_fn_c_check_header_preproc ()
2890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892 $as_echo_n "checking for $2... " >&6; }
2893 if eval \${$3+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2900 if ac_fn_c_try_cpp "$LINENO"; then :
2905 rm -f conftest.err conftest.i conftest.$ac_ext
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 } # ac_fn_c_check_header_preproc
2914 # ac_fn_c_check_func LINENO FUNC VAR
2915 # ----------------------------------
2916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2917 ac_fn_c_check_func ()
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2921 $as_echo_n "checking for $2... " >&6; }
2922 if eval \${$3+:} false; then :
2923 $as_echo_n "(cached) " >&6
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2929 #define $2 innocuous_$2
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char $2 (); below.
2933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 <limits.h> exists even on freestanding compilers. */
2937 # include <limits.h>
2939 # include <assert.h>
2944 /* Override any GCC internal prototype to avoid an error.
2945 Use char because int might match the return type of a GCC
2946 builtin and then its argument prototype would still apply. */
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined __stub_$2 || defined __stub___$2
2966 if ac_fn_c_try_link "$LINENO"; then :
2971 rm -f core conftest.err conftest.$ac_objext \
2972 conftest$ac_exeext conftest.$ac_ext
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979 } # ac_fn_c_check_func
2980 cat >config.log <<_ACEOF
2981 This file contains any messages produced by compilers while
2982 running configure, to aid debugging if configure makes a mistake.
2984 It was created by $as_me, which was
2985 generated by GNU Autoconf 2.69. Invocation command line was
2997 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2998 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2999 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3000 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3001 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3003 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3004 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3006 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3007 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3008 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3009 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3010 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3011 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3012 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 $as_echo "PATH: $as_dir"
3037 # Keep a trace of the command line.
3038 # Strip out --no-create and --no-recursion so they do not pile up.
3039 # Strip out --silent because we don't want to record it for future runs.
3040 # Also quote any args containing shell meta-characters.
3041 # Make two passes to allow for proper duplicate-argument suppression.
3045 ac_must_keep_next=false
3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053 | -silent | --silent | --silen | --sile | --sil)
3056 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3061 as_fn_append ac_configure_args1 " '$ac_arg'"
3062 if test $ac_must_keep_next = true; then
3063 ac_must_keep_next=false # Got value, back to normal.
3066 *=* | --config-cache | -C | -disable-* | --disable-* \
3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069 | -with-* | --with-* | -without-* | --without-* | --x)
3070 case "$ac_configure_args0 " in
3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3074 -* ) ac_must_keep_next=true ;;
3077 as_fn_append ac_configure_args " '$ac_arg'"
3082 { ac_configure_args0=; unset ac_configure_args0;}
3083 { ac_configure_args1=; unset ac_configure_args1;}
3085 # When interrupted or exit'd, cleanup temporary files, and complete
3086 # config.log. We remove comments because anyway the quotes in there
3087 # would cause problems or look ugly.
3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090 trap 'exit_status=$?
3091 # Save into config.log some information that might help in debugging.
3095 $as_echo "## ---------------- ##
3096 ## Cache variables. ##
3097 ## ---------------- ##"
3099 # The following way of writing the cache mishandles newlines in values,
3101 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3102 eval ac_val=\$$ac_var
3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3110 _ | IFS | as_nl) ;; #(
3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112 *) { eval $ac_var=; unset $ac_var;} ;;
3117 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3118 *${as_nl}ac_space=\ *)
3120 "s/'\''/'\''\\\\'\'''\''/g;
3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3131 $as_echo "## ----------------- ##
3132 ## Output variables. ##
3133 ## ----------------- ##"
3135 for ac_var in $ac_subst_vars
3137 eval ac_val=\$$ac_var
3139 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3141 $as_echo "$ac_var='\''$ac_val'\''"
3145 if test -n "$ac_subst_files"; then
3146 $as_echo "## ------------------- ##
3147 ## File substitutions. ##
3148 ## ------------------- ##"
3150 for ac_var in $ac_subst_files
3152 eval ac_val=\$$ac_var
3154 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3156 $as_echo "$ac_var='\''$ac_val'\''"
3161 if test -s confdefs.h; then
3162 $as_echo "## ----------- ##
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3185 $as_echo "/* confdefs.h */" > confdefs.h
3187 # Predefined preprocessor variables.
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3218 if test -n "$CONFIG_SITE"; then
3219 # We do not want a PATH search for config.site.
3220 case $CONFIG_SITE in #((
3221 -*) ac_site_file1=./$CONFIG_SITE;;
3222 */*) ac_site_file1=$CONFIG_SITE;;
3223 *) ac_site_file1=./$CONFIG_SITE;;
3225 elif test "x$prefix" != xNONE; then
3226 ac_site_file1=$prefix/share/config.site
3227 ac_site_file2=$prefix/etc/config.site
3229 ac_site_file1=$ac_default_prefix/share/config.site
3230 ac_site_file2=$ac_default_prefix/etc/config.site
3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3234 test "x$ac_site_file" = xNONE && continue
3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238 sed 's/^/| /' "$ac_site_file" >&5
3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "failed to load site
script $ac_site_file
3243 See \
`config.log' for more details" "$LINENO" 5; }
3247 if test -r "$cache_file"; then
3248 # Some versions of bash will fail to source /dev/null (special files
3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
3254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255 *) . "./$cache_file";;
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
3264 # Check that the precious variables saved in the cache have kept the same
3266 ac_cache_corrupted=false
3267 for ac_var in $ac_precious_vars; do
3268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3269 eval ac_new_set=\$ac_env_${ac_var}_set
3270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3271 eval ac_new_val=\$ac_env_${ac_var}_value
3272 case $ac_old_set,$ac_new_set in
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3275 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3276 ac_cache_corrupted=: ;;
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3279 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3283 if test "x$ac_old_val" != "x$ac_new_val"; then
3284 # differences in whitespace do not lead to failure.
3285 ac_old_val_w=`echo x
$ac_old_val`
3286 ac_new_val_w=`echo x
$ac_new_val`
3287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3290 ac_cache_corrupted=:
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3294 eval $ac_var=\$ac_old_val
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3297 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3302 # Pass precious variables to config.status.
3303 if test "$ac_new_set" = set; then
3305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3306 *) ac_arg=$ac_var=$ac_new_val ;;
3308 case " $ac_configure_args " in
3309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3314 if $ac_cache_corrupted; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3319 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3321 ## -------------------- ##
3322 ## Main body of script. ##
3323 ## -------------------- ##
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3339 gcc_version=`cat $srcdir/BASE-VER
`
3341 # Determine the host, build, and target systems
3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344 if test -f "$ac_dir/install-sh"; then
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3348 elif test -f "$ac_dir/install.sh"; then
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3352 elif test -f "$ac_dir/shtool"; then
3354 ac_install_sh="$ac_aux_dir/shtool install -c"
3358 if test -z "$ac_aux_dir"; then
3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3362 # These three variables are undocumented and unsupported,
3363 # and are intended to be withdrawn in a future Autoconf release.
3364 # They can cause serious problems if a builder's source tree is in a directory
3365 # whose full name contains unusual characters.
3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3371 # Make sure we can run config.sub.
3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if ${ac_cv_build+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390 $as_echo "$ac_cv_build" >&6; }
3391 case $ac_cv_build in
3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3396 ac_save_IFS=$IFS; IFS='-'
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3406 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410 $as_echo_n "checking host system type... " >&6; }
3411 if ${ac_cv_host+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 if test "x$host_alias" = x; then
3415 ac_cv_host=$ac_cv_build
3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423 $as_echo "$ac_cv_host" >&6; }
3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3429 ac_save_IFS=$IFS; IFS='-'
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3439 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3443 $as_echo_n "checking target system type... " >&6; }
3444 if ${ac_cv_target+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 if test "x$target_alias" = x; then
3448 ac_cv_target=$ac_cv_host
3450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3456 $as_echo "$ac_cv_target" >&6; }
3457 case $ac_cv_target in
3459 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3461 target=$ac_cv_target
3462 ac_save_IFS=$IFS; IFS='-'
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3472 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3475 # The aliases save the names the user supplied, while $host etc.
3476 # will get canonicalized.
3477 test -n "$target_alias" &&
3478 test "$program_prefix$program_suffix$program_transform_name" = \
3480 program_prefix=${target_alias}-
3482 # Determine the noncanonical host name, for Ada.
3483 case ${build_alias} in
3484 "") build_noncanonical=${build} ;;
3485 *) build_noncanonical=${build_alias} ;;
3488 case ${host_alias} in
3489 "") host_noncanonical=${build_noncanonical} ;;
3490 *) host_noncanonical=${host_alias} ;;
3496 # Determine the noncanonical target name, for directory use.
3497 case ${target_alias} in
3498 "") target_noncanonical=${host_noncanonical} ;;
3499 *) target_noncanonical=${target_alias} ;;
3505 # Used for constructing correct paths for offload compilers.
3506 real_target_noncanonical=${target_noncanonical}
3509 # Determine the target- and build-specific subdirectories
3511 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3512 # have matching libraries, they should use host libraries: Makefile.tpl
3513 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3514 # However, they still use the build modules, because the corresponding
3515 # host modules (e.g. bison) are only built for the host when bootstrap
3517 # - build_subdir is where we find build modules, and never changes.
3518 # - build_libsubdir is where we find build libraries, and can be overridden.
3520 # Prefix 'build-' so this never conflicts with target_subdir.
3521 build_subdir="build-${build_noncanonical}"
3523 # Check whether --with-build-libsubdir was given.
3524 if test "${with_build_libsubdir+set}" = set; then :
3525 withval=$with_build_libsubdir; build_libsubdir="$withval"
3527 build_libsubdir="$build_subdir"
3530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3531 if ( test $srcdir = . && test -d gcc ) \
3532 || test -d $srcdir/../host-${host_noncanonical}; then
3533 host_subdir="host-${host_noncanonical}"
3538 target_subdir=${target_noncanonical}
3541 # Set program_transform_name
3542 test "$program_prefix" != NONE &&
3543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3544 # Use a double $ so make ignores it.
3545 test "$program_suffix" != NONE &&
3546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3547 # Double any \ or $.
3548 # By default was `s
,x
,x
', remove it if useless.
3549 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3553 # Check for bogus environment variables.
3554 # Test if LIBRARY_PATH contains the notation for the current directory
3555 # since this would lead to problems installing/building glibc.
3556 # LIBRARY_PATH contains the current directory if one of the following
3558 # - one of the terminals (":" and ";") is the first or last sign
3559 # - two terminals occur directly after each other
3560 # - the path contains an element with a dot in it
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3562 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3563 case ${LIBRARY_PATH} in
3564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3565 library_path_setting="contains current directory"
3568 library_path_setting="ok"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3572 $as_echo "$library_path_setting" >&6; }
3573 if test "$library_path_setting" != "ok"; then
3575 *** LIBRARY_PATH shouldn't contain the current directory when
3576 *** building gcc. Please change the environment variable
3577 *** and run configure again.
" "$LINENO" 5
3580 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3581 # since this would lead to problems installing/building glibc.
3582 # GCC_EXEC_PREFIX contains the current directory if one of the following
3584 # - one of the terminals (":" and ";") is the first or last sign
3585 # - two terminals occur directly after each other
3586 # - the path contains an element with a dot in it
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3588 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3589 case ${GCC_EXEC_PREFIX} in
3590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3591 gcc_exec_prefix_setting="contains current directory
"
3594 gcc_exec_prefix_setting="ok
"
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3598 $as_echo "$gcc_exec_prefix_setting" >&6; }
3599 if test "$gcc_exec_prefix_setting" != "ok
"; then
3601 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3602 *** building gcc. Please change the environment variable
3603 *** and run configure again." "$LINENO" 5
3610 # Specify the local prefix
3613 # Check whether --with-local-prefix was given.
3614 if test "${with_local_prefix+set}" = set; then :
3615 withval=$with_local_prefix; case "${withval}" in
3616 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3618 *) local_prefix=$with_local_prefix ;;
3623 # Default local prefix if it is empty
3624 if test x$local_prefix = x; then
3625 local_prefix=/usr/local
3629 # Check whether --with-native-system-header-dir was given.
3630 if test "${with_native_system_header_dir+set}" = set; then :
3631 withval=$with_native_system_header_dir;
3632 case ${with_native_system_header_dir} in
3633 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3634 /* | [A-Za-z]:[\\/]*) ;;
3635 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3637 configured_native_system_header_dir="${withval}"
3640 configured_native_system_header_dir=
3645 # Check whether --with-build-sysroot was given.
3646 if test "${with_build_sysroot+set}" = set; then :
3647 withval=$with_build_sysroot; if test x"$withval" != x ; then
3648 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3651 SYSROOT_CFLAGS_FOR_TARGET=
3656 if test "x$prefix" = xNONE; then
3657 test_prefix=/usr/local
3661 if test "x$exec_prefix" = xNONE; then
3662 test_exec_prefix=$test_prefix
3664 test_exec_prefix=$exec_prefix
3668 # Check whether --with-sysroot was given.
3669 if test "${with_sysroot+set}" = set; then :
3670 withval=$with_sysroot;
3671 case ${with_sysroot} in
3673 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3675 case ${with_sysroot} in
3676 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3677 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3680 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3681 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3683 case ${TARGET_SYSTEM_ROOT} in
3684 "${test_prefix}"|"${test_prefix}/"*|\
3685 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3686 '${prefix}'|'${prefix}/'*|\
3687 '${exec_prefix}'|'${exec_prefix}/'*)
3688 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3689 TARGET_SYSTEM_ROOT_DEFINE="$t"
3696 TARGET_SYSTEM_ROOT_DEFINE=
3697 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3705 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3706 # passed in by the toplevel make and thus we'd get different behavior
3707 # depending on where we built the sources.
3708 gcc_gxx_include_dir
=
3709 # Specify the g++ header file directory
3711 # Check whether --with-gxx-include-dir was given.
3712 if test "${with_gxx_include_dir+set}" = set; then :
3713 withval
=$with_gxx_include_dir; case "${withval}" in
3714 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3716 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3721 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3722 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3723 # relative to the sysroot.
3724 gcc_gxx_include_dir_add_sysroot
=0
3726 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3727 if test x
${gcc_gxx_include_dir} = x
; then
3728 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3729 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3731 libstdcxx_incdir
='include/c++/$(version)'
3732 if test x
$host != x
$target; then
3733 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3735 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3737 elif test "${with_sysroot+set}" = set; then
3738 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3739 if test "${gcc_gxx_without_sysroot}"; then
3740 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3741 gcc_gxx_include_dir_add_sysroot
=1
3745 # Configuration for an alternate set of C++ headers.
3746 gcc_gxx_libcxx_include_dir
=
3747 # Specify the alternate g++ header file directory
3749 # Check whether --with-gxx-libcxx-include-dir was given.
3750 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3751 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3752 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3754 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3759 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3760 # check to see if the latter starts with the former and, upon success, compute
3761 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3762 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3764 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3766 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3769 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3772 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3773 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3774 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3775 gcc_gxx_libcxx_include_dir
='${libsubdir}/libc++_include/c++/v1'
3777 libcxx_incdir
='libc++_include/c++/$(version)/v1'
3778 if test x
$host != x
$target; then
3779 libcxx_incdir
="$target_alias/$libcxx_incdir"
3781 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3783 elif test "${with_sysroot+set}" = set; then
3784 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3785 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3786 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3787 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3792 # Check whether --with-cpp_install_dir was given.
3793 if test "${with_cpp_install_dir+set}" = set; then :
3794 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3795 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3796 elif test x
$withval != xno
; then
3797 cpp_install_dir
=$withval
3802 # We would like to our source tree to be readonly. However when releases or
3803 # pre-releases are generated, the flex/bison generated files as well as the
3804 # various formats of manuals need to be included along with the rest of the
3805 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3809 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3810 # Check whether --enable-generated-files-in-srcdir was given.
3811 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3812 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3814 generated_files_in_srcdir
=no
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3819 $as_echo "$generated_files_in_srcdir" >&6; }
3821 if test "$generated_files_in_srcdir" = "yes"; then
3828 # -------------------
3829 # Find default linker
3830 # -------------------
3834 # Check whether --with-gnu-ld was given.
3835 if test "${with_gnu_ld+set}" = set; then :
3836 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3844 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3845 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3853 # With pre-defined ld
3855 # Check whether --with-ld was given.
3856 if test "${with_ld+set}" = set; then :
3857 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3860 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3861 if test ! -x "$DEFAULT_LINKER"; then
3862 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3863 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3865 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3869 cat >>confdefs.h
<<_ACEOF
3870 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3876 $as_echo_n "checking whether a default linker was specified... " >&6; }
3877 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3878 if test x
"$gnu_ld_flag" = x
"no"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3880 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3883 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3890 # With demangler in GNU ld
3892 # Check whether --with-demangler-in-ld was given.
3893 if test "${with_demangler_in_ld+set}" = set; then :
3894 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3900 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3902 # Check whether --with-dsymutil was given.
3903 if test "${with_dsymutil+set}" = set; then :
3904 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3909 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3910 if test ! -x "$DEFAULT_DSYMUTIL"; then
3911 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3913 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3918 cat >>confdefs.h
<<_ACEOF
3919 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3925 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3926 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3928 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3934 # ----------------------
3935 # Find default assembler
3936 # ----------------------
3940 # Check whether --with-gnu-as was given.
3941 if test "${with_gnu_as+set}" = set; then :
3942 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3949 # Check whether --with-as was given.
3950 if test "${with_as+set}" = set; then :
3951 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3954 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3955 if test ! -x "$DEFAULT_ASSEMBLER"; then
3956 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3957 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3961 cat >>confdefs.h
<<_ACEOF
3962 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3968 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3969 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3970 if test x
"$gas_flag" = x
"no"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3972 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3975 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3986 # If a non-executable a.out is present (e.g. created by GNU as above even if
3987 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3988 # file, even when creating an executable, so an execution test fails.
3989 # Remove possible default executable files to avoid this.
3991 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3992 # Autoconf includes it.
3993 rm -f a.out a.exe b.out
3995 # Find the native compiler
3997 ac_cpp
='$CPP $CPPFLAGS'
3998 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4003 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_CC+:} false
; then :
4007 $as_echo_n "(cached) " >&6
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC
="$CC" # Let the user override the test.
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir
=.
4017 for ac_exec_ext
in '' $ac_executable_extensions; do
4018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test -z "$ac_cv_prog_CC"; then
4042 # Extract the first word of "gcc", so it can be a program name with args.
4043 set dummy gcc
; ac_word
=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4047 $as_echo_n "(cached) " >&6
4049 if test -n "$ac_ct_CC"; then
4050 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir
=.
4057 for ac_exec_ext
in '' $ac_executable_extensions; do
4058 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_CC
="gcc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4070 if test -n "$ac_ct_CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4072 $as_echo "$ac_ct_CC" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4078 if test "x$ac_ct_CC" = x
; then
4081 case $cross_compiling:$ac_tool_warned in
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned
=yes ;;
4093 if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4096 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CC+:} false
; then :
4100 $as_echo_n "(cached) " >&6
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC
="$CC" # Let the user override the test.
4105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir
=.
4110 for ac_exec_ext
in '' $ac_executable_extensions; do
4111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 if test -n "$CC"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4125 $as_echo "$CC" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4134 if test -z "$CC"; then
4135 # Extract the first word of "cc", so it can be a program name with args.
4136 set dummy cc
; ac_word
=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_CC+:} false
; then :
4140 $as_echo_n "(cached) " >&6
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC
="$CC" # Let the user override the test.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4154 ac_prog_rejected
=yes
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 if test $ac_prog_rejected = yes; then
4166 # We found a bogon in the path, so make sure we never use it.
4167 set dummy
$ac_cv_prog_CC
4169 if test $# != 0; then
4170 # We chose a different compiler from the bogus one.
4171 # However, it has the same basename, so the bogon will be chosen
4172 # first if we set CC to just the basename; use the full file name.
4174 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4190 if test -z "$CC"; then
4191 if test -n "$ac_tool_prefix"; then
4192 for ac_prog
in cl.exe
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false
; then :
4199 $as_echo_n "(cached) " >&6
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC
="$CC" # Let the user override the test.
4204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir
=.
4209 for ac_exec_ext
in '' $ac_executable_extensions; do
4210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4231 test -n "$CC" && break
4234 if test -z "$CC"; then
4236 for ac_prog
in cl.exe
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy
$ac_prog; ac_word
=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4243 $as_echo_n "(cached) " >&6
4245 if test -n "$ac_ct_CC"; then
4246 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_CC
="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4268 $as_echo "$ac_ct_CC" >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$ac_ct_CC" && break
4278 if test "x$ac_ct_CC" = x
; then
4281 case $cross_compiling:$ac_tool_warned in
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned
=yes ;;
4294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 as_fn_error $?
"no acceptable C compiler found in \$PATH
4297 See \`config.log' for more details" "$LINENO" 5; }
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4303 for ac_option
in --version -v -V -qversion; do
4304 { { ac_try
="$ac_compiler $ac_option >&5"
4306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4313 if test -s conftest.err; then
4315 ... rest of stderr output deleted ...
4316 10q' conftest.err >conftest.er1
4317 cat conftest.er1 >&5
4319 rm -f conftest.er1 conftest.err
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; }
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4341 $as_echo_n "checking whether the C compiler works... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4348 for ac_file in $ac_files
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4357 if { { ac_try="$ac_link_default"
4359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4360 *) ac_try_echo
=$ac_try;;
4362 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363 $as_echo "$ac_try_echo"; } >&5
4364 (eval "$ac_link_default") 2>&5
4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; then :
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4373 for ac_file
in $ac_files ''
4375 test -f "$ac_file" ||
continue
4377 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4380 # We found the default executable, but exeext='' is most
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4386 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4398 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4403 if test -z "$ac_file"; then :
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.
$ac_ext >&5
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error
77 "C compiler cannot create executables
4412 See \`config.log' for more details" "$LINENO" 5; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4418 $as_echo_n "checking for C compiler default output file name... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420 $as_echo "$ac_file" >&6; }
4421 ac_exeext
=$ac_cv_exeext
4423 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4424 ac_clean_files
=$ac_clean_files_save
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4426 $as_echo_n "checking for suffix of executables... " >&6; }
4427 if { { ac_try
="$ac_link"
4429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_link") 2>&5
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; then :
4438 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4439 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4440 # work properly (i.e., refer to `conftest.exe'), while it won't with
4442 for ac_file
in conftest.exe conftest conftest.
*; do
4443 test -f "$ac_file" ||
continue
4445 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4446 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4455 See \`config.log' for more details" "$LINENO" 5; }
4457 rm -f conftest conftest
$ac_cv_exeext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4459 $as_echo "$ac_cv_exeext" >&6; }
4461 rm -f conftest.
$ac_ext
4462 EXEEXT
=$ac_cv_exeext
4464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4470 FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4477 ac_clean_files
="$ac_clean_files conftest.out"
4478 # Check that the compiler produces executables we can run. If not, either
4479 # the compiler is broken, or we cross compile.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481 $as_echo_n "checking whether we are cross compiling... " >&6; }
4482 if test "$cross_compiling" != yes; then
4483 { { ac_try
="$ac_link"
4485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494 if { ac_try='./conftest$ac_cv_exeext'
4495 { { case "(($ac_try" in
4496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4497 *) ac_try_echo
=$ac_try;;
4499 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; }; then
4507 if test "$cross_compiling" = maybe
; then
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error $?
"cannot run C compiled programs.
4513 If you meant to cross compile, use \`--host'.
4514 See \`config.log' for more details" "$LINENO" 5; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519 $as_echo "$cross_compiling" >&6; }
4521 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4522 ac_clean_files
=$ac_clean_files_save
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524 $as_echo_n "checking for suffix of object files... " >&6; }
4525 if ${ac_cv_objext+:} false
; then :
4526 $as_echo_n "(cached) " >&6
4528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 rm -f conftest.o conftest.obj
4540 if { { ac_try
="$ac_compile"
4542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 $as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_compile") 2>&5
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }; then :
4551 for ac_file in conftest.o conftest.obj conftest.*; do
4552 test -f "$ac_file" || continue;
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4560 $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4566 See \
`config.log' for more details" "$LINENO" 5; }
4568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4571 $as_echo "$ac_cv_objext" >&6; }
4572 OBJEXT=$ac_cv_objext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4576 if ${ac_cv_c_compiler_gnu+:} false; then :
4577 $as_echo_n "(cached) " >&6
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4593 if ac_fn_c_try_compile "$LINENO"; then :
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4604 if test $ac_compiler_gnu = yes; then
4609 ac_test_CFLAGS=${CFLAGS+set}
4610 ac_save_CFLAGS=$CFLAGS
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4613 if ${ac_cv_prog_cc_g+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 ac_save_c_werror_flag=$ac_c_werror_flag
4617 ac_c_werror_flag=yes
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4631 if ac_fn_c_try_compile "$LINENO"; then :
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4646 if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_c_werror_flag=$ac_save_c_werror_flag
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4662 if ac_fn_c_try_compile "$LINENO"; then :
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4673 $as_echo "$ac_cv_prog_cc_g" >&6; }
4674 if test "$ac_test_CFLAGS" = set; then
4675 CFLAGS=$ac_save_CFLAGS
4676 elif test $ac_cv_prog_cc_g = yes; then
4677 if test "$GCC" = yes; then
4683 if test "$GCC" = yes; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691 if ${ac_cv_prog_cc_c89+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 ac_cv_prog_cc_c89=no
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702 struct buf { int x; };
4703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704 static char *e (p, i)
4710 static char *f (char * (*g) (char **, int), char **p, ...)
4715 s = g (p, va_arg (v,int));
4720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
4723 as 'x'. The following induces an error, until -std is added to get
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
4726 that's true only with -std. */
4727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734 int test (int i, double x);
4735 struct s1 {int (*f) (int a);};
4736 struct s2 {int (*f) (double a);};
4737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 CC="$ac_save_CC $ac_arg"
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
4755 rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
4758 rm -f conftest.$ac_ext
4763 case "x$ac_cv_prog_cc_c89" in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 $as_echo "none needed" >&6; } ;;
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769 $as_echo "unsupported" >&6; } ;;
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4775 if test "x$ac_cv_prog_cc_c89" != xno; then :
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_CXX+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CXX" && break
4837 if test -z "$CXX"; then
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869 if test -n "$ac_ct_CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871 $as_echo "$ac_ct_CXX" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CXX" && break
4881 if test "x$ac_ct_CXX" = x; then
4884 case $cross_compiling:$ac_tool_warned in
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4896 # Provide some information about the compiler.
4897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4900 for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4904 *) ac_try_echo
=$ac_try;;
4906 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907 $as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4910 if test -s conftest.err
; then
4912 ... rest of stderr output deleted ...
4913 10q' conftest.err
>conftest.er1
4914 cat conftest.er1
>&5
4916 rm -f conftest.er1 conftest.err
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4924 $as_echo_n "(cached) " >&6
4926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4940 if ac_fn_cxx_try_compile
"$LINENO"; then :
4945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4946 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4956 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4957 ac_save_CXXFLAGS
=$CXXFLAGS
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960 if ${ac_cv_prog_cxx_g+:} false
; then :
4961 $as_echo_n "(cached) " >&6
4963 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag
=yes
4967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4978 if ac_fn_cxx_try_compile
"$LINENO"; then :
4979 ac_cv_prog_cxx_g
=yes
4982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4993 if ac_fn_cxx_try_compile
"$LINENO"; then :
4996 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5009 if ac_fn_cxx_try_compile
"$LINENO"; then :
5010 ac_cv_prog_cxx_g
=yes
5012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5017 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5021 if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS
=$ac_save_CXXFLAGS
5023 elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5030 if test "$GXX" = yes; then
5037 ac_cpp
='$CPP $CPPFLAGS'
5038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5047 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_GNATBIND+:} false
; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$GNATBIND"; then
5054 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 GNATBIND
=$ac_cv_prog_GNATBIND
5074 if test -n "$GNATBIND"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076 $as_echo "$GNATBIND" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5084 if test -z "$ac_cv_prog_GNATBIND"; then
5085 ac_ct_GNATBIND
=$GNATBIND
5086 # Extract the first word of "gnatbind", so it can be a program name with args.
5087 set dummy gnatbind
; ac_word
=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5091 $as_echo_n "(cached) " >&6
5093 if test -n "$ac_ct_GNATBIND"; then
5094 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir
=.
5101 for ac_exec_ext
in '' $ac_executable_extensions; do
5102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5114 if test -n "$ac_ct_GNATBIND"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116 $as_echo "$ac_ct_GNATBIND" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5122 if test "x$ac_ct_GNATBIND" = x
; then
5125 case $cross_compiling:$ac_tool_warned in
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned
=yes ;;
5131 GNATBIND
=$ac_ct_GNATBIND
5134 GNATBIND
="$ac_cv_prog_GNATBIND"
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5139 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$GNATMAKE"; then
5146 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 GNATMAKE
=$ac_cv_prog_GNATMAKE
5166 if test -n "$GNATMAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168 $as_echo "$GNATMAKE" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 if test -z "$ac_cv_prog_GNATMAKE"; then
5177 ac_ct_GNATMAKE
=$GNATMAKE
5178 # Extract the first word of "gnatmake", so it can be a program name with args.
5179 set dummy gnatmake
; ac_word
=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5183 $as_echo_n "(cached) " >&6
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir
=.
5193 for ac_exec_ext
in '' $ac_executable_extensions; do
5194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5206 if test -n "$ac_ct_GNATMAKE"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208 $as_echo "$ac_ct_GNATMAKE" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5214 if test "x$ac_ct_GNATMAKE" = x
; then
5217 case $cross_compiling:$ac_tool_warned in
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned
=yes ;;
5223 GNATMAKE
=$ac_ct_GNATMAKE
5226 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5230 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5231 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5232 $as_echo_n "(cached) " >&6
5234 cat >conftest.adb
<<EOF
5235 procedure conftest is begin null; end conftest;
5237 acx_cv_cc_gcc_supports_ada
=no
5238 # There is a bug in old released versions of GCC which causes the
5239 # driver to exit successfully when the appropriate language module
5240 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5241 # Therefore we must check for the error message as well as an
5242 # unsuccessful exit.
5243 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5244 # given a .adb file, but produce no object file. So we must check
5245 # if an object file was really produced to guard against this.
5246 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5247 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5248 acx_cv_cc_gcc_supports_ada
=yes
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5253 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5255 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5262 # Do configure tests with the C++ compiler, since that's what we build with.
5264 ac_cpp
='$CXXCPP $CPPFLAGS'
5265 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5270 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5271 # optimizations to be activated explicitly by the toplevel.
5273 */prev-gcc
/xgcc
*) ;;
5274 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5275 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5280 # Determine PICFLAG for target gnatlib.
5286 # PIC is the default on some targets or must not be used.
5288 # For darwin, common symbols are not allowed in MH_DYLIB files
5290 # If we are using a compiler supporting mdynamic-no-pic
5291 # and the option has been tested as safe to add, then cancel
5292 # it here, since the code generated is incompatible with shared
5294 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5295 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5299 # PIC is the default.
5302 # PIC is the default for 64-bit PA HP-UX.
5304 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5306 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5308 i
[34567]86-*-interix[3-9]*)
5309 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5310 # Instead, we relocate shared libraries at runtime.
5312 i
[34567]86-*-nto-qnx*)
5313 # QNX uses GNU C++, but need to define -shared option too, otherwise
5315 PICFLAG_FOR_TARGET
='-fPIC -shared'
5317 i
[34567]86-pc-msdosdjgpp*)
5318 # DJGPP does not support shared libraries at all.
5321 # On IA64 HP-UX, PIC is the default but the pic flag
5322 # sets the default TLS model and affects inlining.
5323 PICFLAG_FOR_TARGET
=-fPIC
5326 # PIC is the default.
5328 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5329 # All AIX code is PIC.
5332 # Some targets support both -fPIC and -fpic, but prefer the latter.
5334 i
[34567]86-*-* | x86_64-
*-*)
5335 PICFLAG_FOR_TARGET
=-fpic
5337 # FIXME: Override -fPIC default in libgcc only?
5338 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5339 PICFLAG_FOR_TARGET
=-fpic
5341 # FIXME: Simplify to sh*-*-netbsd*?
5342 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5343 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5344 PICFLAG_FOR_TARGET
=-fpic
5346 # Default to -fPIC unless specified otherwise.
5348 PICFLAG_FOR_TARGET
=-fPIC
5352 # If the user explicitly uses -fpic/-fPIC, keep that.
5353 case "${CFLAGS_FOR_TARGET}" in
5355 PICFLAG_FOR_TARGET
=-fpic
5358 PICFLAG_FOR_TARGET
=-fPIC
5364 # -------------------------
5365 # Check C compiler features
5366 # -------------------------
5370 ac_cpp
='$CXXCPP $CPPFLAGS'
5371 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5375 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5376 if test -z "$CXXCPP"; then
5377 if ${ac_cv_prog_CXXCPP+:} false
; then :
5378 $as_echo_n "(cached) " >&6
5380 # Double quotes because CXXCPP needs to be expanded
5381 for CXXCPP
in "$CXX -E" "/lib/cpp"
5384 for ac_cxx_preproc_warn_flag
in '' yes
5386 # Use a header file that comes with gcc, so configuring glibc
5387 # with a fresh cross-compiler works.
5388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389 # <limits.h> exists even on freestanding compilers.
5390 # On the NeXT, cc -E runs the code through the compiler's parser,
5391 # not just through cpp. "Syntax error" is here to catch this case.
5392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5395 # include <limits.h>
5397 # include <assert.h>
5401 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5404 # Broken: fails on valid input.
5407 rm -f conftest.err conftest.i conftest.
$ac_ext
5409 # OK, works on sane cases. Now check whether nonexistent headers
5410 # can be detected and how.
5411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <ac_nonexistent.h>
5415 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5416 # Broken: success on invalid input.
5419 # Passes both tests.
5423 rm -f conftest.err conftest.i conftest.
$ac_ext
5426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5427 rm -f conftest.i conftest.err conftest.
$ac_ext
5428 if $ac_preproc_ok; then :
5433 ac_cv_prog_CXXCPP
=$CXXCPP
5436 CXXCPP
=$ac_cv_prog_CXXCPP
5438 ac_cv_prog_CXXCPP
=$CXXCPP
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5441 $as_echo "$CXXCPP" >&6; }
5443 for ac_cxx_preproc_warn_flag
in '' yes
5445 # Use a header file that comes with gcc, so configuring glibc
5446 # with a fresh cross-compiler works.
5447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5448 # <limits.h> exists even on freestanding compilers.
5449 # On the NeXT, cc -E runs the code through the compiler's parser,
5450 # not just through cpp. "Syntax error" is here to catch this case.
5451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5454 # include <limits.h>
5456 # include <assert.h>
5460 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5463 # Broken: fails on valid input.
5466 rm -f conftest.err conftest.i conftest.
$ac_ext
5468 # OK, works on sane cases. Now check whether nonexistent headers
5469 # can be detected and how.
5470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #include <ac_nonexistent.h>
5474 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5475 # Broken: success on invalid input.
5478 # Passes both tests.
5482 rm -f conftest.err conftest.i conftest.
$ac_ext
5485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5486 rm -f conftest.i conftest.err conftest.
$ac_ext
5487 if $ac_preproc_ok; then :
5490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5492 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5493 See \`config.log' for more details" "$LINENO" 5; }
5497 ac_cpp
='$CXXCPP $CPPFLAGS'
5498 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5504 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5505 if ${ac_cv_path_GREP+:} false
; then :
5506 $as_echo_n "(cached) " >&6
5508 if test -z "$GREP"; then
5509 ac_path_GREP_found
=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5512 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5515 test -z "$as_dir" && as_dir
=.
5516 for ac_prog
in grep ggrep
; do
5517 for ac_exec_ext
in '' $ac_executable_extensions; do
5518 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5519 as_fn_executable_p
"$ac_path_GREP" ||
continue
5520 # Check for GNU ac_path_GREP and select it if it is found.
5521 # Check for GNU $ac_path_GREP
5522 case `"$ac_path_GREP" --version 2>&1` in
5524 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5527 $as_echo_n 0123456789 >"conftest.in"
5530 cat "conftest.in" "conftest.in" >"conftest.tmp"
5531 mv "conftest.tmp" "conftest.in"
5532 cp "conftest.in" "conftest.nl"
5533 $as_echo 'GREP' >> "conftest.nl"
5534 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5535 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5536 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5537 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5538 # Best one so far, save it but keep looking for a better one
5539 ac_cv_path_GREP
="$ac_path_GREP"
5540 ac_path_GREP_max
=$ac_count
5542 # 10*(2^10) chars as input seems more than enough
5543 test $ac_count -gt 10 && break
5545 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5548 $ac_path_GREP_found && break 3
5553 if test -z "$ac_cv_path_GREP"; then
5554 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5557 ac_cv_path_GREP
=$GREP
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5562 $as_echo "$ac_cv_path_GREP" >&6; }
5563 GREP
="$ac_cv_path_GREP"
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5567 $as_echo_n "checking for egrep... " >&6; }
5568 if ${ac_cv_path_EGREP+:} false
; then :
5569 $as_echo_n "(cached) " >&6
5571 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5572 then ac_cv_path_EGREP
="$GREP -E"
5574 if test -z "$EGREP"; then
5575 ac_path_EGREP_found
=false
5576 # Loop through the user's path and test for each of PROGNAME-LIST
5577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5578 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5581 test -z "$as_dir" && as_dir
=.
5582 for ac_prog
in egrep; do
5583 for ac_exec_ext
in '' $ac_executable_extensions; do
5584 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5585 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5586 # Check for GNU ac_path_EGREP and select it if it is found.
5587 # Check for GNU $ac_path_EGREP
5588 case `"$ac_path_EGREP" --version 2>&1` in
5590 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5593 $as_echo_n 0123456789 >"conftest.in"
5596 cat "conftest.in" "conftest.in" >"conftest.tmp"
5597 mv "conftest.tmp" "conftest.in"
5598 cp "conftest.in" "conftest.nl"
5599 $as_echo 'EGREP' >> "conftest.nl"
5600 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5601 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5602 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5603 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5604 # Best one so far, save it but keep looking for a better one
5605 ac_cv_path_EGREP
="$ac_path_EGREP"
5606 ac_path_EGREP_max
=$ac_count
5608 # 10*(2^10) chars as input seems more than enough
5609 test $ac_count -gt 10 && break
5611 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5614 $ac_path_EGREP_found && break 3
5619 if test -z "$ac_cv_path_EGREP"; then
5620 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5623 ac_cv_path_EGREP
=$EGREP
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5629 $as_echo "$ac_cv_path_EGREP" >&6; }
5630 EGREP
="$ac_cv_path_EGREP"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5634 $as_echo_n "checking for ANSI C header files... " >&6; }
5635 if ${ac_cv_header_stdc+:} false
; then :
5636 $as_echo_n "(cached) " >&6
5638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5653 if ac_fn_cxx_try_compile
"$LINENO"; then :
5654 ac_cv_header_stdc
=yes
5656 ac_cv_header_stdc
=no
5658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5660 if test $ac_cv_header_stdc = yes; then
5661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5668 $EGREP "memchr" >/dev
/null
2>&1; then :
5671 ac_cv_header_stdc
=no
5677 if test $ac_cv_header_stdc = yes; then
5678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5685 $EGREP "free" >/dev
/null
2>&1; then :
5688 ac_cv_header_stdc
=no
5694 if test $ac_cv_header_stdc = yes; then
5695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5696 if test "$cross_compiling" = yes; then :
5699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5703 #if ((' ' & 0x0FF) == 0x020)
5704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5707 # define ISLOWER(c) \
5708 (('a' <= (c) && (c) <= 'i') \
5709 || ('j' <= (c) && (c) <= 'r') \
5710 || ('s' <= (c) && (c) <= 'z'))
5711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5719 for (i = 0; i < 256; i++)
5720 if (XOR (islower (i), ISLOWER (i))
5721 || toupper (i) != TOUPPER (i))
5726 if ac_fn_cxx_try_run
"$LINENO"; then :
5729 ac_cv_header_stdc
=no
5731 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5732 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5738 $as_echo "$ac_cv_header_stdc" >&6; }
5739 if test $ac_cv_header_stdc = yes; then
5741 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5746 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5747 inttypes.h stdint.h unistd.h
5749 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5750 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5752 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5753 cat >>confdefs.h
<<_ACEOF
5754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5763 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5764 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5771 if test "$MINIX" = yes; then
5773 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5776 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5779 $as_echo "#define _MINIX 1" >>confdefs.h
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5785 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5786 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5787 $as_echo_n "(cached) " >&6
5789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5792 # define __EXTENSIONS__ 1
5793 $ac_includes_default
5802 if ac_fn_cxx_try_compile
"$LINENO"; then :
5803 ac_cv_safe_to_define___extensions__
=yes
5805 ac_cv_safe_to_define___extensions__
=no
5807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5810 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5811 test $ac_cv_safe_to_define___extensions__ = yes &&
5812 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5814 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5816 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5818 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5820 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5825 ac_cpp
='$CPP $CPPFLAGS'
5826 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5830 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5831 # On Suns, sometimes $CPP names a directory.
5832 if test -n "$CPP" && test -d "$CPP"; then
5835 if test -z "$CPP"; then
5836 if ${ac_cv_prog_CPP+:} false
; then :
5837 $as_echo_n "(cached) " >&6
5839 # Double quotes because CPP needs to be expanded
5840 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5843 for ac_c_preproc_warn_flag
in '' yes
5845 # Use a header file that comes with gcc, so configuring glibc
5846 # with a fresh cross-compiler works.
5847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5848 # <limits.h> exists even on freestanding compilers.
5849 # On the NeXT, cc -E runs the code through the compiler's parser,
5850 # not just through cpp. "Syntax error" is here to catch this case.
5851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5854 # include <limits.h>
5856 # include <assert.h>
5860 if ac_fn_c_try_cpp
"$LINENO"; then :
5863 # Broken: fails on valid input.
5866 rm -f conftest.err conftest.i conftest.
$ac_ext
5868 # OK, works on sane cases. Now check whether nonexistent headers
5869 # can be detected and how.
5870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 #include <ac_nonexistent.h>
5874 if ac_fn_c_try_cpp
"$LINENO"; then :
5875 # Broken: success on invalid input.
5878 # Passes both tests.
5882 rm -f conftest.err conftest.i conftest.
$ac_ext
5885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5886 rm -f conftest.i conftest.err conftest.
$ac_ext
5887 if $ac_preproc_ok; then :
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5900 $as_echo "$CPP" >&6; }
5902 for ac_c_preproc_warn_flag
in '' yes
5904 # Use a header file that comes with gcc, so configuring glibc
5905 # with a fresh cross-compiler works.
5906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5907 # <limits.h> exists even on freestanding compilers.
5908 # On the NeXT, cc -E runs the code through the compiler's parser,
5909 # not just through cpp. "Syntax error" is here to catch this case.
5910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5913 # include <limits.h>
5915 # include <assert.h>
5919 if ac_fn_c_try_cpp
"$LINENO"; then :
5922 # Broken: fails on valid input.
5925 rm -f conftest.err conftest.i conftest.
$ac_ext
5927 # OK, works on sane cases. Now check whether nonexistent headers
5928 # can be detected and how.
5929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5931 #include <ac_nonexistent.h>
5933 if ac_fn_c_try_cpp
"$LINENO"; then :
5934 # Broken: success on invalid input.
5937 # Passes both tests.
5941 rm -f conftest.err conftest.i conftest.
$ac_ext
5944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5945 rm -f conftest.i conftest.err conftest.
$ac_ext
5946 if $ac_preproc_ok; then :
5949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5951 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5952 See \`config.log' for more details" "$LINENO" 5; }
5956 ac_cpp
='$CXXCPP $CPPFLAGS'
5957 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5962 $as_echo_n "checking for inline... " >&6; }
5963 if ${ac_cv_c_inline+:} false
; then :
5964 $as_echo_n "(cached) " >&6
5967 for ac_kw
in inline __inline__ __inline
; do
5968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5972 static $ac_kw foo_t static_foo () {return 0; }
5973 $ac_kw foo_t foo () {return 0; }
5977 if ac_fn_cxx_try_compile
"$LINENO"; then :
5978 ac_cv_c_inline
=$ac_kw
5980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5981 test "$ac_cv_c_inline" != no
&& break
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5986 $as_echo "$ac_cv_c_inline" >&6; }
5988 case $ac_cv_c_inline in
5991 case $ac_cv_c_inline in
5993 *) ac_val
=$ac_cv_c_inline;;
5995 cat >>confdefs.h
<<_ACEOF
5997 #define inline $ac_val
6004 # Check whether --enable-largefile was given.
6005 if test "${enable_largefile+set}" = set; then :
6006 enableval
=$enable_largefile;
6009 if test "$enable_largefile" != no
; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6012 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6013 if ${ac_cv_sys_largefile_CC+:} false
; then :
6014 $as_echo_n "(cached) " >&6
6016 ac_cv_sys_largefile_CC
=no
6017 if test "$GCC" != yes; then
6020 # IRIX 6.2 and later do not support large files by default,
6021 # so use the C compiler's -n32 option if that helps.
6022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <sys/types.h>
6025 /* Check that off_t can represent 2**63 - 1 correctly.
6026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6027 since some C++ compilers masquerading as C compilers
6028 incorrectly reject 9223372036854775807. */
6029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6031 && LARGE_OFF_T % 2147483647 == 1)
6041 if ac_fn_cxx_try_compile
"$LINENO"; then :
6044 rm -f core conftest.err conftest.
$ac_objext
6046 if ac_fn_cxx_try_compile
"$LINENO"; then :
6047 ac_cv_sys_largefile_CC
=' -n32'; break
6049 rm -f core conftest.err conftest.
$ac_objext
6053 rm -f conftest.
$ac_ext
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6057 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6058 if test "$ac_cv_sys_largefile_CC" != no
; then
6059 CC
=$CC$ac_cv_sys_largefile_CC
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6063 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6064 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6065 $as_echo_n "(cached) " >&6
6068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <sys/types.h>
6071 /* Check that off_t can represent 2**63 - 1 correctly.
6072 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6073 since some C++ compilers masquerading as C compilers
6074 incorrectly reject 9223372036854775807. */
6075 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6077 && LARGE_OFF_T % 2147483647 == 1)
6087 if ac_fn_cxx_try_compile
"$LINENO"; then :
6088 ac_cv_sys_file_offset_bits
=no
; break
6090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 #define _FILE_OFFSET_BITS 64
6094 #include <sys/types.h>
6095 /* Check that off_t can represent 2**63 - 1 correctly.
6096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6097 since some C++ compilers masquerading as C compilers
6098 incorrectly reject 9223372036854775807. */
6099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6101 && LARGE_OFF_T % 2147483647 == 1)
6111 if ac_fn_cxx_try_compile
"$LINENO"; then :
6112 ac_cv_sys_file_offset_bits
=64; break
6114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6115 ac_cv_sys_file_offset_bits
=unknown
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6120 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6121 case $ac_cv_sys_file_offset_bits in #(
6124 cat >>confdefs.h
<<_ACEOF
6125 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6130 if test $ac_cv_sys_file_offset_bits = unknown
; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6132 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6133 if ${ac_cv_sys_large_files+:} false
; then :
6134 $as_echo_n "(cached) " >&6
6137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 #include <sys/types.h>
6140 /* Check that off_t can represent 2**63 - 1 correctly.
6141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6142 since some C++ compilers masquerading as C compilers
6143 incorrectly reject 9223372036854775807. */
6144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6146 && LARGE_OFF_T % 2147483647 == 1)
6156 if ac_fn_cxx_try_compile
"$LINENO"; then :
6157 ac_cv_sys_large_files
=no
; break
6159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162 #define _LARGE_FILES 1
6163 #include <sys/types.h>
6164 /* Check that off_t can represent 2**63 - 1 correctly.
6165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6166 since some C++ compilers masquerading as C compilers
6167 incorrectly reject 9223372036854775807. */
6168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6170 && LARGE_OFF_T % 2147483647 == 1)
6180 if ac_fn_cxx_try_compile
"$LINENO"; then :
6181 ac_cv_sys_large_files
=1; break
6183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6184 ac_cv_sys_large_files
=unknown
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6189 $as_echo "$ac_cv_sys_large_files" >&6; }
6190 case $ac_cv_sys_large_files in #(
6193 cat >>confdefs.h
<<_ACEOF
6194 #define _LARGE_FILES $ac_cv_sys_large_files
6205 # sizeof(char) is 1 by definition.
6206 # The cast to long int works around a bug in the HP C Compiler
6207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6209 # This bug is HP SR number 8606223364.
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6211 $as_echo_n "checking size of void *... " >&6; }
6212 if ${ac_cv_sizeof_void_p+:} false
; then :
6213 $as_echo_n "(cached) " >&6
6215 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6218 if test "$ac_cv_type_void_p" = yes; then
6219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6221 as_fn_error
77 "cannot compute sizeof (void *)
6222 See \`config.log' for more details" "$LINENO" 5; }
6224 ac_cv_sizeof_void_p
=0
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6230 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6234 cat >>confdefs.h
<<_ACEOF
6235 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6239 # The cast to long int works around a bug in the HP C Compiler
6240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6242 # This bug is HP SR number 8606223364.
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6244 $as_echo_n "checking size of short... " >&6; }
6245 if ${ac_cv_sizeof_short+:} false
; then :
6246 $as_echo_n "(cached) " >&6
6248 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6251 if test "$ac_cv_type_short" = yes; then
6252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6254 as_fn_error
77 "cannot compute sizeof (short)
6255 See \`config.log' for more details" "$LINENO" 5; }
6257 ac_cv_sizeof_short
=0
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6263 $as_echo "$ac_cv_sizeof_short" >&6; }
6267 cat >>confdefs.h
<<_ACEOF
6268 #define SIZEOF_SHORT $ac_cv_sizeof_short
6272 # The cast to long int works around a bug in the HP C Compiler
6273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6275 # This bug is HP SR number 8606223364.
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6277 $as_echo_n "checking size of int... " >&6; }
6278 if ${ac_cv_sizeof_int+:} false
; then :
6279 $as_echo_n "(cached) " >&6
6281 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6284 if test "$ac_cv_type_int" = yes; then
6285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6287 as_fn_error
77 "cannot compute sizeof (int)
6288 See \`config.log' for more details" "$LINENO" 5; }
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6296 $as_echo "$ac_cv_sizeof_int" >&6; }
6300 cat >>confdefs.h
<<_ACEOF
6301 #define SIZEOF_INT $ac_cv_sizeof_int
6305 # The cast to long int works around a bug in the HP C Compiler
6306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6308 # This bug is HP SR number 8606223364.
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6310 $as_echo_n "checking size of long... " >&6; }
6311 if ${ac_cv_sizeof_long+:} false
; then :
6312 $as_echo_n "(cached) " >&6
6314 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6317 if test "$ac_cv_type_long" = yes; then
6318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6320 as_fn_error
77 "cannot compute sizeof (long)
6321 See \`config.log' for more details" "$LINENO" 5; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6329 $as_echo "$ac_cv_sizeof_long" >&6; }
6333 cat >>confdefs.h
<<_ACEOF
6334 #define SIZEOF_LONG $ac_cv_sizeof_long
6338 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6339 if test "x$ac_cv_type_long_long" = xyes
; then :
6341 cat >>confdefs.h
<<_ACEOF
6342 #define HAVE_LONG_LONG 1
6345 # The cast to long int works around a bug in the HP C Compiler
6346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6348 # This bug is HP SR number 8606223364.
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6350 $as_echo_n "checking size of long long... " >&6; }
6351 if ${ac_cv_sizeof_long_long+:} false
; then :
6352 $as_echo_n "(cached) " >&6
6354 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6357 if test "$ac_cv_type_long_long" = yes; then
6358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6360 as_fn_error
77 "cannot compute sizeof (long long)
6361 See \`config.log' for more details" "$LINENO" 5; }
6363 ac_cv_sizeof_long_long
=0
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6369 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6373 cat >>confdefs.h
<<_ACEOF
6374 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6380 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6381 case $ac_cv_c_int8_t in #(
6385 cat >>confdefs.h
<<_ACEOF
6386 #define int8_t $ac_cv_c_int8_t
6391 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6392 case $ac_cv_c_int16_t in #(
6396 cat >>confdefs.h
<<_ACEOF
6397 #define int16_t $ac_cv_c_int16_t
6402 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6403 case $ac_cv_c_int32_t in #(
6407 cat >>confdefs.h
<<_ACEOF
6408 #define int32_t $ac_cv_c_int32_t
6413 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6414 case $ac_cv_c_int64_t in #(
6418 cat >>confdefs.h
<<_ACEOF
6419 #define int64_t $ac_cv_c_int64_t
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6426 $as_echo_n "checking for unsigned long long int... " >&6; }
6427 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6428 $as_echo_n "(cached) " >&6
6430 ac_cv_type_unsigned_long_long_int
=yes
6431 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6435 /* For now, do not test the preprocessor; as of 2007 there are too many
6436 implementations with broken preprocessors. Perhaps this can
6437 be revisited in 2012. In the meantime, code should not expect
6438 #if to work with literals wider than 32 bits. */
6439 /* Test literals. */
6440 long long int ll = 9223372036854775807ll;
6441 long long int nll = -9223372036854775807LL;
6442 unsigned long long int ull = 18446744073709551615ULL;
6443 /* Test constant expressions. */
6444 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6446 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6452 /* Test availability of runtime routines for shift and division. */
6453 long long int llmax = 9223372036854775807ll;
6454 unsigned long long int ullmax = 18446744073709551615ull;
6455 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6456 | (llmax / ll) | (llmax % ll)
6457 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6458 | (ullmax / ull) | (ullmax % ull));
6464 if ac_fn_cxx_try_link
"$LINENO"; then :
6467 ac_cv_type_unsigned_long_long_int
=no
6469 rm -f core conftest.err conftest.
$ac_objext \
6470 conftest
$ac_exeext conftest.
$ac_ext
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6474 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6475 if test $ac_cv_type_unsigned_long_long_int = yes; then
6477 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6484 $as_echo_n "checking for long long int... " >&6; }
6485 if ${ac_cv_type_long_long_int+:} false
; then :
6486 $as_echo_n "(cached) " >&6
6488 ac_cv_type_long_long_int
=yes
6489 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6490 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6491 if test $ac_cv_type_long_long_int = yes; then
6492 if test "$cross_compiling" = yes; then :
6495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6500 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6501 # define LLONG_MAX (HALF - 1 + HALF)
6506 long long int n = 1;
6510 long long int m = n << i;
6513 if (LLONG_MAX / 2 < m)
6521 if ac_fn_cxx_try_run
"$LINENO"; then :
6524 ac_cv_type_long_long_int
=no
6526 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6527 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6534 $as_echo "$ac_cv_type_long_long_int" >&6; }
6535 if test $ac_cv_type_long_long_int = yes; then
6537 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6543 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6544 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6546 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6549 test $ac_cv_type_long_long_int = yes \
6550 && ac_type
='long long int' \
6551 || ac_type
='long int'
6553 cat >>confdefs.h
<<_ACEOF
6554 #define intmax_t $ac_type
6561 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6562 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6564 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6567 for ac_type
in 'int' 'long int' 'long long int'; do
6568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570 $ac_includes_default
6574 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6576 return test_array [0];
6582 if ac_fn_cxx_try_compile
"$LINENO"; then :
6584 cat >>confdefs.h
<<_ACEOF
6585 #define intptr_t $ac_type
6590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6591 test -z "$ac_type" && break
6596 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6597 case $ac_cv_c_uint8_t in #(
6601 $as_echo "#define _UINT8_T 1" >>confdefs.h
6604 cat >>confdefs.h
<<_ACEOF
6605 #define uint8_t $ac_cv_c_uint8_t
6610 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6611 case $ac_cv_c_uint16_t in #(
6616 cat >>confdefs.h
<<_ACEOF
6617 #define uint16_t $ac_cv_c_uint16_t
6622 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6623 case $ac_cv_c_uint32_t in #(
6627 $as_echo "#define _UINT32_T 1" >>confdefs.h
6630 cat >>confdefs.h
<<_ACEOF
6631 #define uint32_t $ac_cv_c_uint32_t
6636 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6637 case $ac_cv_c_uint64_t in #(
6641 $as_echo "#define _UINT64_T 1" >>confdefs.h
6644 cat >>confdefs.h
<<_ACEOF
6645 #define uint64_t $ac_cv_c_uint64_t
6652 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6653 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6655 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6658 test $ac_cv_type_unsigned_long_long_int = yes \
6659 && ac_type
='unsigned long long int' \
6660 || ac_type
='unsigned long int'
6662 cat >>confdefs.h
<<_ACEOF
6663 #define uintmax_t $ac_type
6670 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6671 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6673 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6676 for ac_type
in 'unsigned int' 'unsigned long int' \
6677 'unsigned long long int'; do
6678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 $ac_includes_default
6684 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6686 return test_array [0];
6692 if ac_fn_cxx_try_compile
"$LINENO"; then :
6694 cat >>confdefs.h
<<_ACEOF
6695 #define uintptr_t $ac_type
6700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6701 test -z "$ac_type" && break
6718 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6719 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6722 # check what underlying integer type int64_t uses
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6724 $as_echo_n "checking for int64_t underlying type... " >&6; }
6725 if ${ac_cv_int64_t_type+:} false
; then :
6726 $as_echo_n "(cached) " >&6
6729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6732 #ifdef HAVE_STDINT_H
6735 template <typename T> struct X { };
6737 struct X<long> { typedef long t; };
6747 if ac_fn_cxx_try_compile
"$LINENO"; then :
6748 ac_cv_int64_t_type
=long
6750 ac_cv_int64_t_type
="long long"
6752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6755 $as_echo "$ac_cv_int64_t_type" >&6; }
6756 if test "$ac_cv_int64_t_type" = "long"; then
6758 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6764 #ifdef HAVE_STDINT_H
6767 template <typename T> struct X { };
6769 struct X<long long> { typedef long long t; };
6779 if ac_fn_cxx_try_compile
"$LINENO"; then :
6782 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6788 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6789 if ${ac_cv_std_swap_in_utility+:} false
; then :
6790 $as_echo_n "(cached) " >&6
6793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6801 int a, b; std::swap(a,b);
6806 if ac_fn_cxx_try_compile
"$LINENO"; then :
6807 ac_cv_std_swap_in_utility
=yes
6809 ac_cv_std_swap_in_utility
=no
6811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6814 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6815 if test $ac_cv_std_swap_in_utility = yes; then
6817 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6821 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6822 # If the host compiler is affected by the bug, and we build with optimization
6823 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6824 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6825 # Since there is no reliable feature check for the presence of this bug,
6826 # we simply use a GCC version number check. (This should never trigger for
6827 # stages 2 or 3 of a native bootstrap.)
6829 if test "$GCC" = yes; then
6830 saved_CXXFLAGS
="$CXXFLAGS"
6832 # The following test compilation will succeed if and only if $CXX accepts
6833 # -fno-strict-aliasing *and* is older than GCC 4.3.
6834 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6836 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6840 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6841 #error compiler not affected by placement new aliasing bug
6845 if ac_fn_cxx_try_compile
"$LINENO"; then :
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6847 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6854 CXXFLAGS
="$saved_CXXFLAGS"
6860 # ---------------------
6861 # Warnings and checking
6862 # ---------------------
6864 # Check $CC warning features (if it's GCC).
6865 # We want to use -pedantic, but we don't want warnings about
6868 # * overlong strings
6869 # * C++11 narrowing conversions in { }
6870 # So, we only use -pedantic if we can disable those warnings.
6872 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6873 # Check whether --enable-build-format-warnings was given.
6874 if test "${enable_build_format_warnings+set}" = set; then :
6875 enableval
=$enable_build_format_warnings;
6877 enable_build_format_warnings
=yes
6880 if test $enable_build_format_warnings = no
; then :
6886 ac_cpp
='$CXXCPP $CPPFLAGS'
6887 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6892 save_CXXFLAGS
="$CXXFLAGS"
6893 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6894 # Do the check with the no- prefix removed since gcc silently
6895 # accepts any -Wno-* option on purpose
6896 case $real_option in
6897 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6898 *) option
=$real_option ;;
6900 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6903 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6904 if eval \
${$as_acx_Woption+:} false
; then :
6905 $as_echo_n "(cached) " >&6
6908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6919 if ac_fn_cxx_try_compile
"$LINENO"; then :
6920 eval "$as_acx_Woption=yes"
6922 eval "$as_acx_Woption=no"
6924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6927 eval ac_res
=\$
$as_acx_Woption
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6929 $as_echo "$ac_res" >&6; }
6930 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6931 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6934 CXXFLAGS
="$save_CXXFLAGS"
6936 ac_cpp
='$CXXCPP $CPPFLAGS'
6937 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6944 ac_cpp
='$CPP $CPPFLAGS'
6945 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6950 save_CFLAGS
="$CFLAGS"
6951 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
6952 # Do the check with the no- prefix removed since gcc silently
6953 # accepts any -Wno-* option on purpose
6954 case $real_option in
6955 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6956 *) option
=$real_option ;;
6958 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6961 $as_echo_n "checking whether $CC supports $option... " >&6; }
6962 if eval \
${$as_acx_Woption+:} false
; then :
6963 $as_echo_n "(cached) " >&6
6966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6977 if ac_fn_c_try_compile
"$LINENO"; then :
6978 eval "$as_acx_Woption=yes"
6980 eval "$as_acx_Woption=no"
6982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6985 eval ac_res
=\$
$as_acx_Woption
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6987 $as_echo "$ac_res" >&6; }
6988 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6989 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6992 CFLAGS
="$save_CFLAGS"
6994 ac_cpp
='$CXXCPP $CPPFLAGS'
6995 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7001 ac_cpp
='$CXXCPP $CPPFLAGS'
7002 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7007 save_CXXFLAGS
="$CXXFLAGS"
7008 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
7009 # Do the check with the no- prefix removed since gcc silently
7010 # accepts any -Wno-* option on purpose
7011 case $real_option in
7012 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7013 *) option
=$real_option ;;
7015 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7018 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7019 if eval \
${$as_acx_Woption+:} false
; then :
7020 $as_echo_n "(cached) " >&6
7023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7034 if ac_fn_cxx_try_compile
"$LINENO"; then :
7035 eval "$as_acx_Woption=yes"
7037 eval "$as_acx_Woption=no"
7039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7042 eval ac_res
=\$
$as_acx_Woption
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7044 $as_echo "$ac_res" >&6; }
7045 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7046 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7049 CXXFLAGS
="$save_CXXFLAGS"
7051 ac_cpp
='$CXXCPP $CPPFLAGS'
7052 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7053 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7058 ac_cpp
='$CPP $CPPFLAGS'
7059 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7064 save_CFLAGS
="$CFLAGS"
7065 for real_option
in -Wold-style-definition -Wc++-compat; do
7066 # Do the check with the no- prefix removed since gcc silently
7067 # accepts any -Wno-* option on purpose
7068 case $real_option in
7069 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7070 *) option
=$real_option ;;
7072 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7075 $as_echo_n "checking whether $CC supports $option... " >&6; }
7076 if eval \
${$as_acx_Woption+:} false
; then :
7077 $as_echo_n "(cached) " >&6
7080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7091 if ac_fn_c_try_compile
"$LINENO"; then :
7092 eval "$as_acx_Woption=yes"
7094 eval "$as_acx_Woption=no"
7096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7099 eval ac_res
=\$
$as_acx_Woption
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7101 $as_echo "$ac_res" >&6; }
7102 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7103 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7106 CFLAGS
="$save_CFLAGS"
7108 ac_cpp
='$CXXCPP $CPPFLAGS'
7109 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7115 ac_cpp
='$CXXCPP $CPPFLAGS'
7116 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7120 # Do the check with the no- prefix removed from the warning options
7121 # since gcc silently accepts any -Wno-* option on purpose
7122 if test "$GXX" = yes; then :
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7124 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7125 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7126 $as_echo_n "(cached) " >&6
7128 save_CXXFLAGS
="$CXXFLAGS"
7129 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7141 if ac_fn_cxx_try_compile
"$LINENO"; then :
7142 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7144 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7147 CXXFLAGS
="$save_CXXFLAGS"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7150 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7151 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7152 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7157 ac_cpp
='$CXXCPP $CPPFLAGS'
7158 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7164 ac_cpp
='$CXXCPP $CPPFLAGS'
7165 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7169 # Check whether --enable-werror-always was given.
7170 if test "${enable_werror_always+set}" = set; then :
7171 enableval
=$enable_werror_always;
7173 enable_werror_always
=no
7176 if test $enable_werror_always = yes; then :
7177 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7181 ac_cpp
='$CXXCPP $CPPFLAGS'
7182 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7188 # The above macros do nothing if the compiler is not GCC. However, the
7189 # Makefile has more goo to add other flags, so these variables are used
7190 # to enable warnings only for GCC.
7193 if test "x$GCC" = "xyes"; then
7194 warn_cflags
='$(GCC_WARN_CFLAGS)'
7195 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7200 # Disable exceptions and RTTI if building with g++
7202 ac_cpp
='$CPP $CPPFLAGS'
7203 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7208 save_CFLAGS
="$CFLAGS"
7209 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7210 # Do the check with the no- prefix removed since gcc silently
7211 # accepts any -Wno-* option on purpose
7212 case $real_option in
7213 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7214 *) option
=$real_option ;;
7216 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7219 $as_echo_n "checking whether $CC supports $option... " >&6; }
7220 if eval \
${$as_acx_Woption+:} false
; then :
7221 $as_echo_n "(cached) " >&6
7224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7235 if ac_fn_c_try_compile
"$LINENO"; then :
7236 eval "$as_acx_Woption=yes"
7238 eval "$as_acx_Woption=no"
7240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7243 eval ac_res
=\$
$as_acx_Woption
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7245 $as_echo "$ac_res" >&6; }
7246 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7247 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7250 CFLAGS
="$save_CFLAGS"
7252 ac_cpp
='$CXXCPP $CPPFLAGS'
7253 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7259 # Enable expensive internal checks
7261 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7265 # Check whether --enable-checking was given.
7266 if test "${enable_checking+set}" = set; then :
7267 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7270 # Determine the default checks.
7271 if test x
$is_release = x
; then
7272 ac_checking_flags
=yes,extra
7274 ac_checking_flags
=release
7278 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7279 for check
in release
$ac_checking_flags
7282 # these set all the flags to specific states
7283 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7284 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7285 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7286 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7287 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7288 ac_types_checking
=1 ;;
7289 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7290 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7291 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7292 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7293 ac_tree_checking
= ; ac_valgrind_checking
= ;
7294 ac_types_checking
= ;;
7295 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7296 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7297 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7298 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7299 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7300 ac_types_checking
=1 ;;
7301 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7302 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7303 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7304 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7305 ac_tree_checking
= ; ac_valgrind_checking
= ;
7306 ac_types_checking
= ;;
7307 # these enable particular checks
7308 assert
) ac_assert_checking
=1 ;;
7309 df
) ac_df_checking
=1 ;;
7310 extra
) ac_extra_checking
=1 ;;
7311 fold) ac_fold_checking
=1 ;;
7312 gc
) ac_gc_checking
=1 ;;
7313 gcac
) ac_gc_always_collect
=1 ;;
7314 gimple
) ac_gimple_checking
=1 ;;
7315 misc
) ac_checking
=1 ;;
7316 rtl
) ac_rtl_checking
=1 ;;
7317 rtlflag
) ac_rtlflag_checking
=1 ;;
7318 runtime
) ac_runtime_checking
=1 ;;
7319 tree
) ac_tree_checking
=1 ;;
7320 types
) ac_types_checking
=1 ;;
7321 valgrind
) ac_valgrind_checking
=1 ;;
7322 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7328 if test x
$ac_checking != x
; then
7330 $as_echo "#define CHECKING_P 1" >>confdefs.h
7332 nocommon_flag
=-fno-common
7334 $as_echo "#define CHECKING_P 0" >>confdefs.h
7338 if test x
$ac_extra_checking != x
; then
7340 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7343 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7346 if test x
$ac_df_checking != x
; then
7348 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7351 if test x
$ac_assert_checking != x
; then
7353 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7356 if test x
$ac_gimple_checking != x
; then
7358 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7362 if test x
$ac_runtime_checking != x
; then
7364 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7367 if test x
$ac_tree_checking != x
; then
7369 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7373 if test x
$ac_types_checking != x
; then
7375 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7379 if test x
$ac_rtl_checking != x
; then
7381 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7384 if test x
$ac_rtlflag_checking != x
; then
7386 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7389 if test x
$ac_gc_checking != x
; then
7391 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7394 if test x
$ac_gc_always_collect != x
; then
7396 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7399 if test x
$ac_fold_checking != x
; then
7401 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7404 valgrind_path_defines
=
7407 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7408 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7416 # It is certainly possible that there's valgrind but no valgrind.h.
7417 # GCC relies on making annotations so we must have both.
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7419 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <valgrind/memcheck.h>
7423 #ifndef VALGRIND_DISCARD
7424 #error VALGRIND_DISCARD not defined
7427 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7428 gcc_cv_header_valgrind_memcheck_h
=yes
7430 gcc_cv_header_valgrind_memcheck_h
=no
7432 rm -f conftest.err conftest.i conftest.
$ac_ext
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7434 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7436 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7439 #include <memcheck.h>
7440 #ifndef VALGRIND_DISCARD
7441 #error VALGRIND_DISCARD not defined
7444 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7445 gcc_cv_header_memcheck_h
=yes
7447 gcc_cv_header_memcheck_h
=no
7449 rm -f conftest.err conftest.i conftest.
$ac_ext
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7451 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7452 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7454 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7457 if test $gcc_cv_header_memcheck_h = yes; then
7459 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7463 if test x
$ac_valgrind_checking != x
; then
7465 # Prepare PATH_SEPARATOR.
7466 # The user is always right.
7467 if test "${PATH_SEPARATOR+set}" != set; then
7468 echo "#! /bin/sh" >conf$$.sh
7469 echo "exit 0" >>conf$$.sh
7471 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7479 # Find out how to test for executable files. Don't use a zero-byte file,
7480 # as systems may use methods other than mode bits to determine executability.
7481 cat >conf$$.
file <<_ASEOF
7485 chmod +x conf$$.
file
7486 if test -x conf$$.
file >/dev
/null
2>&1; then
7487 ac_executable_p
="test -x"
7489 ac_executable_p
="test -f"
7493 # Extract the first word of "valgrind", so it can be a program name with args.
7494 set dummy valgrind
; ac_word
=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_path_valgrind_path+:} false
; then :
7498 $as_echo_n "(cached) " >&6
7500 case "$valgrind_path" in
7502 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7505 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7506 for ac_dir
in $PATH; do
7508 test -z "$ac_dir" && ac_dir
=.
7509 for ac_exec_ext
in '' $ac_executable_extensions; do
7510 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7511 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7512 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7522 valgrind_path
="$ac_cv_path_valgrind_path"
7523 if test -n "$valgrind_path"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7525 $as_echo "$valgrind_path" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7531 if test "x$valgrind_path" = "x" \
7532 ||
(test $have_valgrind_h = no \
7533 && test $gcc_cv_header_memcheck_h = no \
7534 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7535 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7537 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7538 valgrind_command
="$valgrind_path -q"
7540 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7546 # Enable code coverage collection
7547 # Check whether --enable-coverage was given.
7548 if test "${enable_coverage+set}" = set; then :
7549 enableval
=$enable_coverage; case "${enableval}" in
7551 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7554 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7557 # a.k.a. --disable-coverage
7561 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7570 # Check whether --enable-gather-detailed-mem-stats was given.
7571 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7572 enableval
=$enable_gather_detailed_mem_stats;
7574 enable_gather_detailed_mem_stats
=no
7577 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7579 cat >>confdefs.h
<<_ACEOF
7580 #define GATHER_STATISTICS $gather_stats
7584 # Check whether --enable-valgrind-annotations was given.
7585 if test "${enable_valgrind_annotations+set}" = set; then :
7586 enableval
=$enable_valgrind_annotations;
7588 enable_valgrind_annotations
=no
7591 if test x
$enable_valgrind_annotations != xno \
7592 ||
test x
$ac_valgrind_checking != x
; then
7593 if (test $have_valgrind_h = no \
7594 && test $gcc_cv_header_memcheck_h = no \
7595 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7596 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7599 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7603 # -------------------------------
7604 # Miscenalleous configure options
7605 # -------------------------------
7609 # Check whether --with-stabs was given.
7610 if test "${with_stabs+set}" = set; then :
7611 withval
=$with_stabs; stabs
="$with_stabs"
7617 # Determine whether or not multilibs are enabled.
7618 # Check whether --enable-multilib was given.
7619 if test "${enable_multilib+set}" = set; then :
7620 enableval
=$enable_multilib;
7627 # Determine whether or not multiarch is enabled.
7628 # Check whether --enable-multiarch was given.
7629 if test "${enable_multiarch+set}" = set; then :
7630 enableval
=$enable_multiarch; case "${enableval}" in
7631 yes|no|auto
) enable_multiarch
=$enableval;;
7632 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7635 enable_multiarch
=auto
7638 if test x
${enable_multiarch} = xauto
; then
7639 if test x
${with_native_system_header_dir} != x
; then
7640 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7643 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7644 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7649 $as_echo_n "checking for multiarch configuration... " >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7652 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7654 # needed for setting the multiarch name for soft-float/hard-float ABIs
7658 # default stack clash protection guard size as power of twos in bytes.
7659 # Please keep these in sync with params.def.
7663 # Keep the default value when the option is not used to 0, this allows us to
7664 # distinguish between the cases where the user specifially set a value via
7665 # configure and when the normal default value is used.
7667 # Check whether --with-stack-clash-protection-guard-size was given.
7668 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7669 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7671 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7674 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7675 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7676 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7677 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
7681 cat >>confdefs.h
<<_ACEOF
7682 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7686 # Enable __cxa_atexit for C++.
7687 # Check whether --enable-__cxa_atexit was given.
7688 if test "${enable___cxa_atexit+set}" = set; then :
7689 enableval
=$enable___cxa_atexit;
7693 # Enable C extension for decimal float if target supports it.
7695 # Check whether --enable-decimal-float was given.
7696 if test "${enable_decimal_float+set}" = set; then :
7697 enableval
=$enable_decimal_float;
7698 case $enable_decimal_float in
7699 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7700 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7701 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7707 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7708 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7709 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7710 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7711 enable_decimal_float
=yes
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7715 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7716 enable_decimal_float
=no
7723 # x86's use BID format instead of DPD
7724 case x
$enable_decimal_float in
7727 i?
86*-*-* | x86_64
*-*-*)
7728 enable_decimal_float
=bid
7731 enable_decimal_float
=dpd
7734 default_decimal_float
=$enable_decimal_float
7737 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7738 # dependency on libdecnumber.
7739 default_decimal_float
=dpd
7746 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7748 cat >>confdefs.h
<<_ACEOF
7749 #define ENABLE_DECIMAL_FLOAT $dfp
7753 # Use default_decimal_float for dependency.
7754 enable_decimal_float
=$default_decimal_float
7756 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7758 cat >>confdefs.h
<<_ACEOF
7759 #define ENABLE_DECIMAL_BID_FORMAT $bid
7763 # Enable C extension for fixed-point arithmetic.
7764 # Check whether --enable-fixed-point was given.
7765 if test "${enable_fixed_point+set}" = set; then :
7766 enableval
=$enable_fixed_point;
7771 enable_fixed_point
=yes
7775 enable_fixed_point
=yes
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7779 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7780 enable_fixed_point
=no
7788 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7790 cat >>confdefs.h
<<_ACEOF
7791 #define ENABLE_FIXED_POINT $fixedpoint
7796 # Pass with no value to take the default
7797 # Pass with a value to specify a thread package
7798 # Check whether --enable-threads was given.
7799 if test "${enable_threads+set}" = set; then :
7800 enableval
=$enable_threads;
7806 # Check whether --enable-tls was given.
7807 if test "${enable_tls+set}" = set; then :
7808 enableval
=$enable_tls;
7811 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7812 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7820 # Check whether --enable-vtable-verify was given.
7821 if test "${enable_vtable_verify+set}" = set; then :
7822 enableval
=$enable_vtable_verify;
7824 enable_vtable_verify
=no
7827 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7829 cat >>confdefs.h
<<_ACEOF
7830 #define ENABLE_VTABLE_VERIFY $vtable_verify
7834 # Check whether --enable-analyzer was given.
7835 if test "${enable_analyzer+set}" = set; then :
7836 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
7846 cat >>confdefs.h
<<_ACEOF
7847 #define ENABLE_ANALYZER $analyzer
7851 # Check whether --enable-objc-gc was given.
7852 if test "${enable_objc_gc+set}" = set; then :
7853 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7864 # Check whether --with-dwarf2 was given.
7865 if test "${with_dwarf2+set}" = set; then :
7866 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7872 # Check whether --enable-shared was given.
7873 if test "${enable_shared+set}" = set; then :
7874 enableval
=$enable_shared;
7875 case $enable_shared in
7879 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7880 for pkg
in $enableval; do
7881 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7895 # Check whether --enable-gcov was given.
7896 if test "${enable_gcov+set}" = set; then :
7897 enableval
=$enable_gcov;
7905 # Check whether --with-specs was given.
7906 if test "${with_specs+set}" = set; then :
7907 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7917 # Check whether --with-pkgversion was given.
7918 if test "${with_pkgversion+set}" = set; then :
7919 withval
=$with_pkgversion; case "$withval" in
7920 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7922 *) PKGVERSION
="($withval) " ;;
7933 # Check whether --with-bugurl was given.
7934 if test "${with_bugurl+set}" = set; then :
7935 withval
=$with_bugurl; case "$withval" in
7936 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7939 *) BUGURL
="$withval"
7943 BUGURL
="https://gcc.gnu.org/bugs/"
7953 REPORT_BUGS_TO
="<$BUGURL>"
7954 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7961 # Allow overriding the default URL for documentation
7963 # Check whether --with-documentation-root-url was given.
7964 if test "${with_documentation_root_url+set}" = set; then :
7965 withval
=$with_documentation_root_url; case "$withval" in
7966 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7967 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7968 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
7969 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
7972 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
7977 cat >>confdefs.h
<<_ACEOF
7978 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7982 # Allow overriding the default URL for GCC changes
7984 # Check whether --with-changes-root-url was given.
7985 if test "${with_changes_root_url+set}" = set; then :
7986 withval
=$with_changes_root_url; case "$withval" in
7987 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
7988 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
7989 */) CHANGES_ROOT_URL
="$withval" ;;
7990 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
7993 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
7998 cat >>confdefs.h
<<_ACEOF
7999 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8003 # Sanity check enable_languages in case someone does not run the toplevel
8004 # configure # script.
8005 # Check whether --enable-languages was given.
8006 if test "${enable_languages+set}" = set; then :
8007 enableval
=$enable_languages; case ,${enable_languages}, in
8009 # go safe -- we cannot be much sure without the toplevel
8011 # analysis of which target libs are present and usable
8015 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8020 enable_languages
=c
,${enable_languages}
8028 # If top-level libada has been disabled, then wire in install-gnatlib
8029 # invocation with `make install', so that one can build and install
8030 # the library manually with `make -C gcc all gnatlib gnattools install'.
8031 if test x
"$enable_libada" = xno
; then
8032 gnat_install_lib
=gnat-install-lib
8038 if test x
"$enable_as_accelerator_for" != x
; then
8040 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8042 enable_as_accelerator
=yes
8045 # In this case we expect offload compiler to be built as native, so we
8046 # need to rename the driver to avoid clashes with host's drivers.
8047 program_transform_name
="s&^&${target}-&" ;;
8049 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8050 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8051 accel_dir_suffix
=/accel
/${target_noncanonical}
8052 real_target_noncanonical
=${enable_as_accelerator_for}
8058 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8059 tgt
=`echo $tgt | sed 's/=.*//'`
8063 *-intelmic-* |
*-intelmicemul-*)
8064 omp_device_property
=omp-device-properties-i386
8065 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8068 omp_device_property
=omp-device-properties-gcn
8069 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8072 omp_device_property
=omp-device-properties-nvptx
8073 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8076 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8079 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8080 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8082 if test x
"$offload_targets" = x
; then
8083 offload_targets
=$tgt
8085 offload_targets
="$offload_targets,$tgt"
8092 cat >>confdefs.h
<<_ACEOF
8093 #define OFFLOAD_TARGETS "$offload_targets"
8096 if test x
"$enable_offloading" != x
; then
8098 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8102 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8106 if test "x$enable_offload_defaulted" = xyes
; then
8108 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8113 # Check whether --with-multilib-list was given.
8114 if test "${with_multilib_list+set}" = set; then :
8115 withval
=$with_multilib_list; :
8117 with_multilib_list
=default
8122 # Check whether --with-multilib-generator was given.
8123 if test "${with_multilib_generator+set}" = set; then :
8124 withval
=$with_multilib_generator; :
8126 with_multilib_generator
=default
8130 # -------------------------
8131 # Checks for other programs
8132 # -------------------------
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8135 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8137 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8138 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8139 $as_echo_n "(cached) " >&6
8141 cat >conftest.
make <<\_ACEOF
8144 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8146 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8147 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8149 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8151 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8155 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8157 $as_echo "yes" >&6; }
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8162 SET_MAKE
="MAKE=${MAKE-make}"
8166 # Find some useful tools
8167 for ac_prog
in gawk mawk nawk
awk
8169 # Extract the first word of "$ac_prog", so it can be a program name with args.
8170 set dummy
$ac_prog; ac_word
=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_prog_AWK+:} false
; then :
8174 $as_echo_n "(cached) " >&6
8176 if test -n "$AWK"; then
8177 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8183 test -z "$as_dir" && as_dir
=.
8184 for ac_exec_ext
in '' $ac_executable_extensions; do
8185 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_AWK
="$ac_prog"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 if test -n "$AWK"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8199 $as_echo "$AWK" >&6; }
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8206 test -n "$AWK" && break
8209 # We need awk to create options.c and options.h.
8210 # Bail out if it's missing.
8212 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8216 $as_echo_n "checking whether ln -s works... " >&6; }
8217 if ${gcc_cv_prog_LN_S+:} false
; then :
8218 $as_echo_n "(cached) " >&6
8220 rm -f conftestdata_t
8221 echo >conftestdata_f
8222 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8224 gcc_cv_prog_LN_S
="ln -s"
8226 if ln conftestdata_f conftestdata_t
2>/dev
/null
8230 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8232 gcc_cv_prog_LN_S
="cp -p"
8238 rm -f conftestdata_f conftestdata_t
8241 LN_S
="$gcc_cv_prog_LN_S"
8242 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8244 $as_echo "yes" >&6; }
8246 if test "$gcc_cv_prog_LN_S" = "ln"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8248 $as_echo "no, using ln" >&6; }
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8251 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8256 $as_echo_n "checking whether ln works... " >&6; }
8257 if ${acx_cv_prog_LN+:} false
; then :
8258 $as_echo_n "(cached) " >&6
8260 rm -f conftestdata_t
8261 echo >conftestdata_f
8262 if ln conftestdata_f conftestdata_t
2>/dev
/null
8268 rm -f conftestdata_f conftestdata_t
8271 if test $acx_cv_prog_LN = no
; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8274 $as_echo "no, using $LN" >&6; }
8276 LN
="$acx_cv_prog_LN"
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8278 $as_echo "yes" >&6; }
8281 if test -n "$ac_tool_prefix"; then
8282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8283 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if ${ac_cv_prog_RANLIB+:} false
; then :
8287 $as_echo_n "(cached) " >&6
8289 if test -n "$RANLIB"; then
8290 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8296 test -z "$as_dir" && as_dir
=.
8297 for ac_exec_ext
in '' $ac_executable_extensions; do
8298 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 RANLIB
=$ac_cv_prog_RANLIB
8310 if test -n "$RANLIB"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8312 $as_echo "$RANLIB" >&6; }
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8320 if test -z "$ac_cv_prog_RANLIB"; then
8321 ac_ct_RANLIB
=$RANLIB
8322 # Extract the first word of "ranlib", so it can be a program name with args.
8323 set dummy ranlib
; ac_word
=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8327 $as_echo_n "(cached) " >&6
8329 if test -n "$ac_ct_RANLIB"; then
8330 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir
=.
8337 for ac_exec_ext
in '' $ac_executable_extensions; do
8338 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8350 if test -n "$ac_ct_RANLIB"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8352 $as_echo "$ac_ct_RANLIB" >&6; }
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8358 if test "x$ac_ct_RANLIB" = x
; then
8361 case $cross_compiling:$ac_tool_warned in
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8365 ac_tool_warned
=yes ;;
8367 RANLIB
=$ac_ct_RANLIB
8370 RANLIB
="$ac_cv_prog_RANLIB"
8376 # Find a good install program. We prefer a C program (faster),
8377 # so one script is as good as another. But avoid the broken or
8378 # incompatible versions:
8379 # SysV /etc/install, /usr/sbin/install
8380 # SunOS /usr/etc/install
8381 # IRIX /sbin/install
8383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8385 # ./install, which can be erroneously created by make from ./install.sh.
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8387 $as_echo_n "checking for a BSD compatible install... " >&6; }
8388 if test -z "$INSTALL"; then
8389 if ${ac_cv_path_install+:} false
; then :
8390 $as_echo_n "(cached) " >&6
8392 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8393 for ac_dir
in $PATH; do
8394 # Account for people who put trailing slashes in PATH elements.
8396 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8398 # OSF1 and SCO ODT 3.0 have their own names for install.
8399 for ac_prog
in ginstall scoinst
install; do
8400 if test -f $ac_dir/$ac_prog; then
8401 if test $ac_prog = install &&
8402 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8403 # AIX install. It has an incompatible calling convention.
8404 # OSF/1 installbsd also uses dspmsg, but is usable.
8407 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8418 if test "${ac_cv_path_install+set}" = set; then
8419 INSTALL
="$ac_cv_path_install"
8421 # As a last resort, use the slow shell script. We don't cache a
8422 # path for INSTALL within a source directory, because that will
8423 # break other packages using the cache if that directory is
8424 # removed, or if the path is relative.
8425 INSTALL
="$ac_install_sh"
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8429 $as_echo "$INSTALL" >&6; }
8431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8432 # It thinks the first close brace ends the variable substitution.
8433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8435 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8438 # See if cmp has --ignore-initial.
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8440 $as_echo_n "checking for cmp's capabilities... " >&6; }
8441 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8442 $as_echo_n "(cached) " >&6
8446 gcc_cv_prog_cmp_skip
=slowcompare
8447 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8448 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8451 gcc_cv_prog_cmp_skip
=gnucompare
8454 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8455 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8456 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8459 gcc_cv_prog_cmp_skip
=fastcompare
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8467 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8468 make_compare_target
=$gcc_cv_prog_cmp_skip
8472 # See if we have the mktemp command.
8473 # Extract the first word of "mktemp", so it can be a program name with args.
8474 set dummy mktemp
; ac_word
=$2
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 $as_echo_n "checking for $ac_word... " >&6; }
8477 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8478 $as_echo_n "(cached) " >&6
8480 if test -n "$have_mktemp_command"; then
8481 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8487 test -z "$as_dir" && as_dir
=.
8488 for ac_exec_ext
in '' $ac_executable_extensions; do
8489 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8490 ac_cv_prog_have_mktemp_command
="yes"
8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8501 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8502 if test -n "$have_mktemp_command"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8504 $as_echo "$have_mktemp_command" >&6; }
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8512 # See if makeinfo has been installed and is modern enough
8513 # that we can use it.
8515 # Extract the first word of "makeinfo", so it can be a program name with args.
8516 set dummy makeinfo
; ac_word
=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8520 $as_echo_n "(cached) " >&6
8522 if test -n "$MAKEINFO"; then
8523 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8529 test -z "$as_dir" && as_dir
=.
8530 for ac_exec_ext
in '' $ac_executable_extensions; do
8531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_MAKEINFO
="makeinfo"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 MAKEINFO
=$ac_cv_prog_MAKEINFO
8543 if test -n "$MAKEINFO"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8545 $as_echo "$MAKEINFO" >&6; }
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8552 if test -n "$MAKEINFO"; then
8553 # Found it, now check the version.
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8555 $as_echo_n "checking for modern makeinfo... " >&6; }
8556 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8557 $as_echo_n "(cached) " >&6
8559 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8560 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8562 case $ac_prog_version in
8563 '') gcc_cv_prog_makeinfo_modern
=no
;;
8564 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8565 *) gcc_cv_prog_makeinfo_modern
=no
;;
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8570 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8572 gcc_cv_prog_makeinfo_modern
=no
8574 if test $gcc_cv_prog_makeinfo_modern = no
; then
8575 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8578 if test $gcc_cv_prog_makeinfo_modern = no
; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8580 *** Makeinfo is missing or too old.
8581 *** Info documentation will not be built." >&5
8582 $as_echo "$as_me: WARNING:
8583 *** Makeinfo is missing or too old.
8584 *** Info documentation will not be built." >&2;}
8591 # Is pod2man recent enough to regenerate manpages?
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8593 $as_echo_n "checking for recent Pod::Man... " >&6; }
8594 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8596 $as_echo "yes" >&6; }
8597 GENERATED_MANPAGES
=generated-manpages
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 $as_echo "no" >&6; }
8605 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8610 # Extract the first word of "$ac_prog", so it can be a program name with args.
8611 set dummy
$ac_prog; ac_word
=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if ${ac_cv_prog_FLEX+:} false
; then :
8615 $as_echo_n "(cached) " >&6
8617 if test -n "$FLEX"; then
8618 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8624 test -z "$as_dir" && as_dir
=.
8625 for ac_exec_ext
in '' $ac_executable_extensions; do
8626 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8627 ac_cv_prog_FLEX
="$ac_prog"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 FLEX
=$ac_cv_prog_FLEX
8638 if test -n "$FLEX"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8640 $as_echo "$FLEX" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8647 test -n "$FLEX" && break
8649 test -n "$FLEX" || FLEX
="$MISSING flex"
8653 for ac_prog
in bison
8655 # Extract the first word of "$ac_prog", so it can be a program name with args.
8656 set dummy
$ac_prog; ac_word
=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if ${ac_cv_prog_BISON+:} false
; then :
8660 $as_echo_n "(cached) " >&6
8662 if test -n "$BISON"; then
8663 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8669 test -z "$as_dir" && as_dir
=.
8670 for ac_exec_ext
in '' $ac_executable_extensions; do
8671 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_prog_BISON
="$ac_prog"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 BISON
=$ac_cv_prog_BISON
8683 if test -n "$BISON"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8685 $as_echo "$BISON" >&6; }
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8692 test -n "$BISON" && break
8694 test -n "$BISON" || BISON
="$MISSING bison"
8697 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8698 # check for build == host before using them.
8701 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8702 && test -d ..
/binutils
; then
8703 NM
='${objdir}/../binutils/nm-new'
8705 # Extract the first word of "nm", so it can be a program name with args.
8706 set dummy nm
; ac_word
=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if ${ac_cv_prog_NM+:} false
; then :
8710 $as_echo_n "(cached) " >&6
8712 if test -n "$NM"; then
8713 ac_cv_prog_NM
="$NM" # Let the user override the test.
8715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8719 test -z "$as_dir" && as_dir
=.
8720 for ac_exec_ext
in '' $ac_executable_extensions; do
8721 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8730 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8734 if test -n "$NM"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8736 $as_echo "$NM" >&6; }
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8746 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8747 && test -d ..
/binutils
; then
8748 AR
='${objdir}/../binutils/ar'
8750 # Extract the first word of "ar", so it can be a program name with args.
8751 set dummy
ar; ac_word
=$2
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8753 $as_echo_n "checking for $ac_word... " >&6; }
8754 if ${ac_cv_prog_AR+:} false
; then :
8755 $as_echo_n "(cached) " >&6
8757 if test -n "$AR"; then
8758 ac_cv_prog_AR
="$AR" # Let the user override the test.
8760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8764 test -z "$as_dir" && as_dir
=.
8765 for ac_exec_ext
in '' $ac_executable_extensions; do
8766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8779 if test -n "$AR"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8781 $as_echo "$AR" >&6; }
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8790 # The jit documentation looks better if built with sphinx, but can be
8791 # built with texinfo if sphinx is not available.
8792 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8793 # Extract the first word of "sphinx-build", so it can be a program name with args.
8794 set dummy sphinx-build
; ac_word
=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8798 $as_echo_n "(cached) " >&6
8800 if test -n "$doc_build_sys"; then
8801 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8807 test -z "$as_dir" && as_dir
=.
8808 for ac_exec_ext
in '' $ac_executable_extensions; do
8809 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8810 ac_cv_prog_doc_build_sys
="sphinx"
8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8821 doc_build_sys
=$ac_cv_prog_doc_build_sys
8822 if test -n "$doc_build_sys"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8824 $as_echo "$doc_build_sys" >&6; }
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8832 # --------------------
8833 # Checks for C headers
8834 # --------------------
8836 # Need to reject headers which give warnings, so that the -Werror bootstrap
8837 # works later. *sigh* This needs to come before all header checks.
8839 ac_c_preproc_warn_flag
=yes
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8842 $as_echo_n "checking for ANSI C header files... " >&6; }
8843 if ${ac_cv_header_stdc+:} false
; then :
8844 $as_echo_n "(cached) " >&6
8846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8861 if ac_fn_cxx_try_compile
"$LINENO"; then :
8862 ac_cv_header_stdc
=yes
8864 ac_cv_header_stdc
=no
8866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8868 if test $ac_cv_header_stdc = yes; then
8869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8876 $EGREP "memchr" >/dev
/null
2>&1; then :
8879 ac_cv_header_stdc
=no
8885 if test $ac_cv_header_stdc = yes; then
8886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8893 $EGREP "free" >/dev
/null
2>&1; then :
8896 ac_cv_header_stdc
=no
8902 if test $ac_cv_header_stdc = yes; then
8903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8904 if test "$cross_compiling" = yes; then :
8907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8911 #if ((' ' & 0x0FF) == 0x020)
8912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8915 # define ISLOWER(c) \
8916 (('a' <= (c) && (c) <= 'i') \
8917 || ('j' <= (c) && (c) <= 'r') \
8918 || ('s' <= (c) && (c) <= 'z'))
8919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8927 for (i = 0; i < 256; i++)
8928 if (XOR (islower (i), ISLOWER (i))
8929 || toupper (i) != TOUPPER (i))
8934 if ac_fn_cxx_try_run
"$LINENO"; then :
8937 ac_cv_header_stdc
=no
8939 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8940 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8946 $as_echo "$ac_cv_header_stdc" >&6; }
8947 if test $ac_cv_header_stdc = yes; then
8949 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8954 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8955 if ${ac_cv_header_time+:} false
; then :
8956 $as_echo_n "(cached) " >&6
8958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 #include <sys/types.h>
8961 #include <sys/time.h>
8967 if ((struct tm *) 0)
8973 if ac_fn_cxx_try_compile
"$LINENO"; then :
8974 ac_cv_header_time
=yes
8976 ac_cv_header_time
=no
8978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8981 $as_echo "$ac_cv_header_time" >&6; }
8982 if test $ac_cv_header_time = yes; then
8984 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8989 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8990 if ${gcc_cv_header_string+:} false
; then :
8991 $as_echo_n "(cached) " >&6
8993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8996 #include <strings.h>
9005 if ac_fn_cxx_try_compile
"$LINENO"; then :
9006 gcc_cv_header_string
=yes
9008 gcc_cv_header_string
=no
9010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9013 $as_echo "$gcc_cv_header_string" >&6; }
9014 if test $gcc_cv_header_string = yes; then
9016 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9021 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9022 if ${ac_cv_header_sys_wait_h+:} false
; then :
9023 $as_echo_n "(cached) " >&6
9025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 #include <sys/types.h>
9028 #include <sys/wait.h>
9030 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9033 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9041 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9046 if ac_fn_cxx_try_compile
"$LINENO"; then :
9047 ac_cv_header_sys_wait_h
=yes
9049 ac_cv_header_sys_wait_h
=no
9051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9054 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9055 if test $ac_cv_header_sys_wait_h = yes; then
9057 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9062 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9063 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9064 $as_echo_n "(cached) " >&6
9066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 #include <sys/types.h>
9069 #include <termios.h>
9075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9076 $EGREP "yes" >/dev
/null
2>&1; then :
9077 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9079 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9085 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9087 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9089 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9090 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9091 $as_echo_n "(cached) " >&6
9093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 #include <sys/types.h>
9096 #include <sys/ioctl.h>
9102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9103 $EGREP "yes" >/dev
/null
2>&1; then :
9104 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9106 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9112 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9114 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9116 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9121 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9122 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9123 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9124 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9126 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9127 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9128 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9129 cat >>confdefs.h
<<_ACEOF
9130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9137 # Check for thread headers.
9138 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9139 if test "x$ac_cv_header_thread_h" = xyes
; then :
9145 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9146 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9153 # These tests can't be done till we know if we have limits.h.
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9155 $as_echo_n "checking for CHAR_BIT... " >&6; }
9156 if ${gcc_cv_decl_char_bit+:} false
; then :
9157 $as_echo_n "(cached) " >&6
9159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9161 #ifdef HAVE_LIMITS_H
9168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9169 $EGREP "found" >/dev
/null
2>&1; then :
9170 gcc_cv_decl_char_bit
=yes
9172 gcc_cv_decl_char_bit
=no
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9179 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9180 if test $gcc_cv_decl_char_bit = no
; then
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9182 $as_echo_n "checking number of bits in a byte... " >&6; }
9183 if ${gcc_cv_c_nbby+:} false
; then :
9184 $as_echo_n "(cached) " >&6
9188 while test $i -lt 65; do
9189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9196 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9197 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9203 if ac_fn_cxx_try_compile
"$LINENO"; then :
9204 gcc_cv_c_nbby
=$i; break
9206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9209 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9213 $as_echo "$gcc_cv_c_nbby" >&6; }
9214 if test $gcc_cv_c_nbby = failed
; then
9215 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9218 cat >>confdefs.h
<<_ACEOF
9219 #define CHAR_BIT $gcc_cv_c_nbby
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9225 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9226 if ${ac_cv_c_bigendian+:} false
; then :
9227 $as_echo_n "(cached) " >&6
9229 ac_cv_c_bigendian
=unknown
9230 # See if we're dealing with a universal compiler.
9231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #ifndef __APPLE_CC__
9234 not a universal capable compiler
9239 if ac_fn_cxx_try_compile
"$LINENO"; then :
9241 # Check for potential -arch flags. It is not universal unless
9242 # there are at least two -arch flags with different values.
9245 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9246 if test -n "$ac_prev"; then
9248 i?
86 | x86_64 | ppc | ppc64
)
9249 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9252 ac_cv_c_bigendian
=universal
9258 elif test "x$ac_word" = "x-arch"; then
9263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9264 if test $ac_cv_c_bigendian = unknown
; then
9265 # See if sys/param.h defines the BYTE_ORDER macro.
9266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 #include <sys/types.h>
9269 #include <sys/param.h>
9274 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9275 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9284 if ac_fn_cxx_try_compile
"$LINENO"; then :
9285 # It does; now see whether it defined to BIG_ENDIAN or not.
9286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 #include <sys/types.h>
9289 #include <sys/param.h>
9294 #if BYTE_ORDER != BIG_ENDIAN
9302 if ac_fn_cxx_try_compile
"$LINENO"; then :
9303 ac_cv_c_bigendian
=yes
9305 ac_cv_c_bigendian
=no
9307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9311 if test $ac_cv_c_bigendian = unknown
; then
9312 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9320 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9328 if ac_fn_cxx_try_compile
"$LINENO"; then :
9329 # It does; now see whether it defined to _BIG_ENDIAN or not.
9330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9345 if ac_fn_cxx_try_compile
"$LINENO"; then :
9346 ac_cv_c_bigendian
=yes
9348 ac_cv_c_bigendian
=no
9350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9354 if test $ac_cv_c_bigendian = unknown
; then
9355 # Compile a test program.
9356 if test "$cross_compiling" = yes; then :
9357 # Try to guess by grepping values from an object file.
9358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 short int ascii_mm[] =
9361 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9362 short int ascii_ii[] =
9363 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9364 int use_ascii (int i) {
9365 return ascii_mm[i] + ascii_ii[i];
9367 short int ebcdic_ii[] =
9368 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9369 short int ebcdic_mm[] =
9370 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9371 int use_ebcdic (int i) {
9372 return ebcdic_mm[i] + ebcdic_ii[i];
9379 return use_ascii (foo) == use_ebcdic (foo);
9384 if ac_fn_cxx_try_compile
"$LINENO"; then :
9385 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9386 ac_cv_c_bigendian
=yes
9388 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9389 if test "$ac_cv_c_bigendian" = unknown
; then
9390 ac_cv_c_bigendian
=no
9392 # finding both strings is unlikely to happen, but who knows?
9393 ac_cv_c_bigendian
=unknown
9397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 $ac_includes_default
9406 /* Are we little or big endian? From Harbison&Steele. */
9410 char c[sizeof (long int)];
9413 return u.c[sizeof (long int) - 1] == 1;
9419 if ac_fn_cxx_try_run
"$LINENO"; then :
9420 ac_cv_c_bigendian
=no
9422 ac_cv_c_bigendian
=yes
9424 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9425 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9431 $as_echo "$ac_cv_c_bigendian" >&6; }
9432 case $ac_cv_c_bigendian in #(
9434 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9440 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9444 as_fn_error $?
"unknown endianness
9445 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9449 # ----------------------
9450 # Checks for C++ headers
9451 # ----------------------
9454 ac_cpp
='$CXXCPP $CPPFLAGS'
9455 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9456 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9457 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9459 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9460 if test -z "$CXXCPP"; then
9461 if ${ac_cv_prog_CXXCPP+:} false
; then :
9462 $as_echo_n "(cached) " >&6
9464 # Double quotes because CXXCPP needs to be expanded
9465 for CXXCPP
in "$CXX -E" "/lib/cpp"
9468 for ac_cxx_preproc_warn_flag
in '' yes
9470 # Use a header file that comes with gcc, so configuring glibc
9471 # with a fresh cross-compiler works.
9472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9473 # <limits.h> exists even on freestanding compilers.
9474 # On the NeXT, cc -E runs the code through the compiler's parser,
9475 # not just through cpp. "Syntax error" is here to catch this case.
9476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9479 # include <limits.h>
9481 # include <assert.h>
9485 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9488 # Broken: fails on valid input.
9491 rm -f conftest.err conftest.i conftest.
$ac_ext
9493 # OK, works on sane cases. Now check whether nonexistent headers
9494 # can be detected and how.
9495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 #include <ac_nonexistent.h>
9499 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9500 # Broken: success on invalid input.
9503 # Passes both tests.
9507 rm -f conftest.err conftest.i conftest.
$ac_ext
9510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9511 rm -f conftest.i conftest.err conftest.
$ac_ext
9512 if $ac_preproc_ok; then :
9517 ac_cv_prog_CXXCPP
=$CXXCPP
9520 CXXCPP
=$ac_cv_prog_CXXCPP
9522 ac_cv_prog_CXXCPP
=$CXXCPP
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9525 $as_echo "$CXXCPP" >&6; }
9527 for ac_cxx_preproc_warn_flag
in '' yes
9529 # Use a header file that comes with gcc, so configuring glibc
9530 # with a fresh cross-compiler works.
9531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9532 # <limits.h> exists even on freestanding compilers.
9533 # On the NeXT, cc -E runs the code through the compiler's parser,
9534 # not just through cpp. "Syntax error" is here to catch this case.
9535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9538 # include <limits.h>
9540 # include <assert.h>
9544 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9547 # Broken: fails on valid input.
9550 rm -f conftest.err conftest.i conftest.
$ac_ext
9552 # OK, works on sane cases. Now check whether nonexistent headers
9553 # can be detected and how.
9554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 #include <ac_nonexistent.h>
9558 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9559 # Broken: success on invalid input.
9562 # Passes both tests.
9566 rm -f conftest.err conftest.i conftest.
$ac_ext
9569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9570 rm -f conftest.i conftest.err conftest.
$ac_ext
9571 if $ac_preproc_ok; then :
9574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9577 See \`config.log' for more details" >&5
9578 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9579 See \`config.log' for more details" >&2;}; }
9583 ac_cpp
='$CXXCPP $CPPFLAGS'
9584 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9585 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9586 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9589 for ac_header
in unordered_map
9591 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9592 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9593 cat >>confdefs.h
<<_ACEOF
9594 #define HAVE_UNORDERED_MAP 1
9600 for ac_header
in tr1/unordered_map
9602 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9603 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9604 cat >>confdefs.h
<<_ACEOF
9605 #define HAVE_TR1_UNORDERED_MAP 1
9611 for ac_header
in ext
/hash_map
9613 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9614 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9615 cat >>confdefs.h
<<_ACEOF
9616 #define HAVE_EXT_HASH_MAP 1
9624 # Dependency checking.
9627 rm -rf .tst
2>/dev
/null
9628 mkdir .tst
2>/dev
/null
9629 if test -d .tst
; then
9634 rmdir .tst
2>/dev
/null
9636 DEPDIR
="${am__leading_dot}deps"
9638 ac_config_commands
="$ac_config_commands depdir"
9641 ac_config_commands
="$ac_config_commands gccdepdir"
9644 depcc
="$CXX" am_compiler_list
=
9646 am_depcomp
=$ac_aux_dir/depcomp
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9648 $as_echo_n "checking dependency style of $depcc... " >&6; }
9649 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9650 $as_echo_n "(cached) " >&6
9652 if test -f "$am_depcomp"; then
9653 # We make a subdir and do the tests there. Otherwise we can end up
9654 # making bogus files that we don't know about and never remove. For
9655 # instance it was reported that on HP-UX the gcc test will end up
9656 # making a dummy file named `D' -- because `-MD' means `put the output
9659 # Copy depcomp to subdir because otherwise we won't find it if we're
9660 # using a relative directory.
9661 cp "$am_depcomp" conftest.dir
9663 # We will build objects and dependencies in a subdirectory because
9664 # it helps to detect inapplicable dependency modes. For instance
9665 # both Tru64's cc and ICC support -MD to output dependencies as a
9666 # side effect of compilation, but ICC will put the dependencies in
9667 # the current directory while Tru64 will put them in the object
9671 am_cv_CXX_dependencies_compiler_type
=none
9672 if test "$am_compiler_list" = ""; then
9673 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9675 for depmode
in $am_compiler_list; do
9676 if test $depmode = none
; then break; fi
9678 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9679 # Setup a source with many dependencies, because some compilers
9680 # like to wrap large dependency lists on column 80 (with \), and
9681 # we should not choose a depcomp mode which is confused by this.
9683 # We need to recreate these files for each test, as the compiler may
9684 # overwrite some of them when testing with obscure command lines.
9685 # This happens at least with the AIX C compiler.
9687 for i
in 1 2 3 4 5 6; do
9688 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9689 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9690 # Solaris 8's {/usr,}/bin/sh.
9691 touch sub
/conftst
$i.h
9693 echo "include sub/conftest.Po" > confmf
9695 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9696 # mode. It turns out that the SunPro C++ compiler does not properly
9697 # handle `-M -o', and we need to detect this.
9698 depcmd
="depmode=$depmode \
9699 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9700 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9701 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9702 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9703 if env
$depcmd > conftest.err
2>&1 &&
9704 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9705 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9706 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9707 # icc doesn't choke on unknown options, it will just issue warnings
9708 # or remarks (even with -Werror). So we grep stderr for any message
9709 # that says an option was ignored or not supported.
9710 # When given -MP, icc 7.0 and 7.1 complain thusly:
9711 # icc: Command line warning: ignoring option '-M'; no argument required
9712 # The diagnosis changed in icc 8.0:
9713 # icc: Command line remark: option '-MP' not supported
9714 if (grep 'ignoring option' conftest.err ||
9715 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9716 am_cv_CXX_dependencies_compiler_type
=$depmode
9717 $as_echo "$as_me:$LINENO: success" >&5
9721 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9722 sed -e 's/^/| /' < conftest.err
>&5
9728 am_cv_CXX_dependencies_compiler_type
=none
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9733 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9734 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9735 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9736 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9746 # These libraries may be used by collect2.
9747 # We may need a special search path to get them linked.
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9749 $as_echo_n "checking for collect2 libraries... " >&6; }
9750 if ${gcc_cv_collect2_libs+:} false
; then :
9751 $as_echo_n "(cached) " >&6
9754 for libs
in '' -lld -lmld \
9755 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9756 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9762 /* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
9777 if ac_fn_cxx_try_link
"$LINENO"; then :
9778 gcc_cv_collect2_libs
="$libs"; break
9780 rm -f core conftest.err conftest.
$ac_objext \
9781 conftest
$ac_exeext conftest.
$ac_ext
9784 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9787 $as_echo "$gcc_cv_collect2_libs" >&6; }
9788 case $gcc_cv_collect2_libs in
9790 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9794 # When building Ada code on Alpha, we need exc_resume which is usually in
9795 # -lexc. So test for it.
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9799 $as_echo_n "checking for library containing exc_resume... " >&6; }
9800 if ${ac_cv_search_exc_resume+:} false
; then :
9801 $as_echo_n "(cached) " >&6
9803 ac_func_search_save_LIBS
=$LIBS
9804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9807 /* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
9817 return exc_resume ();
9822 for ac_lib
in '' exc
; do
9823 if test -z "$ac_lib"; then
9824 ac_res
="none required"
9827 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9829 if ac_fn_cxx_try_link
"$LINENO"; then :
9830 ac_cv_search_exc_resume
=$ac_res
9832 rm -f core conftest.err conftest.
$ac_objext \
9834 if ${ac_cv_search_exc_resume+:} false
; then :
9838 if ${ac_cv_search_exc_resume+:} false
; then :
9841 ac_cv_search_exc_resume
=no
9844 LIBS
=$ac_func_search_save_LIBS
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9847 $as_echo "$ac_cv_search_exc_resume" >&6; }
9848 ac_res
=$ac_cv_search_exc_resume
9849 if test "$ac_res" != no
; then :
9850 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9858 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9862 $as_echo_n "checking for library containing kstat_open... " >&6; }
9863 if ${ac_cv_search_kstat_open+:} false
; then :
9864 $as_echo_n "(cached) " >&6
9866 ac_func_search_save_LIBS
=$LIBS
9867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9870 /* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
9880 return kstat_open ();
9885 for ac_lib
in '' kstat
; do
9886 if test -z "$ac_lib"; then
9887 ac_res
="none required"
9890 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9892 if ac_fn_cxx_try_link
"$LINENO"; then :
9893 ac_cv_search_kstat_open
=$ac_res
9895 rm -f core conftest.err conftest.
$ac_objext \
9897 if ${ac_cv_search_kstat_open+:} false
; then :
9901 if ${ac_cv_search_kstat_open+:} false
; then :
9904 ac_cv_search_kstat_open
=no
9907 LIBS
=$ac_func_search_save_LIBS
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9910 $as_echo "$ac_cv_search_kstat_open" >&6; }
9911 ac_res
=$ac_cv_search_kstat_open
9912 if test "$ac_res" != no
; then :
9913 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9917 EXTRA_GCC_LIBS
="$LIBS"
9921 # Solaris needs libsocket and libnsl for socket functions before 11.4.
9922 # C++ needs those for libcody.
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9927 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9928 if ${ac_cv_search_gethostbyname+:} false
; then :
9929 $as_echo_n "(cached) " >&6
9931 ac_func_search_save_LIBS
=$LIBS
9932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9935 /* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
9941 char gethostbyname ();
9945 return gethostbyname ();
9950 for ac_lib
in '' nsl
; do
9951 if test -z "$ac_lib"; then
9952 ac_res
="none required"
9955 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9957 if ac_fn_cxx_try_link
"$LINENO"; then :
9958 ac_cv_search_gethostbyname
=$ac_res
9960 rm -f core conftest.err conftest.
$ac_objext \
9962 if ${ac_cv_search_gethostbyname+:} false
; then :
9966 if ${ac_cv_search_gethostbyname+:} false
; then :
9969 ac_cv_search_gethostbyname
=no
9972 LIBS
=$ac_func_search_save_LIBS
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9975 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9976 ac_res
=$ac_cv_search_gethostbyname
9977 if test "$ac_res" != no
; then :
9978 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9983 $as_echo_n "checking for library containing socket... " >&6; }
9984 if ${ac_cv_search_socket+:} false
; then :
9985 $as_echo_n "(cached) " >&6
9987 ac_func_search_save_LIBS
=$LIBS
9988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9991 /* Override any GCC internal prototype to avoid an error.
9992 Use char because int might match the return type of a GCC
9993 builtin and then its argument prototype would still apply. */
10006 for ac_lib
in '' socket
; do
10007 if test -z "$ac_lib"; then
10008 ac_res
="none required"
10011 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10013 if ac_fn_cxx_try_link
"$LINENO"; then :
10014 ac_cv_search_socket
=$ac_res
10016 rm -f core conftest.err conftest.
$ac_objext \
10018 if ${ac_cv_search_socket+:} false
; then :
10022 if ${ac_cv_search_socket+:} false
; then :
10025 ac_cv_search_socket
=no
10027 rm conftest.
$ac_ext
10028 LIBS
=$ac_func_search_save_LIBS
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10031 $as_echo "$ac_cv_search_socket" >&6; }
10032 ac_res
=$ac_cv_search_socket
10033 if test "$ac_res" != no
; then :
10034 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10039 $as_echo_n "checking for socket in -lsocket... " >&6; }
10040 if ${ac_cv_lib_socket_socket+:} false
; then :
10041 $as_echo_n "(cached) " >&6
10043 ac_check_lib_save_LIBS
=$LIBS
10044 LIBS
="-lsocket -lnsl $LIBS"
10045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10048 /* Override any GCC internal prototype to avoid an error.
10049 Use char because int might match the return type of a GCC
10050 builtin and then its argument prototype would still apply. */
10063 if ac_fn_cxx_try_link
"$LINENO"; then :
10064 ac_cv_lib_socket_socket
=yes
10066 ac_cv_lib_socket_socket
=no
10068 rm -f core conftest.err conftest.
$ac_objext \
10069 conftest
$ac_exeext conftest.
$ac_ext
10070 LIBS
=$ac_check_lib_save_LIBS
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10073 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10074 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10075 LIBS
="-lsocket -lnsl $LIBS"
10085 # Some systems put ldexp and frexp in libm instead of libc; assume
10086 # they're both in the same place. jcf-dump needs them.
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10090 $as_echo_n "checking for library containing ldexp... " >&6; }
10091 if ${ac_cv_search_ldexp+:} false
; then :
10092 $as_echo_n "(cached) " >&6
10094 ac_func_search_save_LIBS
=$LIBS
10095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10113 for ac_lib
in '' m
; do
10114 if test -z "$ac_lib"; then
10115 ac_res
="none required"
10118 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10120 if ac_fn_cxx_try_link
"$LINENO"; then :
10121 ac_cv_search_ldexp
=$ac_res
10123 rm -f core conftest.err conftest.
$ac_objext \
10125 if ${ac_cv_search_ldexp+:} false
; then :
10129 if ${ac_cv_search_ldexp+:} false
; then :
10132 ac_cv_search_ldexp
=no
10134 rm conftest.
$ac_ext
10135 LIBS
=$ac_func_search_save_LIBS
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10138 $as_echo "$ac_cv_search_ldexp" >&6; }
10139 ac_res
=$ac_cv_search_ldexp
10140 if test "$ac_res" != no
; then :
10141 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10149 # Some systems need dlopen
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10153 $as_echo_n "checking for library containing dlopen... " >&6; }
10154 if ${ac_cv_search_dlopen+:} false
; then :
10155 $as_echo_n "(cached) " >&6
10157 ac_func_search_save_LIBS
=$LIBS
10158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10161 /* Override any GCC internal prototype to avoid an error.
10162 Use char because int might match the return type of a GCC
10163 builtin and then its argument prototype would still apply. */
10176 for ac_lib
in '' dl
; do
10177 if test -z "$ac_lib"; then
10178 ac_res
="none required"
10181 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10183 if ac_fn_cxx_try_link
"$LINENO"; then :
10184 ac_cv_search_dlopen
=$ac_res
10186 rm -f core conftest.err conftest.
$ac_objext \
10188 if ${ac_cv_search_dlopen+:} false
; then :
10192 if ${ac_cv_search_dlopen+:} false
; then :
10195 ac_cv_search_dlopen
=no
10197 rm conftest.
$ac_ext
10198 LIBS
=$ac_func_search_save_LIBS
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10201 $as_echo "$ac_cv_search_dlopen" >&6; }
10202 ac_res
=$ac_cv_search_dlopen
10203 if test "$ac_res" != no
; then :
10204 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10212 # Use <inttypes.h> only if it exists,
10213 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10216 $as_echo_n "checking for inttypes.h... " >&6; }
10217 if ${gcc_cv_header_inttypes_h+:} false
; then :
10218 $as_echo_n "(cached) " >&6
10220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222 #define __STDC_FORMAT_MACROS
10223 #include <sys/types.h>
10224 #include <inttypes.h>
10236 if ac_fn_cxx_try_compile
"$LINENO"; then :
10237 gcc_cv_header_inttypes_h
=yes
10239 gcc_cv_header_inttypes_h
=no
10241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10245 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10246 if test $gcc_cv_header_inttypes_h = yes; then
10248 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10252 # Look for the ZSTD package.
10262 # Check whether --with-zstd was given.
10263 if test "${with_zstd+set}" = set; then :
10264 withval
=$with_zstd;
10268 # Check whether --with-zstd-include was given.
10269 if test "${with_zstd_include+set}" = set; then :
10270 withval
=$with_zstd_include;
10274 # Check whether --with-zstd-lib was given.
10275 if test "${with_zstd_lib+set}" = set; then :
10276 withval
=$with_zstd_lib;
10279 case "x$with_zstd" in
10285 *) ZSTD_INCLUDE
=$with_zstd/include
10286 ZSTD_LIB
=$with_zstd/lib
10290 if test "x$with_zstd" != xno
; then
10291 if test "x$with_zstd_include" != x
; then
10292 ZSTD_INCLUDE
=$with_zstd_include
10294 if test "x$with_zstd_lib" != x
; then
10295 ZSTD_LIB
=$with_zstd_lib
10297 if test "x$ZSTD_INCLUDE" != x \
10298 && test "x$ZSTD_INCLUDE" != xno
; then
10299 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10301 if test "x$ZSTD_LIB" != x \
10302 && test "x$ZSTD_LIB" != xno
; then
10303 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10306 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10307 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10310 $as_echo_n "checking for zstd.h... " >&6; }
10311 if ${gcc_cv_header_zstd_h+:} false
; then :
10312 $as_echo_n "(cached) " >&6
10314 # We require version 1.3.0 or later. This is the first version that has
10315 # ZSTD_getFrameContentSize.
10316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10319 #if ZSTD_VERSION_NUMBER < 10300
10320 #error "need zstd 1.3.0 or better"
10330 if ac_fn_cxx_try_compile
"$LINENO"; then :
10331 gcc_cv_header_zstd_h
=yes
10333 gcc_cv_header_zstd_h
=no
10335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10339 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10340 if test $gcc_cv_header_zstd_h = yes; then
10342 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10344 elif test "x$with_zstd" != x
; then
10345 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10348 # LTO can use zstd compression algorithm
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10352 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10353 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10354 $as_echo_n "(cached) " >&6
10356 ac_func_search_save_LIBS
=$LIBS
10357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10366 char ZSTD_compress ();
10370 return ZSTD_compress ();
10375 for ac_lib
in '' zstd
; do
10376 if test -z "$ac_lib"; then
10377 ac_res
="none required"
10380 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10382 if ac_fn_cxx_try_link
"$LINENO"; then :
10383 ac_cv_search_ZSTD_compress
=$ac_res
10385 rm -f core conftest.err conftest.
$ac_objext \
10387 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10391 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10394 ac_cv_search_ZSTD_compress
=no
10396 rm conftest.
$ac_ext
10397 LIBS
=$ac_func_search_save_LIBS
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10400 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10401 ac_res
=$ac_cv_search_ZSTD_compress
10402 if test "$ac_res" != no
; then :
10403 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10414 for ac_func
in times clock kill getrlimit setrlimit atoq \
10415 popen sysconf strsignal getrusage nl_langinfo \
10416 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10417 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 mallinfo mallinfo2 fstatat
10419 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10420 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10421 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10422 cat >>confdefs.h
<<_ACEOF
10423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10430 if test x
$ac_cv_func_mbstowcs = xyes
; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10432 $as_echo_n "checking whether mbstowcs works... " >&6; }
10433 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10434 $as_echo_n "(cached) " >&6
10436 if test "$cross_compiling" = yes; then :
10437 gcc_cv_func_mbstowcs_works
=yes
10439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441 #include <stdlib.h>
10444 mbstowcs(0, "", 0);
10448 if ac_fn_cxx_try_run
"$LINENO"; then :
10449 gcc_cv_func_mbstowcs_works
=yes
10451 gcc_cv_func_mbstowcs_works
=no
10453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10459 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10460 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10462 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10467 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10468 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10472 cat >>confdefs.h
<<_ACEOF
10473 #define ssize_t int
10478 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10479 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10483 cat >>confdefs.h
<<_ACEOF
10484 #define caddr_t char *
10489 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10491 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10493 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10499 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10500 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10501 gcc_header_sys_mman_h
=yes
10503 gcc_header_sys_mman_h
=no
10506 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10507 if test "x$ac_cv_func_mmap" = xyes
; then :
10513 if test "$gcc_header_sys_mman_h" != yes \
10514 ||
test "$gcc_func_mmap" != yes; then
10515 gcc_cv_func_mmap_file
=no
10516 gcc_cv_func_mmap_dev_zero
=no
10517 gcc_cv_func_mmap_anon
=no
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10520 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10521 if ${gcc_cv_func_mmap_file+:} false
; then :
10522 $as_echo_n "(cached) " >&6
10524 # Add a system to this blacklist if
10525 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10526 # memory area containing the same data that you'd get if you applied
10527 # read() to the same fd. The only system known to have a problem here
10528 # is VMS, where text files have record structure.
10531 gcc_cv_func_mmap_file
=no
;;
10533 gcc_cv_func_mmap_file
=yes;;
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10537 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10539 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10540 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10541 $as_echo_n "(cached) " >&6
10543 # Add a system to this blacklist if it has mmap() but /dev/zero
10544 # does not exist, or if mmapping /dev/zero does not give anonymous
10545 # zeroed pages with both the following properties:
10546 # 1. If you map N consecutive pages in with one call, and then
10547 # unmap any subset of those pages, the pages that were not
10548 # explicitly unmapped remain accessible.
10549 # 2. If you map two adjacent blocks of memory and then unmap them
10550 # both at once, they must both go away.
10551 # Systems known to be in this category are Windows (all variants),
10554 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10555 gcc_cv_func_mmap_dev_zero
=no
;;
10557 gcc_cv_func_mmap_dev_zero
=yes;;
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10561 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10563 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10565 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10566 if ${gcc_cv_decl_map_anon+:} false
; then :
10567 $as_echo_n "(cached) " >&6
10569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571 #include <sys/types.h>
10572 #include <sys/mman.h>
10573 #include <unistd.h>
10575 #ifndef MAP_ANONYMOUS
10576 #define MAP_ANONYMOUS MAP_ANON
10582 int n = MAP_ANONYMOUS;
10587 if ac_fn_cxx_try_compile
"$LINENO"; then :
10588 gcc_cv_decl_map_anon
=yes
10590 gcc_cv_decl_map_anon
=no
10592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10595 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10597 if test $gcc_cv_decl_map_anon = no
; then
10598 gcc_cv_func_mmap_anon
=no
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10601 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10602 if ${gcc_cv_func_mmap_anon+:} false
; then :
10603 $as_echo_n "(cached) " >&6
10605 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10606 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10607 # doesn't give anonymous zeroed pages with the same properties listed
10608 # above for use of /dev/zero.
10609 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10611 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10612 gcc_cv_func_mmap_anon
=no
;;
10614 gcc_cv_func_mmap_anon
=yes;;
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10618 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10622 if test $gcc_cv_func_mmap_file = yes; then
10624 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10627 if test $gcc_cv_func_mmap_dev_zero = yes; then
10629 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10632 if test $gcc_cv_func_mmap_anon = yes; then
10634 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10641 # Under VMS, vfork works very differently than on Unix. The standard test
10642 # won't work, and it isn't easily adaptable. It makes more sense to
10644 ac_cv_func_vfork_works
=yes
10647 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10648 if test "x$ac_cv_type_pid_t" = xyes
; then :
10652 cat >>confdefs.h
<<_ACEOF
10658 for ac_header
in vfork.h
10660 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10661 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10662 cat >>confdefs.h
<<_ACEOF
10663 #define HAVE_VFORK_H 1
10669 for ac_func
in fork vfork
10671 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10672 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10673 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10674 cat >>confdefs.h
<<_ACEOF
10675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10681 if test "x$ac_cv_func_fork" = xyes
; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10683 $as_echo_n "checking for working fork... " >&6; }
10684 if ${ac_cv_func_fork_works+:} false
; then :
10685 $as_echo_n "(cached) " >&6
10687 if test "$cross_compiling" = yes; then :
10688 ac_cv_func_fork_works
=cross
10690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 $ac_includes_default
10697 /* By Ruediger Kuhlmann. */
10698 return fork () < 0;
10704 if ac_fn_cxx_try_run
"$LINENO"; then :
10705 ac_cv_func_fork_works
=yes
10707 ac_cv_func_fork_works
=no
10709 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10710 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10715 $as_echo "$ac_cv_func_fork_works" >&6; }
10718 ac_cv_func_fork_works
=$ac_cv_func_fork
10720 if test "x$ac_cv_func_fork_works" = xcross
; then
10722 *-*-amigaos* |
*-*-msdosdjgpp*)
10723 # Override, as these systems have only a dummy fork() stub
10724 ac_cv_func_fork_works
=no
10727 ac_cv_func_fork_works
=yes
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10731 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10733 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10734 if test "x$ac_cv_func_vfork" = xyes
; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10736 $as_echo_n "checking for working vfork... " >&6; }
10737 if ${ac_cv_func_vfork_works+:} false
; then :
10738 $as_echo_n "(cached) " >&6
10740 if test "$cross_compiling" = yes; then :
10741 ac_cv_func_vfork_works
=cross
10743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745 /* Thanks to Paul Eggert for this test. */
10746 $ac_includes_default
10747 #include <sys/wait.h>
10748 #ifdef HAVE_VFORK_H
10749 # include <vfork.h>
10751 /* On some sparc systems, changes by the child to local and incoming
10752 argument registers are propagated back to the parent. The compiler
10753 is told about this with #include <vfork.h>, but some compilers
10754 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10755 static variable whose address is put into a register that is
10756 clobbered by the vfork. */
10759 sparc_address_test (int arg)
10761 sparc_address_test (arg) int arg;
10764 static pid_t child;
10782 pid_t parent = getpid ();
10785 sparc_address_test (0);
10790 /* Here is another test for sparc vfork register problems. This
10791 test uses lots of local variables, at least as many local
10792 variables as main has allocated so far including compiler
10793 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10794 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10795 reuse the register of parent for one of the local variables,
10796 since it will think that parent can't possibly be used any more
10797 in this routine. Assigning to the local variable will thus
10798 munge parent in the parent process. */
10800 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10801 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10802 /* Convince the compiler that p..p7 are live; otherwise, it might
10803 use the same hardware register for all 8 local variables. */
10804 if (p != p1 || p != p2 || p != p3 || p != p4
10805 || p != p5 || p != p6 || p != p7)
10808 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10809 from child file descriptors. If the child closes a descriptor
10810 before it execs or exits, this munges the parent's descriptor
10811 as well. Test for this by closing stdout in the child. */
10812 _exit(close(fileno(stdout)) != 0);
10817 while (wait(&status) != child)
10820 /* Was there some problem with vforking? */
10823 /* Did the child fail? (This shouldn't happen.) */
10826 /* Did the vfork/compiler bug occur? */
10827 || parent != getpid()
10829 /* Did the file descriptor bug occur? */
10830 || fstat(fileno(stdout), &st) != 0
10835 if ac_fn_cxx_try_run
"$LINENO"; then :
10836 ac_cv_func_vfork_works
=yes
10838 ac_cv_func_vfork_works
=no
10840 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10841 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10846 $as_echo "$ac_cv_func_vfork_works" >&6; }
10849 if test "x$ac_cv_func_fork_works" = xcross
; then
10850 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10852 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10855 if test "x$ac_cv_func_vfork_works" = xyes
; then
10857 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10861 $as_echo "#define vfork fork" >>confdefs.h
10864 if test "x$ac_cv_func_fork_works" = xyes
; then
10866 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10872 if test "X$prefix" = "XNONE"; then
10873 acl_final_prefix
="$ac_default_prefix"
10875 acl_final_prefix
="$prefix"
10877 if test "X$exec_prefix" = "XNONE"; then
10878 acl_final_exec_prefix
='${prefix}'
10880 acl_final_exec_prefix
="$exec_prefix"
10882 acl_save_prefix
="$prefix"
10883 prefix
="$acl_final_prefix"
10884 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10885 prefix
="$acl_save_prefix"
10888 # Check whether --with-gnu-ld was given.
10889 if test "${with_gnu_ld+set}" = set; then :
10890 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10895 # Prepare PATH_SEPARATOR.
10896 # The user is always right.
10897 if test "${PATH_SEPARATOR+set}" != set; then
10898 echo "#! /bin/sh" >conf$$.sh
10899 echo "exit 0" >>conf$$.sh
10901 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10909 if test "$GCC" = yes; then
10910 # Check if gcc -print-prog-name=ld gives a path.
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10912 $as_echo_n "checking for ld used by GCC... " >&6; }
10915 # gcc leaves a trailing carriage return which upsets mingw
10916 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10918 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10921 # Accept absolute paths.
10922 [\\/]* |
[A-Za-z
]:[\\/]*)
10923 re_direlt
='/[^/][^/]*/\.\./'
10924 # Canonicalize the path of ld
10925 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10926 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10927 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10929 test -z "$LD" && LD
="$ac_prog"
10932 # If it fails, then pretend we aren't using GCC.
10936 # If it is relative, then search for the first ld in PATH.
10937 with_gnu_ld
=unknown
10940 elif test "$with_gnu_ld" = yes; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10942 $as_echo_n "checking for GNU ld... " >&6; }
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10945 $as_echo_n "checking for non-GNU ld... " >&6; }
10947 if ${acl_cv_path_LD+:} false
; then :
10948 $as_echo_n "(cached) " >&6
10950 if test -z "$LD"; then
10951 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10952 for ac_dir
in $PATH; do
10953 test -z "$ac_dir" && ac_dir
=.
10954 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10955 acl_cv_path_LD
="$ac_dir/$ac_prog"
10956 # Check to see if the program is GNU ld. I'd rather use --version,
10957 # but apparently some GNU ld's only accept -v.
10958 # Break only if it was the GNU/non-GNU ld that we prefer.
10959 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10960 test "$with_gnu_ld" != no
&& break
10962 test "$with_gnu_ld" != yes && break
10968 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10972 LD
="$acl_cv_path_LD"
10973 if test -n "$LD"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10975 $as_echo "$LD" >&6; }
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10980 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10982 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10983 if ${acl_cv_prog_gnu_ld+:} false
; then :
10984 $as_echo_n "(cached) " >&6
10986 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10987 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10988 acl_cv_prog_gnu_ld
=yes
10990 acl_cv_prog_gnu_ld
=no
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10994 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10995 with_gnu_ld
=$acl_cv_prog_gnu_ld
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11000 $as_echo_n "checking for shared library run path origin... " >&6; }
11001 if ${acl_cv_rpath+:} false
; then :
11002 $as_echo_n "(cached) " >&6
11005 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11006 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11008 rm -f .
/conftest.sh
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11013 $as_echo "$acl_cv_rpath" >&6; }
11015 libext
="$acl_cv_libext"
11016 shlibext
="$acl_cv_shlibext"
11017 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11018 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11019 hardcode_direct
="$acl_cv_hardcode_direct"
11020 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11021 # Check whether --enable-rpath was given.
11022 if test "${enable_rpath+set}" = set; then :
11023 enableval
=$enable_rpath; :
11037 acl_save_prefix
="$prefix"
11038 prefix
="$acl_final_prefix"
11039 acl_save_exec_prefix
="$exec_prefix"
11040 exec_prefix
="$acl_final_exec_prefix"
11042 eval additional_includedir
=\"$includedir\"
11043 eval additional_libdir
=\"$libdir\"
11045 exec_prefix
="$acl_save_exec_prefix"
11046 prefix
="$acl_save_prefix"
11049 # Check whether --with-libiconv-prefix was given.
11050 if test "${with_libiconv_prefix+set}" = set; then :
11051 withval
=$with_libiconv_prefix;
11052 if test "X$withval" = "Xno"; then
11055 if test "X$withval" = "X"; then
11057 acl_save_prefix
="$prefix"
11058 prefix
="$acl_final_prefix"
11059 acl_save_exec_prefix
="$exec_prefix"
11060 exec_prefix
="$acl_final_exec_prefix"
11062 eval additional_includedir
=\"$includedir\"
11063 eval additional_libdir
=\"$libdir\"
11065 exec_prefix
="$acl_save_exec_prefix"
11066 prefix
="$acl_save_prefix"
11069 additional_includedir
="$withval/include"
11070 additional_libdir
="$withval/lib"
11077 # Check whether --with-libiconv-type was given.
11078 if test "${with_libiconv_type+set}" = set; then :
11079 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11081 with_libiconv_type
=auto
11084 lib_type
=`eval echo \$with_libiconv_type`
11091 names_already_handled
=
11092 names_next_round
='iconv '
11093 while test -n "$names_next_round"; do
11094 names_this_round
="$names_next_round"
11096 for name
in $names_this_round; do
11098 for n
in $names_already_handled; do
11099 if test "$n" = "$name"; then
11100 already_handled
=yes
11104 if test -z "$already_handled"; then
11105 names_already_handled
="$names_already_handled $name"
11106 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11107 eval value
=\"\
$HAVE_LIB$uppername\"
11108 if test -n "$value"; then
11109 if test "$value" = yes; then
11110 eval value
=\"\
$LIB$uppername\"
11111 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11112 eval value
=\"\
$LTLIB$uppername\"
11113 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11122 if test $use_additional = yes; then
11123 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11124 found_dir
="$additional_libdir"
11125 found_so
="$additional_libdir/lib$name.$shlibext"
11126 if test -f "$additional_libdir/lib$name.la"; then
11127 found_la
="$additional_libdir/lib$name.la"
11129 elif test x
$lib_type != xshared
; then
11130 if test -f "$additional_libdir/lib$name.$libext"; then
11131 found_dir
="$additional_libdir"
11132 found_a
="$additional_libdir/lib$name.$libext"
11133 if test -f "$additional_libdir/lib$name.la"; then
11134 found_la
="$additional_libdir/lib$name.la"
11139 if test "X$found_dir" = "X"; then
11140 for x
in $LDFLAGS $LTLIBICONV; do
11142 acl_save_prefix
="$prefix"
11143 prefix
="$acl_final_prefix"
11144 acl_save_exec_prefix
="$exec_prefix"
11145 exec_prefix
="$acl_final_exec_prefix"
11147 exec_prefix
="$acl_save_exec_prefix"
11148 prefix
="$acl_save_prefix"
11152 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11153 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11155 found_so
="$dir/lib$name.$shlibext"
11156 if test -f "$dir/lib$name.la"; then
11157 found_la
="$dir/lib$name.la"
11159 elif test x
$lib_type != xshared
; then
11160 if test -f "$dir/lib$name.$libext"; then
11162 found_a
="$dir/lib$name.$libext"
11163 if test -f "$dir/lib$name.la"; then
11164 found_la
="$dir/lib$name.la"
11170 if test "X$found_dir" != "X"; then
11175 if test "X$found_dir" != "X"; then
11176 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11177 if test "X$found_so" != "X"; then
11178 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11179 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11182 for x
in $ltrpathdirs; do
11183 if test "X$x" = "X$found_dir"; then
11188 if test -z "$haveit"; then
11189 ltrpathdirs
="$ltrpathdirs $found_dir"
11191 if test "$hardcode_direct" = yes; then
11192 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11194 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11195 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11197 for x
in $rpathdirs; do
11198 if test "X$x" = "X$found_dir"; then
11203 if test -z "$haveit"; then
11204 rpathdirs
="$rpathdirs $found_dir"
11208 for x
in $LDFLAGS $LIBICONV; do
11210 acl_save_prefix
="$prefix"
11211 prefix
="$acl_final_prefix"
11212 acl_save_exec_prefix
="$exec_prefix"
11213 exec_prefix
="$acl_final_exec_prefix"
11215 exec_prefix
="$acl_save_exec_prefix"
11216 prefix
="$acl_save_prefix"
11218 if test "X$x" = "X-L$found_dir"; then
11223 if test -z "$haveit"; then
11224 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11226 if test "$hardcode_minus_L" != no
; then
11227 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11229 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11235 if test "X$found_a" != "X"; then
11236 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11238 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11241 additional_includedir
=
11242 case "$found_dir" in
11244 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11245 additional_includedir
="$basedir/include"
11248 if test "X$additional_includedir" != "X"; then
11249 if test "X$additional_includedir" != "X/usr/include"; then
11251 if test "X$additional_includedir" = "X/usr/local/include"; then
11252 if test -n "$GCC"; then
11254 linux
*) haveit
=yes;;
11258 if test -z "$haveit"; then
11259 for x
in $CPPFLAGS $INCICONV; do
11261 acl_save_prefix
="$prefix"
11262 prefix
="$acl_final_prefix"
11263 acl_save_exec_prefix
="$exec_prefix"
11264 exec_prefix
="$acl_final_exec_prefix"
11266 exec_prefix
="$acl_save_exec_prefix"
11267 prefix
="$acl_save_prefix"
11269 if test "X$x" = "X-I$additional_includedir"; then
11274 if test -z "$haveit"; then
11275 if test -d "$additional_includedir"; then
11276 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11282 if test -n "$found_la"; then
11283 save_libdir
="$libdir"
11284 case "$found_la" in
11285 */* |
*\\*) .
"$found_la" ;;
11286 *) .
"./$found_la" ;;
11288 libdir
="$save_libdir"
11289 for dep
in $dependency_libs; do
11292 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11293 if test "X$additional_libdir" != "X/usr/lib"; then
11295 if test "X$additional_libdir" = "X/usr/local/lib"; then
11296 if test -n "$GCC"; then
11298 linux
*) haveit
=yes;;
11302 if test -z "$haveit"; then
11304 for x
in $LDFLAGS $LIBICONV; do
11306 acl_save_prefix
="$prefix"
11307 prefix
="$acl_final_prefix"
11308 acl_save_exec_prefix
="$exec_prefix"
11309 exec_prefix
="$acl_final_exec_prefix"
11311 exec_prefix
="$acl_save_exec_prefix"
11312 prefix
="$acl_save_prefix"
11314 if test "X$x" = "X-L$additional_libdir"; then
11319 if test -z "$haveit"; then
11320 if test -d "$additional_libdir"; then
11321 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11325 for x
in $LDFLAGS $LTLIBICONV; do
11327 acl_save_prefix
="$prefix"
11328 prefix
="$acl_final_prefix"
11329 acl_save_exec_prefix
="$exec_prefix"
11330 exec_prefix
="$acl_final_exec_prefix"
11332 exec_prefix
="$acl_save_exec_prefix"
11333 prefix
="$acl_save_prefix"
11335 if test "X$x" = "X-L$additional_libdir"; then
11340 if test -z "$haveit"; then
11341 if test -d "$additional_libdir"; then
11342 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11349 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11350 if test "$enable_rpath" != no
; then
11352 for x
in $rpathdirs; do
11353 if test "X$x" = "X$dir"; then
11358 if test -z "$haveit"; then
11359 rpathdirs
="$rpathdirs $dir"
11362 for x
in $ltrpathdirs; do
11363 if test "X$x" = "X$dir"; then
11368 if test -z "$haveit"; then
11369 ltrpathdirs
="$ltrpathdirs $dir"
11374 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11377 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11380 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11381 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11387 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11388 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11389 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11391 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11392 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11399 if test "X$rpathdirs" != "X"; then
11400 if test -n "$hardcode_libdir_separator"; then
11402 for found_dir
in $rpathdirs; do
11403 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11405 acl_save_libdir
="$libdir"
11407 eval flag
=\"$hardcode_libdir_flag_spec\"
11408 libdir
="$acl_save_libdir"
11409 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11411 for found_dir
in $rpathdirs; do
11412 acl_save_libdir
="$libdir"
11413 libdir
="$found_dir"
11414 eval flag
=\"$hardcode_libdir_flag_spec\"
11415 libdir
="$acl_save_libdir"
11416 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11420 if test "X$ltrpathdirs" != "X"; then
11421 for found_dir
in $ltrpathdirs; do
11422 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11433 $as_echo_n "checking for iconv... " >&6; }
11434 if ${am_cv_func_iconv+:} false
; then :
11435 $as_echo_n "(cached) " >&6
11438 am_cv_func_iconv
="no, consider installing GNU libiconv"
11440 am_save_CPPFLAGS
="$CPPFLAGS"
11441 CPPFLAGS
="$CPPFLAGS $INCICONV"
11442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 #include <stdlib.h>
11449 iconv_t cd = iconv_open("","");
11450 iconv(cd,NULL,NULL,NULL,NULL);
11456 if ac_fn_cxx_try_link
"$LINENO"; then :
11457 am_cv_func_iconv
=yes
11459 rm -f core conftest.err conftest.
$ac_objext \
11460 conftest
$ac_exeext conftest.
$ac_ext
11461 CPPFLAGS
="$am_save_CPPFLAGS"
11463 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11464 for _libs
in .libs _libs
; do
11465 am_save_CPPFLAGS
="$CPPFLAGS"
11466 am_save_LIBS
="$LIBS"
11467 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11468 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471 #include <stdlib.h>
11476 iconv_t cd = iconv_open("","");
11477 iconv(cd,NULL,NULL,NULL,NULL);
11483 if ac_fn_cxx_try_link
"$LINENO"; then :
11484 INCICONV
="-I../libiconv/include"
11485 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11486 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11487 am_cv_lib_iconv
=yes
11488 am_cv_func_iconv
=yes
11490 rm -f core conftest.err conftest.
$ac_objext \
11491 conftest
$ac_exeext conftest.
$ac_ext
11492 CPPFLAGS
="$am_save_CPPFLAGS"
11493 LIBS
="$am_save_LIBS"
11494 if test "$am_cv_func_iconv" = "yes"; then
11500 if test "$am_cv_func_iconv" != yes; then
11501 am_save_CPPFLAGS
="$CPPFLAGS"
11502 am_save_LIBS
="$LIBS"
11503 CPPFLAGS
="$CPPFLAGS $INCICONV"
11504 LIBS
="$LIBS $LIBICONV"
11505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h. */
11507 #include <stdlib.h>
11512 iconv_t cd = iconv_open("","");
11513 iconv(cd,NULL,NULL,NULL,NULL);
11519 if ac_fn_cxx_try_link
"$LINENO"; then :
11520 am_cv_lib_iconv
=yes
11521 am_cv_func_iconv
=yes
11523 rm -f core conftest.err conftest.
$ac_objext \
11524 conftest
$ac_exeext conftest.
$ac_ext
11525 CPPFLAGS
="$am_save_CPPFLAGS"
11526 LIBS
="$am_save_LIBS"
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11531 $as_echo "$am_cv_func_iconv" >&6; }
11532 if test "$am_cv_func_iconv" = yes; then
11534 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11537 if test "$am_cv_lib_iconv" = yes; then
11539 for element
in $INCICONV; do
11541 for x
in $CPPFLAGS; do
11543 acl_save_prefix
="$prefix"
11544 prefix
="$acl_final_prefix"
11545 acl_save_exec_prefix
="$exec_prefix"
11546 exec_prefix
="$acl_final_exec_prefix"
11548 exec_prefix
="$acl_save_exec_prefix"
11549 prefix
="$acl_save_prefix"
11551 if test "X$x" = "X$element"; then
11556 if test -z "$haveit"; then
11557 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11562 $as_echo_n "checking how to link with libiconv... " >&6; }
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11564 $as_echo "$LIBICONV" >&6; }
11572 if test "$am_cv_func_iconv" = yes; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11574 $as_echo_n "checking for iconv declaration... " >&6; }
11575 if ${am_cv_proto_iconv+:} false
; then :
11576 $as_echo_n "(cached) " >&6
11579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11582 #include <stdlib.h>
11588 #if defined(__STDC__) || defined(__cplusplus)
11589 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11602 if ac_fn_cxx_try_compile
"$LINENO"; then :
11603 am_cv_proto_iconv_arg1
=""
11605 am_cv_proto_iconv_arg1
="const"
11607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11608 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);"
11611 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11613 }$am_cv_proto_iconv" >&5
11615 }$am_cv_proto_iconv" >&6; }
11617 cat >>confdefs.h
<<_ACEOF
11618 #define ICONV_CONST $am_cv_proto_iconv_arg1
11624 # Until we have in-tree GNU iconv:
11626 if test -f "$LTLIBICONV"; then
11627 LIBICONV_DEP
=$LTLIBICONV
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11633 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11634 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11635 $as_echo_n "(cached) " >&6
11637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639 #include <locale.h>
11648 if ac_fn_cxx_try_link
"$LINENO"; then :
11649 am_cv_val_LC_MESSAGES
=yes
11651 am_cv_val_LC_MESSAGES
=no
11653 rm -f core conftest.err conftest.
$ac_objext \
11654 conftest
$ac_exeext conftest.
$ac_ext
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11657 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11658 if test $am_cv_val_LC_MESSAGES = yes; then
11660 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11667 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11668 if ${am_cv_langinfo_codeset+:} false
; then :
11669 $as_echo_n "(cached) " >&6
11671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673 #include <langinfo.h>
11677 char* cs = nl_langinfo(CODESET);
11682 if ac_fn_cxx_try_link
"$LINENO"; then :
11683 am_cv_langinfo_codeset
=yes
11685 am_cv_langinfo_codeset
=no
11687 rm -f core conftest.err conftest.
$ac_objext \
11688 conftest
$ac_exeext conftest.
$ac_ext
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11692 $as_echo "$am_cv_langinfo_codeset" >&6; }
11693 if test $am_cv_langinfo_codeset = yes; then
11695 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11700 # We will need to find libiberty.h and ansidecl.h
11701 saved_CFLAGS
="$CFLAGS"
11702 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11703 saved_CXXFLAGS
="$CXXFLAGS"
11704 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11706 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11707 # normal autoconf function for these. But force definition of
11708 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11709 # basename handling in libiberty.h.
11710 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11711 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11712 #undef HAVE_DECL_BASENAME
11713 #define HAVE_DECL_BASENAME 1
11714 #include \"ansidecl.h\"
11715 #include \"system.h\"
11717 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11723 cat >>confdefs.h
<<_ACEOF
11724 #define HAVE_DECL_BASENAME $ac_have_decl
11726 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11727 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11728 #undef HAVE_DECL_BASENAME
11729 #define HAVE_DECL_BASENAME 1
11730 #include \"ansidecl.h\"
11731 #include \"system.h\"
11733 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11739 cat >>confdefs.h
<<_ACEOF
11740 #define HAVE_DECL_STRSTR $ac_have_decl
11744 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11745 madvise stpcpy strnlen strsignal strverscmp \
11746 strtol strtoul strtoll strtoull setenv unsetenv \
11747 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11748 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
11750 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11752 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11753 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11754 $as_echo_n "(cached) " >&6
11756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11759 #define $ac_tr_decl 1
11761 #include "ansidecl.h"
11762 #include "system.h"
11768 char *(*pfn) = (char *(*)) $ac_func ;
11774 if ac_fn_cxx_try_compile
"$LINENO"; then :
11775 eval "gcc_cv_have_decl_$ac_func=yes"
11777 eval "gcc_cv_have_decl_$ac_func=no"
11779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11782 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11784 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11785 #define $ac_tr_decl 1
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11791 #define $ac_tr_decl 0
11799 for ac_func
in getrlimit setrlimit getrusage
11801 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11803 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11804 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11805 $as_echo_n "(cached) " >&6
11807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11810 #define $ac_tr_decl 1
11812 #include "ansidecl.h"
11813 #include "system.h"
11814 #ifdef HAVE_SYS_RESOURCE_H
11815 #include <sys/resource.h>
11823 char *(*pfn) = (char *(*)) $ac_func ;
11829 if ac_fn_cxx_try_compile
"$LINENO"; then :
11830 eval "gcc_cv_have_decl_$ac_func=yes"
11832 eval "gcc_cv_have_decl_$ac_func=no"
11834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11837 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11840 #define $ac_tr_decl 1
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11846 #define $ac_tr_decl 0
11854 for ac_func
in mallinfo mallinfo2
11856 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11858 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11859 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11860 $as_echo_n "(cached) " >&6
11862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11865 #define $ac_tr_decl 1
11867 #include "ansidecl.h"
11868 #include "system.h"
11869 #ifdef HAVE_MALLOC_H
11870 #include <malloc.h>
11878 char *(*pfn) = (char *(*)) $ac_func ;
11884 if ac_fn_cxx_try_compile
"$LINENO"; then :
11885 eval "gcc_cv_have_decl_$ac_func=yes"
11887 eval "gcc_cv_have_decl_$ac_func=no"
11889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11892 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11895 #define $ac_tr_decl 1
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11901 #define $ac_tr_decl 0
11909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11912 #include "ansidecl.h"
11913 #include "system.h"
11914 #ifdef HAVE_SYS_RESOURCE_H
11915 #include <sys/resource.h>
11926 if ac_fn_cxx_try_compile
"$LINENO"; then :
11930 $as_echo "#define rlim_t long" >>confdefs.h
11933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11935 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11936 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11937 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11938 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11939 for ac_func
in ldgetname
11941 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11943 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11944 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11945 $as_echo_n "(cached) " >&6
11947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11950 #define $ac_tr_decl 1
11952 #include "ansidecl.h"
11953 #include "system.h"
11954 #ifdef HAVE_LDFCN_H
11965 char *(*pfn) = (char *(*)) $ac_func ;
11971 if ac_fn_cxx_try_compile
"$LINENO"; then :
11972 eval "gcc_cv_have_decl_$ac_func=yes"
11974 eval "gcc_cv_have_decl_$ac_func=no"
11976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11979 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11981 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11982 #define $ac_tr_decl 1
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11988 #define $ac_tr_decl 0
11996 for ac_func
in times
11998 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12000 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12001 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12002 $as_echo_n "(cached) " >&6
12004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12007 #define $ac_tr_decl 1
12009 #include "ansidecl.h"
12010 #include "system.h"
12011 #ifdef HAVE_SYS_TIMES_H
12012 #include <sys/times.h>
12020 char *(*pfn) = (char *(*)) $ac_func ;
12026 if ac_fn_cxx_try_compile
"$LINENO"; then :
12027 eval "gcc_cv_have_decl_$ac_func=yes"
12029 eval "gcc_cv_have_decl_$ac_func=no"
12031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12034 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12037 #define $ac_tr_decl 1
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12043 #define $ac_tr_decl 0
12051 for ac_func
in sigaltstack
12053 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12055 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12056 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12057 $as_echo_n "(cached) " >&6
12059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12062 #define $ac_tr_decl 1
12064 #include "ansidecl.h"
12065 #include "system.h"
12066 #include <signal.h>
12073 char *(*pfn) = (char *(*)) $ac_func ;
12079 if ac_fn_cxx_try_compile
"$LINENO"; then :
12080 eval "gcc_cv_have_decl_$ac_func=yes"
12082 eval "gcc_cv_have_decl_$ac_func=no"
12084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12087 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12089 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12090 #define $ac_tr_decl 1
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12096 #define $ac_tr_decl 0
12104 # More time-related stuff.
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12106 $as_echo_n "checking for struct tms... " >&6; }
12107 if ${ac_cv_struct_tms+:} false
; then :
12108 $as_echo_n "(cached) " >&6
12111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12114 #include "ansidecl.h"
12115 #include "system.h"
12116 #ifdef HAVE_SYS_TIMES_H
12117 #include <sys/times.h>
12128 if ac_fn_cxx_try_compile
"$LINENO"; then :
12129 ac_cv_struct_tms
=yes
12131 ac_cv_struct_tms
=no
12133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12136 $as_echo "$ac_cv_struct_tms" >&6; }
12137 if test $ac_cv_struct_tms = yes; then
12139 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12143 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12144 # revisit after autoconf 2.50.
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12146 $as_echo_n "checking for clock_t... " >&6; }
12147 if ${gcc_cv_type_clock_t+:} false
; then :
12148 $as_echo_n "(cached) " >&6
12151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12154 #include "ansidecl.h"
12155 #include "system.h"
12165 if ac_fn_cxx_try_compile
"$LINENO"; then :
12166 gcc_cv_type_clock_t
=yes
12168 gcc_cv_type_clock_t
=no
12170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12173 $as_echo "$gcc_cv_type_clock_t" >&6; }
12174 if test $gcc_cv_type_clock_t = yes; then
12176 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12180 # Check if F_SETLKW is supported by fcntl.
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12182 $as_echo_n "checking for F_SETLKW... " >&6; }
12183 if ${ac_cv_f_setlkw+:} false
; then :
12184 $as_echo_n "(cached) " >&6
12187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12200 return fcntl (1, F_SETLKW, &fl);
12205 if ac_fn_cxx_try_compile
"$LINENO"; then :
12210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12213 $as_echo "$ac_cv_f_setlkw" >&6; }
12214 if test $ac_cv_f_setlkw = yes; then
12216 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12220 # Check if O_CLOEXEC is defined by fcntl
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12222 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12223 if ${ac_cv_o_cloexec+:} false
; then :
12224 $as_echo_n "(cached) " >&6
12227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12235 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12240 if ac_fn_cxx_try_compile
"$LINENO"; then :
12241 ac_cv_o_cloexec
=yes
12245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12248 $as_echo "$ac_cv_o_cloexec" >&6; }
12249 if test $ac_cv_o_cloexec = yes; then
12251 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12255 # C++ Modules would like some networking features to provide the mapping
12256 # server. You can still use modules without them though.
12257 # The following network-related checks could probably do with some
12258 # Windows and other non-linux defenses and checking.
12260 # Local socket connectivity wants AF_UNIX networking
12261 # Check for AF_UNIX networking
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12263 $as_echo_n "checking for AF_UNIX... " >&6; }
12264 if ${ac_cv_af_unix+:} false
; then :
12265 $as_echo_n "(cached) " >&6
12268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12271 #include <sys/types.h>
12272 #include <sys/socket.h>
12273 #include <sys/un.h>
12274 #include <netinet/in.h>
12280 un.sun_family = AF_UNSPEC;
12281 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12282 connect (fd, (sockaddr *)&un, sizeof (un));
12287 if ac_fn_cxx_try_compile
"$LINENO"; then :
12292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12295 $as_echo "$ac_cv_af_unix" >&6; }
12296 if test $ac_cv_af_unix = yes; then
12298 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12302 # Remote socket connectivity wants AF_INET6 networking
12303 # Check for AF_INET6 networking
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12305 $as_echo_n "checking for AF_INET6... " >&6; }
12306 if ${ac_cv_af_inet6+:} false
; then :
12307 $as_echo_n "(cached) " >&6
12310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12313 #include <sys/types.h>
12314 #include <sys/socket.h>
12315 #include <netinet/in.h>
12322 in6.sin6_family = AF_UNSPEC;
12323 struct addrinfo *addrs = 0;
12324 struct addrinfo hints;
12325 hints.ai_flags = 0;
12326 hints.ai_family = AF_INET6;
12327 hints.ai_socktype = SOCK_STREAM;
12328 hints.ai_protocol = 0;
12329 hints.ai_canonname = 0;
12332 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12333 const char *str = gai_strerror (e);
12334 freeaddrinfo (addrs);
12335 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12336 connect (fd, (sockaddr *)&in6, sizeof (in6));
12341 if ac_fn_cxx_try_compile
"$LINENO"; then :
12346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12349 $as_echo "$ac_cv_af_inet6" >&6; }
12350 if test $ac_cv_af_inet6 = yes; then
12352 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12356 # Check if _LK_LOCK is supported by _locking
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12358 $as_echo_n "checking for _LK_LOCK... " >&6; }
12359 if ${ac_cv_lk_lock+:} false
; then :
12360 $as_echo_n "(cached) " >&6
12363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12367 #include <sys/locking.h>
12373 return _locking (fd, _LK_LOCK, 0);
12378 if ac_fn_cxx_try_compile
"$LINENO"; then :
12383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12386 $as_echo "$ac_cv_lk_lock" >&6; }
12387 if test $ac_cv_lk_lock = yes; then
12389 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12393 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12394 CFLAGS
="$saved_CFLAGS"
12395 CXXFLAGS
="$saved_CXXFLAGS"
12397 # mkdir takes a single argument on some systems.
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12399 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12400 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12401 $as_echo_n "(cached) " >&6
12403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12406 #include <sys/types.h>
12407 #ifdef HAVE_SYS_STAT_H
12408 # include <sys/stat.h>
12410 #ifdef HAVE_UNISTD_H
12411 # include <unistd.h>
12413 #ifdef HAVE_DIRECT_H
12414 # include <direct.h>
12424 if ac_fn_cxx_try_compile
"$LINENO"; then :
12425 gcc_cv_mkdir_takes_one_arg
=no
12427 gcc_cv_mkdir_takes_one_arg
=yes
12429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12432 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12433 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12435 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12446 # With Setjmp/Longjmp based exception handling.
12447 # Check whether --enable-sjlj-exceptions was given.
12448 if test "${enable_sjlj_exceptions+set}" = set; then :
12449 enableval
=$enable_sjlj_exceptions; case $target in
12451 if test $enableval != yes; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12453 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12458 force_sjlj_exceptions
=yes
12462 force_sjlj_exceptions
=yes
12466 force_sjlj_exceptions
=yes
12470 force_sjlj_exceptions
=no
12475 if test $force_sjlj_exceptions = yes; then
12476 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12478 cat >>confdefs.h
<<_ACEOF
12479 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12484 # --------------------------------------------------------
12485 # Build, host, and target specific configuration fragments
12486 # --------------------------------------------------------
12488 # Collect build-machine-specific information.
12489 .
${srcdir}/config.build ||
exit 1
12491 # Collect host-machine-specific information.
12492 .
${srcdir}/config.
host ||
exit 1
12496 # Collect target-machine-specific information.
12497 .
${srcdir}/config.gcc ||
exit 1
12499 extra_objs
="${host_extra_objs} ${extra_objs}"
12500 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12502 # Default the target-machine variables that were not explicitly set.
12503 if test x
"$tm_file" = x
12504 then tm_file
=$cpu_type/$cpu_type.h
; fi
12506 if test x
"$extra_headers" = x
12507 then extra_headers
=; fi
12509 if test x
$md_file = x
12510 then md_file
=$cpu_type/$cpu_type.md
; fi
12512 if test x
$out_file = x
12513 then out_file
=$cpu_type/$cpu_type.c
; fi
12515 if test x
"$tmake_file" = x
12516 then tmake_file
=$cpu_type/t-
$cpu_type
12519 # Support --enable-initfini-array.
12520 if test x
$enable_initfini_array != xno
; then
12521 tm_file
="${tm_file} initfini-array.h"
12524 if test x
"$dwarf2" = xyes
12525 then tm_file
="$tm_file tm-dwarf2.h"
12528 # Say what files are being used for the output code and MD file.
12529 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12530 echo "Using \`$srcdir/config/$md_file' as machine description file."
12532 # If any of the xm_file variables contain nonexistent files, warn
12533 # about them and drop them.
12536 for x
in $build_xm_file; do
12537 if test -f $srcdir/config
/$x
12539 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12540 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12543 build_xm_file
="$bx"
12546 for x
in $host_xm_file; do
12547 if test -f $srcdir/config
/$x
12549 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12550 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12556 for x
in $xm_file; do
12557 if test -f $srcdir/config
/$x
12559 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12560 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12566 for f
in $tm_file; do
12569 if test $count = ax
; then
12570 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12572 echo "Using the following target machine macro files:"
12573 for f
in $tm_file; do
12574 echo " $srcdir/config/$f"
12578 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12580 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12584 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12586 cat >>confdefs.h
<<_ACEOF
12587 #define HAVE_GNU_LD $gnu_ld_bool
12591 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12593 cat >>confdefs.h
<<_ACEOF
12594 #define HAVE_GNU_AS $gnu_as_bool
12599 for f
in $host_xm_file; do
12602 if test $count = a
; then
12604 elif test $count = ax
; then
12605 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12607 echo "Using the following host machine macro files:"
12608 for f
in $host_xm_file; do
12609 echo " $srcdir/config/$f"
12612 echo "Using ${out_host_hook_obj} for host machine hooks."
12614 if test "$host_xm_file" != "$build_xm_file"; then
12616 for f
in $build_xm_file; do
12619 if test $count = a
; then
12621 elif test $count = ax
; then
12622 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12624 echo "Using the following build machine macro files:"
12625 for f
in $build_xm_file; do
12626 echo " $srcdir/config/$f"
12631 if test -n "$configured_native_system_header_dir"; then
12632 native_system_header_dir
=$configured_native_system_header_dir
12634 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12638 powerpc
*-*-darwin*)
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12640 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12641 if ${gcc_cv_mcontext_underscores+:} false
; then :
12642 $as_echo_n "(cached) " >&6
12644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12647 #include <sys/cdefs.h>
12648 #include <sys/signal.h>
12649 #include <ucontext.h>
12650 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12653 if ac_fn_cxx_try_compile
"$LINENO"; then :
12654 gcc_cv_mcontext_underscores
=no
12656 gcc_cv_mcontext_underscores
=yes
12658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12661 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12662 if test $gcc_cv_mcontext_underscores = yes; then
12664 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12674 # Check if a valid thread package
12675 case ${enable_threads} in
12678 target_thread_file
='single'
12682 target_thread_file
='single'
12684 aix | dce | lynx | mipssde | posix | rtems | \
12685 single | tpf | vxworks | win32
)
12686 target_thread_file
=${enable_threads}
12689 echo "${enable_threads} is an unknown thread package" 1>&2
12694 if test x
${thread_file} = x
; then
12695 # No thread file set by target-specific clauses in config.gcc,
12696 # so use file chosen by default logic above
12697 thread_file
=${target_thread_file}
12705 if test x
$enable___cxa_atexit = xyes || \
12706 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12707 if test x
$host = x
$target; then
12709 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12710 # keyed to flag_use_cxa_atexit
12718 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12719 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12722 echo "__cxa_atexit can't be enabled on this target"
12728 # We can't check for __cxa_atexit when building a cross, so assume
12732 if test x
$use_cxa_atexit = xyes
; then
12734 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12739 # Look for a file containing extra machine modes.
12740 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12741 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12744 cat >>confdefs.h
<<_ACEOF
12745 #define EXTRA_MODES_FILE "config/$extra_modes"
12750 # Convert extra_options into a form suitable for Makefile use.
12753 for f
in $extra_options; do
12754 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12755 all_opt_files
="$all_opt_files $srcdir/config/$f"
12759 # auto-host.h is the file containing items generated by autoconf and is
12760 # the first file included by config.h.
12761 # If host=build, it is correct to have bconfig include auto-host.h
12762 # as well. If host!=build, we are in error and need to do more
12763 # work to find out the build config parameters.
12764 if test x
$host = x
$build
12766 build_auto
=auto-host.h
12767 HAVE_AUTO_BUILD
='# '
12769 # We create a subdir, then run autoconf in the subdir.
12770 # To prevent recursion we set host and build for the new
12771 # invocation of configure to the build for this invocation
12778 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12779 *) realsrcdir
=..
/${srcdir};;
12781 # Clearing GMPINC is necessary to prevent host headers being
12782 # used by the build compiler. Defining GENERATOR_FILE stops
12783 # system.h from including gmp.h.
12784 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12785 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12786 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12787 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
12788 ${realsrcdir}/configure \
12789 --enable-languages=${enable_languages-all} \
12790 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12791 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12792 --target=$target_alias --host=$build_alias \
12793 --build=$build_alias ||
exit # retaining $tempdir
12795 # We just finished tests for the build machine, so rename
12796 # the file auto-build.h in the gcc directory.
12797 mv auto-host.h ..
/auto-build.h
12800 build_auto
=auto-build.h
12806 tm_file
="${tm_file} defaults.h"
12807 tm_p_file
="${tm_p_file} tm-preds.h"
12808 tm_d_file
="${tm_d_file} defaults.h"
12809 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12810 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12811 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12812 # put this back in temporarily.
12813 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12819 # Compile in configure arguments.
12820 if test -f configargs.h
; then
12821 # Being re-configured.
12822 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12823 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12824 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12825 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12828 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12831 # Double all backslashes and backslash all quotes to turn
12832 # gcc_config_arguments into a C string.
12833 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12834 $gcc_config_arguments
12836 gcc_config_arguments_str
=`cat conftest.out`
12839 cat > configargs.h
<<EOF
12840 /* Generated automatically. */
12841 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12842 static const char thread_model[] = "$thread_file";
12844 static const struct {
12845 const char *name, *value;
12846 } configure_default_options[] = $configure_default_options;
12849 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12850 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12851 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12852 if test -f $srcdir/REVISION
; then
12853 gcc_REVISION
=`cat $srcdir/REVISION`
12857 cat > plugin-version.h
<<EOF
12858 #include "configargs.h"
12860 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12861 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12862 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12863 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12865 static char basever[] = "$gcc_BASEVER";
12866 static char datestamp[] = "$gcc_DATESTAMP";
12867 static char devphase[] = "$gcc_DEVPHASE";
12868 static char revision[] = "$gcc_REVISION";
12870 /* FIXME plugins: We should make the version information more precise.
12871 One way to do is to add a checksum. */
12873 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12874 devphase, revision,
12875 configuration_arguments};
12878 # Determine what GCC version number to use in filesystem paths.
12880 get_gcc_base_ver
="cat"
12882 # Check whether --with-gcc-major-version-only was given.
12883 if test "${with_gcc_major_version_only+set}" = set; then :
12884 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12885 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12893 # Internationalization
12894 # If we haven't got the data from the intl directory,
12895 # assume NLS is disabled.
12904 if test -f ..
/intl
/config.intl
; then
12905 . ..
/intl
/config.intl
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12908 $as_echo_n "checking whether NLS is requested... " >&6; }
12909 if test x
"$USE_NLS" != xyes
; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12914 $as_echo "yes" >&6; }
12916 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12920 $as_echo_n "checking for catalogs to be installed... " >&6; }
12921 # Look for .po and .gmo files in the source directory.
12924 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12925 # If there aren't any .gmo files the shell will give us the
12926 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12928 case "$cat" in *\
**)
12931 # The quadruple backslash is collapsed to a double backslash
12932 # by the backticks, then collapsed again by the double quotes,
12933 # leaving us with one backslash in the sed expression (right
12934 # before the dot that mustn't act as a wildcard).
12935 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12936 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12937 # The user is allowed to set LINGUAS to a list of languages to
12938 # install catalogs for. If it's empty that means "all of them."
12939 if test "x$LINGUAS" = x
; then
12940 CATALOGS
="$CATALOGS $cat"
12941 XLINGUAS
="$XLINGUAS $lang"
12943 case "$LINGUAS" in *$lang*)
12944 CATALOGS
="$CATALOGS $cat"
12945 XLINGUAS
="$XLINGUAS $lang"
12950 LINGUAS
="$XLINGUAS"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12952 $as_echo "$LINGUAS" >&6; }
12965 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12966 # -liconv on the link line twice.
12967 case "$LIBINTL" in *$LIBICONV*)
12971 # Check whether --enable-secureplt was given.
12972 if test "${enable_secureplt+set}" = set; then :
12973 enableval
=$enable_secureplt;
12977 # Check whether --enable-mingw-wildcard was given.
12978 if test "${enable_mingw_wildcard+set}" = set; then :
12979 enableval
=$enable_mingw_wildcard;
12981 enable_mingw_wildcard
=platform
12984 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12986 cat >>confdefs.h
<<_ACEOF
12987 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12992 # Check whether --enable-large-address-aware was given.
12993 if test "${enable_large_address_aware+set}" = set; then :
12994 enableval
=$enable_large_address_aware;
12997 if test x
"$enable_large_address_aware" = xyes
; then :
12999 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13003 # Check whether --enable-leading-mingw64-underscores was given.
13004 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13005 enableval
=$enable_leading_mingw64_underscores;
13008 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13010 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13014 # Check whether --enable-cld was given.
13015 if test "${enable_cld+set}" = set; then :
13016 enableval
=$enable_cld;
13022 # Check whether --enable-frame-pointer was given.
13023 if test "${enable_frame_pointer+set}" = set; then :
13024 enableval
=$enable_frame_pointer;
13028 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13029 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13030 enable_frame_pointer
=no
13033 enable_frame_pointer
=yes
13041 i
[34567]86-*-* | x86_64-
*-*)
13042 if test "x$enable_cld" = xyes
; then
13043 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13045 if test "x$enable_frame_pointer" = xyes
; then
13046 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13051 # Windows32 Registry support for specifying GCC installation paths.
13052 # Check whether --enable-win32-registry was given.
13053 if test "${enable_win32_registry+set}" = set; then :
13054 enableval
=$enable_win32_registry;
13059 win32 | pe | cygwin
* | mingw32
*)
13060 if test "x$enable_win32_registry" != xno
; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13062 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13063 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13064 $as_echo_n "(cached) " >&6
13066 ac_func_search_save_LIBS
=$LIBS
13067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13068 /* end confdefs.h. */
13070 /* Override any GCC internal prototype to avoid an error.
13071 Use char because int might match the return type of a GCC
13072 builtin and then its argument prototype would still apply. */
13076 char RegOpenKeyExA ();
13080 return RegOpenKeyExA ();
13085 for ac_lib
in '' advapi32
; do
13086 if test -z "$ac_lib"; then
13087 ac_res
="none required"
13090 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13092 if ac_fn_cxx_try_link
"$LINENO"; then :
13093 ac_cv_search_RegOpenKeyExA
=$ac_res
13095 rm -f core conftest.err conftest.
$ac_objext \
13097 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13101 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13104 ac_cv_search_RegOpenKeyExA
=no
13106 rm conftest.
$ac_ext
13107 LIBS
=$ac_func_search_save_LIBS
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13110 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13111 ac_res
=$ac_cv_search_RegOpenKeyExA
13112 if test "$ac_res" != no
; then :
13113 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13116 enable_win32_registry
=no
13121 if test "x$enable_win32_registry" != xno
; then
13123 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13126 if test "x$enable_win32_registry" != xyes \
13127 && test "x$enable_win32_registry" != x
; then
13129 cat >>confdefs.h
<<_ACEOF
13130 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13138 # Get an absolute path to the GCC top-level source directory
13139 holddir
=`${PWDCMD-pwd}`
13141 topdir
=`${PWDCMD-pwd}`
13144 # Conditionalize the makefile for this host machine.
13146 for f
in ${host_xmake_file}
13148 if test -f ${srcdir}/config
/$f
13150 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13154 # Conditionalize the makefile for this target machine.
13156 for f
in ${tmake_file}
13158 if test -f ${srcdir}/config
/$f
13160 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13163 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13165 out_object_file
=`basename $out_file .c`.o
13166 common_out_object_file
=`basename $common_out_file .c`.o
13168 tm_file_list
="options.h"
13169 tm_include_list
="options.h insn-constants.h"
13170 for f
in $tm_file; do
13173 f
=`echo $f | sed 's/^..//'`
13174 tm_file_list
="${tm_file_list} $f"
13175 tm_include_list
="${tm_include_list} $f"
13178 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13179 tm_include_list
="${tm_include_list} $f"
13182 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13183 tm_include_list
="${tm_include_list} config/$f"
13190 for f
in $tm_p_file; do
13193 tm_p_file_list
="${tm_p_file_list} $f"
13194 tm_p_include_list
="${tm_p_include_list} $f"
13197 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13198 tm_p_include_list
="${tm_p_include_list} config/$f"
13203 tm_d_include_list
="options.h insn-constants.h"
13204 for f
in $tm_d_file; do
13207 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
13208 tm_d_include_list
="${tm_d_include_list} $f"
13211 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13212 tm_d_include_list
="${tm_d_include_list} config/$f"
13219 for f
in $xm_file; do
13222 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13223 xm_include_list
="${xm_include_list} $f"
13226 xm_file_list
="${xm_file_list} $f"
13227 xm_include_list
="${xm_include_list} $f"
13230 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13231 xm_include_list
="${xm_include_list} config/$f"
13237 host_xm_include_list
=
13238 for f
in $host_xm_file; do
13241 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13242 host_xm_include_list
="${host_xm_include_list} $f"
13245 host_xm_file_list
="${host_xm_file_list} $f"
13246 host_xm_include_list
="${host_xm_include_list} $f"
13249 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13250 host_xm_include_list
="${host_xm_include_list} config/$f"
13255 build_xm_file_list
=
13256 for f
in $build_xm_file; do
13259 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13260 build_xm_include_list
="${build_xm_include_list} $f"
13262 auto-build.h | auto-host.h
)
13263 build_xm_file_list
="${build_xm_file_list} $f"
13264 build_xm_include_list
="${build_xm_include_list} $f"
13267 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13268 build_xm_include_list
="${build_xm_include_list} config/$f"
13273 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13274 # cross-compiler which does not use the native headers and libraries.
13275 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13278 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13279 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13281 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13282 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13283 if test "x$with_build_sysroot" != x
; then
13284 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13286 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13289 if test x
$host != x
$target
13291 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13293 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13294 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13295 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13298 if test "x$with_build_sysroot" != "x"; then
13299 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13300 elif test "x$with_sysroot" = x
; then
13301 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13302 elif test "x$with_sysroot" = xyes
; then
13303 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13305 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13308 target_header_dir
=${native_system_header_dir}
13311 # If this is a cross-compiler that does not
13312 # have its own set of headers then define
13315 # If this is using newlib, without having the headers available now,
13316 # then define inhibit_libc in LIBGCC2_CFLAGS.
13317 # This prevents libgcc2 from containing any code which requires libc
13319 : ${inhibit_libc=false}
13320 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13321 test x
$with_newlib = xyes
; } &&
13322 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13327 # When building gcc with a cross-compiler, we need to adjust things so
13328 # that the generator programs are still built with the native compiler.
13329 # Also, we cannot run fixincludes.
13331 # These are the normal (build=host) settings:
13332 CC_FOR_BUILD
='$(CC)'
13333 CXX_FOR_BUILD
='$(CXX)'
13334 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13335 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13336 BUILD_LDFLAGS
='$(LDFLAGS)'
13337 STMP_FIXINC
=stmp-fixinc
13339 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
13340 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
13342 # And these apply if build != host, or we are generating coverage data
13343 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13345 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13346 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13347 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13349 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
13350 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
13351 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
13352 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
13357 # Expand extra_headers to include complete path.
13358 # This substitutes for lots of t-* files.
13359 extra_headers_list
=
13360 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13361 for file in ${extra_headers} ; do
13362 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13365 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13366 if test x
"$use_gcc_tgmath" = xyes
13367 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13370 # Define collect2 in Makefile.
13371 case $host_can_use_collect2 in
13373 *) collect2
='collect2$(exeext)' ;;
13377 # Add a definition of USE_COLLECT2 if system wants one.
13378 case $use_collect2 in
13379 no
) use_collect2
= ;;
13382 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13383 xm_defines
="${xm_defines} USE_COLLECT2"
13384 case $host_can_use_collect2 in
13386 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13393 cat >>confdefs.h
<<_ACEOF
13394 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13398 # ---------------------------
13399 # Assembler & linker features
13400 # ---------------------------
13402 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13403 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13404 # However when ld-new is first executed from the build tree, libtool will
13405 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13406 # to the build tree. While doing this we need to use the previous-stage
13407 # linker, or we have an infinite loop. The presence of a shell script as
13408 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13409 # the gcc/collect-ld script. So we need to know how libtool works, or
13410 # exec-tool will fail.
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13416 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13421 macro_version
='2.2.7a'
13422 macro_revision
='1.3134'
13436 ltmain
="$ac_aux_dir/ltmain.sh"
13438 # Backslashify metacharacters that are still active within
13439 # double-quoted strings.
13440 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13442 # Same as above, but do not quote variable references.
13443 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13445 # Sed substitution to delay expansion of an escaped shell variable in a
13446 # double_quote_subst'ed string.
13447 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13449 # Sed substitution to delay expansion of an escaped single quote.
13450 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13452 # Sed substitution to avoid accidental globbing in evaled expressions
13453 no_glob_subst
='s/\*/\\\*/g'
13455 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13456 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13457 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13460 $as_echo_n "checking how to print strings... " >&6; }
13461 # Test print first, because it will be a builtin if present.
13462 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13463 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13465 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13468 # Use this function as a fallback that always works.
13469 func_fallback_echo ()
13471 eval 'cat <<_LTECHO_EOF
13475 ECHO='func_fallback_echo
'
13478 # func_echo_all arg...
13479 # Invoke $ECHO with all args, space-separated.
13486 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13487 $as_echo "printf" >&6; } ;;
13488 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13489 $as_echo "print -r" >&6; } ;;
13490 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13491 $as_echo "cat" >&6; } ;;
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13509 if ${ac_cv_path_SED+:} false; then :
13510 $as_echo_n "(cached) " >&6
13512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13513 for ac_i in 1 2 3 4 5 6 7; do
13514 ac_script="$ac_script$as_nl$ac_script"
13516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13517 { ac_script=; unset ac_script;}
13518 if test -z "$SED"; then
13519 ac_path_SED_found=false
13520 # Loop through the user's path and
test for each of PROGNAME-LIST
13521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13522 for as_dir
in $PATH
13525 test -z "$as_dir" && as_dir
=.
13526 for ac_prog
in sed gsed
; do
13527 for ac_exec_ext
in '' $ac_executable_extensions; do
13528 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13529 as_fn_executable_p
"$ac_path_SED" ||
continue
13530 # Check for GNU ac_path_SED and select it if it is found.
13531 # Check for GNU $ac_path_SED
13532 case `"$ac_path_SED" --version 2>&1` in
13534 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13537 $as_echo_n 0123456789 >"conftest.in"
13540 cat "conftest.in" "conftest.in" >"conftest.tmp"
13541 mv "conftest.tmp" "conftest.in"
13542 cp "conftest.in" "conftest.nl"
13543 $as_echo '' >> "conftest.nl"
13544 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13545 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13546 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13547 if test $ac_count -gt ${ac_path_SED_max-0}; then
13548 # Best one so far, save it but keep looking for a better one
13549 ac_cv_path_SED
="$ac_path_SED"
13550 ac_path_SED_max
=$ac_count
13552 # 10*(2^10) chars as input seems more than enough
13553 test $ac_count -gt 10 && break
13555 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13558 $ac_path_SED_found && break 3
13563 if test -z "$ac_cv_path_SED"; then
13564 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13567 ac_cv_path_SED
=$SED
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13572 $as_echo "$ac_cv_path_SED" >&6; }
13573 SED
="$ac_cv_path_SED"
13576 test -z "$SED" && SED
=sed
13577 Xsed
="$SED -e 1s/^X//"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13590 $as_echo_n "checking for fgrep... " >&6; }
13591 if ${ac_cv_path_FGREP+:} false
; then :
13592 $as_echo_n "(cached) " >&6
13594 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13595 then ac_cv_path_FGREP
="$GREP -F"
13597 if test -z "$FGREP"; then
13598 ac_path_FGREP_found
=false
13599 # Loop through the user's path and test for each of PROGNAME-LIST
13600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13601 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13604 test -z "$as_dir" && as_dir
=.
13605 for ac_prog
in fgrep
; do
13606 for ac_exec_ext
in '' $ac_executable_extensions; do
13607 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13608 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13609 # Check for GNU ac_path_FGREP and select it if it is found.
13610 # Check for GNU $ac_path_FGREP
13611 case `"$ac_path_FGREP" --version 2>&1` in
13613 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13616 $as_echo_n 0123456789 >"conftest.in"
13619 cat "conftest.in" "conftest.in" >"conftest.tmp"
13620 mv "conftest.tmp" "conftest.in"
13621 cp "conftest.in" "conftest.nl"
13622 $as_echo 'FGREP' >> "conftest.nl"
13623 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13624 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13625 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13626 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13627 # Best one so far, save it but keep looking for a better one
13628 ac_cv_path_FGREP
="$ac_path_FGREP"
13629 ac_path_FGREP_max
=$ac_count
13631 # 10*(2^10) chars as input seems more than enough
13632 test $ac_count -gt 10 && break
13634 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13637 $ac_path_FGREP_found && break 3
13642 if test -z "$ac_cv_path_FGREP"; then
13643 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13646 ac_cv_path_FGREP
=$FGREP
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13652 $as_echo "$ac_cv_path_FGREP" >&6; }
13653 FGREP
="$ac_cv_path_FGREP"
13656 test -z "$GREP" && GREP
=grep
13676 # Check whether --with-gnu-ld was given.
13677 if test "${with_gnu_ld+set}" = set; then :
13678 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13684 if test "$GCC" = yes; then
13685 # Check if gcc -print-prog-name=ld gives a path.
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13687 $as_echo_n "checking for ld used by $CC... " >&6; }
13690 # gcc leaves a trailing carriage return which upsets mingw
13691 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13693 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13696 # Accept absolute paths.
13698 re_direlt
='/[^/][^/]*/\.\./'
13699 # Canonicalize the pathname of ld
13700 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13701 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13702 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13704 test -z "$LD" && LD
="$ac_prog"
13707 # If it fails, then pretend we aren't using GCC.
13711 # If it is relative, then search for the first ld in PATH.
13712 with_gnu_ld
=unknown
13715 elif test "$with_gnu_ld" = yes; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13717 $as_echo_n "checking for GNU ld... " >&6; }
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13720 $as_echo_n "checking for non-GNU ld... " >&6; }
13722 if ${lt_cv_path_LD+:} false
; then :
13723 $as_echo_n "(cached) " >&6
13725 if test -z "$LD"; then
13726 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13727 for ac_dir
in $PATH; do
13729 test -z "$ac_dir" && ac_dir
=.
13730 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13731 lt_cv_path_LD
="$ac_dir/$ac_prog"
13732 # Check to see if the program is GNU ld. I'd rather use --version,
13733 # but apparently some variants of GNU ld only accept -v.
13734 # Break only if it was the GNU/non-GNU ld that we prefer.
13735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13736 *GNU
* |
*'with BFD'*)
13737 test "$with_gnu_ld" != no
&& break
13740 test "$with_gnu_ld" != yes && break
13747 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13751 LD
="$lt_cv_path_LD"
13752 if test -n "$LD"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13754 $as_echo "$LD" >&6; }
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13759 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13761 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13762 if ${lt_cv_prog_gnu_ld+:} false
; then :
13763 $as_echo_n "(cached) " >&6
13765 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13766 case `$LD -v 2>&1 </dev/null` in
13767 *GNU
* |
*'with BFD'*)
13768 lt_cv_prog_gnu_ld
=yes
13771 lt_cv_prog_gnu_ld
=no
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13776 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13777 with_gnu_ld
=$lt_cv_prog_gnu_ld
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13788 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13789 if ${lt_cv_path_NM+:} false
; then :
13790 $as_echo_n "(cached) " >&6
13792 if test -n "$NM"; then
13793 # Let the user override the test.
13794 lt_cv_path_NM
="$NM"
13796 lt_nm_to_check
="${ac_tool_prefix}nm"
13797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13798 lt_nm_to_check
="$lt_nm_to_check nm"
13800 for lt_tmp_nm
in $lt_nm_to_check; do
13801 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13802 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13804 test -z "$ac_dir" && ac_dir
=.
13805 tmp_nm
="$ac_dir/$lt_tmp_nm"
13806 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13807 # Check to see if the nm accepts a BSD-compat flag.
13808 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13809 # nm: unknown option "B" ignored
13810 # Tru64's nm complains that /dev/null is an invalid object file
13811 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13812 */dev
/null
* |
*'Invalid file or object type'*)
13813 lt_cv_path_NM
="$tmp_nm -B"
13817 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13819 lt_cv_path_NM
="$tmp_nm -p"
13823 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13824 continue # so that we can try to find one that supports BSD flags
13833 : ${lt_cv_path_NM=no}
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13837 $as_echo "$lt_cv_path_NM" >&6; }
13838 if test "$lt_cv_path_NM" != "no"; then
13839 NM
="$lt_cv_path_NM"
13841 # Didn't find any BSD compatible name lister, look for dumpbin.
13842 if test -n "$DUMPBIN"; then :
13843 # Let the user override the test.
13845 if test -n "$ac_tool_prefix"; then
13846 for ac_prog
in dumpbin
"link -dump"
13848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13849 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851 $as_echo_n "checking for $ac_word... " >&6; }
13852 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13853 $as_echo_n "(cached) " >&6
13855 if test -n "$DUMPBIN"; then
13856 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13859 for as_dir
in $PATH
13862 test -z "$as_dir" && as_dir
=.
13863 for ac_exec_ext
in '' $ac_executable_extensions; do
13864 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13865 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13875 DUMPBIN
=$ac_cv_prog_DUMPBIN
13876 if test -n "$DUMPBIN"; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13878 $as_echo "$DUMPBIN" >&6; }
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881 $as_echo "no" >&6; }
13885 test -n "$DUMPBIN" && break
13888 if test -z "$DUMPBIN"; then
13889 ac_ct_DUMPBIN
=$DUMPBIN
13890 for ac_prog
in dumpbin
"link -dump"
13892 # Extract the first word of "$ac_prog", so it can be a program name with args.
13893 set dummy
$ac_prog; ac_word
=$2
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13895 $as_echo_n "checking for $ac_word... " >&6; }
13896 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13897 $as_echo_n "(cached) " >&6
13899 if test -n "$ac_ct_DUMPBIN"; then
13900 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13903 for as_dir
in $PATH
13906 test -z "$as_dir" && as_dir
=.
13907 for ac_exec_ext
in '' $ac_executable_extensions; do
13908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13909 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13919 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13920 if test -n "$ac_ct_DUMPBIN"; then
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13922 $as_echo "$ac_ct_DUMPBIN" >&6; }
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13925 $as_echo "no" >&6; }
13929 test -n "$ac_ct_DUMPBIN" && break
13932 if test "x$ac_ct_DUMPBIN" = x
; then
13935 case $cross_compiling:$ac_tool_warned in
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13939 ac_tool_warned
=yes ;;
13941 DUMPBIN
=$ac_ct_DUMPBIN
13945 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13947 DUMPBIN
="$DUMPBIN -symbols"
13955 if test "$DUMPBIN" != ":"; then
13959 test -z "$NM" && NM
=nm
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13967 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13968 if ${lt_cv_nm_interface+:} false
; then :
13969 $as_echo_n "(cached) " >&6
13971 lt_cv_nm_interface
="BSD nm"
13972 echo "int some_variable = 0;" > conftest.
$ac_ext
13973 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13974 (eval "$ac_compile" 2>conftest.err
)
13975 cat conftest.err
>&5
13976 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13977 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13978 cat conftest.err
>&5
13979 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13980 cat conftest.out
>&5
13981 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13982 lt_cv_nm_interface
="MS dumpbin"
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13987 $as_echo "$lt_cv_nm_interface" >&6; }
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13990 $as_echo_n "checking whether ln -s works... " >&6; }
13992 if test "$LN_S" = "ln -s"; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13994 $as_echo "yes" >&6; }
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13997 $as_echo "no, using $LN_S" >&6; }
14000 # find the maximum length of command line arguments
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14002 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14003 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14004 $as_echo_n "(cached) " >&6
14011 # On DJGPP, this test can blow up pretty badly due to problems in libc
14012 # (any single argument exceeding 2000 bytes causes a buffer overrun
14013 # during glob expansion). Even if it were fixed, the result of this
14014 # check would be larger than it should be.
14015 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14019 # Under GNU Hurd, this test is not required because there is
14020 # no limit to the length of command line arguments.
14021 # Libtool will interpret -1 as no limit whatsoever
14022 lt_cv_sys_max_cmd_len
=-1;
14025 cygwin
* | mingw
* | cegcc
*)
14026 # On Win9x/ME, this test blows up -- it succeeds, but takes
14027 # about 5 minutes as the teststring grows exponentially.
14028 # Worse, since 9x/ME are not pre-emptively multitasking,
14029 # you end up with a "frozen" computer, even though with patience
14030 # the test eventually succeeds (with a max line length of 256k).
14031 # Instead, let's just punt: use the minimum linelength reported by
14032 # all of the supported platforms: 8192 (on NT/2K/XP).
14033 lt_cv_sys_max_cmd_len
=8192;
14037 # On MiNT this can take a long time and run out of memory.
14038 lt_cv_sys_max_cmd_len
=8192;
14042 # On AmigaOS with pdksh, this test takes hours, literally.
14043 # So we just punt and use a minimum line length of 8192.
14044 lt_cv_sys_max_cmd_len
=8192;
14047 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14048 # This has been around since 386BSD, at least. Likely further.
14049 if test -x /sbin
/sysctl
; then
14050 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14051 elif test -x /usr
/sbin
/sysctl
; then
14052 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14054 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14056 # And add a safety zone
14057 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14058 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14062 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14063 lt_cv_sys_max_cmd_len
=196608
14067 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14068 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14069 # nice to cause kernel panics so lets avoid the loop below.
14070 # First set a reasonable default.
14071 lt_cv_sys_max_cmd_len
=16384
14073 if test -x /sbin
/sysconfig
; then
14074 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14075 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14080 lt_cv_sys_max_cmd_len
=102400
14082 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14083 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14084 if test -n "$kargmax"; then
14085 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14087 lt_cv_sys_max_cmd_len
=32768
14091 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14092 if test -n "$lt_cv_sys_max_cmd_len"; then
14093 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14094 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14096 # Make teststring a little bigger before we do anything with it.
14097 # a 1K string should be a reasonable start.
14098 for i
in 1 2 3 4 5 6 7 8 ; do
14099 teststring
=$teststring$teststring
14101 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14102 # If test is not a shell built-in, we'll probably end up computing a
14103 # maximum length that is only half of the actual maximum length, but
14105 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14106 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14107 test $i != 17 # 1/2 MB should be enough
14110 teststring
=$teststring$teststring
14112 # Only check the string length outside the loop.
14113 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14115 # Add a significant safety factor because C++ compilers can tack on
14116 # massive amounts of additional arguments before passing them to the
14117 # linker. It appears as though 1/2 is a usable value.
14118 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14125 if test -n $lt_cv_sys_max_cmd_len ; then
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14127 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14130 $as_echo "none" >&6; }
14132 max_cmd_len
=$lt_cv_sys_max_cmd_len
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14144 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14145 # Try some XSI features
14147 ( _lt_dummy
="a/b/c"
14148 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14150 && eval 'test $(( 1 + 1 )) -eq 2 \
14151 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14154 $as_echo "$xsi_shell" >&6; }
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14158 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14160 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14162 && lt_shell_append=yes
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14164 $as_echo "$lt_shell_append" >&6; }
14167 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14177 # test EBCDIC or ASCII
14178 case `echo X|tr X '\101'` in
14179 A) # ASCII based system
14180 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14181 lt_SP2NL='tr \040 \012'
14182 lt_NL2SP='tr \015\012 \040\040'
14184 *) # EBCDIC based system
14185 lt_SP2NL='tr \100 \n'
14186 lt_NL2SP='tr \r\n \100\100'
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14199 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14200 if ${lt_cv_ld_reload_flag+:} false; then :
14201 $as_echo_n "(cached
) " >&6
14203 lt_cv_ld_reload_flag='-r'
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14206 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14207 reload_flag=$lt_cv_ld_reload_flag
14208 case $reload_flag in
14210 *) reload_flag=" $reload_flag" ;;
14212 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14215 if test "$GCC" = yes; then
14216 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14218 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14231 if test -n "$ac_tool_prefix"; then
14232 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14233 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14235 $as_echo_n "checking
for $ac_word...
" >&6; }
14236 if ${ac_cv_prog_OBJDUMP+:} false; then :
14237 $as_echo_n "(cached
) " >&6
14239 if test -n "$OBJDUMP"; then
14240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14243 for as_dir in $PATH
14246 test -z "$as_dir" && as_dir=.
14247 for ac_exec_ext in '' $ac_executable_extensions; do
14248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14249 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14250 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14259 OBJDUMP=$ac_cv_prog_OBJDUMP
14260 if test -n "$OBJDUMP"; then
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14262 $as_echo "$OBJDUMP" >&6; }
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14265 $as_echo "no
" >&6; }
14270 if test -z "$ac_cv_prog_OBJDUMP"; then
14271 ac_ct_OBJDUMP=$OBJDUMP
14272 # Extract the first word of "objdump
", so it can be a program name with args.
14273 set dummy objdump; ac_word=$2
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14275 $as_echo_n "checking
for $ac_word...
" >&6; }
14276 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14277 $as_echo_n "(cached
) " >&6
14279 if test -n "$ac_ct_OBJDUMP"; then
14280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14289 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14290 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14299 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14300 if test -n "$ac_ct_OBJDUMP"; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14302 $as_echo "$ac_ct_OBJDUMP" >&6; }
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14305 $as_echo "no
" >&6; }
14308 if test "x
$ac_ct_OBJDUMP" = x; then
14311 case $cross_compiling:$ac_tool_warned in
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14314 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14315 ac_tool_warned=yes ;;
14317 OBJDUMP=$ac_ct_OBJDUMP
14320 OBJDUMP="$ac_cv_prog_OBJDUMP"
14323 test -z "$OBJDUMP" && OBJDUMP=objdump
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14334 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14335 if ${lt_cv_deplibs_check_method+:} false; then :
14336 $as_echo_n "(cached
) " >&6
14338 lt_cv_file_magic_cmd='$MAGIC_CMD'
14339 lt_cv_file_magic_test_file=
14340 lt_cv_deplibs_check_method='unknown'
14341 # Need to set the preceding variable on all platforms that support
14342 # interlibrary dependencies.
14343 # 'none' -- dependencies not supported.
14344 # `unknown' -- same as none, but documents that we really don't know.
14345 # 'pass_all' -- all dependencies passed with no checks.
14346 # 'test_compile' -- check by making test program.
14347 # 'file_magic [[regex]]' -- check by looking for files in library path
14348 # which responds to the $file_magic_cmd with a given extended regex.
14349 # If you have `file' or equivalent on your system and you're not sure
14350 # whether `pass_all' will *always* work, you probably want this one.
14354 lt_cv_deplibs_check_method=pass_all
14358 lt_cv_deplibs_check_method=pass_all
14362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14363 lt_cv_file_magic_cmd='/usr/bin/file -L'
14364 lt_cv_file_magic_test_file=/shlib/libc.so
14368 # func_win32_libid is a shell function defined in ltmain.sh
14369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14370 lt_cv_file_magic_cmd='func_win32_libid'
14374 # Base MSYS/MinGW do not provide the 'file' command needed by
14375 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14376 # unless we find 'file', for example because we are cross-compiling.
14377 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14378 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14380 lt_cv_file_magic_cmd='func_win32_libid'
14382 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14383 lt_cv_file_magic_cmd='$OBJDUMP -f'
14388 # use the weaker test based on 'objdump'. See mingw*.
14389 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14390 lt_cv_file_magic_cmd='$OBJDUMP -f'
14393 darwin* | rhapsody*)
14394 lt_cv_deplibs_check_method=pass_all
14397 freebsd* | dragonfly*)
14398 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14401 # Not sure whether the presence of OpenBSD here was a mistake.
14402 # Let's accept both of them until this is cleared up.
14403 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14404 lt_cv_file_magic_cmd=/usr/bin/file
14405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14409 lt_cv_deplibs_check_method=pass_all
14414 lt_cv_deplibs_check_method=pass_all
14418 lt_cv_deplibs_check_method=pass_all
14421 hpux10.20* | hpux11*)
14422 lt_cv_file_magic_cmd=/usr/bin/file
14425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14426 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14429 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]'
14430 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14434 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14440 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14444 irix5* | irix6* | nonstopux*)
14446 *-32|*"-32 ") libmagic=32-bit;;
14447 *-n32|*"-n32 ") libmagic=N32;;
14448 *-64|*"-64 ") libmagic=64-bit;;
14449 *) libmagic=never-match;;
14451 lt_cv_deplibs_check_method=pass_all
14454 # This must be Linux ELF.
14455 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14456 lt_cv_deplibs_check_method=pass_all
14460 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14469 lt_cv_file_magic_cmd=/usr/bin/file
14470 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14474 lt_cv_deplibs_check_method=pass_all
14478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14485 osf3* | osf4* | osf5*)
14486 lt_cv_deplibs_check_method=pass_all
14490 lt_cv_deplibs_check_method=pass_all
14494 lt_cv_deplibs_check_method=pass_all
14497 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14498 lt_cv_deplibs_check_method=pass_all
14502 case $host_vendor in
14504 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]'
14505 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14508 lt_cv_deplibs_check_method=pass_all
14511 lt_cv_file_magic_cmd='/bin/file'
14512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14515 lt_cv_file_magic_cmd='/bin/file'
14516 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14517 lt_cv_file_magic_test_file=/lib/libc.so
14520 lt_cv_deplibs_check_method=pass_all
14523 lt_cv_deplibs_check_method=pass_all
14529 lt_cv_deplibs_check_method=pass_all
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14535 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14536 file_magic_cmd=$lt_cv_file_magic_cmd
14537 deplibs_check_method=$lt_cv_deplibs_check_method
14538 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14551 if test -n "$ac_tool_prefix"; then
14552 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14553 set dummy ${ac_tool_prefix}ar; ac_word=$2
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14555 $as_echo_n "checking
for $ac_word...
" >&6; }
14556 if ${ac_cv_prog_AR+:} false; then :
14557 $as_echo_n "(cached
) " >&6
14559 if test -n "$AR"; then
14560 ac_cv_prog_AR="$AR" # Let the user override the test.
14562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563 for as_dir in $PATH
14566 test -z "$as_dir" && as_dir=.
14567 for ac_exec_ext in '' $ac_executable_extensions; do
14568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14569 ac_cv_prog_AR="${ac_tool_prefix}ar"
14570 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14580 if test -n "$AR"; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14582 $as_echo "$AR" >&6; }
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14585 $as_echo "no
" >&6; }
14590 if test -z "$ac_cv_prog_AR"; then
14592 # Extract the first word of "ar", so it can be a program name with args.
14593 set dummy ar; ac_word=$2
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14595 $as_echo_n "checking
for $ac_word...
" >&6; }
14596 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14597 $as_echo_n "(cached
) " >&6
14599 if test -n "$ac_ct_AR"; then
14600 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14603 for as_dir in $PATH
14606 test -z "$as_dir" && as_dir=.
14607 for ac_exec_ext in '' $ac_executable_extensions; do
14608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14609 ac_cv_prog_ac_ct_AR="ar"
14610 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14619 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14620 if test -n "$ac_ct_AR"; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14622 $as_echo "$ac_ct_AR" >&6; }
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14625 $as_echo "no
" >&6; }
14628 if test "x
$ac_ct_AR" = x; then
14631 case $cross_compiling:$ac_tool_warned in
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14634 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14635 ac_tool_warned=yes ;;
14640 AR="$ac_cv_prog_AR"
14643 test -z "$AR" && AR=ar
14644 test -z "$AR_FLAGS" && AR_FLAGS=cru
14656 if test -n "$ac_tool_prefix"; then
14657 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14658 set dummy ${ac_tool_prefix}strip; ac_word=$2
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14660 $as_echo_n "checking
for $ac_word...
" >&6; }
14661 if ${ac_cv_prog_STRIP+:} false; then :
14662 $as_echo_n "(cached
) " >&6
14664 if test -n "$STRIP"; then
14665 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668 for as_dir in $PATH
14671 test -z "$as_dir" && as_dir=.
14672 for ac_exec_ext in '' $ac_executable_extensions; do
14673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14674 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14675 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14684 STRIP=$ac_cv_prog_STRIP
14685 if test -n "$STRIP"; then
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14687 $as_echo "$STRIP" >&6; }
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14690 $as_echo "no
" >&6; }
14695 if test -z "$ac_cv_prog_STRIP"; then
14697 # Extract the first word of "strip
", so it can be a program name with args.
14698 set dummy strip; ac_word=$2
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14700 $as_echo_n "checking
for $ac_word...
" >&6; }
14701 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14702 $as_echo_n "(cached
) " >&6
14704 if test -n "$ac_ct_STRIP"; then
14705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708 for as_dir in $PATH
14711 test -z "$as_dir" && as_dir=.
14712 for ac_exec_ext in '' $ac_executable_extensions; do
14713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14714 ac_cv_prog_ac_ct_STRIP="strip
"
14715 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14725 if test -n "$ac_ct_STRIP"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14727 $as_echo "$ac_ct_STRIP" >&6; }
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14730 $as_echo "no
" >&6; }
14733 if test "x
$ac_ct_STRIP" = x; then
14736 case $cross_compiling:$ac_tool_warned in
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14739 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14740 ac_tool_warned=yes ;;
14745 STRIP="$ac_cv_prog_STRIP"
14748 test -z "$STRIP" && STRIP=:
14755 if test -n "$ac_tool_prefix"; then
14756 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14757 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
14761 $as_echo_n "(cached
) " >&6
14763 if test -n "$RANLIB"; then
14764 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib
"
14774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14783 RANLIB=$ac_cv_prog_RANLIB
14784 if test -n "$RANLIB"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14786 $as_echo "$RANLIB" >&6; }
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14789 $as_echo "no
" >&6; }
14794 if test -z "$ac_cv_prog_RANLIB"; then
14795 ac_ct_RANLIB=$RANLIB
14796 # Extract the first word of "ranlib
", so it can be a program name with args.
14797 set dummy ranlib; ac_word=$2
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14799 $as_echo_n "checking
for $ac_word...
" >&6; }
14800 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14801 $as_echo_n "(cached
) " >&6
14803 if test -n "$ac_ct_RANLIB"; then
14804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $PATH
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14824 if test -n "$ac_ct_RANLIB"; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14826 $as_echo "$ac_ct_RANLIB" >&6; }
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14829 $as_echo "no
" >&6; }
14832 if test "x
$ac_ct_RANLIB" = x; then
14835 case $cross_compiling:$ac_tool_warned in
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14838 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14839 ac_tool_warned=yes ;;
14841 RANLIB=$ac_ct_RANLIB
14844 RANLIB="$ac_cv_prog_RANLIB"
14847 test -z "$RANLIB" && RANLIB=:
14854 # Determine commands to create old-style static archives.
14855 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14856 old_postinstall_cmds='chmod 644 $oldlib'
14857 old_postuninstall_cmds=
14859 if test -n "$RANLIB"; then
14862 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14865 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14868 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14873 lock_old_archive_extraction=yes ;;
14875 lock_old_archive_extraction=no ;;
14916 # If no C compiler was specified, use CC.
14919 # If no C compiler flags were specified, use CFLAGS.
14920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14922 # Allow CC to be a program name with arguments.
14926 # Check for command to grab the raw symbol name followed by C symbol from nm.
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14928 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14929 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14930 $as_echo_n "(cached
) " >&6
14933 # These are sane defaults that work on at least a few old systems.
14934 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14936 # Character class describing NM global symbol codes.
14937 symcode='[BCDEGRST]'
14939 # Regexp to match symbols that can be accessed directly from C.
14940 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14942 # Define system-specific variables.
14947 cygwin* | mingw* | pw32* | cegcc*)
14948 symcode='[ABCDGISTW]'
14951 if test "$host_cpu" = ia64; then
14952 symcode='[ABCDEGRST]'
14955 irix* | nonstopux*)
14956 symcode='[BCDEGRST]'
14959 symcode='[BCDEGQRST]'
14970 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14978 # If we're using GNU nm, then use its standard symbol codes.
14979 case `$NM -V 2>&1` in
14980 *GNU* | *'with BFD'*)
14981 symcode='[ABCDGIRSTW]' ;;
14984 # Transform an extracted symbol line into a proper C declaration.
14985 # Some systems (esp. on ia64) link data and code symbols differently,
14986 # so use this general approach.
14987 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14989 # Transform an extracted symbol line into symbol name and symbol address
14990 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14991 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'"
14993 # Handle CRLF in mingw tool chain
14997 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15001 # Try without a prefix underscore, then with it.
15002 for ac_symprfx in "" "_
"; do
15004 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15005 symxfrm="\\1 $ac_symprfx\\2 \\2"
15007 # Write the raw and C identifiers.
15008 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15009 # Fake it for dumpbin and say T for any non-static function
15010 # and D for any global variable.
15011 # Also find C++ and __fastcall symbols from MSVC++,
15012 # which start with @ or ?.
15013 lt_cv_sys_global_symbol_pipe="$AWK '"\
15014 " {last_section=section; section=\$ 3};"\
15015 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15016 " \$ 0!~/External *\|/{next};"\
15017 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15018 " {if(hide[section]) next};"\
15019 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15020 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15021 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15022 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15023 " ' prfx
=^
$ac_symprfx"
15025 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15028 # Check to see that the pipe works correctly.
15032 cat > conftest.$ac_ext <<_LT_EOF
15037 void nm_test_func(void);
15038 void nm_test_func(void){}
15042 int main(){nm_test_var='a';nm_test_func();return(0);}
15045 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15046 (eval $ac_compile) 2>&5
15048 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15049 test $ac_status = 0; }; then
15050 # Now try to grab the symbols.
15052 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15053 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15055 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15056 test $ac_status = 0; } && test -s "$nlist"; then
15057 # Try sorting and uniquifying the output.
15058 if sort "$nlist" | uniq > "$nlist"T; then
15059 mv -f "$nlist"T "$nlist"
15064 # Make sure that we snagged all the symbols we need.
15065 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15066 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15067 cat <<_LT_EOF > conftest.$ac_ext
15073 # Now generate the symbol file.
15074 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15076 cat <<_LT_EOF >> conftest.$ac_ext
15078 /* The mapping between symbol names and symbols. */
15083 lt__PROGRAM__LTX_preloaded_symbols[] =
15085 { "@PROGRAM@
", (void *) 0 },
15087 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15088 cat <<\_LT_EOF >> conftest.$ac_ext
15092 /* This works around a problem in FreeBSD linker */
15093 #ifdef FREEBSD_WORKAROUND
15094 static const void *lt_preloaded_setup() {
15095 return lt__PROGRAM__LTX_preloaded_symbols;
15103 # Now try linking the two files.
15104 mv conftest.$ac_objext conftstm.$ac_objext
15105 lt_save_LIBS="$LIBS"
15106 lt_save_CFLAGS="$CFLAGS"
15107 LIBS="conftstm.
$ac_objext"
15108 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15109 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15110 (eval $ac_link) 2>&5
15112 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15113 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15116 LIBS="$lt_save_LIBS"
15117 CFLAGS="$lt_save_CFLAGS"
15119 echo "cannot
find nm_test_func
in $nlist" >&5
15122 echo "cannot
find nm_test_var
in $nlist" >&5
15125 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15128 echo "$progname: failed program was
:" >&5
15129 cat conftest.$ac_ext >&5
15131 rm -rf conftest* conftst*
15133 # Do not use the global_symbol_pipe unless it works.
15134 if test "$pipe_works" = yes; then
15137 lt_cv_sys_global_symbol_pipe=
15143 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15144 lt_cv_sys_global_symbol_to_cdecl=
15146 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15148 $as_echo "failed
" >&6; }
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15151 $as_echo "ok
" >&6; }
15175 # Check whether --enable-libtool-lock was given.
15176 if test "${enable_libtool_lock+set}" = set; then :
15177 enableval=$enable_libtool_lock;
15180 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15182 # Some flags need to be propagated to the compiler or linker for good
15186 # Find out which ABI we are using.
15187 echo 'int i;' > conftest.$ac_ext
15188 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15189 (eval $ac_compile) 2>&5
15191 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15192 test $ac_status = 0; }; then
15193 case `/usr/bin/file conftest.$ac_objext` in
15195 HPUX_IA64_MODE="32"
15198 HPUX_IA64_MODE="64"
15205 # Find out which ABI we are using.
15206 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15207 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15208 (eval $ac_compile) 2>&5
15210 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15211 test $ac_status = 0; }; then
15212 if test "$lt_cv_prog_gnu_ld" = yes; then
15213 case `/usr/bin/file conftest.$ac_objext` in
15215 LD="${LD-ld} -melf32bsmip"
15218 LD="${LD-ld} -melf32bmipn32"
15221 LD="${LD-ld} -melf64bmip"
15225 case `/usr/bin/file conftest.$ac_objext` in
15241 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15242 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15243 # Find out which ABI we are using.
15244 echo 'int i;' > conftest.$ac_ext
15245 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15246 (eval $ac_compile) 2>&5
15248 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15249 test $ac_status = 0; }; then
15250 case `/usr/bin/file conftest.o` in
15253 x86_64-*kfreebsd*-gnu)
15254 LD="${LD-ld} -m elf_i386_fbsd
"
15257 case `/usr/bin/file conftest.o` in
15259 LD="${LD-ld} -m elf32_x86_64
"
15262 LD="${LD-ld} -m elf_i386
"
15266 powerpc64le-*linux*)
15267 LD="${LD-ld} -m elf32lppclinux
"
15270 LD="${LD-ld} -m elf32ppclinux
"
15273 LD="${LD-ld} -m elf_s390
"
15276 LD="${LD-ld} -m elf32_sparc
"
15282 x86_64-*kfreebsd*-gnu)
15283 LD="${LD-ld} -m elf_x86_64_fbsd
"
15286 LD="${LD-ld} -m elf_x86_64
"
15289 LD="${LD-ld} -m elf64lppc
"
15292 LD="${LD-ld} -m elf64ppc
"
15294 s390*-*linux*|s390*-*tpf*)
15295 LD="${LD-ld} -m elf64_s390
"
15298 LD="${LD-ld} -m elf64_sparc
"
15308 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15309 SAVE_CFLAGS="$CFLAGS"
15310 CFLAGS="$CFLAGS -belf"
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15312 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15313 if ${lt_cv_cc_needs_belf+:} false; then :
15314 $as_echo_n "(cached
) " >&6
15317 ac_cpp='$CPP $CPPFLAGS'
15318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15333 if ac_fn_c_try_link "$LINENO"; then :
15334 lt_cv_cc_needs_belf=yes
15336 lt_cv_cc_needs_belf=no
15338 rm -f core conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext conftest.$ac_ext
15341 ac_cpp='$CPP $CPPFLAGS'
15342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15348 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15349 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15350 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15351 CFLAGS="$SAVE_CFLAGS"
15355 # Find out which ABI we are using.
15356 echo 'int i;' > conftest.$ac_ext
15357 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15358 (eval $ac_compile) 2>&5
15360 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15361 test $ac_status = 0; }; then
15362 case `/usr/bin/file conftest.o` in
15364 case $lt_cv_prog_gnu_ld in
15365 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15367 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15379 need_locks="$enable_libtool_lock"
15383 rhapsody* | darwin*)
15384 if test -n "$ac_tool_prefix"; then
15385 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15386 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15388 $as_echo_n "checking
for $ac_word...
" >&6; }
15389 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15390 $as_echo_n "(cached
) " >&6
15392 if test -n "$DSYMUTIL"; then
15393 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15399 test -z "$as_dir" && as_dir=.
15400 for ac_exec_ext in '' $ac_executable_extensions; do
15401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15402 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15403 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15412 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15413 if test -n "$DSYMUTIL"; then
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15415 $as_echo "$DSYMUTIL" >&6; }
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15418 $as_echo "no
" >&6; }
15423 if test -z "$ac_cv_prog_DSYMUTIL"; then
15424 ac_ct_DSYMUTIL=$DSYMUTIL
15425 # Extract the first word of "dsymutil
", so it can be a program name with args.
15426 set dummy dsymutil; ac_word=$2
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15428 $as_echo_n "checking
for $ac_word...
" >&6; }
15429 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15430 $as_echo_n "(cached
) " >&6
15432 if test -n "$ac_ct_DSYMUTIL"; then
15433 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $PATH
15439 test -z "$as_dir" && as_dir=.
15440 for ac_exec_ext in '' $ac_executable_extensions; do
15441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15442 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15443 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15452 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15453 if test -n "$ac_ct_DSYMUTIL"; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15455 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15458 $as_echo "no
" >&6; }
15461 if test "x
$ac_ct_DSYMUTIL" = x; then
15464 case $cross_compiling:$ac_tool_warned in
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15467 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15468 ac_tool_warned=yes ;;
15470 DSYMUTIL=$ac_ct_DSYMUTIL
15473 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15476 if test -n "$ac_tool_prefix"; then
15477 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15478 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15480 $as_echo_n "checking
for $ac_word...
" >&6; }
15481 if ${ac_cv_prog_NMEDIT+:} false; then :
15482 $as_echo_n "(cached
) " >&6
15484 if test -n "$NMEDIT"; then
15485 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15488 for as_dir in $PATH
15491 test -z "$as_dir" && as_dir=.
15492 for ac_exec_ext in '' $ac_executable_extensions; do
15493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15494 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15495 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15504 NMEDIT=$ac_cv_prog_NMEDIT
15505 if test -n "$NMEDIT"; then
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15507 $as_echo "$NMEDIT" >&6; }
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15510 $as_echo "no
" >&6; }
15515 if test -z "$ac_cv_prog_NMEDIT"; then
15516 ac_ct_NMEDIT=$NMEDIT
15517 # Extract the first word of "nmedit
", so it can be a program name with args.
15518 set dummy nmedit; ac_word=$2
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15520 $as_echo_n "checking
for $ac_word...
" >&6; }
15521 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15522 $as_echo_n "(cached
) " >&6
15524 if test -n "$ac_ct_NMEDIT"; then
15525 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15528 for as_dir in $PATH
15531 test -z "$as_dir" && as_dir=.
15532 for ac_exec_ext in '' $ac_executable_extensions; do
15533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15534 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15544 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15545 if test -n "$ac_ct_NMEDIT"; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15547 $as_echo "$ac_ct_NMEDIT" >&6; }
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15550 $as_echo "no
" >&6; }
15553 if test "x
$ac_ct_NMEDIT" = x; then
15556 case $cross_compiling:$ac_tool_warned in
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15559 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15560 ac_tool_warned=yes ;;
15562 NMEDIT=$ac_ct_NMEDIT
15565 NMEDIT="$ac_cv_prog_NMEDIT"
15568 if test -n "$ac_tool_prefix"; then
15569 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15570 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15572 $as_echo_n "checking
for $ac_word...
" >&6; }
15573 if ${ac_cv_prog_LIPO+:} false; then :
15574 $as_echo_n "(cached
) " >&6
15576 if test -n "$LIPO"; then
15577 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15580 for as_dir in $PATH
15583 test -z "$as_dir" && as_dir=.
15584 for ac_exec_ext in '' $ac_executable_extensions; do
15585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15586 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15587 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15596 LIPO=$ac_cv_prog_LIPO
15597 if test -n "$LIPO"; then
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15599 $as_echo "$LIPO" >&6; }
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15602 $as_echo "no
" >&6; }
15607 if test -z "$ac_cv_prog_LIPO"; then
15609 # Extract the first word of "lipo
", so it can be a program name with args.
15610 set dummy lipo; ac_word=$2
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15612 $as_echo_n "checking
for $ac_word...
" >&6; }
15613 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15614 $as_echo_n "(cached
) " >&6
15616 if test -n "$ac_ct_LIPO"; then
15617 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620 for as_dir in $PATH
15623 test -z "$as_dir" && as_dir=.
15624 for ac_exec_ext in '' $ac_executable_extensions; do
15625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15626 ac_cv_prog_ac_ct_LIPO="lipo
"
15627 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15636 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15637 if test -n "$ac_ct_LIPO"; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15639 $as_echo "$ac_ct_LIPO" >&6; }
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15642 $as_echo "no
" >&6; }
15645 if test "x
$ac_ct_LIPO" = x; then
15648 case $cross_compiling:$ac_tool_warned in
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15651 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15652 ac_tool_warned=yes ;;
15657 LIPO="$ac_cv_prog_LIPO"
15660 if test -n "$ac_tool_prefix"; then
15661 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15662 set dummy ${ac_tool_prefix}otool; ac_word=$2
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15664 $as_echo_n "checking
for $ac_word...
" >&6; }
15665 if ${ac_cv_prog_OTOOL+:} false; then :
15666 $as_echo_n "(cached
) " >&6
15668 if test -n "$OTOOL"; then
15669 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15672 for as_dir in $PATH
15675 test -z "$as_dir" && as_dir=.
15676 for ac_exec_ext in '' $ac_executable_extensions; do
15677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15678 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15679 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15688 OTOOL=$ac_cv_prog_OTOOL
15689 if test -n "$OTOOL"; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15691 $as_echo "$OTOOL" >&6; }
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15694 $as_echo "no
" >&6; }
15699 if test -z "$ac_cv_prog_OTOOL"; then
15701 # Extract the first word of "otool
", so it can be a program name with args.
15702 set dummy otool; ac_word=$2
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15704 $as_echo_n "checking
for $ac_word...
" >&6; }
15705 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15706 $as_echo_n "(cached
) " >&6
15708 if test -n "$ac_ct_OTOOL"; then
15709 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15712 for as_dir in $PATH
15715 test -z "$as_dir" && as_dir=.
15716 for ac_exec_ext in '' $ac_executable_extensions; do
15717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15718 ac_cv_prog_ac_ct_OTOOL="otool
"
15719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15728 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15729 if test -n "$ac_ct_OTOOL"; then
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15731 $as_echo "$ac_ct_OTOOL" >&6; }
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15734 $as_echo "no
" >&6; }
15737 if test "x
$ac_ct_OTOOL" = x; then
15740 case $cross_compiling:$ac_tool_warned in
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15743 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15744 ac_tool_warned=yes ;;
15749 OTOOL="$ac_cv_prog_OTOOL"
15752 if test -n "$ac_tool_prefix"; then
15753 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15754 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15756 $as_echo_n "checking
for $ac_word...
" >&6; }
15757 if ${ac_cv_prog_OTOOL64+:} false; then :
15758 $as_echo_n "(cached
) " >&6
15760 if test -n "$OTOOL64"; then
15761 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15764 for as_dir in $PATH
15767 test -z "$as_dir" && as_dir=.
15768 for ac_exec_ext in '' $ac_executable_extensions; do
15769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15770 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15771 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15780 OTOOL64=$ac_cv_prog_OTOOL64
15781 if test -n "$OTOOL64"; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15783 $as_echo "$OTOOL64" >&6; }
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15786 $as_echo "no
" >&6; }
15791 if test -z "$ac_cv_prog_OTOOL64"; then
15792 ac_ct_OTOOL64=$OTOOL64
15793 # Extract the first word of "otool64
", so it can be a program name with args.
15794 set dummy otool64; ac_word=$2
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15796 $as_echo_n "checking
for $ac_word...
" >&6; }
15797 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15798 $as_echo_n "(cached
) " >&6
15800 if test -n "$ac_ct_OTOOL64"; then
15801 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804 for as_dir in $PATH
15807 test -z "$as_dir" && as_dir=.
15808 for ac_exec_ext in '' $ac_executable_extensions; do
15809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15810 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15811 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15820 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15821 if test -n "$ac_ct_OTOOL64"; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15823 $as_echo "$ac_ct_OTOOL64" >&6; }
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15826 $as_echo "no
" >&6; }
15829 if test "x
$ac_ct_OTOOL64" = x; then
15832 case $cross_compiling:$ac_tool_warned in
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15835 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15836 ac_tool_warned=yes ;;
15838 OTOOL64=$ac_ct_OTOOL64
15841 OTOOL64="$ac_cv_prog_OTOOL64"
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15871 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15872 if ${lt_cv_apple_cc_single_mod+:} false; then :
15873 $as_echo_n "(cached
) " >&6
15875 lt_cv_apple_cc_single_mod=no
15876 if test -z "${LT_MULTI_MODULE}"; then
15877 # By default we will add the -single_module flag. You can override
15878 # by either setting the environment variable LT_MULTI_MODULE
15879 # non-empty at configure time, or by adding -multi_module to the
15881 rm -rf libconftest.dylib*
15882 echo "int foo
(void
){return 1;}" > conftest.c
15883 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15884 -dynamiclib -Wl,-single_module conftest.c
" >&5
15885 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15886 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15888 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15889 lt_cv_apple_cc_single_mod=yes
15891 cat conftest.err >&5
15893 rm -rf libconftest.dylib*
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15898 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15900 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15901 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15902 $as_echo_n "(cached
) " >&6
15904 lt_cv_ld_exported_symbols_list=no
15905 save_LDFLAGS=$LDFLAGS
15906 echo "_main
" > conftest.sym
15907 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15919 if ac_fn_c_try_link "$LINENO"; then :
15920 lt_cv_ld_exported_symbols_list=yes
15922 lt_cv_ld_exported_symbols_list=no
15924 rm -f core conftest.err conftest.$ac_objext \
15925 conftest$ac_exeext conftest.$ac_ext
15926 LDFLAGS="$save_LDFLAGS"
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15930 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15932 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15933 if ${lt_cv_ld_force_load+:} false; then :
15934 $as_echo_n "(cached
) " >&6
15936 lt_cv_ld_force_load=no
15937 cat > conftest.c << _LT_EOF
15938 int forced_loaded() { return 2;}
15940 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15941 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15942 echo "$AR cru libconftest.a conftest.o
" >&5
15943 $AR cru libconftest.a conftest.o 2>&5
15944 cat > conftest.c << _LT_EOF
15945 int main() { return 0;}
15947 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15948 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15950 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15951 lt_cv_ld_force_load=yes
15953 cat conftest.err >&5
15955 rm -f conftest.err libconftest.a conftest conftest.c
15956 rm -rf conftest.dSYM
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15960 $as_echo "$lt_cv_ld_force_load" >&6; }
15961 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
15962 # build without first building modern cctools / linker.
15963 case $host_cpu-$host_os in
15964 *-rhapsody* | *-darwin1.[012])
15965 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15967 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15969 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
15970 # deployment target is forced to an earlier version.
15971 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
15972 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
15975 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15982 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15983 _lt_dar_single_mod='$single_module'
15985 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15986 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15988 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15990 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15991 _lt_dsymutil='~$DSYMUTIL $lib || :'
15999 for ac_header in dlfcn.h
16001 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16002 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16003 cat >>confdefs.h <<_ACEOF
16004 #define HAVE_DLFCN_H 1
16021 enable_win32_dll=no
16024 # Check whether --enable-shared was given.
16025 if test "${enable_shared+set}" = set; then :
16026 enableval=$enable_shared; p=${PACKAGE-default}
16028 yes) enable_shared=yes ;;
16029 no) enable_shared=no ;;
16032 # Look at the argument we got. We use all the common list separators.
16033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16034 for pkg in $enableval; do
16036 if test "X
$pkg" = "X
$p"; then
16055 # Check whether --enable-static was given.
16056 if test "${enable_static+set}" = set; then :
16057 enableval=$enable_static; p=${PACKAGE-default}
16059 yes) enable_static=yes ;;
16060 no) enable_static=no ;;
16063 # Look at the argument we got. We use all the common list separators.
16064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16065 for pkg in $enableval; do
16067 if test "X
$pkg" = "X
$p"; then
16087 # Check whether --with-pic was given.
16088 if test "${with_pic+set}" = set; then :
16089 withval=$with_pic; pic_mode="$withval"
16095 test -z "$pic_mode" && pic_mode=default
16103 # Check whether --enable-fast-install was given.
16104 if test "${enable_fast_install+set}" = set; then :
16105 enableval=$enable_fast_install; p=${PACKAGE-default}
16107 yes) enable_fast_install=yes ;;
16108 no) enable_fast_install=no ;;
16110 enable_fast_install=no
16111 # Look at the argument we got. We use all the common list separators.
16112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16113 for pkg in $enableval; do
16115 if test "X
$pkg" = "X
$p"; then
16116 enable_fast_install=yes
16123 enable_fast_install=yes
16136 # This can be used to rebuild libtool when needed
16137 LIBTOOL_DEPS="$ltmain"
16139 # Always use our own libtool.
16140 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16167 test -z "$LN_S" && LN_S="ln -s"
16182 if test -n "${ZSH_VERSION+set}" ; then
16183 setopt NO_GLOB_SUBST
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16187 $as_echo_n "checking
for objdir...
" >&6; }
16188 if ${lt_cv_objdir+:} false; then :
16189 $as_echo_n "(cached
) " >&6
16191 rm -f .libs 2>/dev/null
16192 mkdir .libs 2>/dev/null
16193 if test -d .libs; then
16196 # MS-DOS does not allow filenames that begin with a dot.
16199 rmdir .libs 2>/dev/null
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16202 $as_echo "$lt_cv_objdir" >&6; }
16203 objdir=$lt_cv_objdir
16209 cat >>confdefs.h <<_ACEOF
16210 #define LT_OBJDIR "$lt_cv_objdir/"
16218 # AIX sometimes has problems with the GCC collect2 program. For some
16219 # reason, if we set the COLLECT_NAMES environment variable, the problems
16220 # vanish in a puff of smoke.
16221 if test "X
${COLLECT_NAMES+set}" != Xset; then
16223 export COLLECT_NAMES
16228 # Global variables:
16230 can_build_shared=yes
16232 # All known linkers require a `.a' archive for static linking (except MSVC,
16233 # which needs '.lib').
16236 with_gnu_ld="$lt_cv_prog_gnu_ld"
16239 old_CFLAGS="$CFLAGS"
16241 # Set sane defaults for various variables
16242 test -z "$CC" && CC=cc
16243 test -z "$LTCC" && LTCC=$CC
16244 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16245 test -z "$LD" && LD=ld
16246 test -z "$ac_objext" && ac_objext=o
16248 for cc_temp in $compiler""; do
16250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16256 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16259 # Only perform the check for file, if the check method requires it
16260 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16261 case $deplibs_check_method in
16263 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16265 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16266 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16267 $as_echo_n "(cached
) " >&6
16271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16274 lt_save_MAGIC_CMD="$MAGIC_CMD"
16275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16276 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16277 for ac_dir in $ac_dummy; do
16279 test -z "$ac_dir" && ac_dir=.
16280 if test -f $ac_dir/${ac_tool_prefix}file; then
16281 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16282 if test -n "$file_magic_test_file"; then
16283 case $deplibs_check_method in
16285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16288 $EGREP "$file_magic_regex" > /dev/null; then
16293 *** Warning: the command libtool uses to detect shared libraries,
16294 *** $file_magic_cmd, produces output that libtool cannot recognize.
16295 *** The result is that libtool may fail to recognize shared libraries
16296 *** as such. This will affect the creation of libtool libraries that
16297 *** depend on shared libraries, but programs linked with such libtool
16298 *** libraries will work regardless of this problem. Nevertheless, you
16299 *** may want to report the problem to your system manager and/or to
16300 *** bug-libtool@gnu.org
16310 MAGIC_CMD="$lt_save_MAGIC_CMD"
16315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16316 if test -n "$MAGIC_CMD"; then
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16318 $as_echo "$MAGIC_CMD" >&6; }
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16321 $as_echo "no
" >&6; }
16328 if test -z "$lt_cv_path_MAGIC_CMD"; then
16329 if test -n "$ac_tool_prefix"; then
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16331 $as_echo_n "checking
for file...
" >&6; }
16332 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16333 $as_echo_n "(cached
) " >&6
16337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16340 lt_save_MAGIC_CMD="$MAGIC_CMD"
16341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16342 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16343 for ac_dir in $ac_dummy; do
16345 test -z "$ac_dir" && ac_dir=.
16346 if test -f $ac_dir/file; then
16347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16348 if test -n "$file_magic_test_file"; then
16349 case $deplibs_check_method in
16351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16354 $EGREP "$file_magic_regex" > /dev/null; then
16359 *** Warning: the command libtool uses to detect shared libraries,
16360 *** $file_magic_cmd, produces output that libtool cannot recognize.
16361 *** The result is that libtool may fail to recognize shared libraries
16362 *** as such. This will affect the creation of libtool libraries that
16363 *** depend on shared libraries, but programs linked with such libtool
16364 *** libraries will work regardless of this problem. Nevertheless, you
16365 *** may want to report the problem to your system manager and/or to
16366 *** bug-libtool@gnu.org
16376 MAGIC_CMD="$lt_save_MAGIC_CMD"
16381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16382 if test -n "$MAGIC_CMD"; then
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16384 $as_echo "$MAGIC_CMD" >&6; }
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16387 $as_echo "no
" >&6; }
16400 # Use C for the default configuration in the libtool script
16404 ac_cpp='$CPP $CPPFLAGS'
16405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16410 # Source file extension for C test sources.
16413 # Object file extension for compiled C test sources.
16417 # Code to be used in simple compile tests
16418 lt_simple_compile_test_code="int some_variable
= 0;"
16420 # Code to be used in simple link tests
16421 lt_simple_link_test_code='int main(){return(0);}'
16429 # If no C compiler was specified, use CC.
16432 # If no C compiler flags were specified, use CFLAGS.
16433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16435 # Allow CC to be a program name with arguments.
16438 # Save the default compiler, since it gets overwritten when the other
16439 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16440 compiler_DEFAULT=$CC
16442 # save warnings/boilerplate of simple test code
16443 ac_outfile=conftest.$ac_objext
16444 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16445 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16446 _lt_compiler_boilerplate=`cat conftest.err`
16449 ac_outfile=conftest.$ac_objext
16450 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16451 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16452 _lt_linker_boilerplate=`cat conftest.err`
16457 ## There is no encapsulation within the following macros, do not change
16458 ## the running order or otherwise move them around unless you know exactly
16459 ## what you are doing...
16460 if test -n "$compiler"; then
16462 lt_prog_compiler_no_builtin_flag=
16464 if test "$GCC" = yes; then
16465 case $cc_basename in
16467 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16469 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16473 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16474 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16475 $as_echo_n "(cached
) " >&6
16477 lt_cv_prog_compiler_rtti_exceptions=no
16478 ac_outfile=conftest.$ac_objext
16479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16480 lt_compiler_flag="-fno-rtti -fno-exceptions"
16481 # Insert the option either (1) after the last *FLAGS variable, or
16482 # (2) before a word containing "conftest.
", or (3) at the end.
16483 # Note that $ac_compile itself does not contain backslashes and begins
16484 # with a dollar sign (not a hyphen), so the echo should work correctly.
16485 # The option is referenced via a variable to avoid confusing sed.
16486 lt_compile=`echo "$ac_compile" | $SED \
16487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16489 -e 's:$: $lt_compiler_flag:'`
16490 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16491 (eval "$lt_compile" 2>conftest.err)
16493 cat conftest.err >&5
16494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16495 if (exit $ac_status) && test -s "$ac_outfile"; then
16496 # The compiler can only warn and ignore the option if not recognized
16497 # So say no if there are warnings other than the usual output.
16498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16501 lt_cv_prog_compiler_rtti_exceptions=yes
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16508 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16510 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16511 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16523 lt_prog_compiler_wl=
16524 lt_prog_compiler_pic=
16525 lt_prog_compiler_static=
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16528 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16530 if test "$GCC" = yes; then
16531 lt_prog_compiler_wl='-Wl,'
16532 lt_prog_compiler_static='-static'
16536 # All AIX code is PIC.
16537 if test "$host_cpu" = ia64; then
16538 # AIX 5 now supports IA64 processor
16539 lt_prog_compiler_static='-Bstatic'
16541 lt_prog_compiler_pic='-fPIC'
16547 # see comment about AmigaOS4 .so support
16548 lt_prog_compiler_pic='-fPIC'
16551 # FIXME: we need at least 68020 code to build shared libraries, but
16552 # adding the `-m68020' flag to GCC prevents building anything better,
16554 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16560 # PIC is the default for these OSes.
16563 mingw* | cygwin* | pw32* | os2* | cegcc*)
16564 # This hack is so that the source file can tell whether it is being
16565 # built for inclusion in a dll (and should export symbols for example).
16566 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16567 # (--disable-auto-import) libraries
16568 lt_prog_compiler_pic='-DDLL_EXPORT'
16571 darwin* | rhapsody*)
16572 # PIC is the default on this platform
16573 # Common symbols not allowed in MH_DYLIB files
16574 lt_prog_compiler_pic='-fno-common'
16578 # PIC is the default for Haiku.
16579 # The "-static" flag exists, but is broken.
16580 lt_prog_compiler_static=
16584 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16585 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16586 # sets the default TLS model and affects inlining.
16592 lt_prog_compiler_pic='-fPIC'
16598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16599 # Instead, we relocate shared libraries at runtime.
16603 # Just because we use GCC doesn't mean we suddenly get shared libraries
16604 # on systems that don't support them.
16605 lt_prog_compiler_can_build_shared=no
16610 # QNX uses GNU C++, but need to define -shared option too, otherwise
16611 # it will coredump.
16612 lt_prog_compiler_pic='-fPIC -shared'
16616 if test -d /usr/nec; then
16617 lt_prog_compiler_pic=-Kconform_pic
16622 lt_prog_compiler_pic='-fPIC'
16626 case $cc_basename in
16627 nvcc*) # Cuda Compiler Driver 2.2
16628 lt_prog_compiler_wl='-Xlinker '
16629 lt_prog_compiler_pic='-Xcompiler -fPIC'
16633 # PORTME Check for flag to pass linker flags through the system compiler.
16636 lt_prog_compiler_wl='-Wl,'
16637 if test "$host_cpu" = ia64; then
16638 # AIX 5 now supports IA64 processor
16639 lt_prog_compiler_static='-Bstatic'
16641 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16645 mingw* | cygwin* | pw32* | os2* | cegcc*)
16646 # This hack is so that the source file can tell whether it is being
16647 # built for inclusion in a dll (and should export symbols for example).
16648 lt_prog_compiler_pic='-DDLL_EXPORT'
16651 hpux9* | hpux10* | hpux11*)
16652 lt_prog_compiler_wl='-Wl,'
16653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16654 # not for PA HP-UX.
16660 lt_prog_compiler_pic='+Z'
16663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16664 lt_prog_compiler_static='${wl}-a ${wl}archive'
16667 irix5* | irix6* | nonstopux*)
16668 lt_prog_compiler_wl='-Wl,'
16669 # PIC (with -KPIC) is the default.
16670 lt_prog_compiler_static='-non_shared'
16673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16674 case $cc_basename in
16675 # old Intel for x86_64 which still supported -KPIC.
16677 lt_prog_compiler_wl='-Wl,'
16678 lt_prog_compiler_pic='-KPIC'
16679 lt_prog_compiler_static='-static'
16681 # icc used to be incompatible with GCC.
16682 # ICC 10 doesn't accept -KPIC any more.
16684 lt_prog_compiler_wl='-Wl,'
16685 lt_prog_compiler_pic='-fPIC'
16686 lt_prog_compiler_static='-static'
16688 # Lahey Fortran 8.1.
16690 lt_prog_compiler_wl='-Wl,'
16691 lt_prog_compiler_pic='--shared'
16692 lt_prog_compiler_static='--static'
16694 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16695 # Portland Group compilers (*not* the Pentium gcc compiler,
16696 # which looks to be a dead project)
16697 lt_prog_compiler_wl='-Wl,'
16698 lt_prog_compiler_pic='-fpic'
16699 lt_prog_compiler_static='-Bstatic'
16702 lt_prog_compiler_wl='-Wl,'
16703 # All Alpha code is PIC.
16704 lt_prog_compiler_static='-non_shared'
16706 xl* | bgxl* | bgf* | mpixl*)
16707 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16708 lt_prog_compiler_wl='-Wl,'
16709 lt_prog_compiler_pic='-qpic'
16710 lt_prog_compiler_static='-qstaticlink'
16713 case `$CC -V 2>&1 | sed 5q` in
16714 *Sun\ F* | *Sun*Fortran*)
16715 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16716 lt_prog_compiler_pic='-KPIC'
16717 lt_prog_compiler_static='-Bstatic'
16718 lt_prog_compiler_wl=''
16722 lt_prog_compiler_pic='-KPIC'
16723 lt_prog_compiler_static='-Bstatic'
16724 lt_prog_compiler_wl='-Wl,'
16732 lt_prog_compiler_pic='-KPIC'
16733 lt_prog_compiler_static='-Bstatic'
16737 # QNX uses GNU C++, but need to define -shared option too, otherwise
16738 # it will coredump.
16739 lt_prog_compiler_pic='-fPIC -shared'
16742 osf3* | osf4* | osf5*)
16743 lt_prog_compiler_wl='-Wl,'
16744 # All OSF/1 code is PIC.
16745 lt_prog_compiler_static='-non_shared'
16749 lt_prog_compiler_static='-non_shared'
16753 lt_prog_compiler_pic='-KPIC'
16754 lt_prog_compiler_static='-Bstatic'
16755 case $cc_basename in
16756 f77* | f90* | f95*)
16757 lt_prog_compiler_wl='-Qoption ld ';;
16759 lt_prog_compiler_wl='-Wl,';;
16764 lt_prog_compiler_wl='-Qoption ld '
16765 lt_prog_compiler_pic='-PIC'
16766 lt_prog_compiler_static='-Bstatic'
16769 sysv4 | sysv4.2uw2* | sysv4.3*)
16770 lt_prog_compiler_wl='-Wl,'
16771 lt_prog_compiler_pic='-KPIC'
16772 lt_prog_compiler_static='-Bstatic'
16776 if test -d /usr/nec ;then
16777 lt_prog_compiler_pic='-Kconform_pic'
16778 lt_prog_compiler_static='-Bstatic'
16782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16783 lt_prog_compiler_wl='-Wl,'
16784 lt_prog_compiler_pic='-KPIC'
16785 lt_prog_compiler_static='-Bstatic'
16789 lt_prog_compiler_wl='-Wl,'
16790 lt_prog_compiler_can_build_shared=no
16794 lt_prog_compiler_pic='-pic'
16795 lt_prog_compiler_static='-Bstatic'
16799 lt_prog_compiler_can_build_shared=no
16805 # For platforms which do not support PIC, -DPIC is meaningless:
16807 lt_prog_compiler_pic=
16810 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16814 $as_echo "$lt_prog_compiler_pic" >&6; }
16822 # Check to make sure the PIC flag actually works.
16824 if test -n "$lt_prog_compiler_pic"; then
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16826 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16827 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16828 $as_echo_n "(cached
) " >&6
16830 lt_cv_prog_compiler_pic_works=no
16831 ac_outfile=conftest.$ac_objext
16832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16833 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16834 # Insert the option either (1) after the last *FLAGS variable, or
16835 # (2) before a word containing "conftest.
", or (3) at the end.
16836 # Note that $ac_compile itself does not contain backslashes and begins
16837 # with a dollar sign (not a hyphen), so the echo should work correctly.
16838 # The option is referenced via a variable to avoid confusing sed.
16839 lt_compile=`echo "$ac_compile" | $SED \
16840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842 -e 's:$: $lt_compiler_flag:'`
16843 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16844 (eval "$lt_compile" 2>conftest.err)
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16848 if (exit $ac_status) && test -s "$ac_outfile"; then
16849 # The compiler can only warn and ignore the option if not recognized
16850 # So say no if there are warnings other than the usual output.
16851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16854 lt_cv_prog_compiler_pic_works=yes
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16861 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16863 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16864 case $lt_prog_compiler_pic in
16866 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16869 lt_prog_compiler_pic=
16870 lt_prog_compiler_can_build_shared=no
16881 # Check to make sure the static flag actually works.
16883 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16885 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16886 if ${lt_cv_prog_compiler_static_works+:} false; then :
16887 $as_echo_n "(cached
) " >&6
16889 lt_cv_prog_compiler_static_works=no
16890 save_LDFLAGS="$LDFLAGS"
16891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16894 # The linker can only warn and ignore the option if not recognized
16895 # So say no if there are warnings
16896 if test -s conftest.err; then
16897 # Append any errors to the config.log.
16898 cat conftest.err 1>&5
16899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16901 if diff conftest.exp conftest.er2 >/dev/null; then
16902 lt_cv_prog_compiler_static_works=yes
16905 lt_cv_prog_compiler_static_works=yes
16909 LDFLAGS="$save_LDFLAGS"
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16913 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16915 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16918 lt_prog_compiler_static=
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16928 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16929 if ${lt_cv_prog_compiler_c_o+:} false; then :
16930 $as_echo_n "(cached
) " >&6
16932 lt_cv_prog_compiler_c_o=no
16933 $RM -r conftest 2>/dev/null
16937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16939 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16940 # Insert the option either (1) after the last *FLAGS variable, or
16941 # (2) before a word containing "conftest.
", or (3) at the end.
16942 # Note that $ac_compile itself does not contain backslashes and begins
16943 # with a dollar sign (not a hyphen), so the echo should work correctly.
16944 lt_compile=`echo "$ac_compile" | $SED \
16945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16947 -e 's:$: $lt_compiler_flag:'`
16948 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16949 (eval "$lt_compile" 2>out/conftest.err)
16951 cat out/conftest.err >&5
16952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16955 # The compiler can only warn and ignore the option if not recognized
16956 # So say no if there are warnings
16957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16960 lt_cv_prog_compiler_c_o=yes
16965 # SGI C++ compiler will create directory out/ii_files/ for
16966 # template instantiation
16967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16968 $RM out/* && rmdir out
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16983 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16984 if ${lt_cv_prog_compiler_c_o+:} false; then :
16985 $as_echo_n "(cached
) " >&6
16987 lt_cv_prog_compiler_c_o=no
16988 $RM -r conftest 2>/dev/null
16992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16994 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16995 # Insert the option either (1) after the last *FLAGS variable, or
16996 # (2) before a word containing "conftest.
", or (3) at the end.
16997 # Note that $ac_compile itself does not contain backslashes and begins
16998 # with a dollar sign (not a hyphen), so the echo should work correctly.
16999 lt_compile=`echo "$ac_compile" | $SED \
17000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17002 -e 's:$: $lt_compiler_flag:'`
17003 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17004 (eval "$lt_compile" 2>out/conftest.err)
17006 cat out/conftest.err >&5
17007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17010 # The compiler can only warn and ignore the option if not recognized
17011 # So say no if there are warnings
17012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17015 lt_cv_prog_compiler_c_o=yes
17020 # SGI C++ compiler will create directory out/ii_files/ for
17021 # template instantiation
17022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17023 $RM out/* && rmdir out
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17030 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17035 hard_links="nottested
"
17036 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17037 # do not overwrite the value of need_locks provided by the user
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17039 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17044 ln conftest.a conftest.b 2>&5 || hard_links=no
17045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17047 $as_echo "$hard_links" >&6; }
17048 if test "$hard_links" = no; then
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17050 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17063 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17066 allow_undefined_flag=
17067 always_export_symbols=no
17069 archive_expsym_cmds=
17070 compiler_needs_object=no
17071 enable_shared_with_static_runtimes=no
17072 export_dynamic_flag_spec=
17073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17074 hardcode_automatic=no
17076 hardcode_direct_absolute=no
17077 hardcode_libdir_flag_spec=
17078 hardcode_libdir_flag_spec_ld=
17079 hardcode_libdir_separator=
17080 hardcode_minus_L=no
17081 hardcode_shlibpath_var=unsupported
17083 link_all_deplibs=unknown
17085 module_expsym_cmds=
17086 old_archive_from_new_cmds=
17087 old_archive_from_expsyms_cmds=
17088 thread_safe_flag_spec=
17089 whole_archive_flag_spec=
17090 # include_expsyms should be a list of space-separated symbols to be *always*
17091 # included in the symbol list
17093 # exclude_expsyms can be an extended regexp of symbols to exclude
17094 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17095 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17096 # as well as any symbol that contains `d'.
17097 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17098 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17099 # platforms (ab)use it in PIC code, but their linkers get confused if
17100 # the symbol is explicitly referenced. Since portable code cannot
17101 # rely on this symbol name, it's probably fine to never include it in
17102 # preloaded symbol tables.
17103 # Exclude shared library initialization/finalization symbols.
17104 extract_expsyms_cmds=
17107 cygwin* | mingw* | pw32* | cegcc*)
17108 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17109 # When not using gcc, we currently assume that we are using
17110 # Microsoft Visual C++.
17111 if test "$GCC" != yes; then
17116 # we just hope/assume this is gcc and not c89 (= MSVC++)
17126 # On some targets, GNU ld is compatible enough with the native linker
17127 # that we're better off using the native interface for both.
17128 lt_use_gnu_ld_interface=no
17129 if test "$with_gnu_ld" = yes; then
17132 # The AIX port of GNU ld has always aspired to compatibility
17133 # with the native linker. However, as the warning in the GNU ld
17134 # block says, versions before 2.19.5* couldn't really create working
17135 # shared libraries, regardless of the interface used.
17136 case `$LD -v 2>&1` in
17137 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17138 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17139 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17141 lt_use_gnu_ld_interface=yes
17146 lt_use_gnu_ld_interface=yes
17151 if test "$lt_use_gnu_ld_interface" = yes; then
17152 # If archive_cmds runs LD, not CC, wlarc should be empty
17155 # Set some defaults for GNU ld with shared library support. These
17156 # are reset later if shared libraries are not supported. Putting them
17157 # here allows them to be overridden if necessary.
17158 runpath_var=LD_RUN_PATH
17159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17160 export_dynamic_flag_spec='${wl}--export-dynamic'
17161 # ancient GNU ld didn't support --whole-archive et. al.
17162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17163 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17165 whole_archive_flag_spec=
17167 supports_anon_versioning=no
17168 case `$LD -v 2>&1` in
17169 *GNU\ gold*) supports_anon_versioning=yes ;;
17170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17173 *\ 2.11.*) ;; # other 2.11 versions
17174 *) supports_anon_versioning=yes ;;
17177 # See if GNU ld supports shared libraries.
17180 # On AIX/PPC, the GNU linker is very broken
17181 if test "$host_cpu" != ia64; then
17185 *** Warning: the GNU linker, at least up to release 2.19, is reported
17186 *** to be unable to reliably create shared libraries on AIX.
17187 *** Therefore, libtool is disabling shared libraries support. If you
17188 *** really care for shared libraries, you may want to install binutils
17189 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17190 *** You will then need to restart the configuration process.
17199 # see comment about AmigaOS4 .so support
17200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17201 archive_expsym_cmds=''
17204 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)'
17205 hardcode_libdir_flag_spec
='-L$libdir'
17206 hardcode_minus_L
=yes
17212 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17213 allow_undefined_flag
=unsupported
17214 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17215 # support --undefined. This deserves some investigation. FIXME
17216 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17222 cygwin
* | mingw
* | pw32
* | cegcc
*)
17223 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17224 # as there is no search path for DLLs.
17225 hardcode_libdir_flag_spec
='-L$libdir'
17226 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17227 allow_undefined_flag
=unsupported
17228 always_export_symbols
=no
17229 enable_shared_with_static_runtimes
=yes
17230 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17232 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17233 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17234 # If the export-symbols file already is a .def file (1st line
17235 # is EXPORTS), use it as is; otherwise, prepend...
17236 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17237 cp $export_symbols $output_objdir/$soname.def;
17239 echo EXPORTS > $output_objdir/$soname.def;
17240 cat $export_symbols >> $output_objdir/$soname.def;
17242 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17249 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17250 link_all_deplibs
=yes
17255 hardcode_shlibpath_var
=no
17256 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17257 export_dynamic_flag_spec
='${wl}-E'
17258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17259 # Instead, shared libraries are loaded at an image base (0x10000000 by
17260 # default) and relocated if they conflict, which is a slow very memory
17261 # consuming and fragmenting process. To avoid this, we pick a random,
17262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17264 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17265 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'
17268 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17270 if test "$host_os" = linux-dietlibc
; then
17271 case $cc_basename in
17272 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17275 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17276 && test "$tmp_diet" = no
17278 tmp_addflag
=' $pic_flag'
17279 tmp_sharedflag
='-shared'
17280 case $cc_basename,$host_cpu in
17281 pgcc
*) # Portland Group C compiler
17282 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'
17283 tmp_addflag
=' $pic_flag'
17285 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17286 # Portland Group f77 and f90 compilers
17287 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'
17288 tmp_addflag
=' $pic_flag -Mnomain' ;;
17289 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17290 tmp_addflag
=' -i_dynamic' ;;
17291 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17292 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17293 ifc
* | ifort
*) # Intel Fortran compiler
17294 tmp_addflag
=' -nofor_main' ;;
17295 lf95
*) # Lahey Fortran 8.1
17296 whole_archive_flag_spec
=
17297 tmp_sharedflag
='--shared' ;;
17298 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17299 tmp_sharedflag
='-qmkshrobj'
17301 nvcc
*) # Cuda Compiler Driver 2.2
17302 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'
17303 compiler_needs_object
=yes
17306 case `$CC -V 2>&1 | sed 5q` in
17307 *Sun\ C
*) # Sun C 5.9
17308 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'
17309 compiler_needs_object
=yes
17310 tmp_sharedflag
='-G' ;;
17311 *Sun\ F
*) # Sun Fortran 8.3
17312 tmp_sharedflag
='-G' ;;
17314 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17316 if test "x$supports_anon_versioning" = xyes
; then
17317 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17318 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17319 echo "local: *; };" >> $output_objdir/$libname.ver~
17320 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17323 case $cc_basename in
17324 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17325 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17326 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17327 hardcode_libdir_flag_spec
=
17328 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17329 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17330 if test "x$supports_anon_versioning" = xyes
; then
17331 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17333 echo "local: *; };" >> $output_objdir/$libname.ver~
17334 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17344 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17345 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17348 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17349 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17354 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17359 *** create shared libraries on Solaris systems. Therefore, libtool
17360 *** is disabling shared libraries support. We urge you to upgrade GNU
17361 *** binutils to release 2.9.1 or newer. Another option is to modify
17362 *** your PATH or compiler configuration so that the native linker is
17363 *** used, and then restart.
17366 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17367 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17368 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17374 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17375 case `$LD -v 2>&1` in
17376 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17380 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17381 *** reliably create shared libraries on SCO systems. Therefore, libtool
17382 *** is disabling shared libraries support. We urge you to upgrade GNU
17383 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17384 *** your PATH or compiler configuration so that the native linker is
17385 *** used, and then restart.
17390 # For security reasons, it is highly recommended that you always
17391 # use absolute paths for naming shared libraries, and exclude the
17392 # DT_RUNPATH tag from executables and libraries. But doing so
17393 # requires that you compile everything twice, which is a pain.
17394 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17395 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17396 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17397 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17406 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17408 hardcode_direct
=yes
17409 hardcode_shlibpath_var
=no
17413 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17414 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17415 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17422 if test "$ld_shlibs" = no
; then
17424 hardcode_libdir_flag_spec
=
17425 export_dynamic_flag_spec
=
17426 whole_archive_flag_spec
=
17429 # PORTME fill in a description of your system's linker (not GNU ld)
17432 allow_undefined_flag
=unsupported
17433 always_export_symbols
=yes
17434 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'
17435 # Note: this linker hardcodes the directories in LIBPATH if there
17436 # are no directories specified by -L.
17437 hardcode_minus_L
=yes
17438 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17439 # Neither direct hardcoding nor static linking is supported with a
17441 hardcode_direct
=unsupported
17446 if test "$host_cpu" = ia64
; then
17447 # On IA64, the linker does run time linking by default, so we don't
17448 # have to do anything special.
17449 aix_use_runtimelinking
=no
17450 exp_sym_flag
='-Bexport'
17453 # If we're using GNU nm, then we don't want the "-C" option.
17454 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17455 # Also, AIX nm treats weak defined symbols like other global
17456 # defined symbols, whereas GNU nm marks them as "W".
17457 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17458 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'
17460 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'
17462 aix_use_runtimelinking
=no
17464 # Test if we are trying to use run time linking or normal
17465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17466 # need to do runtime linking.
17467 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17468 for ld_flag
in $LDFLAGS; do
17469 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17470 aix_use_runtimelinking
=yes
17477 exp_sym_flag
='-bexport'
17478 no_entry_flag
='-bnoentry'
17481 # When large executables or shared objects are built, AIX ld can
17482 # have problems creating the table of contents. If linking a library
17483 # or program results in "error TOC overflow" add -mminimal-toc to
17484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17488 hardcode_direct
=yes
17489 hardcode_direct_absolute
=yes
17490 hardcode_libdir_separator
=':'
17491 link_all_deplibs
=yes
17492 file_list_spec
='${wl}-f,'
17494 if test "$GCC" = yes; then
17495 case $host_os in aix4.
[012]|aix4.
[012].
*)
17496 # We only want to do this on AIX 4.2 and lower, the check
17497 # below for broken collect2 doesn't work under 4.3+
17498 collect2name
=`${CC} -print-prog-name=collect2`
17499 if test -f "$collect2name" &&
17500 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17502 # We have reworked collect2
17505 # We have old collect2
17506 hardcode_direct
=unsupported
17507 # It fails to find uninstalled libraries when the uninstalled
17508 # path is not listed in the libpath. Setting hardcode_minus_L
17509 # to unsupported forces relinking
17510 hardcode_minus_L
=yes
17511 hardcode_libdir_flag_spec
='-L$libdir'
17512 hardcode_libdir_separator
=
17516 shared_flag
='-shared'
17517 if test "$aix_use_runtimelinking" = yes; then
17518 shared_flag
="$shared_flag "'${wl}-G'
17522 if test "$host_cpu" = ia64
; then
17523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17524 # chokes on -Wl,-G. The following line is correct:
17527 if test "$aix_use_runtimelinking" = yes; then
17528 shared_flag
='${wl}-G'
17530 shared_flag
='${wl}-bM:SRE'
17535 export_dynamic_flag_spec
='${wl}-bexpall'
17536 # It seems that -bexpall does not export symbols beginning with
17537 # underscore (_), so it is better to generate a list of symbols to export.
17538 always_export_symbols
=yes
17539 if test "$aix_use_runtimelinking" = yes; then
17540 # Warning - without using the other runtime loading flags (-brtl),
17541 # -berok will link without error, but may produce a broken library.
17542 allow_undefined_flag
='-berok'
17543 # Determine the default libpath from the value encoded in an
17544 # empty executable.
17545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17556 if ac_fn_c_try_link
"$LINENO"; then :
17558 lt_aix_libpath_sed
='
17559 /Import File Strings/,/^$/ {
17565 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17566 # Check for a 64-bit object if we didn't find anything.
17567 if test -z "$aix_libpath"; then
17568 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17571 rm -f core conftest.err conftest.
$ac_objext \
17572 conftest
$ac_exeext conftest.
$ac_ext
17573 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17575 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17576 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"
17578 if test "$host_cpu" = ia64
; then
17579 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17580 allow_undefined_flag
="-z nodefs"
17581 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"
17583 # Determine the default libpath from the value encoded in an
17584 # empty executable.
17585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17586 /* end confdefs.h. */
17596 if ac_fn_c_try_link
"$LINENO"; then :
17598 lt_aix_libpath_sed
='
17599 /Import File Strings/,/^$/ {
17605 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17606 # Check for a 64-bit object if we didn't find anything.
17607 if test -z "$aix_libpath"; then
17608 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17611 rm -f core conftest.err conftest.
$ac_objext \
17612 conftest
$ac_exeext conftest.
$ac_ext
17613 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17615 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17616 # Warning - without using the other run time loading flags,
17617 # -berok will link without error, but may produce a broken library.
17618 no_undefined_flag
=' ${wl}-bernotok'
17619 allow_undefined_flag
=' ${wl}-berok'
17620 if test "$with_gnu_ld" = yes; then
17621 # We only use this code for GNU lds that support --whole-archive.
17622 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17624 # Exported symbols can be pulled into shared objects from archives
17625 whole_archive_flag_spec
='$convenience'
17627 archive_cmds_need_lc
=yes
17628 # This is similar to how AIX traditionally builds its shared libraries.
17629 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'
17637 # see comment about AmigaOS4 .so support
17638 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17639 archive_expsym_cmds
=''
17642 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)'
17643 hardcode_libdir_flag_spec
='-L$libdir'
17644 hardcode_minus_L
=yes
17650 export_dynamic_flag_spec
=-rdynamic
17653 cygwin
* | mingw
* | pw32
* | cegcc
*)
17654 # When not using gcc, we currently assume that we are using
17655 # Microsoft Visual C++.
17656 # hardcode_libdir_flag_spec is actually meaningless, as there is
17657 # no search path for DLLs.
17658 hardcode_libdir_flag_spec
=' '
17659 allow_undefined_flag
=unsupported
17660 # Tell ltmain to make .lib files, not .a files.
17662 # Tell ltmain to make .dll files, not .so files.
17664 # FIXME: Setting linknames here is a bad hack.
17665 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17666 # The linker will automatically build a .lib file if we build a DLL.
17667 old_archive_from_new_cmds
='true'
17668 # FIXME: Should let the user specify the lib program.
17669 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17670 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17671 enable_shared_with_static_runtimes
=yes
17674 darwin
* | rhapsody
*)
17677 archive_cmds_need_lc
=no
17679 hardcode_automatic
=yes
17680 hardcode_shlibpath_var
=unsupported
17681 if test "$lt_cv_ld_force_load" = "yes"; then
17682 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\"`'
17684 whole_archive_flag_spec
=''
17686 link_all_deplibs
=yes
17687 allow_undefined_flag
="$_lt_dar_allow_undefined"
17688 case $cc_basename in
17689 ifort
*) _lt_dar_can_shared
=yes ;;
17690 *) _lt_dar_can_shared
=$GCC ;;
17692 if test "$_lt_dar_can_shared" = "yes"; then
17693 output_verbose_link_cmd
=func_echo_all
17694 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17695 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17696 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}"
17697 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}"
17706 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17707 hardcode_libdir_flag_spec
='-L$libdir'
17708 hardcode_shlibpath_var
=no
17711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17712 # support. Future versions do this automatically, but an explicit c++rt0.o
17713 # does not break anything, and helps significantly (at the cost of a little
17716 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17717 hardcode_libdir_flag_spec
='-R$libdir'
17718 hardcode_direct
=yes
17719 hardcode_shlibpath_var
=no
17722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17724 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17725 hardcode_direct
=yes
17726 hardcode_minus_L
=yes
17727 hardcode_shlibpath_var
=no
17730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17731 freebsd
* | dragonfly
*)
17732 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17733 hardcode_libdir_flag_spec
='-R$libdir'
17734 hardcode_direct
=yes
17735 hardcode_shlibpath_var
=no
17739 if test "$GCC" = yes; then
17740 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'
17742 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'
17744 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17745 hardcode_libdir_separator
=:
17746 hardcode_direct
=yes
17748 # hardcode_minus_L: Not really in the search PATH,
17749 # but as the default location of the library.
17750 hardcode_minus_L
=yes
17751 export_dynamic_flag_spec
='${wl}-E'
17755 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17756 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17758 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17760 if test "$with_gnu_ld" = no
; then
17761 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17762 hardcode_libdir_flag_spec_ld
='+b $libdir'
17763 hardcode_libdir_separator
=:
17764 hardcode_direct
=yes
17765 hardcode_direct_absolute
=yes
17766 export_dynamic_flag_spec
='${wl}-E'
17767 # hardcode_minus_L: Not really in the search PATH,
17768 # but as the default location of the library.
17769 hardcode_minus_L
=yes
17774 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17777 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17780 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17783 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17789 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17792 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17796 # Older versions of the 11.00 compiler do not understand -b yet
17797 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17799 $as_echo_n "checking if $CC understands -b... " >&6; }
17800 if ${lt_cv_prog_compiler__b+:} false
; then :
17801 $as_echo_n "(cached) " >&6
17803 lt_cv_prog_compiler__b
=no
17804 save_LDFLAGS
="$LDFLAGS"
17805 LDFLAGS
="$LDFLAGS -b"
17806 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17807 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17808 # The linker can only warn and ignore the option if not recognized
17809 # So say no if there are warnings
17810 if test -s conftest.err
; then
17811 # Append any errors to the config.log.
17812 cat conftest.err
1>&5
17813 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17814 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17815 if diff conftest.exp conftest.er2
>/dev
/null
; then
17816 lt_cv_prog_compiler__b
=yes
17819 lt_cv_prog_compiler__b
=yes
17823 LDFLAGS
="$save_LDFLAGS"
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17827 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17829 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17830 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17832 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17838 if test "$with_gnu_ld" = no
; then
17839 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17840 hardcode_libdir_separator
=:
17845 hardcode_shlibpath_var
=no
17848 hardcode_direct
=yes
17849 hardcode_direct_absolute
=yes
17850 export_dynamic_flag_spec
='${wl}-E'
17852 # hardcode_minus_L: Not really in the search PATH,
17853 # but as the default location of the library.
17854 hardcode_minus_L
=yes
17860 irix5
* | irix6
* | nonstopux
*)
17861 if test "$GCC" = yes; then
17862 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'
17863 # Try to use the -exported_symbol ld option, if it does not
17864 # work, assume that -exports_file does not work either and
17865 # implicitly export all symbols.
17866 save_LDFLAGS
="$LDFLAGS"
17867 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17872 if ac_fn_c_try_link
"$LINENO"; then :
17873 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'
17876 rm -f core conftest.err conftest.
$ac_objext \
17877 conftest
$ac_exeext conftest.
$ac_ext
17878 LDFLAGS
="$save_LDFLAGS"
17880 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'
17881 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'
17883 archive_cmds_need_lc
='no'
17884 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17885 hardcode_libdir_separator
=:
17887 link_all_deplibs
=yes
17891 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17892 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17894 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17896 hardcode_libdir_flag_spec
='-R$libdir'
17897 hardcode_direct
=yes
17898 hardcode_shlibpath_var
=no
17902 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17903 hardcode_direct
=yes
17904 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17905 hardcode_libdir_separator
=:
17906 hardcode_shlibpath_var
=no
17913 if test -f /usr
/libexec
/ld.so
; then
17914 hardcode_direct
=yes
17915 hardcode_shlibpath_var
=no
17916 hardcode_direct_absolute
=yes
17917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17918 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17919 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17920 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17921 export_dynamic_flag_spec
='${wl}-E'
17924 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17925 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17926 hardcode_libdir_flag_spec
='-R$libdir'
17929 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17930 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17940 hardcode_libdir_flag_spec
='-L$libdir'
17941 hardcode_minus_L
=yes
17942 allow_undefined_flag
=unsupported
17943 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'
17944 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17948 if test "$GCC" = yes; then
17949 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17950 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'
17952 allow_undefined_flag
=' -expect_unresolved \*'
17953 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'
17955 archive_cmds_need_lc
='no'
17956 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17957 hardcode_libdir_separator
=:
17960 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17961 if test "$GCC" = yes; then
17962 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17963 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'
17964 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17966 allow_undefined_flag
=' -expect_unresolved \*'
17967 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'
17968 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~
17969 $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'
17971 # Both c and cxx compiler support -rpath directly
17972 hardcode_libdir_flag_spec
='-rpath $libdir'
17974 archive_cmds_need_lc
='no'
17975 hardcode_libdir_separator
=:
17979 no_undefined_flag
=' -z defs'
17980 if test "$GCC" = yes; then
17982 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17983 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17984 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17986 case `$CC -V 2>&1` in
17989 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17990 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17991 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17995 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17996 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17997 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18001 hardcode_libdir_flag_spec
='-R$libdir'
18002 hardcode_shlibpath_var
=no
18004 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18006 # The compiler driver will combine and reorder linker options,
18007 # but understands `-z linker_flag'. GCC discards it without `$wl',
18008 # but is careful enough not to reorder.
18009 # Supported since Solaris 2.6 (maybe 2.5.1?)
18010 if test "$GCC" = yes; then
18011 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18013 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18017 link_all_deplibs
=yes
18021 if test "x$host_vendor" = xsequent
; then
18022 # Use $CC to link under sequent, because it throws in some extra .o
18023 # files that make .init and .fini sections work.
18024 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18026 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18028 hardcode_libdir_flag_spec
='-L$libdir'
18029 hardcode_direct
=yes
18030 hardcode_minus_L
=yes
18031 hardcode_shlibpath_var
=no
18035 case $host_vendor in
18037 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18038 hardcode_direct
=yes # is this really true???
18041 ## LD is ld it makes a PLAMLIB
18042 ## CC just makes a GrossModule.
18043 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18044 reload_cmds
='$CC -r -o $output$reload_objs'
18048 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18049 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18052 runpath_var
='LD_RUN_PATH'
18053 hardcode_shlibpath_var
=no
18057 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058 hardcode_shlibpath_var
=no
18059 export_dynamic_flag_spec
='-Bexport'
18063 if test -d /usr
/nec
; then
18064 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18065 hardcode_shlibpath_var
=no
18066 runpath_var
=LD_RUN_PATH
18067 hardcode_runpath_var
=yes
18072 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18073 no_undefined_flag
='${wl}-z,text'
18074 archive_cmds_need_lc
=no
18075 hardcode_shlibpath_var
=no
18076 runpath_var
='LD_RUN_PATH'
18078 if test "$GCC" = yes; then
18079 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18080 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18082 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18083 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18087 sysv5
* | sco3.2v5
* | sco5v6
*)
18088 # Note: We can NOT use -z defs as we might desire, because we do not
18089 # link with -lc, and that would cause any symbols used from libc to
18090 # always be unresolved, which means just about no library would
18091 # ever link correctly. If we're not using GNU ld we use -z text
18092 # though, which does catch some bad symbols but isn't as heavy-handed
18094 no_undefined_flag
='${wl}-z,text'
18095 allow_undefined_flag
='${wl}-z,nodefs'
18096 archive_cmds_need_lc
=no
18097 hardcode_shlibpath_var
=no
18098 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18099 hardcode_libdir_separator
=':'
18100 link_all_deplibs
=yes
18101 export_dynamic_flag_spec
='${wl}-Bexport'
18102 runpath_var
='LD_RUN_PATH'
18104 if test "$GCC" = yes; then
18105 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18106 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18108 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18109 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18114 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115 hardcode_libdir_flag_spec
='-L$libdir'
18116 hardcode_shlibpath_var
=no
18124 if test x
$host_vendor = xsni
; then
18126 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18127 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18134 $as_echo "$ld_shlibs" >&6; }
18135 test "$ld_shlibs" = no
&& can_build_shared
=no
18137 with_gnu_ld
=$with_gnu_ld
18154 # Do we need to explicitly link libc?
18156 case "x$archive_cmds_need_lc" in
18158 # Assume -lc should be added
18159 archive_cmds_need_lc
=yes
18161 if test "$enable_shared" = yes && test "$GCC" = yes; then
18162 case $archive_cmds in
18164 # FIXME: we may have to deal with multi-command sequences.
18167 # Test whether the compiler implicitly links with -lc since on some
18168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18169 # to ld, don't add -lc before -lgcc.
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18171 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18172 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18173 $as_echo_n "(cached) " >&6
18176 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18179 (eval $ac_compile) 2>&5
18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; } 2>conftest.err
; then
18185 libobjs
=conftest.
$ac_objext
18187 wl
=$lt_prog_compiler_wl
18188 pic_flag
=$lt_prog_compiler_pic
18194 lt_save_allow_undefined_flag
=$allow_undefined_flag
18195 allow_undefined_flag
=
18196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18197 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18200 test $ac_status = 0; }
18202 lt_cv_archive_cmds_need_lc
=no
18204 lt_cv_archive_cmds_need_lc
=yes
18206 allow_undefined_flag
=$lt_save_allow_undefined_flag
18208 cat conftest.err
1>&5
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18214 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18215 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18379 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18381 if test "$GCC" = yes; then
18383 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18384 *) lt_awk_arg
="/^libraries:/" ;;
18387 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18388 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18390 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18391 case $lt_search_path_spec in
18393 # if the path contains ";" then we assume it to be the separator
18394 # otherwise default to the standard path separator (i.e. ":") - it is
18395 # assumed that no part of a normal pathname contains ";" but that should
18396 # okay in the real world where ";" in dirpaths is itself problematic.
18397 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18400 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18403 # Ok, now we have the path, separated by spaces, we can step through it
18404 # and add multilib dir if necessary.
18405 lt_tmp_lt_search_path_spec
=
18406 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18407 for lt_sys_path
in $lt_search_path_spec; do
18408 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18409 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18411 test -d "$lt_sys_path" && \
18412 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18415 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18416 BEGIN {RS=" "; FS="/|\n";} {
18419 for (lt_i = NF; lt_i > 0; lt_i--) {
18420 if ($lt_i != "" && $lt_i != ".") {
18421 if ($lt_i == "..") {
18424 if (lt_count == 0) {
18425 lt_foo="/" $lt_i lt_foo;
18432 if (lt_foo != "") { lt_freq[lt_foo]++; }
18433 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18435 # AWK program above erroneously prepends '/' to C:/dos/paths
18438 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18439 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18441 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18443 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18445 library_names_spec
=
18446 libname_spec
='lib$name'
18450 postuninstall_cmds
=
18454 shlibpath_overrides_runpath
=unknown
18456 dynamic_linker
="$host_os ld.so"
18457 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18458 need_lib_prefix
=unknown
18459 hardcode_into_libs
=no
18461 # when you set need_version to no, make sure it does not cause -set_version
18462 # flags to be left without arguments
18463 need_version
=unknown
18468 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18469 shlibpath_var
=LIBPATH
18471 # AIX 3 has no versioning support, so we append a major version to the name.
18472 soname_spec
='${libname}${release}${shared_ext}$major'
18479 hardcode_into_libs
=yes
18480 if test "$host_cpu" = ia64
; then
18481 # AIX 5 supports IA64
18482 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18483 shlibpath_var
=LD_LIBRARY_PATH
18485 # With GCC up to 2.95.x, collect2 would create an import file
18486 # for dependence libraries. The import file would start with
18487 # the line `#! .'. This would cause the generated library to
18488 # depend on `.', always an invalid library. This was fixed in
18489 # development snapshots of GCC prior to 3.0.
18491 aix4 | aix4.
[01] | aix4.
[01].
*)
18492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18494 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18497 can_build_shared
=no
18501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18502 # soname into executable. Probably we can add versioning support to
18503 # collect2, so additional links can be useful in future.
18504 if test "$aix_use_runtimelinking" = yes; then
18505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18506 # instead of lib<name>.a to let people know that these are not
18507 # typical AIX shared libraries.
18508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18510 # We preserve .a as extension for shared libraries through AIX4.2
18511 # and later when we are not doing run time linking.
18512 library_names_spec
='${libname}${release}.a $libname.a'
18513 soname_spec
='${libname}${release}${shared_ext}$major'
18515 shlibpath_var
=LIBPATH
18522 # Since July 2007 AmigaOS4 officially supports .so libraries.
18523 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18527 library_names_spec
='$libname.ixlibrary $libname.a'
18528 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18529 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'
18535 library_names_spec
='${libname}${shared_ext}'
18536 dynamic_linker
="$host_os ld.so"
18537 shlibpath_var
=LIBRARY_PATH
18543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544 soname_spec
='${libname}${release}${shared_ext}$major'
18545 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18546 shlibpath_var
=LD_LIBRARY_PATH
18547 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18548 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18549 # the default ld.so.conf also contains /usr/contrib/lib and
18550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18551 # libtool to hard-code these into programs
18554 cygwin
* | mingw
* | pw32
* | cegcc
*)
18555 version_type
=windows
18560 case $GCC,$host_os in
18561 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18562 library_names_spec
='$libname.dll.a'
18563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18564 postinstall_cmds
='base_file=`basename \${file}`~
18565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18566 dldir=$destdir/`dirname \$dlpath`~
18567 test -d \$dldir || mkdir -p \$dldir~
18568 $install_prog $dir/$dlname \$dldir/$dlname~
18569 chmod a+x \$dldir/$dlname~
18570 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18571 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18573 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18574 dlpath=$dir/\$dldll~
18576 shlibpath_overrides_runpath
=yes
18580 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18581 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18583 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18586 # MinGW DLLs use traditional 'lib' prefix
18587 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18590 # pw32 DLLs use 'pw' prefix rather than 'lib'
18591 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18597 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18600 dynamic_linker
='Win32 ld.exe'
18601 # FIXME: first we should search . and the directory the executable is in
18605 darwin
* | rhapsody
*)
18606 dynamic_linker
="$host_os dyld"
18607 version_type
=darwin
18610 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18611 soname_spec
='${libname}${release}${major}$shared_ext'
18612 shlibpath_overrides_runpath
=yes
18613 shlibpath_var
=DYLD_LIBRARY_PATH
18614 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18616 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18617 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18625 soname_spec
='${libname}${release}${shared_ext}$major'
18626 shlibpath_var
=LD_LIBRARY_PATH
18629 freebsd
* | dragonfly
*)
18630 # DragonFly does not have aout. When/if they implement a new
18631 # versioning mechanism, adjust this.
18632 if test -x /usr
/bin
/objformat
; then
18633 objformat
=`/usr/bin/objformat`
18636 freebsd
[23].
*) objformat
=aout
;;
18637 *) objformat
=elf
;;
18640 version_type
=freebsd-
$objformat
18641 case $version_type in
18643 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18648 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18652 shlibpath_var
=LD_LIBRARY_PATH
18655 shlibpath_overrides_runpath
=yes
18657 freebsd3.
[01]* | freebsdelf3.
[01]*)
18658 shlibpath_overrides_runpath
=yes
18659 hardcode_into_libs
=yes
18661 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18662 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18663 shlibpath_overrides_runpath
=no
18664 hardcode_into_libs
=yes
18666 *) # from 4.6 on, and DragonFly
18667 shlibpath_overrides_runpath
=yes
18668 hardcode_into_libs
=yes
18677 dynamic_linker
="$host_os runtime_loader"
18678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18679 soname_spec
='${libname}${release}${shared_ext}$major'
18680 shlibpath_var
=LIBRARY_PATH
18681 shlibpath_overrides_runpath
=yes
18682 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18683 hardcode_into_libs
=yes
18686 hpux9
* | hpux10
* | hpux11
*)
18687 # Give a soname corresponding to the major version so that dld.sl refuses to
18688 # link against other versions.
18695 hardcode_into_libs
=yes
18696 dynamic_linker
="$host_os dld.so"
18697 shlibpath_var
=LD_LIBRARY_PATH
18698 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700 soname_spec
='${libname}${release}${shared_ext}$major'
18701 if test "X$HPUX_IA64_MODE" = X32
; then
18702 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18704 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18706 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18710 hardcode_into_libs
=yes
18711 dynamic_linker
="$host_os dld.sl"
18712 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18713 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18715 soname_spec
='${libname}${release}${shared_ext}$major'
18716 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18717 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18721 dynamic_linker
="$host_os dld.sl"
18722 shlibpath_var
=SHLIB_PATH
18723 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725 soname_spec
='${libname}${release}${shared_ext}$major'
18728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18729 postinstall_cmds
='chmod 555 $lib'
18730 # or fails outright, so override atomically:
18731 install_override_mode
=555
18738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18739 soname_spec
='${libname}${release}${shared_ext}$major'
18740 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18741 shlibpath_var
=LD_LIBRARY_PATH
18742 shlibpath_overrides_runpath
=no
18743 hardcode_into_libs
=yes
18746 irix5
* | irix6
* | nonstopux
*)
18748 nonstopux
*) version_type
=nonstopux
;;
18750 if test "$lt_cv_prog_gnu_ld" = yes; then
18758 soname_spec
='${libname}${release}${shared_ext}$major'
18759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18761 irix5
* | nonstopux
*)
18762 libsuff
= shlibsuff
=
18765 case $LD in # libtool.m4 will add one of these switches to LD
18766 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18767 libsuff
= shlibsuff
= libmagic
=32-bit;;
18768 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18769 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18770 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18771 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18772 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18776 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18777 shlibpath_overrides_runpath
=no
18778 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18779 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18780 hardcode_into_libs
=yes
18783 # No shared lib support for Linux oldld, aout, or coff.
18784 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18788 # This must be Linux ELF.
18790 # uclinux* changes (here and below) have been submitted to the libtool
18791 # project, but have not yet been accepted: they are GCC-local changes
18792 # for the time being. (See
18793 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18794 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
18798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18799 soname_spec
='${libname}${release}${shared_ext}$major'
18800 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18801 shlibpath_var
=LD_LIBRARY_PATH
18802 shlibpath_overrides_runpath
=no
18804 # Some binutils ld are patched to set DT_RUNPATH
18805 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18806 $as_echo_n "(cached) " >&6
18808 lt_cv_shlibpath_overrides_runpath
=no
18809 save_LDFLAGS
=$LDFLAGS
18810 save_libdir
=$libdir
18811 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18812 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18824 if ac_fn_c_try_link
"$LINENO"; then :
18825 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18826 lt_cv_shlibpath_overrides_runpath
=yes
18829 rm -f core conftest.err conftest.
$ac_objext \
18830 conftest
$ac_exeext conftest.
$ac_ext
18831 LDFLAGS
=$save_LDFLAGS
18832 libdir
=$save_libdir
18836 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18838 # This implies no fast_install, which is unacceptable.
18839 # Some rework will be needed to allow for fast_install
18840 # before this can be enabled.
18841 hardcode_into_libs
=yes
18843 # Append ld.so.conf contents to the search path
18844 if test -f /etc
/ld.so.conf
; then
18845 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' ' '`
18846 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18849 # We used to test for /lib/ld.so.1 and disable shared libraries on
18850 # powerpc, because MkLinux only supported shared libraries with the
18851 # GNU dynamic linker. Since this was broken with cross compilers,
18852 # most powerpc-linux boxes support dynamic linking these days and
18853 # people can always --disable-shared, the test was removed, and we
18854 # assume the GNU/Linux dynamic linker is in use.
18855 dynamic_linker
='GNU/Linux ld.so'
18862 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18865 dynamic_linker
='NetBSD (a.out) ld.so'
18867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18868 soname_spec
='${libname}${release}${shared_ext}$major'
18869 dynamic_linker
='NetBSD ld.elf_so'
18871 shlibpath_var
=LD_LIBRARY_PATH
18872 shlibpath_overrides_runpath
=yes
18873 hardcode_into_libs
=yes
18878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879 shlibpath_var
=LD_LIBRARY_PATH
18880 shlibpath_overrides_runpath
=yes
18887 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18888 soname_spec
='${libname}${release}${shared_ext}$major'
18889 shlibpath_var
=LD_LIBRARY_PATH
18890 shlibpath_overrides_runpath
=no
18891 hardcode_into_libs
=yes
18892 dynamic_linker
='ldqnx.so'
18897 sys_lib_dlsearch_path_spec
="/usr/lib"
18899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18901 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18902 *) need_version
=no
;;
18904 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18905 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18906 shlibpath_var
=LD_LIBRARY_PATH
18907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18909 openbsd2.
[89] | openbsd2.
[89].
*)
18910 shlibpath_overrides_runpath
=no
18913 shlibpath_overrides_runpath
=yes
18917 shlibpath_overrides_runpath
=yes
18922 libname_spec
='$name'
18925 library_names_spec
='$libname${shared_ext} $libname.a'
18926 dynamic_linker
='OS/2 ld.exe'
18927 shlibpath_var
=LIBPATH
18930 osf3
* | osf4
* | osf5
*)
18934 soname_spec
='${libname}${release}${shared_ext}$major'
18935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18936 shlibpath_var
=LD_LIBRARY_PATH
18937 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18938 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950 soname_spec
='${libname}${release}${shared_ext}$major'
18951 shlibpath_var
=LD_LIBRARY_PATH
18952 shlibpath_overrides_runpath
=yes
18953 hardcode_into_libs
=yes
18954 # ldd complains unless libraries are executable
18955 postinstall_cmds
='chmod +x $lib'
18960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18961 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18962 shlibpath_var
=LD_LIBRARY_PATH
18963 shlibpath_overrides_runpath
=yes
18964 if test "$with_gnu_ld" = yes; then
18972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18973 soname_spec
='${libname}${release}${shared_ext}$major'
18974 shlibpath_var
=LD_LIBRARY_PATH
18975 case $host_vendor in
18977 shlibpath_overrides_runpath
=no
18979 runpath_var
=LD_RUN_PATH
18987 shlibpath_overrides_runpath
=no
18988 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18994 if test -d /usr
/nec
;then
18996 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18997 soname_spec
='$libname${shared_ext}.$major'
18998 shlibpath_var
=LD_LIBRARY_PATH
19002 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19003 version_type
=freebsd-elf
19006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19007 soname_spec
='${libname}${release}${shared_ext}$major'
19008 shlibpath_var
=LD_LIBRARY_PATH
19009 shlibpath_overrides_runpath
=yes
19010 hardcode_into_libs
=yes
19011 if test "$with_gnu_ld" = yes; then
19012 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19014 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19017 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19021 sys_lib_dlsearch_path_spec
='/usr/lib'
19025 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19030 shlibpath_var
=LD_LIBRARY_PATH
19031 shlibpath_overrides_runpath
=no
19032 hardcode_into_libs
=yes
19037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19038 soname_spec
='${libname}${release}${shared_ext}$major'
19039 shlibpath_var
=LD_LIBRARY_PATH
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19047 $as_echo "$dynamic_linker" >&6; }
19048 test "$dynamic_linker" = no
&& can_build_shared
=no
19050 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19051 if test "$GCC" = yes; then
19052 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19055 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19056 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19058 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19059 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19154 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19156 if test -n "$hardcode_libdir_flag_spec" ||
19157 test -n "$runpath_var" ||
19158 test "X$hardcode_automatic" = "Xyes" ; then
19160 # We can hardcode non-existent directories.
19161 if test "$hardcode_direct" != no
&&
19162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19163 # have to relink, otherwise we might link with an installed library
19164 # when we should be linking with a yet-to-be-installed one
19165 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19166 test "$hardcode_minus_L" != no
; then
19167 # Linking always hardcodes the temporary library directory.
19168 hardcode_action
=relink
19170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19171 hardcode_action
=immediate
19174 # We cannot hardcode anything, or else we can only hardcode existing
19176 hardcode_action
=unsupported
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19179 $as_echo "$hardcode_action" >&6; }
19181 if test "$hardcode_action" = relink ||
19182 test "$inherit_rpath" = yes; then
19183 # Fast installation is not supported
19184 enable_fast_install
=no
19185 elif test "$shlibpath_overrides_runpath" = yes ||
19186 test "$enable_shared" = no
; then
19187 # Fast installation is not necessary
19188 enable_fast_install
=needless
19196 if test "x$enable_dlopen" != xyes
; then
19197 enable_dlopen
=unknown
19198 enable_dlopen_self
=unknown
19199 enable_dlopen_self_static
=unknown
19206 lt_cv_dlopen
="load_add_on"
19208 lt_cv_dlopen_self
=yes
19211 mingw
* | pw32
* | cegcc
*)
19212 lt_cv_dlopen
="LoadLibrary"
19217 lt_cv_dlopen
="dlopen"
19222 # if libdl is installed we need to link against it
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19224 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19225 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19226 $as_echo_n "(cached) " >&6
19228 ac_check_lib_save_LIBS
=$LIBS
19230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19233 /* Override any GCC internal prototype to avoid an error.
19234 Use char because int might match the return type of a GCC
19235 builtin and then its argument prototype would still apply. */
19248 if ac_fn_c_try_link
"$LINENO"; then :
19249 ac_cv_lib_dl_dlopen
=yes
19251 ac_cv_lib_dl_dlopen
=no
19253 rm -f core conftest.err conftest.
$ac_objext \
19254 conftest
$ac_exeext conftest.
$ac_ext
19255 LIBS
=$ac_check_lib_save_LIBS
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19258 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19259 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19260 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19263 lt_cv_dlopen
="dyld"
19265 lt_cv_dlopen_self
=yes
19272 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19273 if test "x$ac_cv_func_shl_load" = xyes
; then :
19274 lt_cv_dlopen
="shl_load"
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19277 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19278 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19279 $as_echo_n "(cached) " >&6
19281 ac_check_lib_save_LIBS
=$LIBS
19283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h. */
19286 /* Override any GCC internal prototype to avoid an error.
19287 Use char because int might match the return type of a GCC
19288 builtin and then its argument prototype would still apply. */
19296 return shl_load ();
19301 if ac_fn_c_try_link
"$LINENO"; then :
19302 ac_cv_lib_dld_shl_load
=yes
19304 ac_cv_lib_dld_shl_load
=no
19306 rm -f core conftest.err conftest.
$ac_objext \
19307 conftest
$ac_exeext conftest.
$ac_ext
19308 LIBS
=$ac_check_lib_save_LIBS
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19311 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19312 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19313 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19315 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19316 if test "x$ac_cv_func_dlopen" = xyes
; then :
19317 lt_cv_dlopen
="dlopen"
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19320 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19321 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19322 $as_echo_n "(cached) " >&6
19324 ac_check_lib_save_LIBS
=$LIBS
19326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19329 /* Override any GCC internal prototype to avoid an error.
19330 Use char because int might match the return type of a GCC
19331 builtin and then its argument prototype would still apply. */
19344 if ac_fn_c_try_link
"$LINENO"; then :
19345 ac_cv_lib_dl_dlopen
=yes
19347 ac_cv_lib_dl_dlopen
=no
19349 rm -f core conftest.err conftest.
$ac_objext \
19350 conftest
$ac_exeext conftest.
$ac_ext
19351 LIBS
=$ac_check_lib_save_LIBS
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19354 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19355 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19356 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19359 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19360 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19361 $as_echo_n "(cached) " >&6
19363 ac_check_lib_save_LIBS
=$LIBS
19364 LIBS
="-lsvld $LIBS"
19365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h. */
19368 /* Override any GCC internal prototype to avoid an error.
19369 Use char because int might match the return type of a GCC
19370 builtin and then its argument prototype would still apply. */
19383 if ac_fn_c_try_link
"$LINENO"; then :
19384 ac_cv_lib_svld_dlopen
=yes
19386 ac_cv_lib_svld_dlopen
=no
19388 rm -f core conftest.err conftest.
$ac_objext \
19389 conftest
$ac_exeext conftest.
$ac_ext
19390 LIBS
=$ac_check_lib_save_LIBS
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19393 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19394 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19395 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19398 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19399 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19400 $as_echo_n "(cached) " >&6
19402 ac_check_lib_save_LIBS
=$LIBS
19404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19405 /* end confdefs.h. */
19407 /* Override any GCC internal prototype to avoid an error.
19408 Use char because int might match the return type of a GCC
19409 builtin and then its argument prototype would still apply. */
19417 return dld_link ();
19422 if ac_fn_c_try_link
"$LINENO"; then :
19423 ac_cv_lib_dld_dld_link
=yes
19425 ac_cv_lib_dld_dld_link
=no
19427 rm -f core conftest.err conftest.
$ac_objext \
19428 conftest
$ac_exeext conftest.
$ac_ext
19429 LIBS
=$ac_check_lib_save_LIBS
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19432 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19433 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19434 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19455 if test "x$lt_cv_dlopen" != xno
; then
19461 case $lt_cv_dlopen in
19463 save_CPPFLAGS
="$CPPFLAGS"
19464 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19466 save_LDFLAGS
="$LDFLAGS"
19467 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19470 LIBS
="$lt_cv_dlopen_libs $LIBS"
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19473 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19474 if ${lt_cv_dlopen_self+:} false
; then :
19475 $as_echo_n "(cached) " >&6
19477 if test "$cross_compiling" = yes; then :
19478 lt_cv_dlopen_self
=cross
19480 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19481 lt_status
=$lt_dlunknown
19482 cat > conftest.
$ac_ext <<_LT_EOF
19483 #line 19483 "configure"
19484 #include "confdefs.h"
19493 # define LT_DLGLOBAL RTLD_GLOBAL
19496 # define LT_DLGLOBAL DL_GLOBAL
19498 # define LT_DLGLOBAL 0
19502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19503 find out it does not work in some platform. */
19504 #ifndef LT_DLLAZY_OR_NOW
19506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19509 # define LT_DLLAZY_OR_NOW DL_LAZY
19512 # define LT_DLLAZY_OR_NOW RTLD_NOW
19515 # define LT_DLLAZY_OR_NOW DL_NOW
19517 # define LT_DLLAZY_OR_NOW 0
19524 /* When -fvisbility=hidden is used, assume the code has been annotated
19525 correspondingly for the symbols needed. */
19526 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19527 void fnord () __attribute__((visibility("default")));
19530 void fnord () { int i=42; }
19533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19534 int status = $lt_dlunknown;
19538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19541 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19542 else puts (dlerror ());
19544 /* dlclose (self); */
19552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19553 (eval $ac_link) 2>&5
19555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19556 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19557 (.
/conftest
; exit; ) >&5 2>/dev
/null
19559 case x
$lt_status in
19560 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19561 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19562 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19565 # compilation failed
19566 lt_cv_dlopen_self
=no
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19574 $as_echo "$lt_cv_dlopen_self" >&6; }
19576 if test "x$lt_cv_dlopen_self" = xyes
; then
19577 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19579 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19580 if ${lt_cv_dlopen_self_static+:} false
; then :
19581 $as_echo_n "(cached) " >&6
19583 if test "$cross_compiling" = yes; then :
19584 lt_cv_dlopen_self_static
=cross
19586 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19587 lt_status
=$lt_dlunknown
19588 cat > conftest.
$ac_ext <<_LT_EOF
19589 #line 19589 "configure"
19590 #include "confdefs.h"
19599 # define LT_DLGLOBAL RTLD_GLOBAL
19602 # define LT_DLGLOBAL DL_GLOBAL
19604 # define LT_DLGLOBAL 0
19608 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19609 find out it does not work in some platform. */
19610 #ifndef LT_DLLAZY_OR_NOW
19612 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19615 # define LT_DLLAZY_OR_NOW DL_LAZY
19618 # define LT_DLLAZY_OR_NOW RTLD_NOW
19621 # define LT_DLLAZY_OR_NOW DL_NOW
19623 # define LT_DLLAZY_OR_NOW 0
19630 /* When -fvisbility=hidden is used, assume the code has been annotated
19631 correspondingly for the symbols needed. */
19632 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19633 void fnord () __attribute__((visibility("default")));
19636 void fnord () { int i=42; }
19639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19640 int status = $lt_dlunknown;
19644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19647 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19648 else puts (dlerror ());
19650 /* dlclose (self); */
19658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19659 (eval $ac_link) 2>&5
19661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19662 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19663 (.
/conftest
; exit; ) >&5 2>/dev
/null
19665 case x
$lt_status in
19666 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19667 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19668 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19671 # compilation failed
19672 lt_cv_dlopen_self_static
=no
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19680 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19683 CPPFLAGS
="$save_CPPFLAGS"
19684 LDFLAGS
="$save_LDFLAGS"
19689 case $lt_cv_dlopen_self in
19690 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19691 *) enable_dlopen_self
=unknown
;;
19694 case $lt_cv_dlopen_self_static in
19695 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19696 *) enable_dlopen_self_static
=unknown
;;
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19719 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19720 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19721 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19722 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19724 $as_echo "yes" >&6; }
19726 # FIXME - insert some real tests, host_os isn't really good enough
19729 if test -n "$STRIP" ; then
19730 striplib
="$STRIP -x"
19731 old_striplib
="$STRIP -S"
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19733 $as_echo "yes" >&6; }
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19736 $as_echo "no" >&6; }
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19741 $as_echo "no" >&6; }
19757 # Report which library types will actually be built
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19759 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19761 $as_echo "$can_build_shared" >&6; }
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19764 $as_echo_n "checking whether to build shared libraries... " >&6; }
19765 test "$can_build_shared" = "no" && enable_shared
=no
19767 # On AIX, shared libraries and static libraries use the same namespace, and
19768 # are all built from PIC.
19771 test "$enable_shared" = yes && enable_static
=no
19772 if test -n "$RANLIB"; then
19773 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19774 postinstall_cmds
='$RANLIB $lib'
19779 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19780 test "$enable_shared" = yes && enable_static
=no
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19785 $as_echo "$enable_shared" >&6; }
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19788 $as_echo_n "checking whether to build static libraries... " >&6; }
19789 # Make sure either enable_shared or enable_static is yes.
19790 test "$enable_shared" = yes || enable_static
=yes
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19792 $as_echo "$enable_static" >&6; }
19799 ac_cpp
='$CXXCPP $CPPFLAGS'
19800 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19807 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19808 (test "X$CXX" != "Xg++"))) ; then
19810 ac_cpp
='$CXXCPP $CPPFLAGS'
19811 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19815 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19816 if test -z "$CXXCPP"; then
19817 if ${ac_cv_prog_CXXCPP+:} false
; then :
19818 $as_echo_n "(cached) " >&6
19820 # Double quotes because CXXCPP needs to be expanded
19821 for CXXCPP
in "$CXX -E" "/lib/cpp"
19823 ac_preproc_ok
=false
19824 for ac_cxx_preproc_warn_flag
in '' yes
19826 # Use a header file that comes with gcc, so configuring glibc
19827 # with a fresh cross-compiler works.
19828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19829 # <limits.h> exists even on freestanding compilers.
19830 # On the NeXT, cc -E runs the code through the compiler's parser,
19831 # not just through cpp. "Syntax error" is here to catch this case.
19832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19835 # include <limits.h>
19837 # include <assert.h>
19841 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19844 # Broken: fails on valid input.
19847 rm -f conftest.err conftest.i conftest.
$ac_ext
19849 # OK, works on sane cases. Now check whether nonexistent headers
19850 # can be detected and how.
19851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19852 /* end confdefs.h. */
19853 #include <ac_nonexistent.h>
19855 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19856 # Broken: success on invalid input.
19859 # Passes both tests.
19863 rm -f conftest.err conftest.i conftest.
$ac_ext
19866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19867 rm -f conftest.i conftest.err conftest.
$ac_ext
19868 if $ac_preproc_ok; then :
19873 ac_cv_prog_CXXCPP
=$CXXCPP
19876 CXXCPP
=$ac_cv_prog_CXXCPP
19878 ac_cv_prog_CXXCPP
=$CXXCPP
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19881 $as_echo "$CXXCPP" >&6; }
19882 ac_preproc_ok
=false
19883 for ac_cxx_preproc_warn_flag
in '' yes
19885 # Use a header file that comes with gcc, so configuring glibc
19886 # with a fresh cross-compiler works.
19887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19888 # <limits.h> exists even on freestanding compilers.
19889 # On the NeXT, cc -E runs the code through the compiler's parser,
19890 # not just through cpp. "Syntax error" is here to catch this case.
19891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19894 # include <limits.h>
19896 # include <assert.h>
19900 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19903 # Broken: fails on valid input.
19906 rm -f conftest.err conftest.i conftest.
$ac_ext
19908 # OK, works on sane cases. Now check whether nonexistent headers
19909 # can be detected and how.
19910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19911 /* end confdefs.h. */
19912 #include <ac_nonexistent.h>
19914 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19915 # Broken: success on invalid input.
19918 # Passes both tests.
19922 rm -f conftest.err conftest.i conftest.
$ac_ext
19925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19926 rm -f conftest.i conftest.err conftest.
$ac_ext
19927 if $ac_preproc_ok; then :
19930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19932 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19933 See \`config.log' for more details" "$LINENO" 5; }
19937 ac_cpp
='$CXXCPP $CPPFLAGS'
19938 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19943 _lt_caught_CXX_error
=yes
19947 ac_cpp
='$CXXCPP $CPPFLAGS'
19948 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19949 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19950 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19952 archive_cmds_need_lc_CXX
=no
19953 allow_undefined_flag_CXX
=
19954 always_export_symbols_CXX
=no
19955 archive_expsym_cmds_CXX
=
19956 compiler_needs_object_CXX
=no
19957 export_dynamic_flag_spec_CXX
=
19958 hardcode_direct_CXX
=no
19959 hardcode_direct_absolute_CXX
=no
19960 hardcode_libdir_flag_spec_CXX
=
19961 hardcode_libdir_flag_spec_ld_CXX
=
19962 hardcode_libdir_separator_CXX
=
19963 hardcode_minus_L_CXX
=no
19964 hardcode_shlibpath_var_CXX
=unsupported
19965 hardcode_automatic_CXX
=no
19966 inherit_rpath_CXX
=no
19968 module_expsym_cmds_CXX
=
19969 link_all_deplibs_CXX
=unknown
19970 old_archive_cmds_CXX
=$old_archive_cmds
19971 reload_flag_CXX
=$reload_flag
19972 reload_cmds_CXX
=$reload_cmds
19973 no_undefined_flag_CXX
=
19974 whole_archive_flag_spec_CXX
=
19975 enable_shared_with_static_runtimes_CXX
=no
19977 # Source file extension for C++ test sources.
19980 # Object file extension for compiled C++ test sources.
19984 # No sense in running all these tests if we already determined that
19985 # the CXX compiler isn't working. Some variables (like enable_shared)
19986 # are currently assumed to apply to all compilers on this platform,
19987 # and will be corrupted by setting them based on a non-working compiler.
19988 if test "$_lt_caught_CXX_error" != yes; then
19989 # Code to be used in simple compile tests
19990 lt_simple_compile_test_code
="int some_variable = 0;"
19992 # Code to be used in simple link tests
19993 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19995 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20002 # If no C compiler was specified, use CC.
20005 # If no C compiler flags were specified, use CFLAGS.
20006 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20008 # Allow CC to be a program name with arguments.
20012 # save warnings/boilerplate of simple test code
20013 ac_outfile
=conftest.
$ac_objext
20014 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20015 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20016 _lt_compiler_boilerplate
=`cat conftest.err`
20019 ac_outfile
=conftest.
$ac_objext
20020 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20021 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20022 _lt_linker_boilerplate
=`cat conftest.err`
20026 # Allow CC to be a program name with arguments.
20031 lt_save_with_gnu_ld
=$with_gnu_ld
20032 lt_save_path_LD
=$lt_cv_path_LD
20033 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20034 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20036 $as_unset lt_cv_prog_gnu_ld
20038 if test -n "${lt_cv_path_LDCXX+set}"; then
20039 lt_cv_path_LD
=$lt_cv_path_LDCXX
20041 $as_unset lt_cv_path_LD
20043 test -z "${LDCXX+set}" || LD
=$LDCXX
20047 for cc_temp
in $compiler""; do
20049 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20050 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20055 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20058 if test -n "$compiler"; then
20059 # We don't want -fno-exception when compiling C++ code, so set the
20060 # no_builtin_flag separately
20061 if test "$GXX" = yes; then
20062 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20064 lt_prog_compiler_no_builtin_flag_CXX
=
20067 if test "$GXX" = yes; then
20068 # Set up default GNU C++ configuration
20072 # Check whether --with-gnu-ld was given.
20073 if test "${with_gnu_ld+set}" = set; then :
20074 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20080 if test "$GCC" = yes; then
20081 # Check if gcc -print-prog-name=ld gives a path.
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20083 $as_echo_n "checking for ld used by $CC... " >&6; }
20086 # gcc leaves a trailing carriage return which upsets mingw
20087 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20089 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20092 # Accept absolute paths.
20094 re_direlt
='/[^/][^/]*/\.\./'
20095 # Canonicalize the pathname of ld
20096 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20097 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20098 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20100 test -z "$LD" && LD
="$ac_prog"
20103 # If it fails, then pretend we aren't using GCC.
20107 # If it is relative, then search for the first ld in PATH.
20108 with_gnu_ld
=unknown
20111 elif test "$with_gnu_ld" = yes; then
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20113 $as_echo_n "checking for GNU ld... " >&6; }
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20116 $as_echo_n "checking for non-GNU ld... " >&6; }
20118 if ${lt_cv_path_LD+:} false
; then :
20119 $as_echo_n "(cached) " >&6
20121 if test -z "$LD"; then
20122 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20123 for ac_dir
in $PATH; do
20125 test -z "$ac_dir" && ac_dir
=.
20126 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20127 lt_cv_path_LD
="$ac_dir/$ac_prog"
20128 # Check to see if the program is GNU ld. I'd rather use --version,
20129 # but apparently some variants of GNU ld only accept -v.
20130 # Break only if it was the GNU/non-GNU ld that we prefer.
20131 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20132 *GNU
* |
*'with BFD'*)
20133 test "$with_gnu_ld" != no
&& break
20136 test "$with_gnu_ld" != yes && break
20143 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20147 LD
="$lt_cv_path_LD"
20148 if test -n "$LD"; then
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20150 $as_echo "$LD" >&6; }
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20153 $as_echo "no" >&6; }
20155 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20157 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20158 if ${lt_cv_prog_gnu_ld+:} false
; then :
20159 $as_echo_n "(cached) " >&6
20161 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20162 case `$LD -v 2>&1 </dev/null` in
20163 *GNU
* |
*'with BFD'*)
20164 lt_cv_prog_gnu_ld
=yes
20167 lt_cv_prog_gnu_ld
=no
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20172 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20173 with_gnu_ld
=$lt_cv_prog_gnu_ld
20181 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20182 # archiving commands below assume that GNU ld is being used.
20183 if test "$with_gnu_ld" = yes; then
20184 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20185 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'
20187 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20188 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20190 # If archive_cmds runs LD, not CC, wlarc should be empty
20191 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20192 # investigate it a little bit more. (MM)
20195 # ancient GNU ld didn't support --whole-archive et. al.
20196 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20197 $GREP 'no-whole-archive' > /dev
/null
; then
20198 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20200 whole_archive_flag_spec_CXX
=
20206 # A generic and very simple default shared library creation
20207 # command for GNU C++ for the case where it uses the native
20208 # linker, instead of GNU ld. If possible, this setting should
20209 # overridden to take advantage of the native linker features on
20210 # the platform it is being used on.
20211 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20214 # Commands to make compiler produce verbose output that lists
20215 # what "hidden" libraries, object files and flags are used when
20216 # linking a shared library.
20217 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20225 # PORTME: fill in a description of your system's C++ link characteristics
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20227 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20231 # FIXME: insert proper C++ library support
20235 if test "$host_cpu" = ia64
; then
20236 # On IA64, the linker does run time linking by default, so we don't
20237 # have to do anything special.
20238 aix_use_runtimelinking
=no
20239 exp_sym_flag
='-Bexport'
20242 aix_use_runtimelinking
=no
20244 # Test if we are trying to use run time linking or normal
20245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20246 # need to do runtime linking.
20247 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20248 for ld_flag
in $LDFLAGS; do
20251 aix_use_runtimelinking
=yes
20259 exp_sym_flag
='-bexport'
20260 no_entry_flag
='-bnoentry'
20263 # When large executables or shared objects are built, AIX ld can
20264 # have problems creating the table of contents. If linking a library
20265 # or program results in "error TOC overflow" add -mminimal-toc to
20266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20269 archive_cmds_CXX
=''
20270 hardcode_direct_CXX
=yes
20271 hardcode_direct_absolute_CXX
=yes
20272 hardcode_libdir_separator_CXX
=':'
20273 link_all_deplibs_CXX
=yes
20274 file_list_spec_CXX
='${wl}-f,'
20276 if test "$GXX" = yes; then
20277 case $host_os in aix4.
[012]|aix4.
[012].
*)
20278 # We only want to do this on AIX 4.2 and lower, the check
20279 # below for broken collect2 doesn't work under 4.3+
20280 collect2name
=`${CC} -print-prog-name=collect2`
20281 if test -f "$collect2name" &&
20282 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20284 # We have reworked collect2
20287 # We have old collect2
20288 hardcode_direct_CXX
=unsupported
20289 # It fails to find uninstalled libraries when the uninstalled
20290 # path is not listed in the libpath. Setting hardcode_minus_L
20291 # to unsupported forces relinking
20292 hardcode_minus_L_CXX
=yes
20293 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20294 hardcode_libdir_separator_CXX
=
20297 shared_flag
='-shared'
20298 if test "$aix_use_runtimelinking" = yes; then
20299 shared_flag
="$shared_flag "'${wl}-G'
20303 if test "$host_cpu" = ia64
; then
20304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20305 # chokes on -Wl,-G. The following line is correct:
20308 if test "$aix_use_runtimelinking" = yes; then
20309 shared_flag
='${wl}-G'
20311 shared_flag
='${wl}-bM:SRE'
20316 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20317 # It seems that -bexpall does not export symbols beginning with
20318 # underscore (_), so it is better to generate a list of symbols to
20320 always_export_symbols_CXX
=yes
20321 if test "$aix_use_runtimelinking" = yes; then
20322 # Warning - without using the other runtime loading flags (-brtl),
20323 # -berok will link without error, but may produce a broken library.
20324 allow_undefined_flag_CXX
='-berok'
20325 # Determine the default libpath from the value encoded in an empty
20327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20338 if ac_fn_cxx_try_link
"$LINENO"; then :
20340 lt_aix_libpath_sed
='
20341 /Import File Strings/,/^$/ {
20347 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20348 # Check for a 64-bit object if we didn't find anything.
20349 if test -z "$aix_libpath"; then
20350 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20353 rm -f core conftest.err conftest.
$ac_objext \
20354 conftest
$ac_exeext conftest.
$ac_ext
20355 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20357 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20359 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"
20361 if test "$host_cpu" = ia64
; then
20362 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20363 allow_undefined_flag_CXX
="-z nodefs"
20364 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"
20366 # Determine the default libpath from the value encoded in an
20367 # empty executable.
20368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h. */
20379 if ac_fn_cxx_try_link
"$LINENO"; then :
20381 lt_aix_libpath_sed
='
20382 /Import File Strings/,/^$/ {
20388 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20389 # Check for a 64-bit object if we didn't find anything.
20390 if test -z "$aix_libpath"; then
20391 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20394 rm -f core conftest.err conftest.
$ac_objext \
20395 conftest
$ac_exeext conftest.
$ac_ext
20396 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20398 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20399 # Warning - without using the other run time loading flags,
20400 # -berok will link without error, but may produce a broken library.
20401 no_undefined_flag_CXX
=' ${wl}-bernotok'
20402 allow_undefined_flag_CXX
=' ${wl}-berok'
20403 if test "$with_gnu_ld" = yes; then
20404 # We only use this code for GNU lds that support --whole-archive.
20405 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20407 # Exported symbols can be pulled into shared objects from archives
20408 whole_archive_flag_spec_CXX
='$convenience'
20410 archive_cmds_need_lc_CXX
=yes
20411 # This is similar to how AIX traditionally builds its shared
20413 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'
20419 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20420 allow_undefined_flag_CXX
=unsupported
20421 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20422 # support --undefined. This deserves some investigation. FIXME
20423 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20430 case $cc_basename in
20432 # FIXME: insert proper C++ library support
20438 cygwin
* | mingw
* | pw32
* | cegcc
*)
20439 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20440 # as there is no search path for DLLs.
20441 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20442 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20443 allow_undefined_flag_CXX
=unsupported
20444 always_export_symbols_CXX
=no
20445 enable_shared_with_static_runtimes_CXX
=yes
20447 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20448 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'
20449 # If the export-symbols file already is a .def file (1st line
20450 # is EXPORTS), use it as is; otherwise, prepend...
20451 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20452 cp $export_symbols $output_objdir/$soname.def;
20454 echo EXPORTS > $output_objdir/$soname.def;
20455 cat $export_symbols >> $output_objdir/$soname.def;
20457 $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'
20462 darwin
* | rhapsody
*)
20465 archive_cmds_need_lc_CXX
=no
20466 hardcode_direct_CXX
=no
20467 hardcode_automatic_CXX
=yes
20468 hardcode_shlibpath_var_CXX
=unsupported
20469 if test "$lt_cv_ld_force_load" = "yes"; then
20470 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\"`'
20472 whole_archive_flag_spec_CXX
=''
20474 link_all_deplibs_CXX
=yes
20475 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20476 case $cc_basename in
20477 ifort
*) _lt_dar_can_shared
=yes ;;
20478 *) _lt_dar_can_shared
=$GCC ;;
20480 if test "$_lt_dar_can_shared" = "yes"; then
20481 output_verbose_link_cmd
=func_echo_all
20482 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}"
20483 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20484 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}"
20485 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}"
20486 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20487 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}"
20488 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}"
20498 case $cc_basename in
20500 # FIXME: insert proper C++ library support
20504 # Green Hills C++ Compiler
20505 # FIXME: insert proper C++ library support
20509 # FIXME: insert proper C++ library support
20516 # C++ shared libraries reported to be fairly broken before
20522 archive_cmds_need_lc_CXX
=no
20525 freebsd
* | dragonfly
*)
20526 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20535 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20536 link_all_deplibs_CXX
=yes
20540 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20541 hardcode_libdir_separator_CXX
=:
20542 export_dynamic_flag_spec_CXX
='${wl}-E'
20543 hardcode_direct_CXX
=yes
20544 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20545 # but as the default
20546 # location of the library.
20548 case $cc_basename in
20550 # FIXME: insert proper C++ library support
20554 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'
20555 # Commands to make compiler produce verbose output that lists
20556 # what "hidden" libraries, object files and flags are used when
20557 # linking a shared library.
20559 # There doesn't appear to be a way to prevent this compiler from
20560 # explicitly linking system object files so we need to strip them
20561 # from the output so that they don't get included in the library
20563 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"'
20566 if test "$GXX" = yes; then
20567 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'
20569 # FIXME: insert proper C++ library support
20577 if test $with_gnu_ld = no
; then
20578 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20579 hardcode_libdir_separator_CXX
=:
20585 export_dynamic_flag_spec_CXX
='${wl}-E'
20591 hardcode_direct_CXX
=no
20592 hardcode_shlibpath_var_CXX
=no
20595 hardcode_direct_CXX
=yes
20596 hardcode_direct_absolute_CXX
=yes
20597 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20598 # but as the default
20599 # location of the library.
20603 case $cc_basename in
20605 # FIXME: insert proper C++ library support
20611 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20614 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20617 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20620 # Commands to make compiler produce verbose output that lists
20621 # what "hidden" libraries, object files and flags are used when
20622 # linking a shared library.
20624 # There doesn't appear to be a way to prevent this compiler from
20625 # explicitly linking system object files so we need to strip them
20626 # from the output so that they don't get included in the library
20628 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"'
20631 if test "$GXX" = yes; then
20632 if test $with_gnu_ld = no
; then
20635 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20638 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20641 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'
20646 # FIXME: insert proper C++ library support
20654 hardcode_direct_CXX
=no
20655 hardcode_shlibpath_var_CXX
=no
20656 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20657 export_dynamic_flag_spec_CXX
='${wl}-E'
20658 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20659 # Instead, shared libraries are loaded at an image base (0x10000000 by
20660 # default) and relocated if they conflict, which is a slow very memory
20661 # consuming and fragmenting process. To avoid this, we pick a random,
20662 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20663 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20664 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'
20665 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'
20668 case $cc_basename in
20671 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'
20673 # Archives containing C++ object files must be created using
20674 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20675 # necessary to make sure instantiated templates are included
20677 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20680 if test "$GXX" = yes; then
20681 if test "$with_gnu_ld" = no
; then
20682 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'
20684 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'
20687 link_all_deplibs_CXX
=yes
20690 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20691 hardcode_libdir_separator_CXX
=:
20692 inherit_rpath_CXX
=yes
20695 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20696 case $cc_basename in
20698 # Kuck and Associates, Inc. (KAI) C++ Compiler
20700 # KCC will only create a shared library if the output file
20701 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20702 # to its proper name (with version) after linking.
20703 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'
20704 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'
20705 # Commands to make compiler produce verbose output that lists
20706 # what "hidden" libraries, object files and flags are used when
20707 # linking a shared library.
20709 # There doesn't appear to be a way to prevent this compiler from
20710 # explicitly linking system object files so we need to strip them
20711 # from the output so that they don't get included in the library
20713 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"'
20715 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20716 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20718 # Archives containing C++ object files must be created using
20719 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20720 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20725 # version 8.0 and above of icpc choke on multiply defined symbols
20726 # if we add $predep_objects and $postdep_objects, however 7.1 and
20727 # earlier do not add the objects themselves.
20728 case `$CC -V 2>&1` in
20730 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20731 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'
20733 *) # Version 8.0 or newer
20736 ia64
*) tmp_idyn
=' -i_dynamic';;
20738 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20739 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'
20742 archive_cmds_need_lc_CXX
=no
20743 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20744 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20745 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20748 # Portland Group C++ compiler
20750 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20751 prelink_cmds_CXX
='tpldir=Template.dir~
20753 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20754 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20755 old_archive_cmds_CXX
='tpldir=Template.dir~
20757 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20758 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20760 archive_cmds_CXX
='tpldir=Template.dir~
20762 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20763 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20764 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20766 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20767 $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'
20769 *) # Version 6 and above use weak symbols
20770 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20771 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'
20775 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20776 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20777 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'
20781 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20782 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'
20784 runpath_var
=LD_RUN_PATH
20785 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20786 hardcode_libdir_separator_CXX
=:
20788 # Commands to make compiler produce verbose output that lists
20789 # what "hidden" libraries, object files and flags are used when
20790 # linking a shared library.
20792 # There doesn't appear to be a way to prevent this compiler from
20793 # explicitly linking system object files so we need to strip them
20794 # from the output so that they don't get included in the library
20796 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'
20798 xl
* | mpixl
* | bgxl
*)
20799 # IBM XL 8.0 on PPC, with GNU ld
20800 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20801 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20802 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20803 if test "x$supports_anon_versioning" = xyes
; then
20804 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20806 echo "local: *; };" >> $output_objdir/$libname.ver~
20807 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20811 case `$CC -V 2>&1 | sed 5q` in
20814 no_undefined_flag_CXX
=' -zdefs'
20815 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20816 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'
20817 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20818 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'
20819 compiler_needs_object_CXX
=yes
20821 # Not sure whether something based on
20822 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20824 output_verbose_link_cmd
='func_echo_all'
20826 # Archives containing C++ object files must be created using
20827 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20828 # necessary to make sure instantiated templates are included
20830 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20838 # FIXME: insert proper C++ library support
20843 # FIXME: insert proper C++ library support
20848 case $cc_basename in
20850 # FIXME: insert proper C++ library support
20854 # FIXME: insert proper C++ library support
20861 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20862 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20864 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20865 hardcode_direct_CXX
=yes
20866 hardcode_shlibpath_var_CXX
=no
20868 # Workaround some broken pre-1.5 toolchains
20869 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20877 # C++ shared libraries are fairly broken
20882 if test -f /usr
/libexec
/ld.so
; then
20883 hardcode_direct_CXX
=yes
20884 hardcode_shlibpath_var_CXX
=no
20885 hardcode_direct_absolute_CXX
=yes
20886 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20887 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20889 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20890 export_dynamic_flag_spec_CXX
='${wl}-E'
20891 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20893 output_verbose_link_cmd
=func_echo_all
20899 osf3
* | osf4
* | osf5
*)
20900 case $cc_basename in
20902 # Kuck and Associates, Inc. (KAI) C++ Compiler
20904 # KCC will only create a shared library if the output file
20905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20906 # to its proper name (with version) after linking.
20907 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'
20909 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20910 hardcode_libdir_separator_CXX
=:
20912 # Archives containing C++ object files must be created using
20913 # the KAI C++ compiler.
20915 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20916 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20920 # Rational C++ 2.4.1
20921 # FIXME: insert proper C++ library support
20927 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20928 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'
20929 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20932 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20933 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'
20934 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20935 echo "-hidden">> $lib.exp~
20936 $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~
20938 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20942 hardcode_libdir_separator_CXX
=:
20944 # Commands to make compiler produce verbose output that lists
20945 # what "hidden" libraries, object files and flags are used when
20946 # linking a shared library.
20948 # There doesn't appear to be a way to prevent this compiler from
20949 # explicitly linking system object files so we need to strip them
20950 # from the output so that they don't get included in the library
20952 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"'
20955 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20956 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20959 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'
20962 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'
20966 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20967 hardcode_libdir_separator_CXX
=:
20969 # Commands to make compiler produce verbose output that lists
20970 # what "hidden" libraries, object files and flags are used when
20971 # linking a shared library.
20972 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20975 # FIXME: insert proper C++ library support
20983 # FIXME: insert proper C++ library support
20988 case $cc_basename in
20991 # FIXME: insert proper C++ library support
20996 # FIXME: insert proper C++ library support
21000 # FIXME: insert proper C++ library support
21007 case $cc_basename in
21009 # Sun C++ 4.2, 5.x and Centerline C++
21010 archive_cmds_need_lc_CXX
=yes
21011 no_undefined_flag_CXX
=' -zdefs'
21012 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21013 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21014 $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'
21016 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21017 hardcode_shlibpath_var_CXX
=no
21019 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21021 # The compiler driver will combine and reorder linker options,
21022 # but understands `-z linker_flag'.
21023 # Supported since Solaris 2.6 (maybe 2.5.1?)
21024 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21027 link_all_deplibs_CXX
=yes
21029 output_verbose_link_cmd
='func_echo_all'
21031 # Archives containing C++ object files must be created using
21032 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21033 # necessary to make sure instantiated templates are included
21035 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21038 # Green Hills C++ Compiler
21039 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21041 # The C++ compiler must be used to create the archive.
21042 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21045 # GNU C++ compiler with Solaris linker
21046 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21047 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21048 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21049 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21050 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21051 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21053 # Commands to make compiler produce verbose output that lists
21054 # what "hidden" libraries, object files and flags are used when
21055 # linking a shared library.
21056 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21058 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21060 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21061 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21062 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21064 # Commands to make compiler produce verbose output that lists
21065 # what "hidden" libraries, object files and flags are used when
21066 # linking a shared library.
21067 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21070 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21072 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21074 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21082 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21083 no_undefined_flag_CXX
='${wl}-z,text'
21084 archive_cmds_need_lc_CXX
=no
21085 hardcode_shlibpath_var_CXX
=no
21086 runpath_var
='LD_RUN_PATH'
21088 case $cc_basename in
21090 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21091 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21094 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21095 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21100 sysv5
* | sco3.2v5
* | sco5v6
*)
21101 # Note: We can NOT use -z defs as we might desire, because we do not
21102 # link with -lc, and that would cause any symbols used from libc to
21103 # always be unresolved, which means just about no library would
21104 # ever link correctly. If we're not using GNU ld we use -z text
21105 # though, which does catch some bad symbols but isn't as heavy-handed
21107 no_undefined_flag_CXX
='${wl}-z,text'
21108 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21109 archive_cmds_need_lc_CXX
=no
21110 hardcode_shlibpath_var_CXX
=no
21111 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21112 hardcode_libdir_separator_CXX
=':'
21113 link_all_deplibs_CXX
=yes
21114 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21115 runpath_var
='LD_RUN_PATH'
21117 case $cc_basename in
21119 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21120 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21121 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21122 '"$old_archive_cmds_CXX"
21123 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21124 '"$reload_cmds_CXX"
21127 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21128 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21134 case $cc_basename in
21136 # NonStop-UX NCC 3.20
21137 # FIXME: insert proper C++ library support
21141 # FIXME: insert proper C++ library support
21148 # FIXME: insert proper C++ library support
21153 # FIXME: insert proper C++ library support
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21159 $as_echo "$ld_shlibs_CXX" >&6; }
21160 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21166 ## There is no encapsulation within the following macros, do not change
21167 ## the running order or otherwise move them around unless you know exactly
21168 ## what you are doing...
21169 # Dependencies to place before and after the object being linked:
21170 predep_objects_CXX
=
21171 postdep_objects_CXX
=
21174 compiler_lib_search_path_CXX
=
21176 cat > conftest.
$ac_ext <<_LT_EOF
21180 Foo (void) { a = 0; }
21186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21187 (eval $ac_compile) 2>&5
21189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21190 test $ac_status = 0; }; then
21191 # Parse the compiler output and extract the necessary
21192 # objects, libraries and library flags.
21194 # Sentinel used to keep track of whether or not we are before
21195 # the conftest object file.
21196 pre_test_object_deps_done
=no
21198 for p
in `eval "$output_verbose_link_cmd"`; do
21202 # Some compilers place space between "-{L,R}" and the path.
21203 # Remove the space.
21204 if test $p = "-L" ||
21205 test $p = "-R"; then
21212 if test "$pre_test_object_deps_done" = no
; then
21215 # Internal compiler library paths should come after those
21216 # provided the user. The postdeps already come after the
21217 # user supplied libs so there is no need to process them.
21218 if test -z "$compiler_lib_search_path_CXX"; then
21219 compiler_lib_search_path_CXX
="${prev}${p}"
21221 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21224 # The "-l" case would never come before the object being
21225 # linked, so don't bother handling this case.
21228 if test -z "$postdeps_CXX"; then
21229 postdeps_CXX
="${prev}${p}"
21231 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21237 # This assumes that the test object file only shows up
21238 # once in the compiler output.
21239 if test "$p" = "conftest.$objext"; then
21240 pre_test_object_deps_done
=yes
21244 if test "$pre_test_object_deps_done" = no
; then
21245 if test -z "$predep_objects_CXX"; then
21246 predep_objects_CXX
="$p"
21248 predep_objects_CXX
="$predep_objects_CXX $p"
21251 if test -z "$postdep_objects_CXX"; then
21252 postdep_objects_CXX
="$p"
21254 postdep_objects_CXX
="$postdep_objects_CXX $p"
21259 *) ;; # Ignore the rest.
21267 echo "libtool.m4: error: problem compiling CXX test program"
21270 $RM -f confest.
$objext
21272 # PORTME: override above test on systems where it is broken
21275 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21276 # hack all around it, let's just trust "g++" to DTRT.
21277 predep_objects_CXX
=
21278 postdep_objects_CXX
=
21283 case `$CC -V 2>&1 | sed 5q` in
21287 # The more standards-conforming stlport4 library is
21288 # incompatible with the Cstd library. Avoid specifying
21289 # it if it's in CXXFLAGS. Ignore libCrun as
21290 # -library=stlport4 depends on it.
21291 case " $CXX $CXXFLAGS " in
21292 *" -library=stlport4 "*)
21293 solaris_use_stlport4
=yes
21297 if test "$solaris_use_stlport4" != yes; then
21298 postdeps_CXX
='-library=Cstd -library=Crun'
21305 case $cc_basename in
21307 # The more standards-conforming stlport4 library is
21308 # incompatible with the Cstd library. Avoid specifying
21309 # it if it's in CXXFLAGS. Ignore libCrun as
21310 # -library=stlport4 depends on it.
21311 case " $CXX $CXXFLAGS " in
21312 *" -library=stlport4 "*)
21313 solaris_use_stlport4
=yes
21317 # Adding this requires a known-good setup of shared libraries for
21318 # Sun compiler versions before 5.6, else PIC objects from an old
21319 # archive will be linked into the output, leading to subtle bugs.
21320 if test "$solaris_use_stlport4" != yes; then
21321 postdeps_CXX
='-library=Cstd -library=Crun'
21329 case " $postdeps_CXX " in
21330 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21332 compiler_lib_search_dirs_CXX
=
21333 if test -n "${compiler_lib_search_path_CXX}"; then
21334 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21367 lt_prog_compiler_wl_CXX
=
21368 lt_prog_compiler_pic_CXX
=
21369 lt_prog_compiler_static_CXX
=
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21372 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21374 # C++ specific cases for pic, static, wl, etc.
21375 if test "$GXX" = yes; then
21376 lt_prog_compiler_wl_CXX
='-Wl,'
21377 lt_prog_compiler_static_CXX
='-static'
21381 # All AIX code is PIC.
21382 if test "$host_cpu" = ia64
; then
21383 # AIX 5 now supports IA64 processor
21384 lt_prog_compiler_static_CXX
='-Bstatic'
21386 lt_prog_compiler_pic_CXX
='-fPIC'
21392 # see comment about AmigaOS4 .so support
21393 lt_prog_compiler_pic_CXX
='-fPIC'
21396 # FIXME: we need at least 68020 code to build shared libraries, but
21397 # adding the `-m68020' flag to GCC prevents building anything better,
21399 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21404 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21405 # PIC is the default for these OSes.
21407 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21408 # This hack is so that the source file can tell whether it is being
21409 # built for inclusion in a dll (and should export symbols for example).
21410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21411 # (--disable-auto-import) libraries
21412 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21414 darwin
* | rhapsody
*)
21415 # PIC is the default on this platform
21416 # Common symbols not allowed in MH_DYLIB files
21417 lt_prog_compiler_pic_CXX
='-fno-common'
21420 # DJGPP does not support shared libraries at all
21421 lt_prog_compiler_pic_CXX
=
21424 # PIC is the default for Haiku.
21425 # The "-static" flag exists, but is broken.
21426 lt_prog_compiler_static_CXX
=
21429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21430 # Instead, we relocate shared libraries at runtime.
21433 if test -d /usr
/nec
; then
21434 lt_prog_compiler_pic_CXX
=-Kconform_pic
21438 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21439 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21440 # sets the default TLS model and affects inlining.
21445 lt_prog_compiler_pic_CXX
='-fPIC'
21450 # QNX uses GNU C++, but need to define -shared option too, otherwise
21451 # it will coredump.
21452 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21455 lt_prog_compiler_pic_CXX
='-fPIC'
21461 # All AIX code is PIC.
21462 if test "$host_cpu" = ia64
; then
21463 # AIX 5 now supports IA64 processor
21464 lt_prog_compiler_static_CXX
='-Bstatic'
21466 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21470 case $cc_basename in
21472 # Green Hills C++ Compiler
21473 # _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"
21478 case $cc_basename in
21480 lt_prog_compiler_pic_CXX
='-KPIC'
21483 # Green Hills C++ Compiler
21484 lt_prog_compiler_pic_CXX
='-pic'
21490 freebsd
* | dragonfly
*)
21491 # FreeBSD uses GNU C++
21493 hpux9
* | hpux10
* | hpux11
*)
21494 case $cc_basename in
21496 lt_prog_compiler_wl_CXX
='-Wl,'
21497 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21498 if test "$host_cpu" != ia64
; then
21499 lt_prog_compiler_pic_CXX
='+Z'
21503 lt_prog_compiler_wl_CXX
='-Wl,'
21504 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21510 lt_prog_compiler_pic_CXX
='+Z'
21519 # This is c89, which is MS Visual C++ (no shared libs)
21520 # Anyone wants to do a port?
21522 irix5
* | irix6
* | nonstopux
*)
21523 case $cc_basename in
21525 lt_prog_compiler_wl_CXX
='-Wl,'
21526 lt_prog_compiler_static_CXX
='-non_shared'
21527 # CC pic flag -KPIC is the default.
21533 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21534 case $cc_basename in
21537 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21538 lt_prog_compiler_pic_CXX
='-fPIC'
21541 # old Intel C++ for x86_64 which still supported -KPIC.
21542 lt_prog_compiler_wl_CXX
='-Wl,'
21543 lt_prog_compiler_pic_CXX
='-KPIC'
21544 lt_prog_compiler_static_CXX
='-static'
21547 # Intel C++, used to be incompatible with GCC.
21548 # ICC 10 doesn't accept -KPIC any more.
21549 lt_prog_compiler_wl_CXX
='-Wl,'
21550 lt_prog_compiler_pic_CXX
='-fPIC'
21551 lt_prog_compiler_static_CXX
='-static'
21554 # Portland Group C++ compiler
21555 lt_prog_compiler_wl_CXX
='-Wl,'
21556 lt_prog_compiler_pic_CXX
='-fpic'
21557 lt_prog_compiler_static_CXX
='-Bstatic'
21561 # Make sure the PIC flag is empty. It appears that all Alpha
21562 # Linux and Compaq Tru64 Unix objects are PIC.
21563 lt_prog_compiler_pic_CXX
=
21564 lt_prog_compiler_static_CXX
='-non_shared'
21566 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21567 # IBM XL 8.0, 9.0 on PPC and BlueGene
21568 lt_prog_compiler_wl_CXX
='-Wl,'
21569 lt_prog_compiler_pic_CXX
='-qpic'
21570 lt_prog_compiler_static_CXX
='-qstaticlink'
21573 case `$CC -V 2>&1 | sed 5q` in
21576 lt_prog_compiler_pic_CXX
='-KPIC'
21577 lt_prog_compiler_static_CXX
='-Bstatic'
21578 lt_prog_compiler_wl_CXX
='-Qoption ld '
21589 case $cc_basename in
21591 lt_prog_compiler_pic_CXX
='-W c,exportall'
21600 # QNX uses GNU C++, but need to define -shared option too, otherwise
21601 # it will coredump.
21602 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21604 osf3
* | osf4
* | osf5
*)
21605 case $cc_basename in
21607 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21610 # Rational C++ 2.4.1
21611 lt_prog_compiler_pic_CXX
='-pic'
21614 # Digital/Compaq C++
21615 lt_prog_compiler_wl_CXX
='-Wl,'
21616 # Make sure the PIC flag is empty. It appears that all Alpha
21617 # Linux and Compaq Tru64 Unix objects are PIC.
21618 lt_prog_compiler_pic_CXX
=
21619 lt_prog_compiler_static_CXX
='-non_shared'
21628 case $cc_basename in
21630 # Sun C++ 4.2, 5.x and Centerline C++
21631 lt_prog_compiler_pic_CXX
='-KPIC'
21632 lt_prog_compiler_static_CXX
='-Bstatic'
21633 lt_prog_compiler_wl_CXX
='-Qoption ld '
21636 # Green Hills C++ Compiler
21637 lt_prog_compiler_pic_CXX
='-PIC'
21644 case $cc_basename in
21647 lt_prog_compiler_pic_CXX
='-pic'
21648 lt_prog_compiler_static_CXX
='-Bstatic'
21652 lt_prog_compiler_pic_CXX
='-pic'
21658 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21659 case $cc_basename in
21661 lt_prog_compiler_wl_CXX
='-Wl,'
21662 lt_prog_compiler_pic_CXX
='-KPIC'
21663 lt_prog_compiler_static_CXX
='-Bstatic'
21668 case $cc_basename in
21670 # NonStop-UX NCC 3.20
21671 lt_prog_compiler_pic_CXX
='-KPIC'
21680 lt_prog_compiler_can_build_shared_CXX
=no
21686 # For platforms which do not support PIC, -DPIC is meaningless:
21688 lt_prog_compiler_pic_CXX
=
21691 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21695 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21700 # Check to make sure the PIC flag actually works.
21702 if test -n "$lt_prog_compiler_pic_CXX"; then
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21704 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21705 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21706 $as_echo_n "(cached) " >&6
21708 lt_cv_prog_compiler_pic_works_CXX
=no
21709 ac_outfile
=conftest.
$ac_objext
21710 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21711 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21712 # Insert the option either (1) after the last *FLAGS variable, or
21713 # (2) before a word containing "conftest.", or (3) at the end.
21714 # Note that $ac_compile itself does not contain backslashes and begins
21715 # with a dollar sign (not a hyphen), so the echo should work correctly.
21716 # The option is referenced via a variable to avoid confusing sed.
21717 lt_compile
=`echo "$ac_compile" | $SED \
21718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21720 -e 's:$: $lt_compiler_flag:'`
21721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21722 (eval "$lt_compile" 2>conftest.err
)
21724 cat conftest.err
>&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 if (exit $ac_status) && test -s "$ac_outfile"; then
21727 # The compiler can only warn and ignore the option if not recognized
21728 # So say no if there are warnings other than the usual output.
21729 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21730 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21731 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21732 lt_cv_prog_compiler_pic_works_CXX
=yes
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21739 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21741 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21742 case $lt_prog_compiler_pic_CXX in
21744 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21747 lt_prog_compiler_pic_CXX
=
21748 lt_prog_compiler_can_build_shared_CXX
=no
21756 # Check to make sure the static flag actually works.
21758 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21760 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21761 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21762 $as_echo_n "(cached) " >&6
21764 lt_cv_prog_compiler_static_works_CXX
=no
21765 save_LDFLAGS
="$LDFLAGS"
21766 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21767 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21768 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21769 # The linker can only warn and ignore the option if not recognized
21770 # So say no if there are warnings
21771 if test -s conftest.err
; then
21772 # Append any errors to the config.log.
21773 cat conftest.err
1>&5
21774 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21775 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21776 if diff conftest.exp conftest.er2
>/dev
/null
; then
21777 lt_cv_prog_compiler_static_works_CXX
=yes
21780 lt_cv_prog_compiler_static_works_CXX
=yes
21784 LDFLAGS
="$save_LDFLAGS"
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21788 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21790 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21793 lt_prog_compiler_static_CXX
=
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21800 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21801 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21802 $as_echo_n "(cached) " >&6
21804 lt_cv_prog_compiler_c_o_CXX
=no
21805 $RM -r conftest
2>/dev
/null
21809 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21811 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21812 # Insert the option either (1) after the last *FLAGS variable, or
21813 # (2) before a word containing "conftest.", or (3) at the end.
21814 # Note that $ac_compile itself does not contain backslashes and begins
21815 # with a dollar sign (not a hyphen), so the echo should work correctly.
21816 lt_compile
=`echo "$ac_compile" | $SED \
21817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21819 -e 's:$: $lt_compiler_flag:'`
21820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21821 (eval "$lt_compile" 2>out
/conftest.err
)
21823 cat out
/conftest.err
>&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21827 # The compiler can only warn and ignore the option if not recognized
21828 # So say no if there are warnings
21829 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21830 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21831 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21832 lt_cv_prog_compiler_c_o_CXX
=yes
21837 # SGI C++ compiler will create directory out/ii_files/ for
21838 # template instantiation
21839 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21840 $RM out
/* && rmdir out
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21847 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21852 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21853 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21854 $as_echo_n "(cached) " >&6
21856 lt_cv_prog_compiler_c_o_CXX
=no
21857 $RM -r conftest
2>/dev
/null
21861 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21863 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21864 # Insert the option either (1) after the last *FLAGS variable, or
21865 # (2) before a word containing "conftest.", or (3) at the end.
21866 # Note that $ac_compile itself does not contain backslashes and begins
21867 # with a dollar sign (not a hyphen), so the echo should work correctly.
21868 lt_compile
=`echo "$ac_compile" | $SED \
21869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21871 -e 's:$: $lt_compiler_flag:'`
21872 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21873 (eval "$lt_compile" 2>out
/conftest.err
)
21875 cat out
/conftest.err
>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21879 # The compiler can only warn and ignore the option if not recognized
21880 # So say no if there are warnings
21881 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21882 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21883 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21884 lt_cv_prog_compiler_c_o_CXX
=yes
21889 # SGI C++ compiler will create directory out/ii_files/ for
21890 # template instantiation
21891 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21892 $RM out
/* && rmdir out
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21899 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21904 hard_links
="nottested"
21905 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21906 # do not overwrite the value of need_locks provided by the user
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21908 $as_echo_n "checking if we can lock with hard links... " >&6; }
21911 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21913 ln conftest.a conftest.b
2>&5 || hard_links
=no
21914 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21916 $as_echo "$hard_links" >&6; }
21917 if test "$hard_links" = no
; then
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21919 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21929 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21931 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21934 # If we're using GNU nm, then we don't want the "-C" option.
21935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21936 # Also, AIX nm treats weak defined symbols like other global defined
21937 # symbols, whereas GNU nm marks them as "W".
21938 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21939 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'
21941 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'
21945 export_symbols_cmds_CXX
="$ltdll_cmds"
21947 cygwin
* | mingw
* | cegcc
*)
21948 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'
21951 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21954 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21957 $as_echo "$ld_shlibs_CXX" >&6; }
21958 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21960 with_gnu_ld_CXX
=$with_gnu_ld
21968 # Do we need to explicitly link libc?
21970 case "x$archive_cmds_need_lc_CXX" in
21972 # Assume -lc should be added
21973 archive_cmds_need_lc_CXX
=yes
21975 if test "$enable_shared" = yes && test "$GCC" = yes; then
21976 case $archive_cmds_CXX in
21978 # FIXME: we may have to deal with multi-command sequences.
21981 # Test whether the compiler implicitly links with -lc since on some
21982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21983 # to ld, don't add -lc before -lgcc.
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21985 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21986 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21987 $as_echo_n "(cached) " >&6
21990 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21993 (eval $ac_compile) 2>&5
21995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21996 test $ac_status = 0; } 2>conftest.err
; then
21999 libobjs
=conftest.
$ac_objext
22001 wl
=$lt_prog_compiler_wl_CXX
22002 pic_flag
=$lt_prog_compiler_pic_CXX
22008 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22009 allow_undefined_flag_CXX
=
22010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22011 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22014 test $ac_status = 0; }
22016 lt_cv_archive_cmds_need_lc_CXX
=no
22018 lt_cv_archive_cmds_need_lc_CXX
=yes
22020 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22022 cat conftest.err
1>&5
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22028 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22029 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22100 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22102 library_names_spec
=
22103 libname_spec
='lib$name'
22107 postuninstall_cmds
=
22111 shlibpath_overrides_runpath
=unknown
22113 dynamic_linker
="$host_os ld.so"
22114 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22115 need_lib_prefix
=unknown
22116 hardcode_into_libs
=no
22118 # when you set need_version to no, make sure it does not cause -set_version
22119 # flags to be left without arguments
22120 need_version
=unknown
22125 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22126 shlibpath_var
=LIBPATH
22128 # AIX 3 has no versioning support, so we append a major version to the name.
22129 soname_spec
='${libname}${release}${shared_ext}$major'
22136 hardcode_into_libs
=yes
22137 if test "$host_cpu" = ia64
; then
22138 # AIX 5 supports IA64
22139 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22140 shlibpath_var
=LD_LIBRARY_PATH
22142 # With GCC up to 2.95.x, collect2 would create an import file
22143 # for dependence libraries. The import file would start with
22144 # the line `#! .'. This would cause the generated library to
22145 # depend on `.', always an invalid library. This was fixed in
22146 # development snapshots of GCC prior to 3.0.
22148 aix4 | aix4.
[01] | aix4.
[01].
*)
22149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22151 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22154 can_build_shared
=no
22158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22159 # soname into executable. Probably we can add versioning support to
22160 # collect2, so additional links can be useful in future.
22161 if test "$aix_use_runtimelinking" = yes; then
22162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22163 # instead of lib<name>.a to let people know that these are not
22164 # typical AIX shared libraries.
22165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22167 # We preserve .a as extension for shared libraries through AIX4.2
22168 # and later when we are not doing run time linking.
22169 library_names_spec
='${libname}${release}.a $libname.a'
22170 soname_spec
='${libname}${release}${shared_ext}$major'
22172 shlibpath_var
=LIBPATH
22179 # Since July 2007 AmigaOS4 officially supports .so libraries.
22180 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22181 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22184 library_names_spec
='$libname.ixlibrary $libname.a'
22185 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22186 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'
22192 library_names_spec
='${libname}${shared_ext}'
22193 dynamic_linker
="$host_os ld.so"
22194 shlibpath_var
=LIBRARY_PATH
22200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22201 soname_spec
='${libname}${release}${shared_ext}$major'
22202 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22203 shlibpath_var
=LD_LIBRARY_PATH
22204 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22205 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22206 # the default ld.so.conf also contains /usr/contrib/lib and
22207 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22208 # libtool to hard-code these into programs
22211 cygwin
* | mingw
* | pw32
* | cegcc
*)
22212 version_type
=windows
22217 case $GCC,$host_os in
22218 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22219 library_names_spec
='$libname.dll.a'
22220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22221 postinstall_cmds
='base_file=`basename \${file}`~
22222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22223 dldir=$destdir/`dirname \$dlpath`~
22224 test -d \$dldir || mkdir -p \$dldir~
22225 $install_prog $dir/$dlname \$dldir/$dlname~
22226 chmod a+x \$dldir/$dlname~
22227 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22228 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22230 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22231 dlpath=$dir/\$dldll~
22233 shlibpath_overrides_runpath
=yes
22237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22238 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22242 # MinGW DLLs use traditional 'lib' prefix
22243 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22246 # pw32 DLLs use 'pw' prefix rather than 'lib'
22247 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22253 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22256 dynamic_linker
='Win32 ld.exe'
22257 # FIXME: first we should search . and the directory the executable is in
22261 darwin
* | rhapsody
*)
22262 dynamic_linker
="$host_os dyld"
22263 version_type
=darwin
22266 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22267 soname_spec
='${libname}${release}${major}$shared_ext'
22268 shlibpath_overrides_runpath
=yes
22269 shlibpath_var
=DYLD_LIBRARY_PATH
22270 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22272 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22280 soname_spec
='${libname}${release}${shared_ext}$major'
22281 shlibpath_var
=LD_LIBRARY_PATH
22284 freebsd
* | dragonfly
*)
22285 # DragonFly does not have aout. When/if they implement a new
22286 # versioning mechanism, adjust this.
22287 if test -x /usr
/bin
/objformat
; then
22288 objformat
=`/usr/bin/objformat`
22291 freebsd
[23].
*) objformat
=aout
;;
22292 *) objformat
=elf
;;
22295 version_type
=freebsd-
$objformat
22296 case $version_type in
22298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22303 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22307 shlibpath_var
=LD_LIBRARY_PATH
22310 shlibpath_overrides_runpath
=yes
22312 freebsd3.
[01]* | freebsdelf3.
[01]*)
22313 shlibpath_overrides_runpath
=yes
22314 hardcode_into_libs
=yes
22316 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22317 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22318 shlibpath_overrides_runpath
=no
22319 hardcode_into_libs
=yes
22321 *) # from 4.6 on, and DragonFly
22322 shlibpath_overrides_runpath
=yes
22323 hardcode_into_libs
=yes
22332 dynamic_linker
="$host_os runtime_loader"
22333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22334 soname_spec
='${libname}${release}${shared_ext}$major'
22335 shlibpath_var
=LIBRARY_PATH
22336 shlibpath_overrides_runpath
=yes
22337 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22338 hardcode_into_libs
=yes
22341 hpux9
* | hpux10
* | hpux11
*)
22342 # Give a soname corresponding to the major version so that dld.sl refuses to
22343 # link against other versions.
22350 hardcode_into_libs
=yes
22351 dynamic_linker
="$host_os dld.so"
22352 shlibpath_var
=LD_LIBRARY_PATH
22353 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22355 soname_spec
='${libname}${release}${shared_ext}$major'
22356 if test "X$HPUX_IA64_MODE" = X32
; then
22357 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22359 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22361 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22365 hardcode_into_libs
=yes
22366 dynamic_linker
="$host_os dld.sl"
22367 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22368 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22370 soname_spec
='${libname}${release}${shared_ext}$major'
22371 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22372 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22376 dynamic_linker
="$host_os dld.sl"
22377 shlibpath_var
=SHLIB_PATH
22378 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22379 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22380 soname_spec
='${libname}${release}${shared_ext}$major'
22383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22384 postinstall_cmds
='chmod 555 $lib'
22385 # or fails outright, so override atomically:
22386 install_override_mode
=555
22393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22394 soname_spec
='${libname}${release}${shared_ext}$major'
22395 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22396 shlibpath_var
=LD_LIBRARY_PATH
22397 shlibpath_overrides_runpath
=no
22398 hardcode_into_libs
=yes
22401 irix5
* | irix6
* | nonstopux
*)
22403 nonstopux
*) version_type
=nonstopux
;;
22405 if test "$lt_cv_prog_gnu_ld" = yes; then
22413 soname_spec
='${libname}${release}${shared_ext}$major'
22414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22416 irix5
* | nonstopux
*)
22417 libsuff
= shlibsuff
=
22420 case $LD in # libtool.m4 will add one of these switches to LD
22421 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22422 libsuff
= shlibsuff
= libmagic
=32-bit;;
22423 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22424 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22425 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22426 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22427 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22431 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22432 shlibpath_overrides_runpath
=no
22433 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22434 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22435 hardcode_into_libs
=yes
22438 # No shared lib support for Linux oldld, aout, or coff.
22439 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22443 # This must be Linux ELF.
22445 # uclinux* changes (here and below) have been submitted to the libtool
22446 # project, but have not yet been accepted: they are GCC-local changes
22447 # for the time being. (See
22448 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22449 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22454 soname_spec
='${libname}${release}${shared_ext}$major'
22455 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22456 shlibpath_var
=LD_LIBRARY_PATH
22457 shlibpath_overrides_runpath
=no
22459 # Some binutils ld are patched to set DT_RUNPATH
22460 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22461 $as_echo_n "(cached) " >&6
22463 lt_cv_shlibpath_overrides_runpath
=no
22464 save_LDFLAGS
=$LDFLAGS
22465 save_libdir
=$libdir
22466 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22467 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22469 /* end confdefs.h. */
22479 if ac_fn_cxx_try_link
"$LINENO"; then :
22480 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22481 lt_cv_shlibpath_overrides_runpath
=yes
22484 rm -f core conftest.err conftest.
$ac_objext \
22485 conftest
$ac_exeext conftest.
$ac_ext
22486 LDFLAGS
=$save_LDFLAGS
22487 libdir
=$save_libdir
22491 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22493 # This implies no fast_install, which is unacceptable.
22494 # Some rework will be needed to allow for fast_install
22495 # before this can be enabled.
22496 hardcode_into_libs
=yes
22498 # Append ld.so.conf contents to the search path
22499 if test -f /etc
/ld.so.conf
; then
22500 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' ' '`
22501 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22504 # We used to test for /lib/ld.so.1 and disable shared libraries on
22505 # powerpc, because MkLinux only supported shared libraries with the
22506 # GNU dynamic linker. Since this was broken with cross compilers,
22507 # most powerpc-linux boxes support dynamic linking these days and
22508 # people can always --disable-shared, the test was removed, and we
22509 # assume the GNU/Linux dynamic linker is in use.
22510 dynamic_linker
='GNU/Linux ld.so'
22517 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22519 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22520 dynamic_linker
='NetBSD (a.out) ld.so'
22522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22523 soname_spec
='${libname}${release}${shared_ext}$major'
22524 dynamic_linker
='NetBSD ld.elf_so'
22526 shlibpath_var
=LD_LIBRARY_PATH
22527 shlibpath_overrides_runpath
=yes
22528 hardcode_into_libs
=yes
22533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22534 shlibpath_var
=LD_LIBRARY_PATH
22535 shlibpath_overrides_runpath
=yes
22542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22543 soname_spec
='${libname}${release}${shared_ext}$major'
22544 shlibpath_var
=LD_LIBRARY_PATH
22545 shlibpath_overrides_runpath
=no
22546 hardcode_into_libs
=yes
22547 dynamic_linker
='ldqnx.so'
22552 sys_lib_dlsearch_path_spec
="/usr/lib"
22554 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22556 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22557 *) need_version
=no
;;
22559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22560 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22561 shlibpath_var
=LD_LIBRARY_PATH
22562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22564 openbsd2.
[89] | openbsd2.
[89].
*)
22565 shlibpath_overrides_runpath
=no
22568 shlibpath_overrides_runpath
=yes
22572 shlibpath_overrides_runpath
=yes
22577 libname_spec
='$name'
22580 library_names_spec
='$libname${shared_ext} $libname.a'
22581 dynamic_linker
='OS/2 ld.exe'
22582 shlibpath_var
=LIBPATH
22585 osf3
* | osf4
* | osf5
*)
22589 soname_spec
='${libname}${release}${shared_ext}$major'
22590 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591 shlibpath_var
=LD_LIBRARY_PATH
22592 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22593 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22605 soname_spec
='${libname}${release}${shared_ext}$major'
22606 shlibpath_var
=LD_LIBRARY_PATH
22607 shlibpath_overrides_runpath
=yes
22608 hardcode_into_libs
=yes
22609 # ldd complains unless libraries are executable
22610 postinstall_cmds
='chmod +x $lib'
22615 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22616 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22617 shlibpath_var
=LD_LIBRARY_PATH
22618 shlibpath_overrides_runpath
=yes
22619 if test "$with_gnu_ld" = yes; then
22627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22628 soname_spec
='${libname}${release}${shared_ext}$major'
22629 shlibpath_var
=LD_LIBRARY_PATH
22630 case $host_vendor in
22632 shlibpath_overrides_runpath
=no
22634 runpath_var
=LD_RUN_PATH
22642 shlibpath_overrides_runpath
=no
22643 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22649 if test -d /usr
/nec
;then
22651 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22652 soname_spec
='$libname${shared_ext}.$major'
22653 shlibpath_var
=LD_LIBRARY_PATH
22657 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22658 version_type
=freebsd-elf
22661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22662 soname_spec
='${libname}${release}${shared_ext}$major'
22663 shlibpath_var
=LD_LIBRARY_PATH
22664 shlibpath_overrides_runpath
=yes
22665 hardcode_into_libs
=yes
22666 if test "$with_gnu_ld" = yes; then
22667 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22669 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22672 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22676 sys_lib_dlsearch_path_spec
='/usr/lib'
22680 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22685 shlibpath_var
=LD_LIBRARY_PATH
22686 shlibpath_overrides_runpath
=no
22687 hardcode_into_libs
=yes
22692 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22693 soname_spec
='${libname}${release}${shared_ext}$major'
22694 shlibpath_var
=LD_LIBRARY_PATH
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22702 $as_echo "$dynamic_linker" >&6; }
22703 test "$dynamic_linker" = no
&& can_build_shared
=no
22705 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22706 if test "$GCC" = yes; then
22707 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22710 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22711 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22713 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22714 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22755 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22756 hardcode_action_CXX
=
22757 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22758 test -n "$runpath_var_CXX" ||
22759 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22761 # We can hardcode non-existent directories.
22762 if test "$hardcode_direct_CXX" != no
&&
22763 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22764 # have to relink, otherwise we might link with an installed library
22765 # when we should be linking with a yet-to-be-installed one
22766 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22767 test "$hardcode_minus_L_CXX" != no
; then
22768 # Linking always hardcodes the temporary library directory.
22769 hardcode_action_CXX
=relink
22771 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22772 hardcode_action_CXX
=immediate
22775 # We cannot hardcode anything, or else we can only hardcode existing
22777 hardcode_action_CXX
=unsupported
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22780 $as_echo "$hardcode_action_CXX" >&6; }
22782 if test "$hardcode_action_CXX" = relink ||
22783 test "$inherit_rpath_CXX" = yes; then
22784 # Fast installation is not supported
22785 enable_fast_install
=no
22786 elif test "$shlibpath_overrides_runpath" = yes ||
22787 test "$enable_shared" = no
; then
22788 # Fast installation is not necessary
22789 enable_fast_install
=needless
22798 fi # test -n "$compiler"
22804 with_gnu_ld
=$lt_save_with_gnu_ld
22805 lt_cv_path_LDCXX
=$lt_cv_path_LD
22806 lt_cv_path_LD
=$lt_save_path_LD
22807 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22808 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22809 fi # test "$_lt_caught_CXX_error" != yes
22812 ac_cpp
='$CXXCPP $CPPFLAGS'
22813 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22832 # Only expand once:
22838 # Identify the assembler which will work hand-in-glove with the newly
22839 # built GCC, so that we can examine its features. This is the assembler
22840 # which will be driven by the driver program.
22842 # If build != host, and we aren't building gas in-tree, we identify a
22843 # build->target assembler and hope that it will have the same features
22844 # as the host->target assembler we'll be using.
22845 gcc_cv_gas_major_version
=
22846 gcc_cv_gas_minor_version
=
22847 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22849 if ${gcc_cv_as+:} false
; then :
22853 if test -x "$DEFAULT_ASSEMBLER"; then
22854 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22855 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22856 && test -f ..
/gas
/Makefile \
22857 && test x
$build = x
$host; then
22858 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22859 elif test -x as
$build_exeext; then
22860 # Build using assembler in the current directory.
22861 gcc_cv_as
=.
/as
$build_exeext
22862 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22863 gcc_cv_as
="$AS_FOR_TARGET"
22865 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22866 set dummy
$AS_FOR_TARGET; ac_word
=$2
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22868 $as_echo_n "checking for $ac_word... " >&6; }
22869 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22870 $as_echo_n "(cached) " >&6
22874 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22878 for as_dir
in $PATH
22881 test -z "$as_dir" && as_dir
=.
22882 for ac_exec_ext
in '' $ac_executable_extensions; do
22883 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22884 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22895 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22896 if test -n "$gcc_cv_as"; then
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22898 $as_echo "$gcc_cv_as" >&6; }
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22901 $as_echo "no" >&6; }
22908 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22910 case "$ORIGINAL_AS_FOR_TARGET" in
22911 .
/as | .
/as
$build_exeext) ;;
22912 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22917 $as_echo_n "checking what assembler to use... " >&6; }
22918 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22919 # Single tree build which includes gas. We want to prefer it
22920 # over whatever linker top-level may have detected, since
22921 # we'll use what we're building after installation anyway.
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22923 $as_echo "newly built gas" >&6; }
22925 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22926 for f
in $gcc_cv_as_bfd_srcdir/configure \
22927 $gcc_cv_as_gas_srcdir/configure \
22928 $gcc_cv_as_gas_srcdir/configure.ac \
22929 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22930 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22931 if test x
$gcc_cv_gas_version != x
; then
22935 case $gcc_cv_gas_version in
22937 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22939 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22940 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22941 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22942 case $gcc_cv_gas_patch_version in
22943 "") gcc_cv_gas_patch_version
="0" ;;
22945 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22946 + $gcc_cv_gas_minor_version \) \* 1000 \
22947 + $gcc_cv_gas_patch_version`
22949 in_tree_gas_is_elf
=no
22950 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22951 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22952 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22954 in_tree_gas_is_elf
=yes
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22958 $as_echo "$gcc_cv_as" >&6; }
22963 # Check whether --enable-ld was given.
22964 if test "${enable_ld+set}" = set; then :
22965 enableval
=$enable_ld; case "${enableval}" in
22973 install_gold_as_default
=no
22974 # Check whether --enable-gold was given.
22975 if test "${enable_gold+set}" = set; then :
22976 enableval
=$enable_gold; case "${enableval}" in
22978 install_gold_as_default
=yes
22981 if test x
${default_ld} != x
; then
22982 install_gold_as_default
=yes
22988 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22994 # Identify the linker which will work hand-in-glove with the newly
22995 # built GCC, so that we can examine its features. This is the linker
22996 # which will be driven by the driver program.
22998 # If build != host, and we aren't building gas in-tree, we identify a
22999 # build->target linker and hope that it will have the same features
23000 # as the host->target linker we'll be using.
23001 gcc_cv_gld_major_version
=
23002 gcc_cv_gld_minor_version
=
23003 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23004 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23005 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23007 if ${gcc_cv_ld+:} false
; then :
23011 if test -x "$DEFAULT_LINKER"; then
23012 gcc_cv_ld
="$DEFAULT_LINKER"
23013 elif test $install_gold_as_default = yes \
23014 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23015 && test -f ..
/gold
/Makefile \
23016 && test x
$build = x
$host; then
23017 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23018 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23019 && test -f ..
/ld
/Makefile \
23020 && test x
$build = x
$host; then
23021 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23022 elif test -x collect-ld
$build_exeext; then
23023 # Build using linker in the current directory.
23024 gcc_cv_ld
=.
/collect-ld
$build_exeext
23025 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23026 gcc_cv_ld
="$LD_FOR_TARGET"
23028 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23029 set dummy
$LD_FOR_TARGET; ac_word
=$2
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23031 $as_echo_n "checking for $ac_word... " >&6; }
23032 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23033 $as_echo_n "(cached) " >&6
23037 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23041 for as_dir
in $PATH
23044 test -z "$as_dir" && as_dir
=.
23045 for ac_exec_ext
in '' $ac_executable_extensions; do
23046 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23047 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23058 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23059 if test -n "$gcc_cv_ld"; then
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23061 $as_echo "$gcc_cv_ld" >&6; }
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23064 $as_echo "no" >&6; }
23071 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23072 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23073 # if the PLUGIN_LD is set ld-new, just have it as ld
23074 # as that is the installed named.
23075 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23076 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23077 PLUGIN_LD_SUFFIX
=ld
23080 # Check whether --with-plugin-ld was given.
23081 if test "${with_plugin_ld+set}" = set; then :
23082 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23083 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23084 PLUGIN_LD_SUFFIX
="$withval"
23090 cat >>confdefs.h
<<_ACEOF
23091 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23095 # Check to see if we are using gold instead of ld
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23097 $as_echo_n "checking whether we are using gold... " >&6; }
23099 if test x
$gcc_cv_ld != x
; then
23100 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23101 |
grep "GNU gold" > /dev
/null
; then
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23106 $as_echo "$ld_is_gold" >&6; }
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23109 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23110 # Check to see if default ld is not gold, but gold is
23111 # available and has support for split stack. If gcc was configured
23112 # with gold then no checking is done.
23114 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23116 # For platforms other than powerpc64*, enable as appropriate.
23118 gold_non_default
=no
23119 ld_gold
=`which ${gcc_cv_ld}.gold`
23120 # Make sure this gold has minimal split stack support
23121 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23122 ld_vers
=`$ld_gold --version | sed 1q`
23123 gold_vers
=`echo $ld_vers | sed -n \
23124 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23126 # check that the gold version contains the complete split stack support
23127 # on powerpc64 big and little endian
23129 case "$gold_vers" in
23130 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23132 *) gold_non_default
=no
23138 if test $gold_non_default = yes; then
23140 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23145 $as_echo "$gold_non_default" >&6; }
23147 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23149 case "$ORIGINAL_LD_FOR_TARGET" in
23150 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23151 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23156 $as_echo_n "checking what linker to use... " >&6; }
23157 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23158 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23159 # Single tree build which includes ld. We want to prefer it
23160 # over whatever linker top-level may have detected, since
23161 # we'll use what we're building after installation anyway.
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23163 $as_echo "newly built ld" >&6; }
23165 in_tree_ld_is_elf
=no
23166 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23167 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23168 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23169 in_tree_ld_is_elf
=yes
23170 elif test "$ld_is_gold" = yes; then
23171 in_tree_ld_is_elf
=yes
23173 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
23175 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23176 if test x
$gcc_cv_gld_version != x
; then
23180 case $gcc_cv_gld_version in
23182 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23184 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23185 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23186 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23187 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23190 $as_echo "$gcc_cv_ld" >&6; }
23192 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23193 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23194 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23200 # Figure out what nm we will be using.
23201 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23202 if ${gcc_cv_nm+:} false
; then :
23206 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23207 && test -f ..
/binutils
/Makefile \
23208 && test x
$build = x
$host; then
23209 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23210 elif test -x nm
$build_exeext; then
23211 gcc_cv_nm
=.
/nm
$build_exeext
23212 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23213 gcc_cv_nm
="$NM_FOR_TARGET"
23215 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23216 set dummy
$NM_FOR_TARGET; ac_word
=$2
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23218 $as_echo_n "checking for $ac_word... " >&6; }
23219 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23220 $as_echo_n "(cached) " >&6
23224 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23228 for as_dir
in $PATH
23231 test -z "$as_dir" && as_dir
=.
23232 for ac_exec_ext
in '' $ac_executable_extensions; do
23233 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23234 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23245 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23246 if test -n "$gcc_cv_nm"; then
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23248 $as_echo "$gcc_cv_nm" >&6; }
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23251 $as_echo "no" >&6; }
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23259 $as_echo_n "checking what nm to use... " >&6; }
23260 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23261 # Single tree build which includes binutils.
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23263 $as_echo "newly built nm" >&6; }
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23267 $as_echo "$gcc_cv_nm" >&6; }
23271 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23273 case "$ORIGINAL_NM_FOR_TARGET" in
23274 .
/nm | .
/nm
$build_exeext) ;;
23275 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23280 # Figure out what objdump we will be using.
23281 if ${gcc_cv_objdump+:} false
; then :
23285 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23286 && test -f ..
/binutils
/Makefile \
23287 && test x
$build = x
$host; then
23288 # Single tree build which includes binutils.
23289 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23290 elif test -x objdump
$build_exeext; then
23291 gcc_cv_objdump
=.
/objdump
$build_exeext
23292 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23293 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23295 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23296 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23298 $as_echo_n "checking for $ac_word... " >&6; }
23299 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23300 $as_echo_n "(cached) " >&6
23302 case $gcc_cv_objdump in
23304 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23308 for as_dir
in $PATH
23311 test -z "$as_dir" && as_dir
=.
23312 for ac_exec_ext
in '' $ac_executable_extensions; do
23313 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23314 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23325 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23326 if test -n "$gcc_cv_objdump"; then
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23328 $as_echo "$gcc_cv_objdump" >&6; }
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23331 $as_echo "no" >&6; }
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23339 $as_echo_n "checking what objdump to use... " >&6; }
23340 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23341 # Single tree build which includes binutils.
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23343 $as_echo "newly built objdump" >&6; }
23344 elif test x
$gcc_cv_objdump = x
; then
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23346 $as_echo "not found" >&6; }
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23349 $as_echo "$gcc_cv_objdump" >&6; }
23352 # Figure out what readelf we will be using.
23353 if ${gcc_cv_readelf+:} false
; then :
23357 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23358 && test -f ..
/binutils
/Makefile \
23359 && test x
$build = x
$host; then
23360 # Single tree build which includes binutils.
23361 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23362 elif test -x readelf
$build_exeext; then
23363 gcc_cv_readelf
=.
/readelf
$build_exeext
23364 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23365 gcc_cv_readelf
="$READELF_FOR_TARGET"
23367 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23368 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23370 $as_echo_n "checking for $ac_word... " >&6; }
23371 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23372 $as_echo_n "(cached) " >&6
23374 case $gcc_cv_readelf in
23376 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23380 for as_dir
in $PATH
23383 test -z "$as_dir" && as_dir
=.
23384 for ac_exec_ext
in '' $ac_executable_extensions; do
23385 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23386 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23397 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23398 if test -n "$gcc_cv_readelf"; then
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23400 $as_echo "$gcc_cv_readelf" >&6; }
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23403 $as_echo "no" >&6; }
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23411 $as_echo_n "checking what readelf to use... " >&6; }
23412 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23413 # Single tree build which includes binutils.
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23415 $as_echo "newly built readelf" >&6; }
23416 elif test x
$gcc_cv_readelf = x
; then
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23418 $as_echo "not found" >&6; }
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23421 $as_echo "$gcc_cv_readelf" >&6; }
23424 # Figure out what otool we will be using.
23425 if ${gcc_cv_otool+:} false
; then :
23429 if test -x otool
$build_exeext; then
23430 gcc_cv_otool
=.
/otool
$build_exeext
23431 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23432 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23434 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23435 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23437 $as_echo_n "checking for $ac_word... " >&6; }
23438 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23439 $as_echo_n "(cached) " >&6
23441 case $gcc_cv_otool in
23443 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23447 for as_dir
in $PATH
23450 test -z "$as_dir" && as_dir
=.
23451 for ac_exec_ext
in '' $ac_executable_extensions; do
23452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23453 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23464 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23465 if test -n "$gcc_cv_otool"; then
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23467 $as_echo "$gcc_cv_otool" >&6; }
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23470 $as_echo "no" >&6; }
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23478 $as_echo_n "checking what otool to use... " >&6; }
23479 if test x
$gcc_cv_otool = x
; then
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23481 $as_echo "not found" >&6; }
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23484 $as_echo "$gcc_cv_otool" >&6; }
23487 # Figure out the dsymutil we will use.
23488 if ${gcc_cv_dsymutil+:} false
; then :
23492 if test -x "$DEFAULT_DSYMUTIL"; then
23493 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23494 elif test -x dsymutil
$build_exeext; then
23495 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23496 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23497 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23498 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23499 gcc_cv_dsymutil
=$DSYMUTIL
23501 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23502 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23504 $as_echo_n "checking for $ac_word... " >&6; }
23505 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23506 $as_echo_n "(cached) " >&6
23508 case $gcc_cv_dsymutil in
23510 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23514 for as_dir
in $PATH
23517 test -z "$as_dir" && as_dir
=.
23518 for ac_exec_ext
in '' $ac_executable_extensions; do
23519 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23520 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23531 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23532 if test -n "$gcc_cv_dsymutil"; then
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23534 $as_echo "$gcc_cv_dsymutil" >&6; }
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23537 $as_echo "no" >&6; }
23544 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23546 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23547 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23548 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23552 # Figure out what assembler alignment features are present.
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23554 $as_echo_n "checking assembler flags... " >&6; }
23555 if ${gcc_cv_as_flags+:} false
; then :
23556 $as_echo_n "(cached) " >&6
23559 i
[34567]86-*-linux*)
23560 gcc_cv_as_flags
=--32
23562 x86_64-
*-linux-gnux32)
23563 gcc_cv_as_flags
=--x32
23566 gcc_cv_as_flags
=--64
23568 powerpc
*-*-darwin*)
23569 gcc_cv_as_flags
="-arch ppc"
23572 gcc_cv_as_flags
=" "
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23577 $as_echo "$gcc_cv_as_flags" >&6; }
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23580 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23581 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23582 $as_echo_n "(cached) " >&6
23584 gcc_cv_as_balign_and_p2align
=no
23585 if test $in_tree_gas = yes; then
23586 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23587 then gcc_cv_as_balign_and_p2align
=yes
23589 elif test x
$gcc_cv_as != x
; then
23590 $as_echo '.balign 4
23591 .p2align 2' > conftest.s
23592 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23594 (eval $ac_try) 2>&5
23596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23597 test $ac_status = 0; }; }
23599 gcc_cv_as_balign_and_p2align
=yes
23601 echo "configure: failed program was" >&5
23604 rm -f conftest.o conftest.s
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23608 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23609 if test $gcc_cv_as_balign_and_p2align = yes; then
23611 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23617 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23618 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23619 $as_echo_n "(cached) " >&6
23621 gcc_cv_as_max_skip_p2align
=no
23622 if test $in_tree_gas = yes; then
23623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23624 then gcc_cv_as_max_skip_p2align
=yes
23626 elif test x
$gcc_cv_as != x
; then
23627 $as_echo '.p2align 4,,7' > conftest.s
23628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23630 (eval $ac_try) 2>&5
23632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23633 test $ac_status = 0; }; }
23635 gcc_cv_as_max_skip_p2align
=yes
23637 echo "configure: failed program was" >&5
23640 rm -f conftest.o conftest.s
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23644 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23645 if test $gcc_cv_as_max_skip_p2align = yes; then
23647 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23653 $as_echo_n "checking assembler for .literal16... " >&6; }
23654 if ${gcc_cv_as_literal16+:} false
; then :
23655 $as_echo_n "(cached) " >&6
23657 gcc_cv_as_literal16
=no
23658 if test $in_tree_gas = yes; then
23659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23660 then gcc_cv_as_literal16
=yes
23662 elif test x
$gcc_cv_as != x
; then
23663 $as_echo '.literal16' > conftest.s
23664 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23666 (eval $ac_try) 2>&5
23668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23669 test $ac_status = 0; }; }
23671 gcc_cv_as_literal16
=yes
23673 echo "configure: failed program was" >&5
23676 rm -f conftest.o conftest.s
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23680 $as_echo "$gcc_cv_as_literal16" >&6; }
23681 if test $gcc_cv_as_literal16 = yes; then
23683 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23689 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23690 if ${gcc_cv_as_subsection_m1+:} false
; then :
23691 $as_echo_n "(cached) " >&6
23693 gcc_cv_as_subsection_m1
=no
23694 if test $in_tree_gas = yes; then
23695 if test $in_tree_gas_is_elf = yes \
23696 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23697 then gcc_cv_as_subsection_m1
=yes
23699 elif test x
$gcc_cv_as != x
; then
23700 $as_echo 'conftest_label1: .word 0
23702 conftest_label2: .word 0
23703 .previous' > conftest.s
23704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23706 (eval $ac_try) 2>&5
23708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23709 test $ac_status = 0; }; }
23711 if test x
$gcc_cv_nm != x
; then
23712 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23713 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23714 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23716 else gcc_cv_as_subsection_m1
=yes
23718 rm -f conftest.nm1 conftest.nm2
23721 echo "configure: failed program was" >&5
23724 rm -f conftest.o conftest.s
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23728 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23729 if test $gcc_cv_as_subsection_m1 = yes; then
23731 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23737 $as_echo_n "checking assembler for .weak... " >&6; }
23738 if ${gcc_cv_as_weak+:} false
; then :
23739 $as_echo_n "(cached) " >&6
23742 if test $in_tree_gas = yes; then
23743 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23744 then gcc_cv_as_weak
=yes
23746 elif test x
$gcc_cv_as != x
; then
23747 $as_echo ' .weak foobar' > conftest.s
23748 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23750 (eval $ac_try) 2>&5
23752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23753 test $ac_status = 0; }; }
23757 echo "configure: failed program was" >&5
23760 rm -f conftest.o conftest.s
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23764 $as_echo "$gcc_cv_as_weak" >&6; }
23765 if test $gcc_cv_as_weak = yes; then
23767 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23773 $as_echo_n "checking assembler for .weakref... " >&6; }
23774 if ${gcc_cv_as_weakref+:} false
; then :
23775 $as_echo_n "(cached) " >&6
23777 gcc_cv_as_weakref
=no
23778 if test $in_tree_gas = yes; then
23779 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23780 then gcc_cv_as_weakref
=yes
23782 elif test x
$gcc_cv_as != x
; then
23783 $as_echo ' .weakref foobar, barfnot' > conftest.s
23784 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23786 (eval $ac_try) 2>&5
23788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23789 test $ac_status = 0; }; }
23791 gcc_cv_as_weakref
=yes
23793 echo "configure: failed program was" >&5
23796 rm -f conftest.o conftest.s
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23800 $as_echo "$gcc_cv_as_weakref" >&6; }
23801 if test $gcc_cv_as_weakref = yes; then
23803 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23809 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23810 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23811 $as_echo_n "(cached) " >&6
23813 gcc_cv_as_nsubspa_comdat
=no
23814 if test $in_tree_gas = yes; then
23815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23816 then gcc_cv_as_nsubspa_comdat
=yes
23818 elif test x
$gcc_cv_as != x
; then
23819 $as_echo ' .SPACE $TEXT$
23820 .NSUBSPA $CODE$,COMDAT' > conftest.s
23821 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23823 (eval $ac_try) 2>&5
23825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23826 test $ac_status = 0; }; }
23828 gcc_cv_as_nsubspa_comdat
=yes
23830 echo "configure: failed program was" >&5
23833 rm -f conftest.o conftest.s
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23837 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23838 if test $gcc_cv_as_nsubspa_comdat = yes; then
23840 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23845 # .hidden needs to be supported in both the assembler and the linker,
23846 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23847 # This is irritatingly difficult to feature test for; we have to check the
23848 # date string after the version number. If we've got an in-tree
23849 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23851 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23852 case "${target}" in
23854 conftest_s
=' .globl foobar,hidden'
23857 conftest_s
=' .hidden foobar
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23862 $as_echo_n "checking assembler for .hidden... " >&6; }
23863 if ${gcc_cv_as_hidden+:} false
; then :
23864 $as_echo_n "(cached) " >&6
23866 gcc_cv_as_hidden
=no
23867 if test $in_tree_gas = yes; then
23868 if test $in_tree_gas_is_elf = yes \
23869 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23870 then gcc_cv_as_hidden
=yes
23872 elif test x
$gcc_cv_as != x
; then
23873 $as_echo "$conftest_s" > conftest.s
23874 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23876 (eval $ac_try) 2>&5
23878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23879 test $ac_status = 0; }; }
23881 gcc_cv_as_hidden
=yes
23883 echo "configure: failed program was" >&5
23886 rm -f conftest.o conftest.s
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23890 $as_echo "$gcc_cv_as_hidden" >&6; }
23893 case "${target}" in
23895 # Darwin as has some visibility support, though with a different syntax.
23896 gcc_cv_as_hidden
=yes
23900 # gnu_indirect_function type is an extension proposed at
23901 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23902 # selection of function implementation
23903 # Check whether --enable-gnu-indirect-function was given.
23904 if test "${enable_gnu_indirect_function+set}" = set; then :
23905 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23907 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23908 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23911 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23915 case "${target}" in
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23918 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23919 cat > conftest.s
<<EOF
23921 .type foo_resolver, @function
23924 .size foo_resolver, .-foo_resolver
23927 .type foo, %gnu_indirect_function
23928 .set foo, foo_resolver
23931 .type bar, @function
23937 if test x
$gcc_cv_as != x \
23938 && test x
$gcc_cv_ld != x \
23939 && test x
$gcc_cv_readelf != x \
23940 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23941 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23942 && $gcc_cv_readelf --relocs --wide conftest \
23943 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
23944 enable_gnu_indirect_function
=yes
23946 rm -f conftest conftest.o conftest.s
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23948 $as_echo "$enable_gnu_indirect_function" >&6; }
23952 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23954 cat >>confdefs.h
<<_ACEOF
23955 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23960 if test $in_tree_ld != yes ; then
23961 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23962 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23963 if test x
"$ld_is_gold" = xyes
; then
23964 # GNU gold --version looks like this:
23966 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23968 # We extract the binutils version which is more familiar and specific
23969 # than the gold version.
23970 ld_vers
=`echo $ld_ver | sed -n \
23971 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23973 # GNU ld --version looks like this:
23975 # GNU ld (GNU Binutils) 2.21.51.20110225
23976 ld_vers
=`echo $ld_ver | sed -n \
23977 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23979 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
23980 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23981 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23982 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23984 case "${target}" in
23986 # Solaris 2 ld -V output looks like this for a regular version:
23988 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23990 # but test versions add stuff at the end:
23992 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23994 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23995 # numbers can be used in ld.so.1 feature checks even if a different
23996 # linker is configured.
23997 ld_ver
=`$gcc_cv_ld -V 2>&1`
23998 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23999 ld_vers
=`echo $ld_ver | sed -n \
24000 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24001 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24002 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24010 $as_echo_n "checking linker for .hidden support... " >&6; }
24011 if ${gcc_cv_ld_hidden+:} false
; then :
24012 $as_echo_n "(cached) " >&6
24014 if test $in_tree_ld = yes ; then
24015 gcc_cv_ld_hidden
=no
24016 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 \
24017 && test $in_tree_ld_is_elf = yes; then
24018 gcc_cv_ld_hidden
=yes
24021 gcc_cv_ld_hidden
=yes
24022 if test x
"$ld_is_gold" = xyes
; then
24024 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24025 if test 0"$ld_date" -lt 20020404; then
24026 if test -n "$ld_date"; then
24027 # If there was date string, but was earlier than 2002-04-04, fail
24028 gcc_cv_ld_hidden
=no
24029 elif test -z "$ld_vers"; then
24030 # If there was no date string nor ld version number, something is wrong
24031 gcc_cv_ld_hidden
=no
24033 test -z "$ld_vers_patch" && ld_vers_patch
=0
24034 if test "$ld_vers_major" -lt 2; then
24035 gcc_cv_ld_hidden
=no
24036 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24037 gcc_cv_ld_hidden
="no"
24038 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24039 gcc_cv_ld_hidden
=no
24044 case "${target}" in
24046 gcc_cv_ld_hidden
=yes
24049 # Darwin ld has some visibility support.
24050 gcc_cv_ld_hidden
=yes
24052 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24053 gcc_cv_ld_hidden
=yes
24056 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24057 # .symbolic was only added in Solaris 9 12/02.
24058 gcc_cv_ld_hidden
=yes
24061 gcc_cv_ld_hidden
=no
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24068 $as_echo "$gcc_cv_ld_hidden" >&6; }
24069 libgcc_visibility
=no
24072 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24073 libgcc_visibility
=yes
24075 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24080 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24081 gcc_cv_ld_ro_rw_mix
=unknown
24082 if test $in_tree_ld = yes ; then
24083 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 \
24084 && test $in_tree_ld_is_elf = yes; then
24085 gcc_cv_ld_ro_rw_mix
=read-write
24087 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24088 echo '.section myfoosect, "a"' > conftest1.s
24089 echo '.section myfoosect, "aw"' > conftest2.s
24090 echo '.byte 1' >> conftest2.s
24091 echo '.section myfoosect, "a"' > conftest3.s
24092 echo '.byte 0' >> conftest3.s
24093 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24094 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24095 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
24096 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24097 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24098 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24099 | sed -e '/myfoosect/!d' -e N`
24100 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24101 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24102 gcc_cv_ld_ro_rw_mix
=read-only
24104 gcc_cv_ld_ro_rw_mix
=read-write
24108 rm -f conftest.
* conftest
[123].
*
24110 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24112 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24116 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24118 # Check whether --enable-initfini-array was given.
24119 if test "${enable_initfini_array+set}" = set; then :
24120 enableval
=$enable_initfini_array;
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24124 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24125 if ${gcc_cv_initfini_array+:} false
; then :
24126 $as_echo_n "(cached) " >&6
24128 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24129 case "${target}" in
24131 if test "$cross_compiling" = yes; then :
24132 gcc_cv_initfini_array
=no
24134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24135 /* end confdefs.h. */
24138 #error Not an ELF OS
24140 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24141 if it can be used. */
24143 int main (void) { return x; }
24144 int foo (void) { x = 0; }
24145 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24148 if ac_fn_cxx_try_run
"$LINENO"; then :
24149 gcc_cv_initfini_array
=yes
24151 gcc_cv_initfini_array
=no
24153 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24154 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24158 gcc_cv_initfini_array
=no
24159 if test $in_tree_ld = yes ; then
24160 if test "$gcc_cv_gld_major_version" -eq 2 \
24161 -a "$gcc_cv_gld_minor_version" -ge 22 \
24162 -o "$gcc_cv_gld_major_version" -gt 2 \
24163 && test $in_tree_ld_is_elf = yes; then
24164 gcc_cv_initfini_array
=yes
24166 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24167 case $target:$gas in
24170 sh_type
='%progbits'
24172 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24174 sh_type
='@progbits'
24176 sparc
*-*-solaris2*:no
)
24178 sh_type
='#progbits'
24182 case "$target:$gnu_ld" in
24184 cat > conftest.s
<<EOF
24185 .section .dtors,$sh_flags,$sh_type
24187 .byte 'A', 'A', 'A', 'A'
24188 .section .ctors,$sh_flags,$sh_type
24190 .byte 'B', 'B', 'B', 'B'
24191 .section .fini_array.65530,$sh_flags,$sh_type
24193 .byte 'C', 'C', 'C', 'C'
24194 .section .init_array.65530,$sh_flags,$sh_type
24196 .byte 'D', 'D', 'D', 'D'
24197 .section .dtors.64528,$sh_flags,$sh_type
24199 .byte 'E', 'E', 'E', 'E'
24200 .section .ctors.64528,$sh_flags,$sh_type
24202 .byte 'F', 'F', 'F', 'F'
24203 .section .fini_array.01005,$sh_flags,$sh_type
24205 .byte 'G', 'G', 'G', 'G'
24206 .section .init_array.01005,$sh_flags,$sh_type
24208 .byte 'H', 'H', 'H', 'H'
24213 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24214 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24215 && $gcc_cv_objdump -s -j .init_array conftest \
24216 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24217 && $gcc_cv_objdump -s -j .fini_array conftest \
24218 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24219 gcc_cv_initfini_array
=yes
24223 # When Solaris ld added constructor priority support, it was
24224 # decided to only handle .init_array.N/.fini_array.N since
24225 # there was no need for backwards compatibility with
24226 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24227 # sections with correct execution order resp. to
24228 # .init_array/.fini_array, while gld merges them into
24229 # .init_array/.fini_array.
24230 cat > conftest.s
<<EOF
24231 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24233 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24234 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24236 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24237 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24239 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24240 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24242 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24247 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24248 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24249 && $gcc_cv_objdump -s -j .init_array conftest \
24250 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24251 && $gcc_cv_objdump -s -j .fini_array conftest \
24252 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24253 gcc_cv_initfini_array
=yes
24257 rm -f conftest conftest.
*
24259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24260 /* end confdefs.h. */
24263 # error Not an ELF OS
24265 #include <stdlib.h>
24266 #if defined __GLIBC_PREREQ
24267 # if __GLIBC_PREREQ (2, 4)
24269 # error GLIBC 2.4 required
24272 # if defined __sun__ && defined __svr4__
24273 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24275 # error The C library not known to support .init_array/.fini_array
24280 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24283 gcc_cv_initfini_array
=no
24285 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24288 case "${target}" in
24289 aarch64
*-linux-gnu*)
24290 # AArch64 postdates glibc support for .init_array/.fini_array,
24291 # so we don't need the preprocessor test above.
24292 gcc_cv_initfini_array
=yes
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24297 $as_echo_n "checking cross compile... guessing... " >&6; }
24298 gcc_cv_initfini_array
=no
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24304 $as_echo "$gcc_cv_initfini_array" >&6; }
24305 enable_initfini_array
=$gcc_cv_initfini_array
24310 cat >>confdefs.h
<<_ACEOF
24311 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24316 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24317 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24318 # these directives, even when they appear to accept them.
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24320 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24321 if ${gcc_cv_as_leb128+:} false
; then :
24322 $as_echo_n "(cached) " >&6
24324 gcc_cv_as_leb128
=no
24325 if test $in_tree_gas = yes; then
24326 if test $in_tree_gas_is_elf = yes \
24327 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24328 then gcc_cv_as_leb128
=yes
24330 elif test x
$gcc_cv_as != x
; then
24337 .uleb128 0x8000000000000000
24339 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24341 (eval $ac_try) 2>&5
24343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24344 test $ac_status = 0; }; }
24347 if test "x$gcc_cv_objdump" != x
; then
24348 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24349 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24350 gcc_cv_as_leb128
=yes
24352 elif test "x$gcc_cv_otool" != x
; then
24353 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24354 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24355 gcc_cv_as_leb128
=yes
24358 # play safe, assume the assembler is broken.
24363 echo "configure: failed program was" >&5
24366 rm -f conftest.o conftest.s
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24370 $as_echo "$gcc_cv_as_leb128" >&6; }
24371 if test $gcc_cv_as_leb128 = yes; then
24373 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24376 if test $gcc_cv_as_leb128 != yes; then
24378 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24382 # Determine if an .eh_frame section is read-only.
24383 gcc_fn_eh_frame_ro
() {
24384 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24385 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24386 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24389 # Check if we have assembler support for unwind directives.
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24391 $as_echo_n "checking assembler for cfi directives... " >&6; }
24392 if ${gcc_cv_as_cfi_directive+:} false
; then :
24393 $as_echo_n "(cached) " >&6
24395 gcc_cv_as_cfi_directive
=no
24396 if test x
$gcc_cv_as != x
; then
24402 .cfi_escape 1, 2, 3, 4, 5
24403 .cfi_endproc' > conftest.s
24404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24406 (eval $ac_try) 2>&5
24408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24409 test $ac_status = 0; }; }
24413 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24414 # read-only and read-write sections, we need to make sure that the
24415 # assembler used emits read-write .eh_frame sections.
24416 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24417 gcc_cv_as_cfi_directive
=yes
24418 elif test "x$gcc_cv_objdump" = x
; then
24419 # No objdump, err on the side of caution.
24420 gcc_cv_as_cfi_directive
=no
24422 if test x
$gas = xyes
; then
24430 sparc
*-*-solaris2.
*)
24431 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24432 if gcc_fn_eh_frame_ro
$as_32_opt \
24433 || gcc_fn_eh_frame_ro
$as_64_opt; then
24434 gcc_cv_as_cfi_directive
=no
24436 gcc_cv_as_cfi_directive
=yes
24439 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24440 # On Solaris/x86, make sure that GCC and assembler agree on using
24441 # read-only .eh_frame sections for 64-bit.
24442 if gcc_fn_eh_frame_ro
$as_32_opt; then
24443 gcc_cv_as_cfi_directive
=no
24444 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24445 gcc_cv_as_cfi_directive
=yes
24447 gcc_cv_as_cfi_directive
=no
24454 gcc_cv_as_cfi_directive
=yes
24458 echo "configure: failed program was" >&5
24461 rm -f conftest.o conftest.s
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24465 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24468 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24470 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24471 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24472 $as_echo_n "(cached) " >&6
24474 gcc_cv_as_cfi_advance_working
=no
24475 if test x
$gcc_cv_as != x
; then
24478 .cfi_adjust_cfa_offset 64
24480 .cfi_adjust_cfa_offset 128
24481 .cfi_endproc' > conftest.s
24482 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24484 (eval $ac_try) 2>&5
24486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24487 test $ac_status = 0; }; }
24490 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24491 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24492 gcc_cv_as_cfi_advance_working
=yes
24496 echo "configure: failed program was" >&5
24499 rm -f conftest.o conftest.s
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24503 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24507 # no objdump, err on the side of caution
24508 gcc_cv_as_cfi_advance_working
=no
24512 cat >>confdefs.h
<<_ACEOF
24513 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24514 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24520 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24521 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24522 $as_echo_n "(cached) " >&6
24524 gcc_cv_as_cfi_personality_directive
=no
24525 if test x
$gcc_cv_as != x
; then
24528 .cfi_personality 0, symbol
24529 .cfi_endproc' > conftest.s
24530 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24532 (eval $ac_try) 2>&5
24534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24535 test $ac_status = 0; }; }
24537 gcc_cv_as_cfi_personality_directive
=yes
24539 echo "configure: failed program was" >&5
24542 rm -f conftest.o conftest.s
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24546 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24550 cat >>confdefs.h
<<_ACEOF
24551 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24556 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24557 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24558 $as_echo_n "(cached) " >&6
24560 gcc_cv_as_cfi_sections_directive
=no
24561 if test x
$gcc_cv_as != x
; then
24563 .cfi_sections .debug_frame, .eh_frame
24565 .cfi_endproc' > conftest.s
24566 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24568 (eval $ac_try) 2>&5
24570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24571 test $ac_status = 0; }; }
24574 win32 | pe | cygwin
* | mingw32
*)
24575 # Need to check that we generated the correct relocation for the
24576 # .debug_frame section. This was fixed for binutils 2.21.
24577 gcc_cv_as_cfi_sections_directive
=no
24578 if test "x$gcc_cv_objdump" != x
; then
24579 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24580 grep secrel
> /dev
/null
; then
24581 gcc_cv_as_cfi_sections_directive
=yes
24586 gcc_cv_as_cfi_sections_directive
=yes
24590 echo "configure: failed program was" >&5
24593 rm -f conftest.o conftest.s
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24597 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24602 cat >>confdefs.h
<<_ACEOF
24603 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24607 # GAS versions up to and including 2.11.0 may mis-optimize
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24610 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24611 if ${gcc_cv_as_eh_frame+:} false
; then :
24612 $as_echo_n "(cached) " >&6
24614 gcc_cv_as_eh_frame
=no
24615 if test $in_tree_gas = yes; then
24616 if test $in_tree_gas_is_elf = yes \
24617 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24618 then gcc_cv_as_eh_frame
=yes
24620 elif test x
$gcc_cv_as != x
; then
24627 .section .eh_frame,"aw",@progbits
24629 .4byte .LECIE1-.LSCIE1
24643 .4byte .LEFDE1-.LASFDE1
24645 .4byte .LASFDE1-__FRAME_BEGIN__
24652 .LEFDE1:' > conftest.s
24653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24660 cat > conftest.lit
<<EOF
24661 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24662 0010 01000000 12000000 18000000 00000000 ................
24663 0020 08000000 04080000 0044 .........D
24665 cat > conftest.big
<<EOF
24666 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24667 0010 00000001 00000012 00000018 00000000 ................
24668 0020 00000008 04000000 0844 .........D
24670 # If the assembler didn't choke, and we can objdump,
24671 # and we got the correct data, then succeed.
24672 # The text in the here-document typically retains its unix-style line
24673 # endings, while the output of objdump will use host line endings.
24674 # Therefore, use diff -b for the comparisons.
24675 if test x
$gcc_cv_objdump != x \
24676 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24677 |
tail -3 > conftest.got \
24678 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24679 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24681 gcc_cv_as_eh_frame
=yes
24682 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; }; then
24688 gcc_cv_as_eh_frame
=buggy
24690 # Uh oh, what do we do now?
24691 gcc_cv_as_eh_frame
=no
24694 echo "configure: failed program was" >&5
24697 rm -f conftest.o conftest.s
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24701 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24705 if test $gcc_cv_as_eh_frame = buggy
; then
24707 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24711 # Test if the assembler supports the section flag 'e' or #exclude for
24712 # specifying an excluded section.
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24714 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24715 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24716 $as_echo_n "(cached) " >&6
24718 gcc_cv_as_section_exclude_e
=no
24719 if test $in_tree_gas = yes; then
24720 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24721 then gcc_cv_as_section_exclude_e
=yes
24723 elif test x
$gcc_cv_as != x
; then
24724 $as_echo '.section foo1,"e"
24725 .byte 0,0,0,0' > conftest.s
24726 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24733 gcc_cv_as_section_exclude_e
=yes
24735 echo "configure: failed program was" >&5
24738 rm -f conftest.o conftest.s
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24742 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24745 if test $gcc_cv_as_section_exclude_e = no
; then
24746 case "${target}" in
24747 # Solaris as uses #exclude instead.
24749 case "${target}" in
24750 sparc
*-*-solaris2*)
24751 conftest_s
='.section "foo1", #exclude'
24753 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24754 conftest_s
='.section foo1, #exclude'
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24760 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24761 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24762 $as_echo_n "(cached) " >&6
24764 gcc_cv_as_section_exclude_hash
=no
24765 if test x
$gcc_cv_as != x
; then
24766 $as_echo "$conftest_s
24767 .byte 0,0,0,0" > conftest.s
24768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24770 (eval $ac_try) 2>&5
24772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24773 test $ac_status = 0; }; }
24775 gcc_cv_as_section_exclude_hash
=yes
24777 echo "configure: failed program was" >&5
24780 rm -f conftest.o conftest.s
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24784 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24789 cat >>confdefs.h
<<_ACEOF
24790 #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`
24794 # Test if the assembler supports the section flag 'R' for specifying
24795 # section with SHF_GNU_RETAIN.
24796 case "${target}" in
24797 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24798 # assembler supports the section flag 'R', it doesn't mean that
24799 # Solairs ld supports it.
24801 gcc_cv_as_shf_gnu_retain
=no
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24805 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24806 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
24807 $as_echo_n "(cached) " >&6
24809 gcc_cv_as_shf_gnu_retain
=no
24810 if test $in_tree_gas = yes; then
24811 if test $in_tree_gas_is_elf = yes \
24812 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
24813 then gcc_cv_as_shf_gnu_retain
=yes
24815 elif test x
$gcc_cv_as != x
; then
24816 $as_echo '.section .foo,"awR",%progbits
24817 .byte 0' > conftest.s
24818 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24820 (eval $ac_try) 2>&5
24822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24823 test $ac_status = 0; }; }
24825 gcc_cv_as_shf_gnu_retain
=yes
24827 echo "configure: failed program was" >&5
24830 rm -f conftest.o conftest.s
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24834 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24840 cat >>confdefs.h
<<_ACEOF
24841 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24845 # Test if the assembler supports the section flag 'o' for specifying
24846 # section with link-order.
24847 case "${target}" in
24848 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24849 # assembler supports the section flag 'o', it doesn't mean that
24850 # Solairs ld supports it.
24852 gcc_cv_as_section_link_order
=no
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24856 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24857 if ${gcc_cv_as_section_link_order+:} false
; then :
24858 $as_echo_n "(cached) " >&6
24860 gcc_cv_as_section_link_order
=no
24861 if test $in_tree_gas = yes; then
24862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 35 \) \* 1000 + 0`
24863 then gcc_cv_as_section_link_order
=yes
24865 elif test x
$gcc_cv_as != x
; then
24866 $as_echo '.section .foo,"a"
24868 .section __patchable_function_entries,"awo",%progbits,.foo
24869 .byte 0' > conftest.s
24870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24872 (eval $ac_try) 2>&5
24874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24875 test $ac_status = 0; }; }
24877 gcc_cv_as_section_link_order
=yes
24879 echo "configure: failed program was" >&5
24882 rm -f conftest.o conftest.s
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24886 $as_echo "$gcc_cv_as_section_link_order" >&6; }
24892 cat >>confdefs.h
<<_ACEOF
24893 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24898 $as_echo_n "checking assembler for section merging support... " >&6; }
24899 if ${gcc_cv_as_shf_merge+:} false
; then :
24900 $as_echo_n "(cached) " >&6
24902 gcc_cv_as_shf_merge
=no
24903 if test $in_tree_gas = yes; then
24904 if test $in_tree_gas_is_elf = yes \
24905 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24906 then gcc_cv_as_shf_merge
=yes
24908 elif test x
$gcc_cv_as != x
; then
24909 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24910 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24912 (eval $ac_try) 2>&5
24914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24915 test $ac_status = 0; }; }
24917 gcc_cv_as_shf_merge
=yes
24919 echo "configure: failed program was" >&5
24922 rm -f conftest.o conftest.s
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24926 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24929 if test $gcc_cv_as_shf_merge = no
; then
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24931 $as_echo_n "checking assembler for section merging support... " >&6; }
24932 if ${gcc_cv_as_shf_merge+:} false
; then :
24933 $as_echo_n "(cached) " >&6
24935 gcc_cv_as_shf_merge
=no
24936 if test $in_tree_gas = yes; then
24937 if test $in_tree_gas_is_elf = yes \
24938 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24939 then gcc_cv_as_shf_merge
=yes
24941 elif test x
$gcc_cv_as != x
; then
24942 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24943 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24945 (eval $ac_try) 2>&5
24947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24948 test $ac_status = 0; }; }
24950 gcc_cv_as_shf_merge
=yes
24952 echo "configure: failed program was" >&5
24955 rm -f conftest.o conftest.s
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24959 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24964 cat >>confdefs.h
<<_ACEOF
24965 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24969 gcc_cv_ld_aligned_shf_merge
=yes
24971 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24973 sparc
*-*-solaris2.11
*)
24974 if test x
"$gnu_ld" = xno \
24975 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24976 gcc_cv_ld_aligned_shf_merge
=no
24981 cat >>confdefs.h
<<_ACEOF
24982 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24987 $as_echo_n "checking assembler for stabs directive... " >&6; }
24988 if ${gcc_cv_as_stabs_directive+:} false
; then :
24989 $as_echo_n "(cached) " >&6
24991 gcc_cv_as_stabs_directive
=no
24992 if test x
$gcc_cv_as != x
; then
24993 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24994 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24996 (eval $ac_try) 2>&5
24998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24999 test $ac_status = 0; }; }
25001 gcc_cv_as_stabs_directive
=yes
25003 echo "configure: failed program was" >&5
25006 rm -f conftest.o conftest.s
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
25010 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
25011 if test $gcc_cv_as_stabs_directive = yes; then
25013 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25019 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25020 if ${gcc_cv_as_comdat_group+:} false
; then :
25021 $as_echo_n "(cached) " >&6
25023 gcc_cv_as_comdat_group
=no
25024 if test $in_tree_gas = yes; then
25025 if test $in_tree_gas_is_elf = yes \
25026 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25027 then gcc_cv_as_comdat_group
=yes
25029 elif test x
$gcc_cv_as != x
; then
25030 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25031 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25033 (eval $ac_try) 2>&5
25035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25036 test $ac_status = 0; }; }
25038 gcc_cv_as_comdat_group
=yes
25040 echo "configure: failed program was" >&5
25043 rm -f conftest.o conftest.s
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25047 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25050 if test $gcc_cv_as_comdat_group = yes; then
25051 gcc_cv_as_comdat_group_percent
=no
25052 gcc_cv_as_comdat_group_group
=no
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25055 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25056 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25057 $as_echo_n "(cached) " >&6
25059 gcc_cv_as_comdat_group_percent
=no
25060 if test $in_tree_gas = yes; then
25061 if test $in_tree_gas_is_elf = yes \
25062 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25063 then gcc_cv_as_comdat_group_percent
=yes
25065 elif test x
$gcc_cv_as != x
; then
25066 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25067 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25069 (eval $ac_try) 2>&5
25071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25072 test $ac_status = 0; }; }
25074 gcc_cv_as_comdat_group_percent
=yes
25076 echo "configure: failed program was" >&5
25079 rm -f conftest.o conftest.s
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25083 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25086 if test $gcc_cv_as_comdat_group_percent = yes; then
25087 gcc_cv_as_comdat_group_group
=no
25089 case "${target}" in
25090 # Sun as uses a completely different syntax.
25092 case "${target}" in
25093 sparc
*-*-solaris2*)
25095 .group foo,".text%foo",#comdat
25096 .section ".text%foo", #alloc,#execinstr,#progbits
25101 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25103 .group foo,.text%foo,#comdat
25104 .section .text%foo, "ax", @progbits
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25111 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25112 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25113 $as_echo_n "(cached) " >&6
25115 gcc_cv_as_comdat_group_group
=no
25116 if test x
$gcc_cv_as != x
; then
25117 $as_echo "$conftest_s" > conftest.s
25118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120 (eval $ac_try) 2>&5
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; }; }
25125 gcc_cv_as_comdat_group_group
=yes
25127 echo "configure: failed program was" >&5
25130 rm -f conftest.o conftest.s
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25134 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25139 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25140 gcc_cv_as_comdat_group_group
=no
25144 if test x
"$ld_is_gold" = xyes
; then
25146 elif test $in_tree_ld = yes ; then
25148 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 \
25149 && test $in_tree_ld_is_elf = yes; then
25152 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25154 if test 0"$ld_date" -lt 20050308; then
25155 if test -n "$ld_date"; then
25156 # If there was date string, but was earlier than 2005-03-08, fail
25158 elif test "$ld_vers_major" -lt 2; then
25160 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25165 case "${target}" in
25166 *-*-solaris2.1
[1-9]*)
25168 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25169 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25172 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25173 # least ld version 1.2267.
25174 if test "$ld_vers_major" -gt 1; then
25176 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25178 elif test "$ld_vers_minor" -ge 2267; then
25183 # Assume linkers other than GNU ld don't support COMDAT group.
25188 # Allow overriding the automatic COMDAT group tests above.
25189 # Check whether --enable-comdat was given.
25190 if test "${enable_comdat+set}" = set; then :
25191 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25194 if test $comdat_group = no
; then
25195 gcc_cv_as_comdat_group
=no
25196 gcc_cv_as_comdat_group_percent
=no
25197 gcc_cv_as_comdat_group_group
=no
25200 cat >>confdefs.h
<<_ACEOF
25201 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25202 || test $gcc_cv_as_comdat_group_percent = yes \
25203 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25207 # Restrict this test to Solaris/x86: other targets define this statically.
25208 case "${target}" in
25209 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25211 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25212 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25213 hidden_linkonce
=yes
25215 case "${target}" in
25216 # Full support for hidden thunks in linkonce sections only appeared in
25217 # Solaris 11/OpenSolaris.
25218 *-*-solaris2.1
[1-9]*)
25219 hidden_linkonce
=yes
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25227 $as_echo "$hidden_linkonce" >&6; }
25229 cat >>confdefs.h
<<_ACEOF
25230 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25237 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25238 if ${gcc_cv_as_is_stmt+:} false
; then :
25239 $as_echo_n "(cached) " >&6
25241 gcc_cv_as_is_stmt
=no
25242 if test $in_tree_gas = yes; then
25243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
25244 then gcc_cv_as_is_stmt
=yes
25246 elif test x
$gcc_cv_as != x
; then
25249 .loc 1 1 0 is_stmt 1' > conftest.s
25250 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25252 (eval $ac_try) 2>&5
25254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25255 test $ac_status = 0; }; }
25257 gcc_cv_as_is_stmt
=yes
25259 echo "configure: failed program was" >&5
25262 rm -f conftest.o conftest.s
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25266 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25267 if test $gcc_cv_as_is_stmt = yes; then
25269 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25275 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25276 if ${gcc_cv_as_discriminator+:} false
; then :
25277 $as_echo_n "(cached) " >&6
25279 gcc_cv_as_discriminator
=no
25280 if test $in_tree_gas = yes; then
25281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
25282 then gcc_cv_as_discriminator
=yes
25284 elif test x
$gcc_cv_as != x
; then
25287 .loc 1 1 0 discriminator 1' > conftest.s
25288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25290 (eval $ac_try) 2>&5
25292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25293 test $ac_status = 0; }; }
25295 gcc_cv_as_discriminator
=yes
25297 echo "configure: failed program was" >&5
25300 rm -f conftest.o conftest.s
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25304 $as_echo "$gcc_cv_as_discriminator" >&6; }
25305 if test $gcc_cv_as_discriminator = yes; then
25307 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25312 # Catch the newlib flag of the same name so we can gate GCC features on it.
25313 # Check whether --enable-newlib-nano-formatted-io was given.
25314 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25315 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25319 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25325 # Thread-local storage - the check is heavily parameterized.
25333 .section ".tdata","awT",@progbits
25336 ldq $27,__tls_get_addr($29) !literal!1
25337 lda $16,foo($29) !tlsgd!1
25338 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25339 ldq $27,__tls_get_addr($29) !literal!2
25340 lda $16,foo($29) !tlsldm!2
25341 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25342 ldq $1,foo($29) !gotdtprel
25343 ldah $2,foo($29) !dtprelhi
25344 lda $3,foo($2) !dtprello
25345 lda $4,foo($29) !dtprel
25346 ldq $1,foo($29) !gottprel
25347 ldah $2,foo($29) !tprelhi
25348 lda $3,foo($2) !tprello
25349 lda $4,foo($29) !tprel'
25352 tls_as_opt
=--fatal-warnings
25356 add_s r0,r0, @foo@tpoff'
25360 cris-
*-*|crisv32-
*-*)
25362 .section ".tdata","awT",@progbits
25369 tls_as_opt
=--fatal-warnings
25373 .section ".tdata","awT",@progbits
25376 call #gettlsoff(x)'
25385 .section ".tdata","awT",@progbits
25389 addil LT%foo-$tls_gdidx$,gp
25390 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25393 addil LT%foo-$tls_ldidx$,gp
25395 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25396 addil LR%foo-$tls_dtpoff$,%ret0
25397 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25399 addil LT%foo-$tls_ieoff$,gp
25400 ldw RT%foo-$tls_ieoff$(%r1),%t2
25403 addil LR%foo-$tls_leoff$,%t1
25404 ldo RR%foo-$tls_leoff$(%r1),%t2'
25407 tls_as_opt
=--fatal-warnings
25411 .section ".tdata","awT",%progbits
25414 .word foo(gottpoff)
25422 i
[34567]86-*-* | x86_64-
*-*)
25424 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25431 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25433 .section .tdata,"awt",@progbits'
25438 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25442 .section ".tdata","awT",@progbits'
25446 tls_as_opt
="--fatal-warnings"
25450 if test x
$on_solaris = xyes
; then
25452 yes) tls_as_opt
="$tls_as_opt --32" ;;
25455 conftest_s
="$conftest_s
25459 leal foo@tlsgd(,%ebx,1), %eax
25460 leal foo@tlsldm(%ebx), %eax
25461 leal foo@dtpoff(%eax), %edx
25462 movl foo@gottpoff(%ebx), %eax
25463 subl foo@gottpoff(%ebx), %eax
25464 addl foo@gotntpoff(%ebx), %eax
25465 movl foo@indntpoff, %eax
25466 movl \$foo@tpoff, %eax
25467 subl \$foo@tpoff, %eax
25468 leal foo@ntpoff(%ecx), %eax"
25471 if test x
$on_solaris = xyes
; then
25473 yes) tls_as_opt
="$tls_as_opt --64" ;;
25474 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25477 conftest_s
="$conftest_s
25481 leaq foo@tlsgd(%rip), %rdi
25482 leaq foo@tlsld(%rip), %rdi
25483 leaq foo@dtpoff(%rax), %rdx
25484 movq foo@gottpoff(%rip), %rax
25485 movq \$foo@tpoff, %rax"
25491 .section ".tdata","awT",@progbits
25494 addl r16 = @ltoff(@dtpmod(foo#)), gp
25495 addl r17 = @ltoff(@dtprel(foo#)), gp
25496 addl r18 = @ltoff(@tprel(foo#)), gp
25497 addl r19 = @dtprel(foo#), gp
25498 adds r21 = @dtprel(foo#), r13
25499 movl r23 = @dtprel(foo#)
25500 addl r20 = @tprel(foo#), gp
25501 adds r22 = @tprel(foo#), r13
25502 movl r24 = @tprel(foo#)'
25505 tls_as_opt
=--fatal-warnings
25509 .section .tdata,"awT",@progbits
25513 addik r5,r20,x@TLSGD
25514 addik r5,r20,x@TLSLDM'
25517 tls_as_opt
='--fatal-warnings'
25521 .section .tdata,"awT",@progbits
25525 addiu $4, $28, %tlsgd(x)
25526 addiu $4, $28, %tlsldm(x)
25527 lui $4, %dtprel_hi(x)
25528 addiu $4, $4, %dtprel_lo(x)
25529 lw $4, %gottprel(x)($28)
25530 lui $4, %tprel_hi(x)
25531 addiu $4, $4, %tprel_lo(x)'
25534 tls_as_opt
='-32 --fatal-warnings'
25538 .section .tdata,"awT",@progbits
25543 move.l x@TLSGD(%a5),%a0
25544 move.l x@TLSLDM(%a5),%a0
25545 move.l x@TLSLDO(%a5),%a0
25546 move.l x@TLSIE(%a5),%a0
25547 move.l x@TLSLE(%a5),%a0'
25550 tls_as_opt
='--fatal-warnings'
25554 .section ".tdata","awT",@progbits'
25557 tls_as_opt
="--fatal-warnings"
25561 .section ".tdata","awT",%progbits
25565 add x0, x0, #:tlsgd_lo12:x
25570 tls_as_opt
='--fatal-warnings'
25574 .section ".tdata","awT",@progbits
25577 l.movhi r3, tpoffha(foo)
25579 l.lwz r4, tpofflo(foo)(r3)'
25582 tls_as_opt
=--fatal-warnings
25586 .extern __get_tpointer
25604 .section ".tdata","awT",@progbits
25612 addi 3,2,ld0@got@tlsgd
25618 addi 3,2,x1@got@tlsld
25624 addis 9,3,x2@dtprel@ha
25625 addi 9,9,x2@dtprel@l
25628 ld 9,x3@got@dtprel(2)
25634 tls_as_opt
="-a64 --fatal-warnings"
25638 .section ".tdata","awT",@progbits
25646 addi 3,31,ld0@got@tlsgd
25648 addi 3,31,x1@got@tlsld
25651 addis 9,3,x2@dtprel@ha
25652 addi 9,9,x2@dtprel@l
25653 lwz 9,x3@got@tprel(31)
25656 addis 9,2,x2@tprel@ha
25657 addi 9,9,x2@tprel@l'
25660 tls_as_opt
="-a32 --fatal-warnings"
25664 .section .tdata,"awT",@progbits
25668 call __tls_get_addr'
25671 tls_as_opt
='--fatal-warnings'
25675 .section ".tdata","awT",@progbits
25682 .long foo@GOTNTPOFF
25683 .long foo@INDNTPOFF
25684 l %r1,foo@GOTNTPOFF(%r12)
25685 l %r1,0(%r1):tls_load:foo
25686 bas %r14,0(%r1,%r13):tls_gdcall:foo
25687 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25690 tls_as_opt
="-m31 --fatal-warnings"
25694 .section ".tdata","awT",@progbits
25701 .quad foo@GOTNTPOFF
25702 lg %r1,foo@GOTNTPOFF(%r12)
25703 larl %r1,foo@INDNTPOFF
25704 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25705 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25708 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25710 sh-
*-* | sh
[123456789lbe
]*-*-*)
25712 .section ".tdata","awT",@progbits
25722 tls_as_opt
=--fatal-warnings
25726 sparc
*-sun-solaris2.
*)
25733 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25735 .section ".tdata",#alloc,#write,#tls'
25740 .section ".tdata","awT",@progbits'
25743 tls_as_opt
="-32 --fatal-warnings"
25745 conftest_s
="$conftest_s
25748 sethi %tgd_hi22(foo), %o0
25749 add %o0, %tgd_lo10(foo), %o1
25750 add %l7, %o1, %o0, %tgd_add(foo)
25751 call __tls_get_addr, %tgd_call(foo)
25752 sethi %tldm_hi22(foo), %l1
25753 add %l1, %tldm_lo10(foo), %l2
25754 add %l7, %l2, %o0, %tldm_add(foo)
25755 call __tls_get_addr, %tldm_call(foo)
25756 sethi %tldo_hix22(foo), %l3
25757 xor %l3, %tldo_lox10(foo), %l4
25758 add %o0, %l4, %l5, %tldo_add(foo)
25759 sethi %tie_hi22(foo), %o3
25760 add %o3, %tie_lo10(foo), %o3
25761 ld [%l7 + %o3], %o2, %tie_ld(foo)
25762 add %g7, %o2, %o4, %tie_add(foo)
25763 sethi %tle_hix22(foo), %l1
25764 xor %l1, %tle_lox10(foo), %o5
25765 ld [%g7 + %o5], %o1"
25769 .section ".tdata","awT",@progbits
25772 addli r0, zero, tls_gd(foo)
25773 auli r0, zero, tls_gd_ha16(foo)
25774 addli r0, r0, tls_gd_lo16(foo)
25776 addli r0, zero, tls_ie(foo)
25777 auli r0, r0, tls_ie_ha16(foo)
25778 addli r0, r0, tls_ie_lo16(foo)'
25781 tls_as_opt
="--fatal-warnings"
25785 .section ".tdata","awT",@progbits
25788 shl16insli r0, zero, hw0_last_tls_gd(foo)
25789 shl16insli r0, zero, hw1_last_tls_gd(foo)
25790 shl16insli r0, r0, hw0_tls_gd(foo)
25792 shl16insli r0, zero, hw1_last_tls_ie(foo)
25793 shl16insli r0, r0, hw0_tls_ie(foo)'
25796 tls_as_opt
="--fatal-warnings"
25800 .section ".tdata","awT",@progbits
25803 movi a8, foo@TLSFUNC
25804 movi a10, foo@TLSARG
25805 callx8.tls a8, foo@TLSCALL'
25811 if test "x$enable_tls" = xno
; then
25812 : # TLS explicitly disabled.
25813 elif test "x$enable_tls" = xyes
; then
25814 set_have_as_tls
=yes # TLS explicitly enabled.
25815 elif test -z "$tls_first_major"; then
25816 : # If we don't have a check, assume no support.
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25819 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25820 if ${gcc_cv_as_tls+:} false
; then :
25821 $as_echo_n "(cached) " >&6
25824 if test $in_tree_gas = yes; then
25825 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25826 then gcc_cv_as_tls
=yes
25828 elif test x
$gcc_cv_as != x
; then
25829 $as_echo "$conftest_s" > conftest.s
25830 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25832 (eval $ac_try) 2>&5
25834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25835 test $ac_status = 0; }; }
25839 echo "configure: failed program was" >&5
25842 rm -f conftest.o conftest.s
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25846 $as_echo "$gcc_cv_as_tls" >&6; }
25847 if test $gcc_cv_as_tls = yes; then
25848 set_have_as_tls
=yes
25852 if test $set_have_as_tls = yes ; then
25854 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25858 # Target-specific assembler checks.
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25861 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25862 gcc_cv_ld_static_dynamic
=no
25863 gcc_cv_ld_static_option
='-Bstatic'
25864 gcc_cv_ld_dynamic_option
='-Bdynamic'
25865 if test $in_tree_ld = yes ; then
25866 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
25867 gcc_cv_ld_static_dynamic
=yes
25869 elif test x
$gcc_cv_ld != x
; then
25870 # Check if linker supports -Bstatic/-Bdynamic option
25871 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25872 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25873 gcc_cv_ld_static_dynamic
=yes
25876 # AIX ld uses -b flags
25877 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25878 gcc_cv_ld_static_dynamic
=yes
25879 gcc_cv_ld_static_option
="-bstatic"
25880 gcc_cv_ld_dynamic_option
="-bdynamic"
25882 # HP-UX ld uses -a flags to select between shared and archive.
25884 if test x
"$gnu_ld" = xno
; then
25885 gcc_cv_ld_static_dynamic
=yes
25886 gcc_cv_ld_static_option
="-aarchive_shared"
25887 gcc_cv_ld_dynamic_option
="-adefault"
25890 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25892 gcc_cv_ld_static_dynamic
=yes
25897 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25899 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25902 cat >>confdefs.h
<<_ACEOF
25903 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25907 cat >>confdefs.h
<<_ACEOF
25908 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25913 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25916 $as_echo_n "checking linker --version-script option... " >&6; }
25917 gcc_cv_ld_version_script
=no
25918 ld_version_script_option
=''
25919 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25920 gcc_cv_ld_version_script
=yes
25921 ld_version_script_option
='--version-script'
25922 elif test x
$gcc_cv_ld != x
; then
25924 # Solaris 2 ld always supports -M. It also supports a subset of
25925 # --version-script since Solaris 11.4, but requires
25926 # -z gnu-version-script-compat to activate.
25928 gcc_cv_ld_version_script
=yes
25929 ld_version_script_option
='-M'
25933 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25935 $as_echo "$gcc_cv_ld_version_script" >&6; }
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25939 $as_echo_n "checking linker soname option... " >&6; }
25940 gcc_cv_ld_soname
=no
25941 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25942 gcc_cv_ld_soname
=yes
25943 ld_soname_option
='-soname'
25944 elif test x
$gcc_cv_ld != x
; then
25947 gcc_cv_ld_soname
=yes
25948 ld_soname_option
='-install_name'
25950 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25951 # ld compatiblity since some Solaris 10 update.
25953 gcc_cv_ld_soname
=yes
25954 ld_soname_option
='-h'
25958 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25960 $as_echo "$gcc_cv_ld_soname" >&6; }
25963 if test x
"$demangler_in_ld" = xyes
; then
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25965 $as_echo_n "checking linker --demangle support... " >&6; }
25966 gcc_cv_ld_demangle
=no
25967 if test $in_tree_ld = yes; then
25968 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 \
25969 gcc_cv_ld_demangle
=yes
25971 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25972 # Check if the GNU linker supports --demangle option
25973 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25974 gcc_cv_ld_demangle
=yes
25977 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25979 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25983 $as_echo "$gcc_cv_ld_demangle" >&6; }
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25987 $as_echo_n "checking linker plugin support... " >&6; }
25988 gcc_cv_lto_plugin
=0
25989 if test -f liblto_plugin.la
; then
25990 save_ld_ver
="$ld_ver"
25991 save_ld_vers_major
="$ld_vers_major"
25992 save_ld_vers_minor
="$ld_vers_minor"
25993 save_ld_is_gold
="$ld_is_gold"
25997 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25999 # FIXME: ld_is_gold?
26000 ld_vers_major
="$gcc_cv_gld_major_version"
26001 ld_vers_minor
="$gcc_cv_gld_minor_version"
26003 # Determine plugin linker version.
26004 # FIXME: Partial duplicate from above, generalize.
26005 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26006 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26007 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26009 ld_vers
=`echo $ld_ver | sed -n \
26010 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26012 ld_vers
=`echo $ld_ver | sed -n \
26013 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26015 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26016 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26020 # Determine plugin support.
26021 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26022 # Require GNU ld or gold 2.21+ for plugin support by default.
26023 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26024 gcc_cv_lto_plugin
=2
26025 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26026 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26027 gcc_cv_lto_plugin
=1
26031 ld_ver
="$save_ld_ver"
26032 ld_vers_major
="$save_ld_vers_major"
26033 ld_vers_minor
="$save_ld_vers_minor"
26034 ld_is_gold
="$save_ld_is_gold"
26037 cat >>confdefs.h
<<_ACEOF
26038 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26042 $as_echo "$gcc_cv_lto_plugin" >&6; }
26044 # Target OS-specific assembler checks.
26046 case "$target_os" in
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26049 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26050 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26051 $as_echo_n "(cached) " >&6
26053 gcc_cv_as_mmacosx_version_min
=no
26054 if test x
$gcc_cv_as != x
; then
26055 $as_echo '.text' > conftest.s
26056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26058 (eval $ac_try) 2>&5
26060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26061 test $ac_status = 0; }; }
26063 gcc_cv_as_mmacosx_version_min
=yes
26065 echo "configure: failed program was" >&5
26068 rm -f conftest.o conftest.s
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26072 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26073 if test $gcc_cv_as_mmacosx_version_min = yes; then
26075 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26082 # Target CPU-specific assembler checks.
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26087 $as_echo_n "checking assembler for -mabi option... " >&6; }
26088 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26089 $as_echo_n "(cached) " >&6
26091 gcc_cv_as_aarch64_mabi
=no
26092 if test x
$gcc_cv_as != x
; then
26093 $as_echo '.text' > conftest.s
26094 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26096 (eval $ac_try) 2>&5
26098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26099 test $ac_status = 0; }; }
26101 gcc_cv_as_aarch64_mabi
=yes
26103 echo "configure: failed program was" >&5
26106 rm -f conftest.o conftest.s
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26110 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26113 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26115 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26118 if test x
$with_abi = xilp32
; then
26119 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26120 Upgrade the Assembler." "$LINENO" 5
26122 if test x
"$with_multilib_list" = xdefault
; then
26123 TM_MULTILIB_CONFIG
=lp64
26125 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26126 for aarch64_multilib
in ${aarch64_multilibs}; do
26127 case ${aarch64_multilib} in
26129 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26130 Upgrade the Assembler." "$LINENO" 5
26138 # Check if we have binutils support for relocations types needed by -fpic
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26140 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26141 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26142 $as_echo_n "(cached) " >&6
26144 gcc_cv_as_aarch64_picreloc
=no
26145 if test x
$gcc_cv_as != x
; then
26148 ldr x0, [x2, #:gotpage_lo15:globalsym]
26150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26152 (eval $ac_try) 2>&5
26154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26155 test $ac_status = 0; }; }
26157 gcc_cv_as_aarch64_picreloc
=yes
26159 echo "configure: failed program was" >&5
26162 rm -f conftest.o conftest.s
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26166 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26167 if test $gcc_cv_as_aarch64_picreloc = yes; then
26169 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26173 # Enable Branch Target Identification Mechanism and Return Address
26174 # Signing by default.
26175 # Check whether --enable-standard-branch-protection was given.
26176 if test "${enable_standard_branch_protection+set}" = set; then :
26177 enableval
=$enable_standard_branch_protection;
26180 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26185 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26186 Valid choices are 'yes' and 'no'." "$LINENO" 5
26192 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26193 # Check whether --enable-fix-cortex-a53-835769 was given.
26194 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26195 enableval
=$enable_fix_cortex_a53_835769;
26198 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26203 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26204 Valid choices are 'yes' and 'no'." "$LINENO" 5
26211 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26212 # Check whether --enable-fix-cortex-a53-843419 was given.
26213 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26214 enableval
=$enable_fix_cortex_a53_843419;
26217 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26222 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26223 Valid choices are 'yes' and 'no'." "$LINENO" 5
26232 # All TARGET_ABI_OSF targets.
26233 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26235 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26236 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26237 $as_echo_n "(cached) " >&6
26239 gcc_cv_as_alpha_explicit_relocs
=no
26240 if test $in_tree_gas = yes; then
26241 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
26242 then gcc_cv_as_alpha_explicit_relocs
=yes
26244 elif test x
$gcc_cv_as != x
; then
26245 $as_echo ' .set nomacro
26247 extbl $3, $2, $3 !lituse_bytoff!1
26248 ldq $2, a($29) !literal!1
26249 ldq $4, b($29) !literal!2
26250 ldq_u $3, 0($2) !lituse_base!1
26251 ldq $27, f($29) !literal!5
26252 jsr $26, ($27), f !lituse_jsr!5
26253 ldah $29, 0($26) !gpdisp!3
26254 lda $0, c($29) !gprel
26255 ldah $1, d($29) !gprelhigh
26256 lda $1, d($1) !gprellow
26257 lda $29, 0($29) !gpdisp!3' > conftest.s
26258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26260 (eval $ac_try) 2>&5
26262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26263 test $ac_status = 0; }; }
26265 gcc_cv_as_alpha_explicit_relocs
=yes
26267 echo "configure: failed program was" >&5
26270 rm -f conftest.o conftest.s
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26274 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26275 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26277 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26282 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26283 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26284 $as_echo_n "(cached) " >&6
26286 gcc_cv_as_alpha_jsrdirect_relocs
=no
26287 if test $in_tree_gas = yes; then
26288 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
26289 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
26291 elif test x
$gcc_cv_as != x
; then
26292 $as_echo ' .set nomacro
26294 ldq $27, a($29) !literal!1
26295 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26298 (eval $ac_try) 2>&5
26300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26301 test $ac_status = 0; }; }
26303 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26305 echo "configure: failed program was" >&5
26308 rm -f conftest.o conftest.s
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26312 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26313 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26315 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26323 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26324 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26325 $as_echo_n "(cached) " >&6
26327 gcc_cv_as_avr_mlink_relax
=no
26328 if test x
$gcc_cv_as != x
; then
26329 $as_echo '.text' > conftest.s
26330 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -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_avr_mlink_relax
=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_avr_mlink_relax" >&5
26346 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26347 if test $gcc_cv_as_avr_mlink_relax = yes; then
26349 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26355 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26356 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26357 $as_echo_n "(cached) " >&6
26359 gcc_cv_as_avr_mrmw
=no
26360 if test x
$gcc_cv_as != x
; then
26361 $as_echo '.text' > conftest.s
26362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -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_avr_mrmw
=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_avr_mrmw" >&5
26378 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26379 if test $gcc_cv_as_avr_mrmw = yes; then
26381 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26387 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26388 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26389 $as_echo_n "(cached) " >&6
26391 gcc_cv_as_avr_mgccisr
=no
26392 if test x
$gcc_cv_as != x
; then
26398 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26400 (eval $ac_try) 2>&5
26402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26403 test $ac_status = 0; }; }
26405 gcc_cv_as_avr_mgccisr
=yes
26407 echo "configure: failed program was" >&5
26410 rm -f conftest.o conftest.s
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26414 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26415 if test $gcc_cv_as_avr_mgccisr = yes; then
26417 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26422 # Check how default linker description file implements .rodata for
26423 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26424 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26426 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26427 cat > conftest.s
<<EOF
26428 .section .rodata,"a",@progbits
26430 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26435 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26441 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26443 (eval $ac_try) 2>&5
26445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26446 test $ac_status = 0; }; }
26447 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26449 (eval $ac_try) 2>&5
26451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26452 test $ac_status = 0; }; }
26453 if test -s conftest.nm
26455 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26457 $as_echo "yes" >&6; }
26459 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26463 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26464 echo "$as_me: nm output was" >&5
26465 cat conftest.nm
>&5
26466 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26467 { $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
26468 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26472 $as_echo "test failed" >&6; }
26473 echo "$as_me: failed program was" >&5
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26476 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26478 rm -f conftest.s conftest.o conftest.elf conftest.nm
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26483 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26484 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26485 $as_echo_n "(cached) " >&6
26487 gcc_cv_as_cris_no_mul_bug
=no
26488 if test $in_tree_gas = yes; then
26489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26490 then gcc_cv_as_cris_no_mul_bug
=yes
26492 elif test x
$gcc_cv_as != x
; then
26493 $as_echo '.text' > conftest.s
26494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -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_cris_no_mul_bug
=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_cris_no_mul_bug" >&5
26510 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26511 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26513 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26521 $as_echo_n "checking assembler for -relax option... " >&6; }
26522 if ${gcc_cv_as_sparc_relax+:} false
; then :
26523 $as_echo_n "(cached) " >&6
26525 gcc_cv_as_sparc_relax
=no
26526 if test x
$gcc_cv_as != x
; then
26527 $as_echo '.text' > conftest.s
26528 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26530 (eval $ac_try) 2>&5
26532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26533 test $ac_status = 0; }; }
26535 gcc_cv_as_sparc_relax
=yes
26537 echo "configure: failed program was" >&5
26540 rm -f conftest.o conftest.s
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26544 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26545 if test $gcc_cv_as_sparc_relax = yes; then
26547 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26553 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26554 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26555 $as_echo_n "(cached) " >&6
26557 gcc_cv_as_sparc_gotdata_op
=no
26558 if test x
$gcc_cv_as != x
; then
26564 sethi %gdop_hix22(foo), %g1
26565 xor %g1, %gdop_lox10(foo), %g1
26566 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26567 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26569 (eval $ac_try) 2>&5
26571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26572 test $ac_status = 0; }; }
26574 if test x
$gcc_cv_ld != x \
26575 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26576 if test x
$gcc_cv_objdump != x
; then
26577 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26578 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26579 gcc_cv_as_sparc_gotdata_op
=no
26581 gcc_cv_as_sparc_gotdata_op
=yes
26587 echo "configure: failed program was" >&5
26590 rm -f conftest.o conftest.s
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26594 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26595 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26597 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26603 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26604 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26605 $as_echo_n "(cached) " >&6
26607 gcc_cv_as_sparc_ua_pcrel
=no
26608 if test x
$gcc_cv_as != x
; then
26615 .uaword %r_disp32(foo)' > conftest.s
26616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26618 (eval $ac_try) 2>&5
26620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26621 test $ac_status = 0; }; }
26623 if test x
$gcc_cv_ld != x \
26624 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26625 gcc_cv_as_sparc_ua_pcrel
=yes
26629 echo "configure: failed program was" >&5
26632 rm -f conftest.o conftest.s
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26636 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26637 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26639 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26643 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26644 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26645 $as_echo_n "(cached) " >&6
26647 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26648 if test x
$gcc_cv_as != x
; then
26652 .uaword %r_disp32(foo)
26653 .byte 0x32, 0x33, 0x34
26657 .skip 4' > conftest.s
26658 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26660 (eval $ac_try) 2>&5
26662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26663 test $ac_status = 0; }; }
26665 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26666 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26667 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26668 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26669 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26670 |
grep 'DISP32' > /dev
/null
2>&1; then
26673 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26678 echo "configure: failed program was" >&5
26681 rm -f conftest.o conftest.s
26684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26685 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26686 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26688 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26694 # unaligned pcrel relocs
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26697 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26698 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26699 $as_echo_n "(cached) " >&6
26701 gcc_cv_as_sparc_offsetable_lo10
=no
26702 if test x
$gcc_cv_as != x
; then
26704 or %g1, %lo(ab) + 12, %g1
26705 or %g1, %lo(ab + 12), %g1' > conftest.s
26706 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26708 (eval $ac_try) 2>&5
26710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26711 test $ac_status = 0; }; }
26713 if test x
$gcc_cv_objdump != x \
26714 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26715 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26716 gcc_cv_as_sparc_offsetable_lo10
=yes
26719 echo "configure: failed program was" >&5
26722 rm -f conftest.o conftest.s
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26726 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26727 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26729 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26735 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26736 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26737 $as_echo_n "(cached) " >&6
26739 gcc_cv_as_sparc_fmaf
=no
26740 if test x
$gcc_cv_as != x
; then
26742 .register %g2, #scratch
26743 .register %g3, #scratch
26745 fmaddd %f0, %f2, %f4, %f6
26746 addxccc %g1, %g2, %g3
26747 fsrl32 %f2, %f4, %f8
26748 fnaddd %f10, %f12, %f14' > conftest.s
26749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26751 (eval $ac_try) 2>&5
26753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26754 test $ac_status = 0; }; }
26756 gcc_cv_as_sparc_fmaf
=yes
26758 echo "configure: failed program was" >&5
26761 rm -f conftest.o conftest.s
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26765 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26766 if test $gcc_cv_as_sparc_fmaf = yes; then
26768 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26774 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26775 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26776 $as_echo_n "(cached) " >&6
26778 gcc_cv_as_sparc_sparc4
=no
26779 if test x
$gcc_cv_as != x
; then
26781 .register %g2, #scratch
26782 .register %g3, #scratch
26785 1: cwbneg %g2, %g3, 1f
26788 aes_kexpand0 %f4, %f6, %f8
26789 des_round %f38, %f40, %f42, %f44
26790 camellia_f %f54, %f56, %f58, %f60
26791 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26792 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26794 (eval $ac_try) 2>&5
26796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26797 test $ac_status = 0; }; }
26799 gcc_cv_as_sparc_sparc4
=yes
26801 echo "configure: failed program was" >&5
26804 rm -f conftest.o conftest.s
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26808 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26809 if test $gcc_cv_as_sparc_sparc4 = yes; then
26811 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26817 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26818 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26819 $as_echo_n "(cached) " >&6
26821 gcc_cv_as_sparc_sparc5
=no
26822 if test x
$gcc_cv_as != x
; then
26824 .register %g2, #scratch
26825 .register %g3, #scratch
26827 subxc %g1, %g2, %g3
26828 fpadd8 %f0, %f2, %f4' > conftest.s
26829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26831 (eval $ac_try) 2>&5
26833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26834 test $ac_status = 0; }; }
26836 gcc_cv_as_sparc_sparc5
=yes
26838 echo "configure: failed program was" >&5
26841 rm -f conftest.o conftest.s
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26845 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26846 if test $gcc_cv_as_sparc_sparc5 = yes; then
26848 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26854 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26855 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26856 $as_echo_n "(cached) " >&6
26858 gcc_cv_as_sparc_sparc6
=no
26859 if test x
$gcc_cv_as != x
; then
26861 .register %g2, #scratch
26862 .register %g3, #scratch
26865 fpsll64x %f0, %f2, %f4' > conftest.s
26866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26868 (eval $ac_try) 2>&5
26870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26871 test $ac_status = 0; }; }
26873 gcc_cv_as_sparc_sparc6
=yes
26875 echo "configure: failed program was" >&5
26878 rm -f conftest.o conftest.s
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26882 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26883 if test $gcc_cv_as_sparc_sparc6 = yes; then
26885 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26891 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26892 if ${gcc_cv_as_sparc_leon+:} false
; then :
26893 $as_echo_n "(cached) " >&6
26895 gcc_cv_as_sparc_leon
=no
26896 if test x
$gcc_cv_as != x
; then
26898 .register %g2, #scratch
26899 .register %g3, #scratch
26903 casa [%g2] 0xb, %g3, %g1' > conftest.s
26904 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26906 (eval $ac_try) 2>&5
26908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26909 test $ac_status = 0; }; }
26911 gcc_cv_as_sparc_leon
=yes
26913 echo "configure: failed program was" >&5
26916 rm -f conftest.o conftest.s
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26920 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26921 if test $gcc_cv_as_sparc_leon = yes; then
26923 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26929 i
[34567]86-*-* | x86_64-
*-*)
26932 # Full C++ conformance when using a shared libstdc++-v3 requires some
26933 # support from the Cygwin DLL, which in more recent versions exports
26934 # wrappers to aid in interposing and redirecting operators new, delete,
26935 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26936 # are configuring for a version of Cygwin that exports the wrappers.
26937 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26938 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26939 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26940 gcc_ac_cygwin_dll_wrappers
=yes
26942 gcc_ac_cygwin_dll_wrappers
=no
26946 # Can't check presence of libc functions during cross-compile, so
26947 # we just have to assume we're building for an up-to-date target.
26948 gcc_ac_cygwin_dll_wrappers
=yes
26951 cat >>confdefs.h
<<_ACEOF
26952 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26957 cygwin
* | pe | mingw32
*)
26958 # Recent binutils allows the three-operand form of ".comm" on PE. This
26959 # definition is used unconditionally to initialise the default state of
26960 # the target option variable that governs usage of the feature.
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26962 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26963 if ${gcc_cv_as_comm_has_align+:} false
; then :
26964 $as_echo_n "(cached) " >&6
26966 gcc_cv_as_comm_has_align
=no
26967 if test $in_tree_gas = yes; then
26968 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26969 then gcc_cv_as_comm_has_align
=yes
26971 elif test x
$gcc_cv_as != x
; then
26972 $as_echo '.comm foo,1,32' > conftest.s
26973 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26975 (eval $ac_try) 2>&5
26977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26978 test $ac_status = 0; }; }
26980 gcc_cv_as_comm_has_align
=yes
26982 echo "configure: failed program was" >&5
26985 rm -f conftest.o conftest.s
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26989 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26993 cat >>confdefs.h
<<_ACEOF
26994 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26997 # Used for DWARF 2 in PE
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26999 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27000 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27001 $as_echo_n "(cached) " >&6
27003 gcc_cv_as_ix86_pe_secrel32
=no
27004 if test $in_tree_gas = yes; then
27005 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
27006 then gcc_cv_as_ix86_pe_secrel32
=yes
27008 elif test x
$gcc_cv_as != x
; then
27012 .secrel32 foo' > conftest.s
27013 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27015 (eval $ac_try) 2>&5
27017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27018 test $ac_status = 0; }; }
27020 if test x
$gcc_cv_ld != x \
27021 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27022 gcc_cv_as_ix86_pe_secrel32
=yes
27026 echo "configure: failed program was" >&5
27029 rm -f conftest.o conftest.s
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27033 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27034 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27036 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27040 # Test if the assembler supports the extended form of the .section
27041 # directive that specifies section alignment. LTO support uses this,
27042 # but normally only after installation, so we warn but don't fail the
27043 # configure if LTO is enabled but the assembler does not support it.
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27045 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27046 if ${gcc_cv_as_section_has_align+:} false
; then :
27047 $as_echo_n "(cached) " >&6
27049 gcc_cv_as_section_has_align
=no
27050 if test $in_tree_gas = yes; then
27051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
27052 then gcc_cv_as_section_has_align
=yes
27054 elif test x
$gcc_cv_as != x
; then
27055 $as_echo '.section lto_test,"dr0"' > conftest.s
27056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27058 (eval $ac_try) 2>&5
27060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27061 test $ac_status = 0; }; }
27063 gcc_cv_as_section_has_align
=yes
27065 echo "configure: failed program was" >&5
27068 rm -f conftest.o conftest.s
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27072 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27075 if test x
$gcc_cv_as_section_has_align != xyes
; then
27076 case ",$enable_languages," in
27078 { $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
27079 $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;}
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27087 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27088 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27089 $as_echo_n "(cached) " >&6
27091 gcc_cv_as_ix86_xbrace_comment
=no
27092 if test x
$gcc_cv_as != x
; then
27093 $as_echo '.text' > conftest.s
27094 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27096 (eval $ac_try) 2>&5
27098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27099 test $ac_status = 0; }; }
27101 gcc_cv_as_ix86_xbrace_comment
=yes
27103 echo "configure: failed program was" >&5
27106 rm -f conftest.o conftest.s
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27110 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27111 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27113 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27119 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27120 if ${gcc_cv_as_ix86_filds+:} false
; then :
27121 $as_echo_n "(cached) " >&6
27123 gcc_cv_as_ix86_filds
=no
27124 if test x
$gcc_cv_as != x
; then
27125 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27126 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27128 (eval $ac_try) 2>&5
27130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27131 test $ac_status = 0; }; }
27133 gcc_cv_as_ix86_filds
=yes
27135 echo "configure: failed program was" >&5
27138 rm -f conftest.o conftest.s
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27142 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27143 if test $gcc_cv_as_ix86_filds = yes; then
27145 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27151 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27152 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27153 $as_echo_n "(cached) " >&6
27155 gcc_cv_as_ix86_fildq
=no
27156 if test x
$gcc_cv_as != x
; then
27157 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27160 (eval $ac_try) 2>&5
27162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27163 test $ac_status = 0; }; }
27165 gcc_cv_as_ix86_fildq
=yes
27167 echo "configure: failed program was" >&5
27170 rm -f conftest.o conftest.s
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27174 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27175 if test $gcc_cv_as_ix86_fildq = yes; then
27177 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27183 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27184 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27185 $as_echo_n "(cached) " >&6
27187 gcc_cv_as_ix86_cmov_sun_syntax
=no
27188 if test x
$gcc_cv_as != x
; then
27189 $as_echo 'cmovl.l %edx, %eax' > 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_ix86_cmov_sun_syntax
=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_ix86_cmov_sun_syntax" >&5
27206 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27207 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27209 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27215 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27216 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27217 $as_echo_n "(cached) " >&6
27219 gcc_cv_as_ix86_ffreep
=no
27220 if test x
$gcc_cv_as != x
; then
27221 $as_echo 'ffreep %st(1)' > conftest.s
27222 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27224 (eval $ac_try) 2>&5
27226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27227 test $ac_status = 0; }; }
27229 gcc_cv_as_ix86_ffreep
=yes
27231 echo "configure: failed program was" >&5
27234 rm -f conftest.o conftest.s
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27238 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27239 if test $gcc_cv_as_ix86_ffreep = yes; then
27241 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27247 $as_echo_n "checking assembler for .quad directive... " >&6; }
27248 if ${gcc_cv_as_ix86_quad+:} false
; then :
27249 $as_echo_n "(cached) " >&6
27251 gcc_cv_as_ix86_quad
=no
27252 if test x
$gcc_cv_as != x
; then
27253 $as_echo '.quad 0' > conftest.s
27254 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27256 (eval $ac_try) 2>&5
27258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27259 test $ac_status = 0; }; }
27261 gcc_cv_as_ix86_quad
=yes
27263 echo "configure: failed program was" >&5
27266 rm -f conftest.o conftest.s
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27270 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27271 if test $gcc_cv_as_ix86_quad = yes; then
27273 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27279 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27280 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27281 $as_echo_n "(cached) " >&6
27283 gcc_cv_as_ix86_sahf
=no
27284 if test x
$gcc_cv_as != x
; then
27287 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27289 (eval $ac_try) 2>&5
27291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27292 test $ac_status = 0; }; }
27294 gcc_cv_as_ix86_sahf
=yes
27296 echo "configure: failed program was" >&5
27299 rm -f conftest.o conftest.s
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27303 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27304 if test $gcc_cv_as_ix86_sahf = yes; then
27306 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27312 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27313 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27314 $as_echo_n "(cached) " >&6
27316 gcc_cv_as_ix86_interunit_movq
=no
27317 if test x
$gcc_cv_as != x
; then
27320 movq %rax, %xmm0' > conftest.s
27321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27323 (eval $ac_try) 2>&5
27325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27326 test $ac_status = 0; }; }
27328 gcc_cv_as_ix86_interunit_movq
=yes
27330 echo "configure: failed program was" >&5
27333 rm -f conftest.o conftest.s
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27337 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27341 cat >>confdefs.h
<<_ACEOF
27342 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27347 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27348 if ${gcc_cv_as_ix86_hle+:} false
; then :
27349 $as_echo_n "(cached) " >&6
27351 gcc_cv_as_ix86_hle
=no
27352 if test x
$gcc_cv_as != x
; then
27353 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27354 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27356 (eval $ac_try) 2>&5
27358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27359 test $ac_status = 0; }; }
27361 gcc_cv_as_ix86_hle
=yes
27363 echo "configure: failed program was" >&5
27366 rm -f conftest.o conftest.s
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27370 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27371 if test $gcc_cv_as_ix86_hle = yes; then
27373 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27379 $as_echo_n "checking assembler for swap suffix... " >&6; }
27380 if ${gcc_cv_as_ix86_swap+:} false
; then :
27381 $as_echo_n "(cached) " >&6
27383 gcc_cv_as_ix86_swap
=no
27384 if test x
$gcc_cv_as != x
; then
27385 $as_echo 'movl.s %esp, %ebp' > conftest.s
27386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27388 (eval $ac_try) 2>&5
27390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27391 test $ac_status = 0; }; }
27393 gcc_cv_as_ix86_swap
=yes
27395 echo "configure: failed program was" >&5
27398 rm -f conftest.o conftest.s
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27402 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27403 if test $gcc_cv_as_ix86_swap = yes; then
27405 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27411 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27412 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27413 $as_echo_n "(cached) " >&6
27415 gcc_cv_as_ix86_diff_sect_delta
=no
27416 if test x
$gcc_cv_as != x
; then
27417 $as_echo '.section .rodata
27423 .L2: nop' > conftest.s
27424 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27426 (eval $ac_try) 2>&5
27428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27429 test $ac_status = 0; }; }
27431 gcc_cv_as_ix86_diff_sect_delta
=yes
27433 echo "configure: failed program was" >&5
27436 rm -f conftest.o conftest.s
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27440 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27441 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27443 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27449 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27450 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27451 $as_echo_n "(cached) " >&6
27453 gcc_cv_as_ix86_rep_lock_prefix
=no
27454 if test x
$gcc_cv_as != x
; then
27455 $as_echo 'rep movsl
27460 lock addl %edi, (%eax,%esi)
27461 lock orl $0, (%esp)' > conftest.s
27462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27464 (eval $ac_try) 2>&5
27466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27467 test $ac_status = 0; }; }
27469 gcc_cv_as_ix86_rep_lock_prefix
=yes
27471 echo "configure: failed program was" >&5
27474 rm -f conftest.o conftest.s
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27478 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27479 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27481 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27487 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27488 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27489 $as_echo_n "(cached) " >&6
27491 gcc_cv_as_ix86_ud2
=no
27492 if test x
$gcc_cv_as != x
; then
27493 $as_echo 'ud2' > conftest.s
27494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27496 (eval $ac_try) 2>&5
27498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27499 test $ac_status = 0; }; }
27501 gcc_cv_as_ix86_ud2
=yes
27503 echo "configure: failed program was" >&5
27506 rm -f conftest.o conftest.s
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27510 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27511 if test $gcc_cv_as_ix86_ud2 = yes; then
27513 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27518 # Enforce 32-bit output with gas and gld.
27519 if test x
$gas = xyes
; then
27520 as_ix86_gas_32_opt
="--32"
27522 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27523 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27524 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27526 ld_ix86_gld_32_opt
="-melf_i386"
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27531 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27532 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27533 $as_echo_n "(cached) " >&6
27535 gcc_cv_as_ix86_tlsgdplt
=no
27536 if test x
$gcc_cv_as != x
; then
27537 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27540 (eval $ac_try) 2>&5
27542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27543 test $ac_status = 0; }; }
27545 if test x
$gcc_cv_ld != x \
27546 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27547 gcc_cv_as_ix86_tlsgdplt
=yes
27551 echo "configure: failed program was" >&5
27554 rm -f conftest.o conftest.s
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27558 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27559 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27561 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27567 .section .tdata,"aw'$tls_section_flag'",@progbits
27569 .section .text,"ax",@progbits
27570 call tls_ld@tlsldmplt'
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27573 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27574 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27575 $as_echo_n "(cached) " >&6
27577 gcc_cv_as_ix86_tlsldmplt
=no
27578 if test x
$gcc_cv_as != x
; then
27579 $as_echo "$conftest_s" > conftest.s
27580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27582 (eval $ac_try) 2>&5
27584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27585 test $ac_status = 0; }; }
27587 if test x
$gcc_cv_ld != x \
27588 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27589 gcc_cv_as_ix86_tlsldmplt
=yes
27593 echo "configure: failed program was" >&5
27596 rm -f conftest.o conftest.s
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27600 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27604 cat >>confdefs.h
<<_ACEOF
27605 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27610 .section .text,"ax",@progbits
27612 .type _start, @function
27614 leal value@tlsldm(%ebx), %eax
27615 call ___tls_get_addr@plt
27617 .section .tdata,"aw'$tls_section_flag'",@progbits
27618 .type value, @object
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27621 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27622 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27623 $as_echo_n "(cached) " >&6
27625 gcc_cv_as_ix86_tlsldm
=no
27626 if test x
$gcc_cv_as != x
; then
27627 $as_echo "$conftest_s" > conftest.s
27628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27630 (eval $ac_try) 2>&5
27632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27633 test $ac_status = 0; }; }
27635 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27636 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27637 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27638 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27639 gcc_cv_as_ix86_tlsldm
=yes
27644 echo "configure: failed program was" >&5
27647 rm -f conftest.o conftest.s
27650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27651 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27655 cat >>confdefs.h
<<_ACEOF
27656 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27670 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27671 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27672 $as_echo_n "(cached) " >&6
27674 gcc_cv_as_ix86_got32x
=no
27675 if test x
$gcc_cv_as != x
; then
27676 $as_echo "$conftest_s" > conftest.s
27677 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27679 (eval $ac_try) 2>&5
27681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27682 test $ac_status = 0; }; }
27684 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27685 && test x
$gcc_cv_readelf != x \
27686 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27687 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27688 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27689 if $gcc_cv_objdump -dw conftest
2>&1 \
27690 |
grep 0xffffff > /dev
/null
2>&1; then
27691 gcc_cv_as_ix86_got32x
=no
27693 gcc_cv_as_ix86_got32x
=yes
27698 echo "configure: failed program was" >&5
27701 rm -f conftest.o conftest.s
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27705 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27709 cat >>confdefs.h
<<_ACEOF
27710 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27715 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27716 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27717 $as_echo_n "(cached) " >&6
27719 gcc_cv_as_ix86_gotoff_in_data
=no
27720 if test $in_tree_gas = yes; then
27721 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27722 then gcc_cv_as_ix86_gotoff_in_data
=yes
27724 elif test x
$gcc_cv_as != x
; then
27729 .long .L0@GOTOFF' > conftest.s
27730 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27732 (eval $ac_try) 2>&5
27734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27735 test $ac_status = 0; }; }
27737 gcc_cv_as_ix86_gotoff_in_data
=yes
27739 echo "configure: failed program was" >&5
27742 rm -f conftest.o conftest.s
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27746 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27750 cat >>confdefs.h
<<_ACEOF
27751 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27756 .section .text,"ax",@progbits
27758 .type _start, @function
27760 leal ld@tlsldm(%ecx), %eax
27761 call *___tls_get_addr@GOT(%ecx)
27762 leal gd@tlsgd(%ecx), %eax
27763 call *___tls_get_addr@GOT(%ecx)
27765 .section .tdata,"aw'$tls_section_flag'",@progbits
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27774 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27775 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27776 $as_echo_n "(cached) " >&6
27778 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27779 if test x
$gcc_cv_as != x
; then
27780 $as_echo "$conftest_s" > conftest.s
27781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27783 (eval $ac_try) 2>&5
27785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27786 test $ac_status = 0; }; }
27788 if test x
$gcc_cv_ld != x \
27789 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27790 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27794 echo "configure: failed program was" >&5
27797 rm -f conftest.o conftest.s
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27801 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27805 cat >>confdefs.h
<<_ACEOF
27806 #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`
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27813 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27814 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27815 $as_echo_n "(cached) " >&6
27817 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27818 if test $in_tree_gas = yes; then
27819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27820 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27822 elif test x
$gcc_cv_as != x
; then
27824 addl r15 = @ltoffx(x#), gp
27826 ld8.mov r16 = [r15], x#
27828 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27830 (eval $ac_try) 2>&5
27832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27833 test $ac_status = 0; }; }
27835 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27837 echo "configure: failed program was" >&5
27840 rm -f conftest.o conftest.s
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27844 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27845 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27847 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27859 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27860 if ${gcc_cv_as_machine_directive+:} false
; then :
27861 $as_echo_n "(cached) " >&6
27863 gcc_cv_as_machine_directive
=no
27864 if test x
$gcc_cv_as != x
; then
27865 $as_echo ' .machine ppc7400' > conftest.s
27866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27868 (eval $ac_try) 2>&5
27870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27871 test $ac_status = 0; }; }
27873 gcc_cv_as_machine_directive
=yes
27875 echo "configure: failed program was" >&5
27878 rm -f conftest.o conftest.s
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27882 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27885 if test x
$gcc_cv_as_machine_directive != xyes
; then
27886 echo "*** This target requires an assembler supporting \".machine\"" >&2
27887 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27888 test x
$build = x
$target && exit 1
27894 *-*-aix*) conftest_s
=' .machine "pwr5"
27897 *-*-darwin*) conftest_s
=' .text
27899 *) conftest_s
=' .machine power4
27904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27905 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27906 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27907 $as_echo_n "(cached) " >&6
27909 gcc_cv_as_powerpc_mfcrf
=no
27910 if test $in_tree_gas = yes; then
27911 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27912 then gcc_cv_as_powerpc_mfcrf
=yes
27914 elif test x
$gcc_cv_as != x
; then
27915 $as_echo "$conftest_s" > conftest.s
27916 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27918 (eval $ac_try) 2>&5
27920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27921 test $ac_status = 0; }; }
27923 gcc_cv_as_powerpc_mfcrf
=yes
27925 echo "configure: failed program was" >&5
27928 rm -f conftest.o conftest.s
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27932 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27933 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27935 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27941 *-*-aix*) conftest_s
=' .csect .text[PR]
27943 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27947 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27948 *) conftest_s
=' .text
27950 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27954 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27955 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27956 $as_echo_n "(cached) " >&6
27958 gcc_cv_as_powerpc_rel16
=no
27959 if test $in_tree_gas = yes; then
27960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27961 then gcc_cv_as_powerpc_rel16
=yes
27963 elif test x
$gcc_cv_as != x
; then
27964 $as_echo "$conftest_s" > conftest.s
27965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27967 (eval $ac_try) 2>&5
27969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27970 test $ac_status = 0; }; }
27972 gcc_cv_as_powerpc_rel16
=yes
27974 echo "configure: failed program was" >&5
27977 rm -f conftest.o conftest.s
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27981 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27982 if test $gcc_cv_as_powerpc_rel16 = yes; then
27984 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27990 *-*-aix*) conftest_s
=' .machine "pwr7"
27993 *) conftest_s
=' .machine power7
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27999 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28000 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28001 $as_echo_n "(cached) " >&6
28003 gcc_cv_as_powerpc_vsx
=no
28004 if test $in_tree_gas = yes; then
28005 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
28006 then gcc_cv_as_powerpc_vsx
=yes
28008 elif test x
$gcc_cv_as != x
; then
28009 $as_echo "$conftest_s" > conftest.s
28010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28012 (eval $ac_try) 2>&5
28014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28015 test $ac_status = 0; }; }
28017 gcc_cv_as_powerpc_vsx
=yes
28019 echo "configure: failed program was" >&5
28022 rm -f conftest.o conftest.s
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28026 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28027 if test $gcc_cv_as_powerpc_vsx = yes; then
28029 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28035 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28036 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28037 $as_echo_n "(cached) " >&6
28039 gcc_cv_as_powerpc_gnu_attribute
=no
28040 if test $in_tree_gas = yes; then
28041 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28042 then gcc_cv_as_powerpc_gnu_attribute
=yes
28044 elif test x
$gcc_cv_as != x
; then
28045 $as_echo '.gnu_attribute 4,1' > conftest.s
28046 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28048 (eval $ac_try) 2>&5
28050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28051 test $ac_status = 0; }; }
28053 gcc_cv_as_powerpc_gnu_attribute
=yes
28055 echo "configure: failed program was" >&5
28058 rm -f conftest.o conftest.s
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28062 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28063 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28065 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28071 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28072 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28073 $as_echo_n "(cached) " >&6
28075 gcc_cv_as_powerpc_entry_markers
=no
28076 if test $in_tree_gas = yes; then
28077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28078 then gcc_cv_as_powerpc_entry_markers
=yes
28080 elif test x
$gcc_cv_as != x
; then
28081 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28082 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28084 (eval $ac_try) 2>&5
28086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28087 test $ac_status = 0; }; }
28089 gcc_cv_as_powerpc_entry_markers
=yes
28091 echo "configure: failed program was" >&5
28094 rm -f conftest.o conftest.s
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28098 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28099 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28101 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28107 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28108 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28109 $as_echo_n "(cached) " >&6
28111 gcc_cv_as_powerpc_pltseq_markers
=no
28112 if test $in_tree_gas = yes; then
28113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28114 then gcc_cv_as_powerpc_pltseq_markers
=yes
28116 elif test x
$gcc_cv_as != x
; then
28117 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28120 (eval $ac_try) 2>&5
28122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28123 test $ac_status = 0; }; }
28125 gcc_cv_as_powerpc_pltseq_markers
=yes
28127 echo "configure: failed program was" >&5
28130 rm -f conftest.o conftest.s
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28134 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28135 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28137 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28145 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28146 if ${gcc_cv_as_aix_ref+:} false
; then :
28147 $as_echo_n "(cached) " >&6
28149 gcc_cv_as_aix_ref
=no
28150 if test $in_tree_gas = yes; then
28151 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28152 then gcc_cv_as_aix_ref
=yes
28154 elif test x
$gcc_cv_as != x
; then
28155 $as_echo ' .csect stuff[rw]
28161 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28163 (eval $ac_try) 2>&5
28165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28166 test $ac_status = 0; }; }
28168 gcc_cv_as_aix_ref
=yes
28170 echo "configure: failed program was" >&5
28173 rm -f conftest.o conftest.s
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28177 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28178 if test $gcc_cv_as_aix_ref = yes; then
28180 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28186 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28187 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28188 $as_echo_n "(cached) " >&6
28190 gcc_cv_as_aix_dwloc
=no
28191 if test $in_tree_gas = yes; then
28192 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28193 then gcc_cv_as_aix_dwloc
=yes
28195 elif test x
$gcc_cv_as != x
; then
28196 $as_echo ' .dwsect 0xA0000
28200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28202 (eval $ac_try) 2>&5
28204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28205 test $ac_status = 0; }; }
28207 gcc_cv_as_aix_dwloc
=yes
28209 echo "configure: failed program was" >&5
28212 rm -f conftest.o conftest.s
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28216 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28217 if test $gcc_cv_as_aix_dwloc = yes; then
28219 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28229 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28230 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28231 $as_echo_n "(cached) " >&6
28233 gcc_cv_as_mips_explicit_relocs
=no
28234 if test $in_tree_gas = yes; then
28235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
28236 then gcc_cv_as_mips_explicit_relocs
=yes
28238 elif test x
$gcc_cv_as != x
; then
28239 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28242 (eval $ac_try) 2>&5
28244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28245 test $ac_status = 0; }; }
28247 gcc_cv_as_mips_explicit_relocs
=yes
28249 echo "configure: failed program was" >&5
28252 rm -f conftest.o conftest.s
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28256 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28257 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28258 if test x
$target_cpu_default = x
28259 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28260 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28266 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28267 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28268 $as_echo_n "(cached) " >&6
28270 gcc_cv_as_mips_no_shared
=no
28271 if test $in_tree_gas = yes; then
28272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
28273 then gcc_cv_as_mips_no_shared
=yes
28275 elif test x
$gcc_cv_as != x
; then
28276 $as_echo 'nop' > conftest.s
28277 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28279 (eval $ac_try) 2>&5
28281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28282 test $ac_status = 0; }; }
28284 gcc_cv_as_mips_no_shared
=yes
28286 echo "configure: failed program was" >&5
28289 rm -f conftest.o conftest.s
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28293 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28294 if test $gcc_cv_as_mips_no_shared = yes; then
28296 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28302 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28303 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28304 $as_echo_n "(cached) " >&6
28306 gcc_cv_as_mips_gnu_attribute
=no
28307 if test $in_tree_gas = yes; then
28308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28309 then gcc_cv_as_mips_gnu_attribute
=yes
28311 elif test x
$gcc_cv_as != x
; then
28312 $as_echo '.gnu_attribute 4,1' > conftest.s
28313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28315 (eval $ac_try) 2>&5
28317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28318 test $ac_status = 0; }; }
28320 gcc_cv_as_mips_gnu_attribute
=yes
28322 echo "configure: failed program was" >&5
28325 rm -f conftest.o conftest.s
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28329 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28330 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28332 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28338 $as_echo_n "checking assembler for .module support... " >&6; }
28339 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28340 $as_echo_n "(cached) " >&6
28342 gcc_cv_as_mips_dot_module
=no
28343 if test x
$gcc_cv_as != x
; then
28344 $as_echo '.module mips2
28345 .module fp=xx' > conftest.s
28346 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28348 (eval $ac_try) 2>&5
28350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28351 test $ac_status = 0; }; }
28353 gcc_cv_as_mips_dot_module
=yes
28355 echo "configure: failed program was" >&5
28358 rm -f conftest.o conftest.s
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28362 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28363 if test $gcc_cv_as_mips_dot_module = yes; then
28365 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28369 if test x
$gcc_cv_as_mips_dot_module = xno \
28370 && test x
$with_fp_32 != x
; then
28371 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28375 $as_echo_n "checking assembler for .micromips support... " >&6; }
28376 if ${gcc_cv_as_micromips_support+:} false
; then :
28377 $as_echo_n "(cached) " >&6
28379 gcc_cv_as_micromips_support
=no
28380 if test x
$gcc_cv_as != x
; then
28381 $as_echo '.set micromips' > conftest.s
28382 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28384 (eval $ac_try) 2>&5
28386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28387 test $ac_status = 0; }; }
28389 gcc_cv_as_micromips_support
=yes
28391 echo "configure: failed program was" >&5
28394 rm -f conftest.o conftest.s
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28398 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28399 if test $gcc_cv_as_micromips_support = yes; then
28401 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28407 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28408 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28409 $as_echo_n "(cached) " >&6
28411 gcc_cv_as_mips_dtprelword
=no
28412 if test $in_tree_gas = yes; then
28413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28414 then gcc_cv_as_mips_dtprelword
=yes
28416 elif test x
$gcc_cv_as != x
; then
28417 $as_echo '.section .tdata,"awT",@progbits
28421 .dtprelword x+0x8000' > conftest.s
28422 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28424 (eval $ac_try) 2>&5
28426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28427 test $ac_status = 0; }; }
28429 gcc_cv_as_mips_dtprelword
=yes
28431 echo "configure: failed program was" >&5
28434 rm -f conftest.o conftest.s
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28438 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28439 if test $gcc_cv_as_mips_dtprelword = yes; then
28441 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28447 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28448 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28449 $as_echo_n "(cached) " >&6
28451 gcc_cv_as_mips_dspr1_mult
=no
28452 if test x
$gcc_cv_as != x
; then
28453 $as_echo ' .set mips32r2
28461 multu $ac3,$4,$5' > conftest.s
28462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28464 (eval $ac_try) 2>&5
28466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28467 test $ac_status = 0; }; }
28469 gcc_cv_as_mips_dspr1_mult
=yes
28471 echo "configure: failed program was" >&5
28474 rm -f conftest.o conftest.s
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28478 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28479 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28481 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28487 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28488 gcc_cv_as_ld_jalr_reloc
=no
28489 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28490 if test $in_tree_ld = yes ; then
28491 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 \
28492 && test $in_tree_ld_is_elf = yes; then
28493 gcc_cv_as_ld_jalr_reloc
=yes
28495 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28496 echo ' .ent x' > conftest.s
28497 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28498 echo ' lw $25,%call16(y)($28)' >> conftest.s
28499 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28500 echo '1: jalr $25' >> conftest.s
28501 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28502 echo '1: jalr $25' >> conftest.s
28503 echo ' .end x' >> conftest.s
28504 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28505 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28506 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28507 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28508 gcc_cv_as_ld_jalr_reloc
=yes
28514 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28515 if test x
$target_cpu_default = x
; then
28516 target_cpu_default
=MASK_RELAX_PIC_CALLS
28518 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28522 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28525 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28526 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28527 $as_echo_n "(cached) " >&6
28529 gcc_cv_ld_mips_personality_relaxation
=no
28530 if test $in_tree_ld = yes ; then
28531 if test "$gcc_cv_gld_major_version" -eq 2 \
28532 -a "$gcc_cv_gld_minor_version" -ge 21 \
28533 -o "$gcc_cv_gld_major_version" -gt 2; then
28534 gcc_cv_ld_mips_personality_relaxation
=yes
28536 elif test x
$gcc_cv_as != x \
28537 -a x
$gcc_cv_ld != x \
28538 -a x
$gcc_cv_readelf != x
; then
28539 cat > conftest.s
<<EOF
28541 .cfi_personality 0x80,indirect_ptr
28548 .section .data,"aw",@progbits
28552 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28553 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28554 if $gcc_cv_readelf -d conftest
2>&1 \
28555 |
grep TEXTREL
> /dev
/null
2>&1; then
28557 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28558 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28561 gcc_cv_ld_mips_personality_relaxation
=yes
28565 rm -f conftest.s conftest.o conftest
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28568 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28569 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28571 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28576 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28577 if ${gcc_cv_as_mips_nan+:} false
; then :
28578 $as_echo_n "(cached) " >&6
28580 gcc_cv_as_mips_nan
=no
28581 if test x
$gcc_cv_as != x
; then
28582 $as_echo '' > conftest.s
28583 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28585 (eval $ac_try) 2>&5
28587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28588 test $ac_status = 0; }; }
28590 gcc_cv_as_mips_nan
=yes
28592 echo "configure: failed program was" >&5
28595 rm -f conftest.o conftest.s
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28599 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28600 if test $gcc_cv_as_mips_nan = yes; then
28602 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28606 if test x
$gcc_cv_as_mips_nan = xno \
28607 && test x
$with_nan != x
; then
28608 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28612 # Earlier GAS versions generically support .gnu_attribute, but the
28613 # msp430 assembler will not do anything with it.
28614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28615 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28616 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28617 $as_echo_n "(cached) " >&6
28619 gcc_cv_as_msp430_gnu_attribute
=no
28620 if test $in_tree_gas = yes; then
28621 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28622 then gcc_cv_as_msp430_gnu_attribute
=yes
28624 elif test x
$gcc_cv_as != x
; then
28625 $as_echo '.gnu_attribute 4,1' > conftest.s
28626 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28628 (eval $ac_try) 2>&5
28630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28631 test $ac_status = 0; }; }
28633 gcc_cv_as_msp430_gnu_attribute
=yes
28635 echo "configure: failed program was" >&5
28638 rm -f conftest.o conftest.s
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28642 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28643 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28645 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28650 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28651 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28652 $as_echo_n "(cached) " >&6
28654 gcc_cv_as_msp430_mspabi_attribute
=no
28655 if test $in_tree_gas = yes; then
28656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28657 then gcc_cv_as_msp430_mspabi_attribute
=yes
28659 elif test x
$gcc_cv_as != x
; then
28660 $as_echo '.mspabi_attribute 4,2' > conftest.s
28661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28663 (eval $ac_try) 2>&5
28665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28666 test $ac_status = 0; }; }
28668 gcc_cv_as_msp430_mspabi_attribute
=yes
28670 echo "configure: failed program was" >&5
28673 rm -f conftest.o conftest.s
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28677 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28678 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28680 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28684 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28686 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28691 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28692 # syntax that is documented in the ABI specification.
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28694 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28695 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28696 $as_echo_n "(cached) " >&6
28698 gcc_cv_as_nios2_gotoff_relocation
=no
28699 if test x
$gcc_cv_as != x
; then
28700 $as_echo ' .extern foo
28702 .long %gotoff(foo)' > conftest.s
28703 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28705 (eval $ac_try) 2>&5
28707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28708 test $ac_status = 0; }; }
28710 gcc_cv_as_nios2_gotoff_relocation
=yes
28712 echo "configure: failed program was" >&5
28715 rm -f conftest.o conftest.s
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28719 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28720 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28722 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28729 $as_echo_n "checking assembler for .attribute support... " >&6; }
28730 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28731 $as_echo_n "(cached) " >&6
28733 gcc_cv_as_riscv_attribute
=no
28734 if test $in_tree_gas = yes; then
28735 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28736 then gcc_cv_as_riscv_attribute
=yes
28738 elif test x
$gcc_cv_as != x
; then
28739 $as_echo '.attribute stack_align,4' > conftest.s
28740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28742 (eval $ac_try) 2>&5
28744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28745 test $ac_status = 0; }; }
28747 gcc_cv_as_riscv_attribute
=yes
28749 echo "configure: failed program was" >&5
28752 rm -f conftest.o conftest.s
28755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28756 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28757 if test $gcc_cv_as_riscv_attribute = yes; then
28759 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28764 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28765 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28766 $as_echo_n "(cached) " >&6
28768 gcc_cv_as_riscv_isa_spec
=no
28769 if test x
$gcc_cv_as != x
; then
28770 $as_echo '' > conftest.s
28771 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28773 (eval $ac_try) 2>&5
28775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28776 test $ac_status = 0; }; }
28778 gcc_cv_as_riscv_isa_spec
=yes
28780 echo "configure: failed program was" >&5
28783 rm -f conftest.o conftest.s
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28787 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28788 if test $gcc_cv_as_riscv_isa_spec = yes; then
28790 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28795 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28796 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
28797 $as_echo_n "(cached) " >&6
28799 gcc_cv_as_riscv_march_zifencei
=no
28800 if test x
$gcc_cv_as != x
; then
28801 $as_echo '' > conftest.s
28802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei -o conftest.o conftest.s >&5'
28803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28804 (eval $ac_try) 2>&5
28806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28807 test $ac_status = 0; }; }
28809 gcc_cv_as_riscv_march_zifencei
=yes
28811 echo "configure: failed program was" >&5
28814 rm -f conftest.o conftest.s
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28818 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28819 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28821 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28828 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28829 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28830 $as_echo_n "(cached) " >&6
28832 gcc_cv_as_s390_gnu_attribute
=no
28833 if test $in_tree_gas = yes; then
28834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28835 then gcc_cv_as_s390_gnu_attribute
=yes
28837 elif test x
$gcc_cv_as != x
; then
28838 $as_echo '.gnu_attribute 8,1' > conftest.s
28839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28841 (eval $ac_try) 2>&5
28843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28844 test $ac_status = 0; }; }
28846 gcc_cv_as_s390_gnu_attribute
=yes
28848 echo "configure: failed program was" >&5
28851 rm -f conftest.o conftest.s
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28855 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28856 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28858 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28863 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28864 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28865 $as_echo_n "(cached) " >&6
28867 gcc_cv_as_s390_machine_machinemode
=no
28868 if test $in_tree_gas = yes; then
28869 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28870 then gcc_cv_as_s390_machine_machinemode
=yes
28872 elif test x
$gcc_cv_as != x
; then
28873 $as_echo ' .machinemode push
28876 .machine pop' > conftest.s
28877 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28879 (eval $ac_try) 2>&5
28881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28882 test $ac_status = 0; }; }
28884 gcc_cv_as_s390_machine_machinemode
=yes
28886 echo "configure: failed program was" >&5
28889 rm -f conftest.o conftest.s
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28893 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28894 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28896 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28901 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28902 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28903 $as_echo_n "(cached) " >&6
28905 gcc_cv_as_s390_architecture_modifiers
=no
28906 if test $in_tree_gas = yes; then
28907 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28908 then gcc_cv_as_s390_architecture_modifiers
=yes
28910 elif test x
$gcc_cv_as != x
; then
28911 $as_echo ' .machine z13+vx ' > conftest.s
28912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28914 (eval $ac_try) 2>&5
28916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28917 test $ac_status = 0; }; }
28919 gcc_cv_as_s390_architecture_modifiers
=yes
28921 echo "configure: failed program was" >&5
28924 rm -f conftest.o conftest.s
28927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28928 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28929 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28931 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28936 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28937 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28938 $as_echo_n "(cached) " >&6
28940 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28941 if test $in_tree_gas = yes; then
28942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28943 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28945 elif test x
$gcc_cv_as != x
; then
28946 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28949 (eval $ac_try) 2>&5
28951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28952 test $ac_status = 0; }; }
28954 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28956 echo "configure: failed program was" >&5
28959 rm -f conftest.o conftest.s
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28963 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28964 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28966 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28971 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28972 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
28973 $as_echo_n "(cached) " >&6
28975 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
28976 if test x
$gcc_cv_as != x
; then
28977 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28978 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28980 (eval $ac_try) 2>&5
28982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28983 test $ac_status = 0; }; }
28985 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
28987 echo "configure: failed program was" >&5
28990 rm -f conftest.o conftest.s
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28994 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28995 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28997 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29005 # Mips and HP-UX need the GNU assembler.
29006 # Linux on IA64 might be able to use the Intel assembler.
29009 mips
*-*-* |
*-*-hpux* )
29010 if test x
$gas_flag = xyes \
29011 ||
test x
"$host" != x
"$build" \
29012 ||
test ! -x "$gcc_cv_as" \
29013 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29016 echo "*** This configuration requires the GNU assembler" >&2
29022 # This tests if the assembler supports two registers for global_load functions
29023 # (like in LLVM versions <12) or one register (like in LLVM 12).
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler fix for global_load functions" >&5
29027 $as_echo_n "checking assembler fix for global_load functions... " >&6; }
29028 gcc_cv_as_gcn_global_load_fixed
=yes
29029 if test x
$gcc_cv_as != x
; then
29030 cat > conftest.s
<<EOF
29031 global_store_dwordx2 v[1:2], v[4:5], s[14:15]
29033 if $gcc_cv_as -triple=amdgcn--amdhsa
-filetype=obj
-mcpu=gfx900
-o conftest.o conftest.s
> /dev
/null
2>&1; then
29034 gcc_cv_as_gcn_global_load_fixed
=no
29036 rm -f conftest.s conftest.o conftest
29038 global_load_fixed
=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi`
29040 cat >>confdefs.h
<<_ACEOF
29041 #define HAVE_GCN_ASM_GLOBAL_LOAD_FIXED $global_load_fixed
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_global_load_fixed" >&5
29045 $as_echo "$gcc_cv_as_gcn_global_load_fixed" >&6; }
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+sram-ecc for fiji" >&5
29052 $as_echo_n "checking assembler for assembler accepts -mattr=+sram-ecc for fiji... " >&6; }
29053 if ${gcc_cv_as_gcn_sram_ecc_fiji+:} false
; then :
29054 $as_echo_n "(cached) " >&6
29056 gcc_cv_as_gcn_sram_ecc_fiji
=no
29057 if test x
$gcc_cv_as != x
; then
29058 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx803+sram-ecc"' > conftest.s
29059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=fiji -mattr=-xnack -mattr=+sram-ecc -o conftest.o conftest.s >&5'
29060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29061 (eval $ac_try) 2>&5
29063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29064 test $ac_status = 0; }; }
29066 gcc_cv_as_gcn_sram_ecc_fiji
=yes
29068 echo "configure: failed program was" >&5
29071 rm -f conftest.o conftest.s
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_fiji" >&5
29075 $as_echo "$gcc_cv_as_gcn_sram_ecc_fiji" >&6; }
29076 if test $gcc_cv_as_gcn_sram_ecc_fiji = yes; then
29078 $as_echo "#define HAVE_GCN_SRAM_ECC_FIJI 1" >>confdefs.h
29082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+sram-ecc for gfx900" >&5
29083 $as_echo_n "checking assembler for assembler accepts -mattr=+sram-ecc for gfx900... " >&6; }
29084 if ${gcc_cv_as_gcn_sram_ecc_gfx900+:} false
; then :
29085 $as_echo_n "(cached) " >&6
29087 gcc_cv_as_gcn_sram_ecc_gfx900
=no
29088 if test x
$gcc_cv_as != x
; then
29089 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx900+sram-ecc"' > conftest.s
29090 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=-xnack -mattr=+sram-ecc -o conftest.o conftest.s >&5'
29091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29092 (eval $ac_try) 2>&5
29094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29095 test $ac_status = 0; }; }
29097 gcc_cv_as_gcn_sram_ecc_gfx900
=yes
29099 echo "configure: failed program was" >&5
29102 rm -f conftest.o conftest.s
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx900" >&5
29106 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx900" >&6; }
29107 if test $gcc_cv_as_gcn_sram_ecc_gfx900 = yes; then
29109 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX900 1" >>confdefs.h
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+sram-ecc for gfx906" >&5
29114 $as_echo_n "checking assembler for assembler accepts -mattr=+sram-ecc for gfx906... " >&6; }
29115 if ${gcc_cv_as_gcn_sram_ecc_gfx906+:} false
; then :
29116 $as_echo_n "(cached) " >&6
29118 gcc_cv_as_gcn_sram_ecc_gfx906
=no
29119 if test x
$gcc_cv_as != x
; then
29120 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+sram-ecc"' > conftest.s
29121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=-xnack -mattr=+sram-ecc -o conftest.o conftest.s >&5'
29122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29123 (eval $ac_try) 2>&5
29125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29126 test $ac_status = 0; }; }
29128 gcc_cv_as_gcn_sram_ecc_gfx906
=yes
29130 echo "configure: failed program was" >&5
29133 rm -f conftest.o conftest.s
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx906" >&5
29137 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx906" >&6; }
29138 if test $gcc_cv_as_gcn_sram_ecc_gfx906 = yes; then
29140 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX906 1" >>confdefs.h
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler accepts -mattr=+sram-ecc for gfx908" >&5
29145 $as_echo_n "checking assembler for assembler accepts -mattr=+sram-ecc for gfx908... " >&6; }
29146 if ${gcc_cv_as_gcn_sram_ecc_gfx908+:} false
; then :
29147 $as_echo_n "(cached) " >&6
29149 gcc_cv_as_gcn_sram_ecc_gfx908
=no
29150 if test x
$gcc_cv_as != x
; then
29151 $as_echo '.amdgcn_target "amdgcn-unknown-amdhsa--gfx908+sram-ecc"' > conftest.s
29152 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=-xnack -mattr=+sram-ecc -o conftest.o conftest.s >&5'
29153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29154 (eval $ac_try) 2>&5
29156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29157 test $ac_status = 0; }; }
29159 gcc_cv_as_gcn_sram_ecc_gfx908
=yes
29161 echo "configure: failed program was" >&5
29164 rm -f conftest.o conftest.s
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gcn_sram_ecc_gfx908" >&5
29168 $as_echo "$gcc_cv_as_gcn_sram_ecc_gfx908" >&6; }
29169 if test $gcc_cv_as_gcn_sram_ecc_gfx908 = yes; then
29171 $as_echo "#define HAVE_GCN_SRAM_ECC_GFX908 1" >>confdefs.h
29178 # ??? Not all targets support dwarf2 debug_line, even within a version
29179 # of gas. Moreover, we need to emit a valid instruction to trigger any
29180 # info to the output file. So, as supported targets are added to gas 2.11,
29181 # add some instruction here to (also) show we expect this might work.
29182 # ??? Once 2.11 is released, probably need to add first known working
29183 # version to the per-target configury.
29184 case "$cpu_type" in
29185 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
29186 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29187 | tilegx | tilepro | visium | xstormy16 | xtensa
)
29197 if test x
"$insn" != x
; then
29199 .file 1 \"conftest.s\"
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29203 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29204 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29205 $as_echo_n "(cached) " >&6
29207 gcc_cv_as_dwarf2_debug_line
=no
29208 if test $in_tree_gas = yes; then
29209 if test $in_tree_gas_is_elf = yes \
29210 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29211 then gcc_cv_as_dwarf2_debug_line
=yes
29213 elif test x
$gcc_cv_as != x
; then
29214 $as_echo "$conftest_s" > conftest.s
29215 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29217 (eval $ac_try) 2>&5
29219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29220 test $ac_status = 0; }; }
29222 if test x
$gcc_cv_objdump != x \
29223 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29224 |
grep debug_line
> /dev
/null
2>&1; then
29225 gcc_cv_as_dwarf2_debug_line
=yes
29226 elif test x
$gcc_cv_otool != x \
29227 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29228 |
grep debug_line
> /dev
/null
2>&1; then
29229 gcc_cv_as_dwarf2_debug_line
=yes
29232 echo "configure: failed program was" >&5
29235 rm -f conftest.o conftest.s
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29239 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29243 # The .debug_line file table must be in the exact order that
29244 # we specified the files, since these indices are also used
29245 # by DW_AT_decl_file. Approximate this test by testing if
29246 # the assembler bitches if the same index is assigned twice.
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29248 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29249 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29250 $as_echo_n "(cached) " >&6
29252 gcc_cv_as_dwarf2_file_buggy
=no
29253 if test x
$gcc_cv_as != x
; then
29254 $as_echo ' .file 1 "foo.s"
29255 .file 1 "bar.s"' > conftest.s
29256 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29258 (eval $ac_try) 2>&5
29260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29261 test $ac_status = 0; }; }
29263 gcc_cv_as_dwarf2_file_buggy
=yes
29265 echo "configure: failed program was" >&5
29268 rm -f conftest.o conftest.s
29271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29272 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29276 if test $gcc_cv_as_dwarf2_debug_line = yes \
29277 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29279 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29282 if test $gcc_cv_as_leb128 = yes; then
29284 .file 1 \"conftest.s\"
29285 .loc 1 3 0 view .LVU1
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29292 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29293 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29294 $as_echo_n "(cached) " >&6
29296 gcc_cv_as_dwarf2_debug_view
=no
29297 if test $in_tree_gas = yes; then
29298 if test $in_tree_gas_is_elf = yes \
29299 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
29300 then gcc_cv_as_dwarf2_debug_view
=yes
29302 elif test x
$gcc_cv_as != x
; then
29303 $as_echo "$conftest_s" > conftest.s
29304 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29306 (eval $ac_try) 2>&5
29308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29309 test $ac_status = 0; }; }
29311 gcc_cv_as_dwarf2_debug_view
=yes
29313 echo "configure: failed program was" >&5
29316 rm -f conftest.o conftest.s
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29320 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29321 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29323 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29331 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29332 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29333 $as_echo_n "(cached) " >&6
29335 gcc_cv_as_gdwarf2_flag
=no
29336 if test $in_tree_gas = yes; then
29337 if test $in_tree_gas_is_elf = yes \
29338 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29339 then gcc_cv_as_gdwarf2_flag
=yes
29341 elif test x
$gcc_cv_as != x
; then
29342 $as_echo "$insn" > conftest.s
29343 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29345 (eval $ac_try) 2>&5
29347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29348 test $ac_status = 0; }; }
29350 gcc_cv_as_gdwarf2_flag
=yes
29352 echo "configure: failed program was" >&5
29355 rm -f conftest.o conftest.s
29358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29359 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29360 if test $gcc_cv_as_gdwarf2_flag = yes; then
29362 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29368 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29369 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29370 $as_echo_n "(cached) " >&6
29372 gcc_cv_as_gdwarf_5_flag
=no
29373 if test $in_tree_gas = yes; then
29374 if test $in_tree_gas_is_elf = yes \
29375 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29376 then gcc_cv_as_gdwarf_5_flag
=yes
29378 elif test x
$gcc_cv_as != x
; then
29379 $as_echo "$insn" > conftest.s
29380 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29382 (eval $ac_try) 2>&5
29384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29385 test $ac_status = 0; }; }
29387 if test x
$gcc_cv_objdump != x \
29388 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29389 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29390 gcc_cv_as_gdwarf_5_flag
=yes;
29393 echo "configure: failed program was" >&5
29396 rm -f conftest.o conftest.s
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29400 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29401 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29403 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29409 win32 | pe | cygwin
* | mingw32
*)
29410 section_flags
=\"dr
\"
29411 function_type
=".def foo; .scl 2; .type 32; .endef"
29414 section_flags
=\"\",%progbits
29415 function_type
=".type foo, %function"
29416 function_size
=".size foo, .-foo";;
29418 dwarf4_debug_info_size
=0x46
29419 dwarf4_high_pc_form
=7
29420 dwarf4_debug_aranges_size
=0x2c
29422 for dwarf4_addr_size
in 8 4; do
29438 .section .debug_info,$section_flags
29440 .4byte $dwarf4_debug_info_size
29442 .4byte .Ldebug_abbrev0
29443 .byte 0x$dwarf4_addr_size
29445 .ascii \"GNU C17\\0\"
29449 .${dwarf4_addr_size}byte .Ltext0
29450 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29451 .4byte .Ldebug_line0
29457 .${dwarf4_addr_size}byte .LFB0
29458 .${dwarf4_addr_size}byte .LFE0-.LFB0
29462 .section .debug_abbrev,$section_flags
29478 .byte 0x$dwarf4_high_pc_form
29499 .byte 0x$dwarf4_high_pc_form
29505 .section .debug_aranges,$section_flags
29506 .4byte $dwarf4_debug_aranges_size
29508 .4byte .Ldebug_info0
29513 .${dwarf4_addr_size}byte .Ltext0
29514 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29515 .${dwarf4_addr_size}byte 0
29516 .${dwarf4_addr_size}byte 0
29517 .section .debug_line,$section_flags
29519 .4byte .LELT0-.LSLT0
29522 .4byte .LELTP0-.LASLTP0
29550 .byte 0x$dwarf4_line_sz
29552 .${dwarf4_addr_size}byte .LM1
29557 .byte 0x$dwarf4_line_sz
29559 .${dwarf4_addr_size}byte .LM2
29564 .byte 0x$dwarf4_line_sz
29566 .${dwarf4_addr_size}byte .Letext0
29571 .section .debug_str,$section_flags
29575 if test $dwarf4_addr_size = 4; then
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29577 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29578 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29579 $as_echo_n "(cached) " >&6
29581 gcc_cv_as_debug_line_32_flag
=no
29582 if test $in_tree_gas = yes; then
29583 if test $in_tree_gas_is_elf = yes \
29584 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29585 then gcc_cv_as_debug_line_32_flag
=yes
29587 elif test x
$gcc_cv_as != x
; then
29588 $as_echo "$conftest_s" > conftest.s
29589 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29591 (eval $ac_try) 2>&5
29593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29594 test $ac_status = 0; }; }
29596 gcc_cv_as_debug_line_32_flag
=yes
29598 echo "configure: failed program was" >&5
29601 rm -f conftest.o conftest.s
29604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29605 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29606 if test $gcc_cv_as_debug_line_32_flag = yes; then
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29612 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29613 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29614 $as_echo_n "(cached) " >&6
29616 gcc_cv_as_debug_line_64_flag
=no
29617 if test $in_tree_gas = yes; then
29618 if test $in_tree_gas_is_elf = yes \
29619 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29620 then gcc_cv_as_debug_line_64_flag
=yes
29622 elif test x
$gcc_cv_as != x
; then
29623 $as_echo "$conftest_s" > conftest.s
29624 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29626 (eval $ac_try) 2>&5
29628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29629 test $ac_status = 0; }; }
29631 gcc_cv_as_debug_line_64_flag
=yes
29633 echo "configure: failed program was" >&5
29636 rm -f conftest.o conftest.s
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29640 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29641 if test $gcc_cv_as_debug_line_64_flag = yes; then
29646 if test $dwarf4_success = yes; then
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29649 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29650 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29651 $as_echo_n "(cached) " >&6
29653 gcc_cv_as_dwarf_4_debug_line_flag
=no
29654 if test $in_tree_gas = yes; then
29655 if test $in_tree_gas_is_elf = yes \
29656 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29657 then gcc_cv_as_dwarf_4_debug_line_flag
=yes
29659 elif test x
$gcc_cv_as != x
; then
29660 $as_echo "$conftest_s" > conftest.s
29661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29663 (eval $ac_try) 2>&5
29665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29666 test $ac_status = 0; }; }
29668 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29670 echo "configure: failed program was" >&5
29673 rm -f conftest.o conftest.s
29676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29677 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29678 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29684 dwarf4_debug_info_size
=0x36
29685 dwarf4_high_pc_form
=6
29686 dwarf4_debug_aranges_size
=0x1c
29690 if test $dwarf4_success = yes; then
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29709 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29710 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29711 $as_echo_n "(cached) " >&6
29713 gcc_cv_as_dwarf_4_app_flag
=no
29714 if test x
$gcc_cv_as != x
; then
29715 $as_echo "$conftest_s" > conftest.s
29716 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29718 (eval $ac_try) 2>&5
29720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29721 test $ac_status = 0; }; }
29723 gcc_cv_as_dwarf_4_app_flag
=yes
29725 echo "configure: failed program was" >&5
29728 rm -f conftest.o conftest.s
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29732 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29733 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29739 if test $dwarf4_success = yes; then
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29750 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29751 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29752 $as_echo_n "(cached) " >&6
29754 gcc_cv_as_working_gdwarf_n_flag
=no
29755 if test x
$gcc_cv_as != x
; then
29756 $as_echo "$conftest_s" > conftest.s
29757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29759 (eval $ac_try) 2>&5
29761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29762 test $ac_status = 0; }; }
29764 if test x
$gcc_cv_objdump != x \
29765 && $gcc_cv_objdump -W conftest.o
2>&1 \
29766 |
grep conftest.s
> /dev
/null
2>&1; then
29767 gcc_cv_as_working_gdwarf_n_flag
=no
29769 gcc_cv_as_working_gdwarf_n_flag
=yes
29772 echo "configure: failed program was" >&5
29775 rm -f conftest.o conftest.s
29778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29779 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29782 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29784 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29790 $as_echo_n "checking assembler for --gstabs option... " >&6; }
29791 if ${gcc_cv_as_gstabs_flag+:} false
; then :
29792 $as_echo_n "(cached) " >&6
29794 gcc_cv_as_gstabs_flag
=no
29795 if test $in_tree_gas = yes; then
29796 if test $in_tree_gas_is_elf = yes \
29797 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29798 then gcc_cv_as_gstabs_flag
=yes
29800 elif test x
$gcc_cv_as != x
; then
29801 $as_echo "$insn" > conftest.s
29802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29804 (eval $ac_try) 2>&5
29806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29807 test $ac_status = 0; }; }
29809 gcc_cv_as_gstabs_flag
=yes
29811 echo "configure: failed program was" >&5
29814 rm -f conftest.o conftest.s
29817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29818 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29819 if test $gcc_cv_as_gstabs_flag = yes; then
29821 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29827 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29828 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
29829 $as_echo_n "(cached) " >&6
29831 gcc_cv_as_debug_prefix_map_flag
=no
29832 if test $in_tree_gas = yes; then
29833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
29834 then gcc_cv_as_debug_prefix_map_flag
=yes
29836 elif test x
$gcc_cv_as != x
; then
29837 $as_echo "$insn" > conftest.s
29838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29840 (eval $ac_try) 2>&5
29842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29843 test $ac_status = 0; }; }
29845 gcc_cv_as_debug_prefix_map_flag
=yes
29847 echo "configure: failed program was" >&5
29850 rm -f conftest.o conftest.s
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29854 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29855 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29857 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29864 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29865 if ${gcc_cv_as_compress_debug+:} false
; then :
29866 $as_echo_n "(cached) " >&6
29868 gcc_cv_as_compress_debug
=no
29869 if test x
$gcc_cv_as != x
; then
29870 $as_echo '' > conftest.s
29871 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29873 (eval $ac_try) 2>&5
29875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29876 test $ac_status = 0; }; }
29878 # gas compiled without zlib cannot compress debug sections and warns
29879 # about it, but still exits successfully. So check for this, too.
29880 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
29882 gcc_cv_as_compress_debug
=0
29883 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29884 # defaulting to the ELF gABI format.
29885 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
29887 gcc_cv_as_compress_debug
=2
29888 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29889 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29890 # Before binutils 2.26, gas only supported --compress-debug-options and
29891 # emitted the traditional GNU format.
29892 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
29894 gcc_cv_as_compress_debug
=1
29895 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29896 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29898 gcc_cv_as_compress_debug
=0
29901 echo "configure: failed program was" >&5
29904 rm -f conftest.o conftest.s
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29908 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29912 cat >>confdefs.h
<<_ACEOF
29913 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29917 cat >>confdefs.h
<<_ACEOF
29918 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29922 cat >>confdefs.h
<<_ACEOF
29923 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29928 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29929 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29930 $as_echo_n "(cached) " >&6
29932 gcc_cv_as_lcomm_with_alignment
=no
29933 if test x
$gcc_cv_as != x
; then
29934 $as_echo '.lcomm bar,4,16' > conftest.s
29935 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29937 (eval $ac_try) 2>&5
29939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29940 test $ac_status = 0; }; }
29942 gcc_cv_as_lcomm_with_alignment
=yes
29944 echo "configure: failed program was" >&5
29947 rm -f conftest.o conftest.s
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29951 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29952 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29954 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29959 if test x
$with_sysroot = x
&& test x
$host = x
$target \
29960 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29961 && test "$prefix" != "NONE"; then
29963 cat >>confdefs.h
<<_ACEOF
29964 #define PREFIX_INCLUDE_DIR "$prefix/include"
29969 # Determine the version of glibc, if any, used on the target.
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29971 $as_echo_n "checking for target glibc version... " >&6; }
29973 # Check whether --with-glibc-version was given.
29974 if test "${with_glibc_version+set}" = set; then :
29975 withval
=$with_glibc_version;
29976 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29977 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29978 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29980 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
29984 glibc_version_major
=0
29985 glibc_version_minor
=0
29986 if test -f $target_header_dir/features.h \
29987 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29988 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29989 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29990 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29995 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29997 cat >>confdefs.h
<<_ACEOF
29998 #define TARGET_GLIBC_MAJOR $glibc_version_major
30002 cat >>confdefs.h
<<_ACEOF
30003 #define TARGET_GLIBC_MINOR $glibc_version_minor
30007 # Check whether --enable-gnu-unique-object was given.
30008 if test "${enable_gnu_unique_object+set}" = set; then :
30009 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30011 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30012 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30016 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30017 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
30018 $as_echo_n "(cached) " >&6
30020 gcc_cv_as_gnu_unique_object
=no
30021 if test $in_tree_gas = yes; then
30022 if test $in_tree_gas_is_elf = yes \
30023 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
30024 then gcc_cv_as_gnu_unique_object
=yes
30026 elif test x
$gcc_cv_as != x
; then
30027 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30028 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30030 (eval $ac_try) 2>&5
30032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30033 test $ac_status = 0; }; }
30035 gcc_cv_as_gnu_unique_object
=yes
30037 echo "configure: failed program was" >&5
30040 rm -f conftest.o conftest.s
30043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30044 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30045 if test $gcc_cv_as_gnu_unique_object = yes; then
30046 # We need to unquote above to to use the definition from config.gcc.
30047 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30049 if test $glibc_version_major -gt 2 \
30050 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30051 enable_gnu_unique_object
=yes
30058 if test x
$enable_gnu_unique_object = xyes
; then
30060 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30065 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30066 if ${gcc_cv_as_line_zero+:} false
; then :
30067 $as_echo_n "(cached) " >&6
30069 gcc_cv_as_line_zero
=no
30070 if test $in_tree_gas = yes; then
30071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
30072 then gcc_cv_as_line_zero
=yes
30074 elif test "x$gcc_cv_as" != x
; then
30075 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30076 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30078 (eval $ac_try) 2>&5
30080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30081 test $ac_status = 0; }; } &&
30082 test "x`cat conftest.out`" = x
30084 gcc_cv_as_line_zero
=yes
30086 echo "configure: failed program was" >&5
30088 echo "configure: error output was" >&5
30089 cat conftest.out
>&5
30091 rm -f conftest.o conftest.s conftest.out
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30095 $as_echo "$gcc_cv_as_line_zero" >&6; }
30096 if test "x$gcc_cv_as_line_zero" = xyes
; then
30098 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30103 $as_echo_n "checking support for thin archives... " >&6; }
30104 thin_archive_support
=no
30105 echo 'int main (void) { return 0; }' > conftest.c
30106 if ($AR --version |
sed 1q |
grep "GNU ar" \
30107 && $CC $CFLAGS -c conftest.c \
30108 && $AR rcT conftest.a conftest.o \
30109 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
30110 thin_archive_support
=yes
30112 rm -f conftest.c conftest.o conftest.a conftest
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30114 $as_echo "$thin_archive_support" >&6; }
30117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30118 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30119 gcc_cv_ld_eh_frame_hdr
=no
30120 if test $in_tree_ld = yes ; then
30121 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 \
30122 && test $in_tree_ld_is_elf = yes; then
30123 gcc_cv_ld_eh_frame_hdr
=yes
30125 elif test x
$gcc_cv_ld != x
; then
30126 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30127 # Check if linker supports --eh-frame-hdr option
30128 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30129 gcc_cv_ld_eh_frame_hdr
=yes
30134 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30135 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30136 gcc_cv_ld_eh_frame_hdr
=yes
30143 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30145 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30149 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30152 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30153 gcc_cv_ld_eh_frame_ciev3
=no
30154 if test $in_tree_ld = yes ; then
30155 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 \
30156 && test $in_tree_ld_is_elf = yes; then
30157 gcc_cv_ld_eh_frame_ciev3
=yes
30159 elif test x
$gcc_cv_ld != x
; then
30160 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30161 gcc_cv_ld_eh_frame_ciev3
=yes
30162 if test 0"$ld_date" -lt 20040513; then
30163 if test -n "$ld_date"; then
30164 # If there was date string, but was earlier than 2004-05-13, fail
30165 gcc_cv_ld_eh_frame_ciev3
=no
30166 elif test "$ld_vers_major" -lt 2; then
30167 gcc_cv_ld_eh_frame_ciev3
=no
30168 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30169 gcc_cv_ld_eh_frame_ciev3
=no
30175 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30176 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30177 gcc_cv_ld_eh_frame_ciev3
=yes
30184 cat >>confdefs.h
<<_ACEOF
30185 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30189 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30192 $as_echo_n "checking linker position independent executable support... " >&6; }
30194 if test $in_tree_ld = yes ; then
30196 # Full PIE support on Solaris was only introduced in gld 2.26.
30197 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30198 *) gcc_gld_pie_min_version
=15 ;;
30200 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 \
30201 && test $in_tree_ld_is_elf = yes; then
30204 elif test x
$gcc_cv_ld != x
; then
30205 # Check if linker supports -pie option
30206 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30210 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30211 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30218 *-*-solaris2.1
[1-9]*)
30219 # Solaris 11.3 added PIE support.
30220 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30227 if test x
"$gcc_cv_ld_pie" = xyes
; then
30229 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30233 $as_echo "$gcc_cv_ld_pie" >&6; }
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30236 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30237 gcc_cv_ld_pie_copyreloc
=no
30238 if test $gcc_cv_ld_pie = yes ; then
30239 if test $in_tree_ld = yes ; then
30240 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
30241 gcc_cv_ld_pie_copyreloc
=yes
30243 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30244 # Check if linker supports -pie option with copy reloc
30246 i?
86-*-linux* | x86_64-
*-linux*)
30247 cat > conftest1.s
<<EOF
30250 .type a_glob, @object
30255 cat > conftest2.s
<<EOF
30258 .type main, @function
30260 movl %eax, a_glob(%rip)
30263 .section .data.rel,"aw",@progbits
30268 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30269 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30270 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30271 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30272 gcc_cv_ld_pie_copyreloc
=yes
30274 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30280 cat >>confdefs.h
<<_ACEOF
30281 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30285 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30288 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30289 gcc_cv_ld_eh_gc_sections
=no
30290 if test $in_tree_ld = yes ; then
30291 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 \
30292 && test $in_tree_ld_is_elf = yes; then
30293 gcc_cv_ld_eh_gc_sections
=yes
30295 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30296 cat > conftest.s
<<EOF
30299 .type _start, @function
30302 .size _start, .-_start
30303 .section .text.foo,"ax",@progbits
30304 .type foo, @function
30308 .section .gcc_except_table.foo,"a",@progbits
30311 .section .eh_frame,"a",@progbits
30314 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30315 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30316 |
grep "gc-sections option ignored" > /dev
/null
; then
30317 gcc_cv_ld_eh_gc_sections
=no
30318 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30319 |
grep gcc_except_table
> /dev
/null
; then
30320 gcc_cv_ld_eh_gc_sections
=yes
30321 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30322 if test x
$gcc_cv_as_comdat_group != xyes
; then
30323 gcc_cv_ld_eh_gc_sections
=no
30324 cat > conftest.s
<<EOF
30327 .type _start, @function
30330 .size _start, .-_start
30331 .section .gnu.linkonce.t.foo,"ax",@progbits
30332 .type foo, @function
30336 .section .gcc_except_table.foo,"a",@progbits
30339 .section .eh_frame,"a",@progbits
30342 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30343 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30344 |
grep "gc-sections option ignored" > /dev
/null
; then
30345 gcc_cv_ld_eh_gc_sections
=no
30346 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30347 |
grep gcc_except_table
> /dev
/null
; then
30348 gcc_cv_ld_eh_gc_sections
=yes
30354 rm -f conftest.s conftest.o conftest
30358 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30359 gcc_cv_ld_eh_gc_sections
=no
30362 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30364 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30368 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30371 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30372 gcc_cv_ld_eh_gc_sections_bug
=no
30373 if test $in_tree_ld = yes ; then
30374 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 \
30375 && test $in_tree_ld_is_elf = yes; then
30376 gcc_cv_ld_eh_gc_sections_bug
=yes
30378 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
30379 gcc_cv_ld_eh_gc_sections_bug
=yes
30380 cat > conftest.s
<<EOF
30383 .type _start, @function
30386 .size _start, .-_start
30387 .section .text.startup.foo,"ax",@progbits
30388 .type foo, @function
30392 .section .gcc_except_table.foo,"a",@progbits
30395 .section .eh_frame,"a",@progbits
30398 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30399 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30400 |
grep "gc-sections option ignored" > /dev
/null
; then
30402 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30403 |
grep gcc_except_table
> /dev
/null
; then
30404 gcc_cv_ld_eh_gc_sections_bug
=no
30407 rm -f conftest.s conftest.o conftest
30409 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30411 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30415 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30418 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30419 # gold/gld support compressed debug sections since binutils 2.19/2.21
30420 # In binutils 2.26, gld gained support for the ELF gABI format.
30421 if test $in_tree_ld = yes ; then
30422 gcc_cv_ld_compress_debug
=0
30423 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 \
30424 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30425 gcc_cv_ld_compress_debug
=2
30426 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30427 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 \
30428 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
30429 gcc_cv_ld_compress_debug
=3
30430 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30431 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 \
30432 && test $in_tree_ld_is_elf = yes; then
30433 gcc_cv_ld_compress_debug
=1
30435 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30436 if test "$ld_vers_major" -lt 2 \
30437 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30438 gcc_cv_ld_compress_debug
=0
30439 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30440 gcc_cv_ld_compress_debug
=1
30442 gcc_cv_ld_compress_debug
=3
30443 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30445 if test $ld_is_gold = yes; then
30446 gcc_cv_ld_compress_debug
=2
30447 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30450 case "${target}" in
30452 # Introduced in Solaris 11.2.
30453 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30454 gcc_cv_ld_compress_debug
=3
30455 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30457 gcc_cv_ld_compress_debug
=0
30461 # Assume linkers other than GNU ld don't support compessed debug
30463 gcc_cv_ld_compress_debug
=0
30468 cat >>confdefs.h
<<_ACEOF
30469 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30473 cat >>confdefs.h
<<_ACEOF
30474 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30478 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30480 if test x
"$ld64_flag" = x
"yes"; then
30482 # Set defaults for possibly untestable items.
30483 gcc_cv_ld64_export_dynamic
=0
30485 if test "$build" = "$host"; then
30491 # On Darwin, because of FAT library support, it is often possible to execute
30492 # exes from compatible archs even when the host differs from the build system.
30493 case "$build","$host" in
30494 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30495 darwin_try_test
=1;;
30499 # If the configurer specified a minimum ld64 version to be supported, then use
30500 # that to determine feature support.
30501 if test x
"${gcc_cv_ld64_version}" != x
; then
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30503 $as_echo_n "checking ld64 specified version... " >&6; }
30504 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30506 $as_echo "$gcc_cv_ld64_major" >&6; }
30507 if test "$gcc_cv_ld64_major" -ge 236; then
30508 gcc_cv_ld64_export_dynamic
=1
30510 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30511 # If the version was not specified, try to find it.
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30513 $as_echo_n "checking linker version... " >&6; }
30514 if test x
"${gcc_cv_ld64_version}" = x
; then
30515 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30518 $as_echo "$gcc_cv_ld64_version" >&6; }
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30521 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30522 gcc_cv_ld64_export_dynamic
=1
30523 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30524 gcc_cv_ld64_export_dynamic
=0
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30527 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30530 if test x
"${gcc_cv_ld64_version}" != x
; then
30532 cat >>confdefs.h
<<_ACEOF
30533 #define LD64_VERSION "${gcc_cv_ld64_version}"
30539 cat >>confdefs.h
<<_ACEOF
30540 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30545 if test x
"$dsymutil_flag" = x
"yes"; then
30547 # If the user specified a dsymutil path, then we will already have the
30548 # version string, otherwise, pick it up.
30549 if test x
"$gcc_cv_dsymutil" = x
; then
30550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30551 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30552 dsymutil_vers
="tool unspecified"
30553 elif test x
"$dsymutil_vers" = x
; then
30554 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30557 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30559 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30560 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30561 dsymutil_kind
=DWARFUTILS
30562 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30563 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30564 dsymutil_kind
=CLANG
30565 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30566 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30568 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30570 dsymutil_kind
=UNKNOWN
30571 dsymutil_vers
="0.0"
30573 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30574 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30575 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30576 if test x
"${dsymutil_minor}" = x
; then
30579 if test x
"${dsymutil_tiny}" = x
; then
30583 cat >>confdefs.h
<<_ACEOF
30584 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30588 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30592 win32 | pe | cygwin* | mingw32*)
30593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30594 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30595 gcc_cv_ld_broken_pe_dwarf5=yes
30596 if test $in_tree_ld = yes ; then
30597 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30598 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30599 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30600 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30601 gcc_cv_ld_broken_pe_dwarf5=no
30604 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30605 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30606 gcc_cv_ld_broken_pe_dwarf5=no
30609 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30611 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30615 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30618 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30619 gcc_cv_ld_disable_dynamicbase
=no
30620 if test $in_tree_ld = yes; then
30621 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
30622 gcc_cv_ld_disable_dynamicbase
=yes
30625 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30626 gcc_cv_ld_disable_dynamicbase
=yes
30629 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30631 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30635 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30644 $as_echo_n "checking linker --as-needed support... " >&6; }
30645 if ${gcc_cv_ld_as_needed+:} false
; then :
30646 $as_echo_n "(cached) " >&6
30648 gcc_cv_ld_as_needed
=no
30649 gcc_cv_ld_as_needed_option
='--as-needed'
30650 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30651 if test $in_tree_ld = yes ; then
30652 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 \
30653 && test $in_tree_ld_is_elf = yes; then
30654 gcc_cv_ld_as_needed
=yes
30655 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30656 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30657 gcc_cv_ld_no_as_needed_option
='--pop-state'
30660 elif test x
$gcc_cv_ld != x
; then
30661 # Check if linker supports --as-needed and --no-as-needed options
30662 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30663 gcc_cv_ld_as_needed
=yes
30664 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30665 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30666 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30667 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30668 # Use these options only when both ld.bfd and ld.gold support
30669 # --push-state/--pop-state, which unfortunately wasn't added
30670 # at the same time.
30671 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30672 gcc_cv_ld_no_as_needed_option
='--pop-state'
30675 case "$target:$gnu_ld" in
30677 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30679 gcc_cv_ld_as_needed
=yes
30680 gcc_cv_ld_as_needed_option
="-z ignore"
30681 gcc_cv_ld_no_as_needed_option
="-z record"
30685 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30686 # dl_iterate_phdr, i.e. since Solaris 11.
30688 *-*-solaris2.1
[1-9]*)
30690 i?
86-*-* | x86_64-
*-*)
30691 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30692 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30693 gcc_cv_ld_as_needed
=no
30699 gcc_cv_ld_as_needed
=no
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30705 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30706 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30708 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30711 cat >>confdefs.h
<<_ACEOF
30712 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30716 cat >>confdefs.h
<<_ACEOF
30717 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30723 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30724 saved_LDFLAGS
="$LDFLAGS"
30725 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30726 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30728 /* end confdefs.h. */
30729 int main(void) {return 0;}
30731 if ac_fn_cxx_try_link
"$LINENO"; then :
30732 gcc_cv_ld_clearcap
=yes; break
30734 gcc_cv_ld_clearcap
=no
30736 rm -f core conftest.err conftest.
$ac_objext \
30737 conftest
$ac_exeext conftest.
$ac_ext
30739 LDFLAGS
="$saved_LDFLAGS"
30740 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30742 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30744 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30748 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30754 emul_name
="-melf32lppc"
30757 emul_name
="-melf32ppc"
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30761 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30762 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30763 $as_echo_n "(cached) " >&6
30765 gcc_cv_ld_ppc_attr
=no
30766 if test x
"$ld_is_gold" = xyes
; then
30767 gcc_cv_ld_ppc_attr
=yes
30768 elif test $in_tree_ld = yes ; then
30769 if test "$gcc_cv_gld_major_version" -eq 2 \
30770 -a "$gcc_cv_gld_minor_version" -ge 28 \
30771 -o "$gcc_cv_gld_major_version" -gt 2; then
30772 gcc_cv_ld_ppc_attr
=yes
30774 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30775 # check that merging the long double .gnu_attribute doesn't warn
30776 cat > conftest1.s
<<EOF
30779 cat > conftest2.s
<<EOF
30782 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30783 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30784 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30785 && test ! -s conftest.err
; then
30786 gcc_cv_ld_ppc_attr
=yes
30788 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30793 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30794 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30796 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30802 case "$target:$tm_file" in
30803 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30806 emul_name
="-melf64lppc"
30809 emul_name
="-melf64ppc"
30812 emul_name
="-melf64lppc_fbsd"
30815 emul_name
="-melf64ppc_fbsd"
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30819 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30820 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
30821 $as_echo_n "(cached) " >&6
30823 gcc_cv_ld_no_dot_syms
=no
30824 if test x
"$ld_is_gold" = xyes
; then
30825 gcc_cv_ld_no_dot_syms
=yes
30826 elif test $in_tree_ld = yes ; then
30827 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
30828 gcc_cv_ld_no_dot_syms
=yes
30830 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30831 cat > conftest1.s
<<EOF
30835 cat > conftest2.s
<<EOF
30836 .section ".opd","aw"
30839 .type foo,@function
30841 .quad .LEfoo,.TOC.@tocbase,0
30847 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30848 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30849 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
30850 gcc_cv_ld_no_dot_syms
=yes
30852 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30857 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30858 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
30860 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30865 $as_echo_n "checking linker large toc support... " >&6; }
30866 if ${gcc_cv_ld_large_toc+:} false
; then :
30867 $as_echo_n "(cached) " >&6
30869 gcc_cv_ld_large_toc
=no
30870 if test x
"$ld_is_gold" = xyes
; then
30871 gcc_cv_ld_large_toc
=yes
30872 elif test $in_tree_ld = yes ; then
30873 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
30874 gcc_cv_ld_large_toc
=yes
30876 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30877 cat > conftest.s
<<EOF
30878 .section ".tbss","awT",@nobits
30884 addis 9,13,ie0@got@tprel@ha
30885 ld 9,ie0@got@tprel@l(9)
30887 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30888 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
30889 gcc_cv_ld_large_toc
=yes
30891 rm -f conftest conftest.o conftest.s
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30896 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30897 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30899 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30904 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30905 if ${gcc_cv_ld_toc_align+:} false
; then :
30906 $as_echo_n "(cached) " >&6
30908 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
30909 cat > conftest.s
<<EOF
30914 .section .data.rel.ro,"aw",@progbits
30919 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30920 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
30921 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)) }'`
30923 rm -f conftest conftest.o conftest.s
30927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30928 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30929 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30931 cat >>confdefs.h
<<_ACEOF
30932 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30942 $as_echo_n "checking linker large toc support... " >&6; }
30943 if ${gcc_cv_ld_large_toc+:} false
; then :
30944 $as_echo_n "(cached) " >&6
30946 gcc_cv_ld_large_toc
=no
30947 if test x
$gcc_cv_as != x
; then
30948 cat > conftest.s
<<EOF
30958 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
30959 gcc_cv_ld_large_toc
=yes
30961 rm -f conftest conftest.o conftest.s
30965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30966 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30967 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30969 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30976 $as_echo_n "checking linker --build-id support... " >&6; }
30977 if ${gcc_cv_ld_buildid+:} false
; then :
30978 $as_echo_n "(cached) " >&6
30980 gcc_cv_ld_buildid
=no
30981 if test $in_tree_ld = yes ; then
30982 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30983 "$gcc_cv_gld_minor_version" -ge 18 -o \
30984 "$gcc_cv_gld_major_version" -gt 2 \
30985 && test $in_tree_ld_is_elf = yes; then
30986 gcc_cv_ld_buildid
=yes
30988 elif test x
$gcc_cv_ld != x
; then
30989 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
30990 gcc_cv_ld_buildid
=yes
30994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30995 $as_echo "$gcc_cv_ld_buildid" >&6; }
30996 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30998 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31002 # Check whether --enable-linker-build-id was given.
31003 if test "${enable_linker_build_id+set}" = set; then :
31004 enableval
=$enable_linker_build_id;
31006 enable_linker_build_id
=no
31010 if test x
"$enable_linker_build_id" = xyes
; then
31011 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31013 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31017 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31021 # In binutils 2.21, GNU ld gained support for new emulations fully
31022 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31024 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31025 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
31026 $as_echo_n "(cached) " >&6
31028 gcc_cv_ld_sol2_emulation
=no
31029 if test $in_tree_ld = yes ; then
31030 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31031 "$gcc_cv_gld_minor_version" -ge 21 -o \
31032 "$gcc_cv_gld_major_version" -gt 2 \
31033 && test $in_tree_ld_is_elf = yes; then
31034 gcc_cv_ld_sol2_emulation
=yes
31036 elif test x
$gcc_cv_ld != x
; then
31037 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
31038 grep _sol2
> /dev
/null
; then
31039 gcc_cv_ld_sol2_emulation
=yes
31043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31044 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31045 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
31047 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31052 $as_echo_n "checking linker --sysroot support... " >&6; }
31053 if ${gcc_cv_ld_sysroot+:} false
; then :
31054 $as_echo_n "(cached) " >&6
31056 gcc_cv_ld_sysroot
=no
31057 if test $in_tree_ld = yes ; then
31058 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
31059 gcc_cv_ld_sysroot
=yes
31061 elif test x
$gcc_cv_ld != x
; then
31062 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
31063 gcc_cv_ld_sysroot
=yes
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31068 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31069 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
31071 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31077 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31079 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31080 if ${gcc_cv_solaris_crts+:} false
; then :
31081 $as_echo_n "(cached) " >&6
31083 gcc_cv_solaris_crts
=no
31084 if test x
$host != x
$target; then
31085 if test "x$with_sysroot" = xyes
; then
31086 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
31088 target_sysroot
="${with_sysroot}"
31091 target_libdir
="$target_sysroot/usr/lib"
31092 # At the time they were added, gcrt1.o became a symlink for backwards
31093 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31095 i?
86-*-solaris2* | x86_64-
*-solaris2*)
31096 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
31098 sparc
*-*-solaris2*)
31099 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
31103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31104 $as_echo "$gcc_cv_solaris_crts" >&6; }
31107 if test x
$gcc_cv_solaris_crts = xyes
; then
31109 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31113 # Check whether --enable-libssp was given.
31114 if test "${enable_libssp+set}" = set; then :
31115 enableval
=$enable_libssp; case "${enableval}" in
31119 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
31125 # Test for stack protector support in target C library.
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31127 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31128 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31129 $as_echo_n "(cached) " >&6
31131 gcc_cv_libc_provides_ssp
=no
31132 if test "x$enable_libssp" = "xno"; then
31133 gcc_cv_libc_provides_ssp
=yes
31134 elif test "x$enable_libssp" = "xyes"; then
31135 gcc_cv_libc_provides_ssp
=no
31139 # All versions of musl provide stack protector
31140 gcc_cv_libc_provides_ssp
=yes;;
31141 *-*-linux* |
*-*-kfreebsd*-gnu)
31142 # glibc 2.4 and later provides __stack_chk_fail and
31143 # either __stack_chk_guard, or TLS access to stack guard canary.
31145 if test $glibc_version_major -gt 2 \
31146 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31147 gcc_cv_libc_provides_ssp
=yes
31150 if test -f $target_header_dir/features.h \
31151 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31152 $target_header_dir/features.h
> /dev
/null
; then
31153 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31154 $target_header_dir/features.h
> /dev
/null
&& \
31155 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31156 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31157 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31158 gcc_cv_libc_provides_ssp
=yes
31160 # all versions of Bionic support stack protector
31161 elif test -f $target_header_dir/sys
/cdefs.h \
31162 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31163 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31164 gcc_cv_libc_provides_ssp
=yes
31169 # Avoid complicated tests (see
31170 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31171 # simply assert that glibc does provide this, which is true for all
31172 # realistically usable GNU/Hurd configurations.
31173 # All supported versions of musl provide it as well
31174 gcc_cv_libc_provides_ssp
=yes;;
31175 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31176 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31177 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31178 gcc_cv_libc_provides_ssp
=yes
31180 echo "no __stack_chk_fail on this target"
31184 *) gcc_cv_libc_provides_ssp
=no
;;
31188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31189 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31191 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31193 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31197 # Check whether --enable-default-ssp was given.
31198 # Check whether --enable-default-ssp was given.
31199 if test "${enable_default_ssp+set}" = set; then :
31200 enableval
=$enable_default_ssp;
31201 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31203 ia64
*-*-*) enable_default_ssp
=no
;;
31204 *) enable_default_ssp
=$enableval ;;
31207 enable_default_ssp
=no
31210 enable_default_ssp
=no
31213 if test x
$enable_default_ssp = xyes
; then
31215 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31220 # Test for <sys/sdt.h> on the target.
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31223 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31225 if test -f $target_header_dir/sys
/sdt.h
; then
31228 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31232 $as_echo "$have_sys_sdt_h" >&6; }
31234 # Check if TFmode long double should be used by default or not.
31235 # Some glibc targets used DFmode long double, but with glibc 2.4
31236 # and later they can use TFmode.
31238 powerpc
*-*-linux* | \
31239 sparc
*-*-linux* | \
31243 # Check whether --with-long-double-128 was given.
31244 if test "${with_long_double_128+set}" = set; then :
31245 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31249 s390
*-*-linux-musl*)
31250 gcc_cv_target_ldbl128
=yes
31252 powerpc
*-*-linux-musl*)
31253 gcc_cv_target_ldbl128
=no
31257 if test $glibc_version_major -gt 2 \
31258 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31259 gcc_cv_target_ldbl128
=yes
31262 gcc_cv_target_ldbl128
=no
31263 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31264 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31265 && gcc_cv_target_ldbl128
=yes
31276 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31278 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31282 # Check if TFmode long double target should use the IBM extended double or IEEE
31283 # 128-bit floating point formats if long doubles are 128-bits long. The long
31284 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31285 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31288 # Check whether --with-long-double-format was given.
31289 if test "${with_long_double_format+set}" = set; then :
31290 withval
=$with_long_double_format;
31291 case "$target:$with_long_double_format" in
31292 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31295 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31296 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31297 case "$with_cpu" in
31298 power7 | power8 | power9 | power1
*)
31302 as_fn_error $?
"Configuration option --with-long-double-format is only \
31303 supported if the default cpu is power7 or newer" "$LINENO" 5
31304 with_long_double_format
=""
31308 powerpc64
*-*-linux*:*)
31309 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31310 with_long_double_format
=""
31313 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31314 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31315 with_long_double_format
=""
31321 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31322 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31323 gcc_cv_libc_provides_hwcap_in_tcb
=no
31327 if test $glibc_version_major -gt 2 \
31328 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31329 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31333 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31335 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31339 # Check if the target LIBC handles PT_GNU_STACK.
31340 gcc_cv_libc_gnustack
=unknown
31344 if test $glibc_version_major -gt 2 \
31345 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31346 gcc_cv_libc_gnustack
=yes
31350 if test x
$gcc_cv_libc_gnustack = xyes
; then
31352 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31357 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31358 gcc_cv_target_dl_iterate_phdr
=unknown
31361 # <link.h> needs both a dl_iterate_phdr declaration and support for
31362 # compilation with largefile support.
31363 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31364 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31365 gcc_cv_target_dl_iterate_phdr
=yes
31367 gcc_cv_target_dl_iterate_phdr
=no
31370 *-*-dragonfly* |
*-*-freebsd*)
31371 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31372 gcc_cv_target_dl_iterate_phdr
=yes
31374 gcc_cv_target_dl_iterate_phdr
=no
31378 gcc_cv_target_dl_iterate_phdr
=yes
31382 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31384 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31388 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31390 # We no longer support different GC mechanisms. Emit an error if
31391 # the user configures with --with-gc.
31393 # Check whether --with-gc was given.
31394 if test "${with_gc+set}" = set; then :
31395 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31399 # Libraries to use on the host. This will normally be set by the top
31400 # level Makefile. Here we simply capture the value for our Makefile.
31401 if test -z "${HOST_LIBS+set}"; then
31406 # Use the system's zlib library.
31408 # Use the system's zlib library.
31409 zlibdir
="-L\$(top_builddir)/../zlib"
31410 zlibinc
="-I\$(top_srcdir)/../zlib"
31412 # Check whether --with-system-zlib was given.
31413 if test "${with_system_zlib+set}" = set; then :
31414 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31427 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31428 # Check whether --enable-maintainer-mode was given.
31429 if test "${enable_maintainer_mode+set}" = set; then :
31430 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31437 $as_echo "$maintainer_mode" >&6; }
31439 if test "$maintainer_mode" = "yes"; then
31446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31447 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31448 # Check whether --enable-link-mutex was given.
31449 if test "${enable_link_mutex+set}" = set; then :
31450 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31456 $as_echo "$do_link_mutex" >&6; }
31458 if test "$do_link_mutex" = "yes"; then
31461 DO_LINK_MUTEX
=false
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31467 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31468 # Check whether --enable-link-serialization was given.
31469 if test "${enable_link_serialization+set}" = set; then :
31470 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31472 do_link_serialization
=no
31475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31476 $as_echo "$do_link_serialization" >&6; }
31478 case "$do_link_serialization" in
31480 DO_LINK_SERIALIZATION
=1;;
31481 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31482 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31484 DO_LINK_SERIALIZATION
=;;
31486 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31494 # Make empty files to contain the specs and options for each language.
31495 # Then add #include lines to for a compiler that has specs and/or options.
31501 # These (without "all_") are set in each config-lang.in.
31502 # `language' must be a single word so is spelled singularly.
31505 all_outputs
='Makefile'
31506 # List of language configure and makefile fragments.
31507 all_lang_configurefrags
=
31508 all_lang_makefrags
=
31509 # Additional files for gengtype
31510 all_gtfiles
="$target_gtfiles"
31512 # These are the languages that are set in --enable-languages,
31513 # and are available in the GCC tree.
31514 all_selected_languages
=
31516 # Add the language fragments.
31517 # Languages are added via two mechanisms. Some information must be
31518 # recorded in makefile variables, these are defined in config-lang.in.
31519 # We accumulate them and plug them into the main Makefile.
31520 # The other mechanism is a set of hooks for each of the main targets
31521 # like `clean', `install', etc.
31523 language_hooks
="Make-hooks"
31525 for lang
in ${srcdir}/*/config-lang.
in
31527 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31529 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31530 if test "x$lang_alias" = x
31532 echo "$lang doesn't set \$language." 1>&2
31535 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31536 subdirs
="$subdirs $subdir"
31538 # $gcc_subdir is where the gcc integration files are to be found
31539 # for a language, both for internal compiler purposes (compiler
31540 # sources implementing front-end to GCC tree converters), and for
31541 # build infrastructure purposes (Make-lang.in, etc.)
31543 # This will be <subdir> (relative to $srcdir) if a line like
31544 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31545 # is found in <langdir>/config-lang.in, and will remain <langdir>
31548 # Except for the language alias (fetched above), the regular
31549 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31550 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31551 # only this and the language alias.
31553 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31554 if [ "$gcc_subdir" = "" ]; then
31555 gcc_subdir
="$subdir"
31558 case ",$enable_languages," in
31560 all_selected_languages
="$all_selected_languages $lang_alias"
31561 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31562 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31573 .
${srcdir}/$gcc_subdir/config-lang.
in
31574 if test "x$language" = x
31576 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31581 case ",$enable_languages," in
31582 *,$lang_alias,*) ;;
31584 for i
in $subdir_requires; do
31585 test -f "${srcdir}/$i/config-lang.in" && continue
31593 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31594 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31595 # Put c/Make-lang.in fragment first to match serialization languages order.
31596 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31598 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31600 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31601 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31602 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31604 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31605 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31607 all_languages
="$all_languages $language"
31608 all_compilers
="$all_compilers $compilers"
31609 all_outputs
="$all_outputs $outputs"
31610 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31611 case ",$enable_languages," in
31614 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31624 for language
in $all_selected_languages
31626 check_languages
="$check_languages check-$language"
31629 selftest_languages
=
31630 for language
in $all_selected_languages
31632 selftest_languages
="$selftest_languages selftest-$language"
31635 # We link each language in with a set of hooks, reached indirectly via
31636 # lang.${target}. Only do so for selected languages.
31640 target_list
="all.cross start.encap rest.encap tags \
31641 install-common install-man install-info install-pdf install-html dvi \
31642 pdf html uninstall info man srcextra srcman srcinfo \
31643 mostlyclean clean distclean maintainer-clean install-plugin"
31645 for t
in $target_list
31648 for lang
in $all_selected_languages
31652 echo "lang.$t: $x" >> Make-hooks
31655 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31656 echo "SERIAL_LIST =" >> Make-hooks
31657 echo else >> Make-hooks
31661 serialization_languages
=c
31662 for lang
in $all_selected_languages
31664 test $lang = c
&& continue
31665 if test $lang = lto
; then
31666 serialization_languages
="$serialization_languages lto1 lto2"
31668 serialization_languages
="$serialization_languages $lang"
31671 for lang
in $serialization_languages
31673 test $lang = c
&& continue
31674 lang_cnt
=`expr $lang_cnt + 1`
31675 lang_list
=" $prev$lang_list"
31678 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31679 echo endif
>> Make-hooks
31680 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31681 echo "INDEX.c = 0" >> Make-hooks
31683 for lang
in $serialization_languages
31685 test $lang = c
&& continue
31686 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31687 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31688 lang_cnt
=`expr $lang_cnt - 1`
31689 lang_idx
=`expr $lang_idx + 1`
31693 # Option include files
31696 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31697 option_includes
="option-includes.mk"
31706 echo "dir ." > .gdbinit
31707 echo "dir ${srcdir}" >> .gdbinit
31708 if test x
$gdb_needs_out_file_path = xyes
31710 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31712 if test "x$subdirs" != x
; then
31715 echo "dir ${srcdir}/$s" >> .gdbinit
31718 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31719 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31721 # Put a breakpoint on __asan_report_error to help with debugging buffer
31724 *-fsanitize=address
*)
31725 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31729 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31733 # Find a directory in which to install a shared libgcc.
31735 # Check whether --enable-version-specific-runtime-libs was given.
31736 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31737 enableval
=$enable_version_specific_runtime_libs;
31741 # Substitute configuration variables
31812 if test x
${build} = x
${host} ; then
31813 if test x
${host} = x
${target} ; then
31814 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31816 echo "Links are now set up to build a cross-compiler" 1>&2
31817 echo " from ${host} to ${target}." 1>&2
31820 if test x
${host} = x
${target} ; then
31821 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31822 echo " for ${target}." 1>&2
31824 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31825 echo " from ${host} to ${target}." 1>&2
31834 if test "x${ISLLIBS}" != "x" ; then
31836 $as_echo "#define HAVE_isl 1" >>confdefs.h
31840 # Check for plugin support
31841 # Check whether --enable-plugin was given.
31842 if test "${enable_plugin+set}" = set; then :
31843 enableval
=$enable_plugin; enable_plugin
=$enableval
31845 enable_plugin
=yes; default_plugin
=yes
31854 # Since plugin support under MinGW is not as straightforward as on
31855 # other platforms (e.g., we have to link import library, etc), we
31856 # only enable it if explicitly requested.
31857 if test x
"$default_plugin" = x
"yes"; then
31859 elif test x
"$enable_plugin" = x
"yes"; then
31860 # Use make's target variable to derive import library name.
31861 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31866 if test x
$build = x
$host; then
31867 export_sym_check
="nm${exeext} -g"
31868 elif test x
$host = x
$target; then
31869 export_sym_check
="$gcc_cv_nm -g"
31875 if test x
$build = x
$host; then
31876 export_sym_check
="objdump${exeext} -T"
31877 elif test x
$host = x
$target; then
31878 export_sym_check
="$gcc_cv_objdump -T"
31885 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31888 $as_echo_n "checking for exported symbols... " >&6; }
31889 if test "x$export_sym_check" != x
; then
31890 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31891 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31892 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31893 : # No need to use a flag
31894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31895 $as_echo "yes" >&6; }
31897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31898 $as_echo "yes" >&6; }
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31900 $as_echo_n "checking for -rdynamic... " >&6; }
31901 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31902 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31903 plugin_rdynamic
=yes
31904 pluginlibs
="-rdynamic"
31909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31910 $as_echo "$plugin_rdynamic" >&6; }
31913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31914 $as_echo "unable to check" >&6; }
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31920 $as_echo_n "checking for library containing dlopen... " >&6; }
31921 if ${ac_cv_search_dlopen+:} false
; then :
31922 $as_echo_n "(cached) " >&6
31924 ac_func_search_save_LIBS
=$LIBS
31925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31926 /* end confdefs.h. */
31928 /* Override any GCC internal prototype to avoid an error.
31929 Use char because int might match the return type of a GCC
31930 builtin and then its argument prototype would still apply. */
31943 for ac_lib
in '' dl
; do
31944 if test -z "$ac_lib"; then
31945 ac_res
="none required"
31948 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31950 if ac_fn_cxx_try_link
"$LINENO"; then :
31951 ac_cv_search_dlopen
=$ac_res
31953 rm -f core conftest.err conftest.
$ac_objext \
31955 if ${ac_cv_search_dlopen+:} false
; then :
31959 if ${ac_cv_search_dlopen+:} false
; then :
31962 ac_cv_search_dlopen
=no
31964 rm conftest.
$ac_ext
31965 LIBS
=$ac_func_search_save_LIBS
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31968 $as_echo "$ac_cv_search_dlopen" >&6; }
31969 ac_res
=$ac_cv_search_dlopen
31970 if test "$ac_res" != no
; then :
31971 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31975 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
31976 pluginlibs
="$pluginlibs -ldl"
31980 # Check that we can build shared objects with -fPIC -shared
31981 saved_LDFLAGS
="$LDFLAGS"
31982 saved_CFLAGS
="$CFLAGS"
31985 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31986 CFLAGS
="$CFLAGS -fPIC"
31987 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
31990 CFLAGS
="$CFLAGS -fPIC"
31991 LDFLAGS
="$LDFLAGS -fPIC -shared"
31994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31995 $as_echo_n "checking for -fPIC -shared... " >&6; }
31996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31997 /* end confdefs.h. */
32007 if ac_fn_cxx_try_link
"$LINENO"; then :
32008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32009 $as_echo "yes" >&6; }; have_pic_shared
=yes
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32012 $as_echo "no" >&6; }; have_pic_shared
=no
32014 rm -f core conftest.err conftest.
$ac_objext \
32015 conftest
$ac_exeext conftest.
$ac_ext
32016 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
32020 LDFLAGS
="$saved_LDFLAGS"
32021 CFLAGS
="$saved_CFLAGS"
32023 # If plugin support had been requested but not available, fail.
32024 if test x
"$enable_plugin" = x
"no" ; then
32025 if test x
"$default_plugin" != x
"yes"; then
32027 Building GCC with plugin support requires a host that supports
32028 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32035 if test x
"$enable_plugin" = x
"yes"; then
32037 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32042 # Enable --enable-host-shared
32043 # Check whether --enable-host-shared was given.
32044 if test "${enable_host_shared+set}" = set; then :
32045 enableval
=$enable_host_shared; PICFLAG
=-fPIC
32054 # Check whether --enable-libquadmath-support was given.
32055 if test "${enable_libquadmath_support+set}" = set; then :
32056 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
32058 ENABLE_LIBQUADMATH_SUPPORT
=yes
32061 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32063 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32068 # Specify what hash style to use by default.
32070 # Check whether --with-linker-hash-style was given.
32071 if test "${with_linker_hash_style+set}" = set; then :
32072 withval
=$with_linker_hash_style; case x
"$withval" in
32074 LINKER_HASH_STYLE
=sysv
32077 LINKER_HASH_STYLE
=gnu
32080 LINKER_HASH_STYLE
=both
32083 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32087 LINKER_HASH_STYLE
=''
32090 if test x
"${LINKER_HASH_STYLE}" != x
; then
32092 cat >>confdefs.h
<<_ACEOF
32093 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32098 # Specify what should be the default of -fdiagnostics-color option.
32100 # Check whether --with-diagnostics-color was given.
32101 if test "${with_diagnostics_color+set}" = set; then :
32102 withval
=$with_diagnostics_color; case x
"$withval" in
32104 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32107 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32110 DIAGNOSTICS_COLOR_DEFAULT
=-1
32113 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32116 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32120 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32124 cat >>confdefs.h
<<_ACEOF
32125 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32129 # Specify what should be the default of -fdiagnostics-urls option.
32131 # Check whether --with-diagnostics-urls was given.
32132 if test "${with_diagnostics_urls+set}" = set; then :
32133 withval
=$with_diagnostics_urls; case x
"$withval" in
32135 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32138 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32141 DIAGNOSTICS_URLS_DEFAULT
=-1
32144 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32147 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32151 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32155 cat >>confdefs.h
<<_ACEOF
32156 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32160 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32161 # of jit/jit-playback.c.
32162 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32163 echo "gcc_driver_version: ${gcc_driver_version}"
32164 cat > gcc-driver-name.h
<<EOF
32165 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32168 # Check whether --enable-default-pie was given.
32169 # Check whether --enable-default-pie was given.
32170 if test "${enable_default_pie+set}" = set; then :
32171 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32173 enable_default_pie
=no
32176 if test x
$enable_default_pie = xyes
; then
32178 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32183 # Check if -fno-PIE works.
32184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32185 $as_echo_n "checking for -fno-PIE option... " >&6; }
32186 if ${gcc_cv_c_no_fpie+:} false
; then :
32187 $as_echo_n "(cached) " >&6
32189 saved_CXXFLAGS
="$CXXFLAGS"
32190 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32192 /* end confdefs.h. */
32193 int main(void) {return 0;}
32195 if ac_fn_cxx_try_compile
"$LINENO"; then :
32196 gcc_cv_c_no_fpie
=yes
32198 gcc_cv_c_no_fpie
=no
32200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32201 CXXFLAGS
="$saved_CXXFLAGS"
32203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32204 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32205 if test "$gcc_cv_c_no_fpie" = "yes"; then
32206 NO_PIE_CFLAGS
="-fno-PIE"
32210 # Check if -no-pie works.
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32212 $as_echo_n "checking for -no-pie option... " >&6; }
32213 if ${gcc_cv_no_pie+:} false
; then :
32214 $as_echo_n "(cached) " >&6
32216 saved_LDFLAGS
="$LDFLAGS"
32217 LDFLAGS
="$LDFLAGS -no-pie"
32218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32219 /* end confdefs.h. */
32220 int main(void) {return 0;}
32222 if ac_fn_cxx_try_link
"$LINENO"; then :
32227 rm -f core conftest.err conftest.
$ac_objext \
32228 conftest
$ac_exeext conftest.
$ac_ext
32229 LDFLAGS
="$saved_LDFLAGS"
32231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32232 $as_echo "$gcc_cv_no_pie" >&6; }
32233 if test "$gcc_cv_no_pie" = "yes"; then
32234 NO_PIE_FLAG
="-no-pie"
32238 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32239 # Check whether --enable-cet was given.
32240 if test "${enable_cet+set}" = set; then :
32241 enableval
=$enable_cet;
32242 case "$enableval" in
32244 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32253 $as_echo_n "checking for CET support... " >&6; }
32256 i
[34567]86-*-linux* | x86_64-
*-linux*)
32258 cet_save_CFLAGS
="$CFLAGS"
32259 CFLAGS
="$CFLAGS -fcf-protection"
32260 case "$enable_cet" in
32262 # Check if target supports multi-byte NOPs
32263 # and if compiler and assembler support CET.
32264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32265 /* end confdefs.h. */
32271 #if !defined(__SSE2__)
32272 #error target does not support multi-byte NOPs
32281 if ac_fn_cxx_try_compile
"$LINENO"; then :
32286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32289 # Check if compiler and assembler support CET.
32290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32291 /* end confdefs.h. */
32301 if ac_fn_cxx_try_compile
"$LINENO"; then :
32306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32307 if test $support_cet = "no"; then
32308 if test x
$enable_bootstrap != xno \
32309 && test -z "${with_build_subdir}" \
32310 && (test ! -f ..
/stage_current \
32311 ||
test `cat ../stage_current` != "stage1"); then
32312 # Require CET support only for the final GCC build.
32313 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32315 # Don't enable CET without CET support for non-bootstrap
32316 # build, in stage1 nor for build support.
32322 CFLAGS
="$cet_save_CFLAGS"
32330 cet_save_CFLAGS
="$CFLAGS"
32331 CFLAGS
="$CFLAGS -fcf-protection=none"
32332 cet_save_LDFLAGS
="$LDFLAGS"
32333 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32334 if test x
$may_have_cet = xyes
; then
32335 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32337 /* end confdefs.h. */
32347 if ac_fn_cxx_try_link
"$LINENO"; then :
32352 rm -f core conftest.err conftest.
$ac_objext \
32353 conftest
$ac_exeext conftest.
$ac_ext
32356 if test x
$may_have_cet = xyes
; then
32357 if test x
$cross_compiling = xno
; then
32358 if test "$cross_compiling" = yes; then :
32359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32361 as_fn_error $?
"cannot run test program while cross compiling
32362 See \`config.log' for more details" "$LINENO" 5; }
32364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32365 /* end confdefs.h. */
32375 if ac_fn_cxx_try_run
"$LINENO"; then :
32376 have_multi_byte_nop
=yes
32378 have_multi_byte_nop
=no
32380 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32381 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32385 if test x
$have_multi_byte_nop = xyes
; then
32386 if test "$cross_compiling" = yes; then :
32387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32389 as_fn_error $?
"cannot run test program while cross compiling
32390 See \`config.log' for more details" "$LINENO" 5; }
32392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32393 /* end confdefs.h. */
32401 __attribute__ ((noinline, noclone))
32402 xxx (void (*f) (void))
32408 __attribute__ ((noinline, noclone))
32422 if ac_fn_cxx_try_run
"$LINENO"; then :
32427 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32428 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32432 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32433 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32437 # Enable CET in cross compiler if possible so that it will run on both
32438 # CET and non-CET hosts.
32441 if test x
$enable_cet = xyes
; then
32442 CET_HOST_FLAGS
="-fcf-protection"
32443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32444 $as_echo "yes" >&6; }
32446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32447 $as_echo "no" >&6; }
32449 CFLAGS
="$cet_save_CFLAGS"
32450 LDFLAGS
="$cet_save_LDFLAGS"
32452 case x
$enable_languages in
32461 # Check linker supports '-z bndplt'
32462 ld_bndplt_support
=no
32463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32464 $as_echo_n "checking linker -z bndplt option... " >&6; }
32465 if test x
"$ld_is_gold" = xno
; then
32466 if test $in_tree_ld = yes ; then
32467 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
32468 ld_bndplt_support
=yes
32470 elif test x
$gcc_cv_ld != x
; then
32471 # Check if linker supports -a bndplt option
32472 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32473 ld_bndplt_support
=yes
32477 if test x
"$ld_bndplt_support" = xyes
; then
32479 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32483 $as_echo "$ld_bndplt_support" >&6; }
32485 # Check linker supports '--push-state'/'--pop-state'
32486 ld_pushpopstate_support
=no
32487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32488 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32489 if test x
"$ld_is_gold" = xno
; then
32490 if test $in_tree_ld = yes ; then
32491 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
32492 ld_pushpopstate_support
=yes
32494 elif test x
$gcc_cv_ld != x
; then
32495 # Check if linker supports --push-state/--pop-state options
32496 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32497 ld_pushpopstate_support
=yes
32501 if test x
"$ld_pushpopstate_support" = xyes
; then
32503 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32507 $as_echo "$ld_pushpopstate_support" >&6; }
32509 # On s390, float_t has historically been statically defined as double for no
32510 # good reason. To comply with the C standard in the light of this definition,
32511 # gcc has evaluated float expressions in double precision when in
32512 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32513 # a smooth transition towards the new model used by most architectures, where
32514 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32515 # float_t from that, this behavior can be configured with
32516 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32517 # the old model. When omitted, native builds and cross compiles that have target
32518 # libc headers will detect whether libc clamps float_t to double and in that
32519 # case maintain the old model. Otherwise, they will default to the new model.
32520 # Check whether --enable-s390-excess-float-precision was given.
32521 if test "${enable_s390_excess_float_precision+set}" = set; then :
32522 enableval
=$enable_s390_excess_float_precision;
32524 enable_s390_excess_float_precision
=auto
32530 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32531 # Can we autodetect the behavior of the target libc?
32532 if test "$target" = "$host" -a "$host" = "$build"; then
32533 enable_s390_excess_float_precision
=autodetect
32534 elif test "x$with_headers" != xno
; then
32535 # cross build. are target headers available?
32536 # carefully coerce the build-system compiler to use target headers
32537 saved_CXXFLAGS
="$CXXFLAGS"
32538 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32539 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32540 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32542 /* end confdefs.h. */
32547 if ac_fn_cxx_try_compile
"$LINENO"; then :
32548 enable_s390_excess_float_precision
=autodetect
32550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32551 CXXFLAGS
="$saved_CXXFLAGS"
32554 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32555 saved_CXXFLAGS
="$CXXFLAGS"
32556 if ! test "$target" = "$host" -a "$host" = "$build"; then
32557 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32558 unset CROSS_TEST_CXXFLAGS
32560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32561 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32562 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32563 $as_echo_n "(cached) " >&6
32566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32567 /* end confdefs.h. */
32569 #define __FLT_EVAL_METHOD__ 0
32571 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32574 if ac_fn_cxx_try_compile
"$LINENO"; then :
32575 gcc_cv_float_t_clamped_to_double
=yes
32577 gcc_cv_float_t_clamped_to_double
=no
32579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32582 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32583 CXXFLAGS
="$saved_CXXFLAGS"
32584 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32586 # no way to detect behavior of target libc, default to new model
32587 enable_s390_excess_float_precision
=no
32592 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32594 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32600 # Configure the subdirectories
32601 # AC_CONFIG_SUBDIRS($subdirs)
32603 # Create the Makefile
32604 # and configure language subdirectories
32605 ac_config_files
="$ac_config_files $all_outputs"
32608 ac_config_commands
="$ac_config_commands default"
32610 cat >confcache
<<\_ACEOF
32611 # This file is a shell script that caches the results of configure
32612 # tests run on this system so they can be shared between configure
32613 # scripts and configure runs, see configure's option --config-cache.
32614 # It is not useful on other systems. If it contains results you don't
32615 # want to keep, you may remove or edit it.
32617 # config.status only pays attention to the cache file if you give it
32618 # the --recheck option to rerun configure.
32620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32622 # following values.
32626 # The following way of writing the cache mishandles newlines in values,
32627 # but we know of no workaround that is simple, portable, and efficient.
32628 # So, we kill variables containing newlines.
32629 # Ultrix sh set writes to stderr and can't be redirected directly,
32630 # and sets the high bit in the cache file unless we assign to the vars.
32632 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32633 eval ac_val
=\$
$ac_var
32637 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32638 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32641 _ | IFS | as_nl
) ;; #(
32642 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32643 *) { eval $ac_var=; unset $ac_var;} ;;
32649 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32650 *${as_nl}ac_space
=\
*)
32651 # `set' does not quote correctly, so add quotes: double-quote
32652 # substitution turns \\\\ into \\, and sed turns \\ into \.
32655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32658 # `set' quotes correctly as required by POSIX, so do not add quotes.
32659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32670 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32672 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32673 if test -w "$cache_file"; then
32674 if test "x$cache_file" != "x/dev/null"; then
32675 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32676 $as_echo "$as_me: updating cache $cache_file" >&6;}
32677 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32678 cat confcache
>"$cache_file"
32680 case $cache_file in #(
32682 mv -f confcache
"$cache_file"$$
&&
32683 mv -f "$cache_file"$$
"$cache_file" ;; #(
32685 mv -f confcache
"$cache_file" ;;
32690 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32691 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32696 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32697 # Let make expand exec_prefix.
32698 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32700 DEFS
=-DHAVE_CONFIG_H
32705 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32706 # 1. Remove the extension, and $U if already installed.
32707 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32708 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32710 # will be set to the directory where LIBOBJS objects are built.
32711 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32712 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32714 LIBOBJS
=$ac_libobjs
32716 LTLIBOBJS
=$ac_ltlibobjs
32721 : "${CONFIG_STATUS=./config.status}"
32723 ac_clean_files_save
=$ac_clean_files
32724 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32726 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32728 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32730 # Generated by $as_me.
32731 # Run this file to recreate the current configuration.
32732 # Compiler output produced by configure, useful for debugging
32733 # configure, is in config.log if it exists.
32736 ac_cs_recheck=false
32739 SHELL=\${CONFIG_SHELL-$SHELL}
32742 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32743 ## -------------------- ##
32744 ## M4sh Initialization. ##
32745 ## -------------------- ##
32747 # Be more Bourne compatible
32748 DUALCASE
=1; export DUALCASE
# for MKS sh
32749 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32753 # is contrary to our usage. Disable this feature.
32754 alias -g '${1+"$@"}'='"$@"'
32755 setopt NO_GLOB_SUBST
32757 case `(set -o) 2>/dev/null` in #(
32769 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32770 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32773 # Prefer a ksh shell builtin over an external printf program on Solaris,
32774 # but without wasting forks for bash or zsh.
32775 if test -z "$BASH_VERSION$ZSH_VERSION" \
32776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32777 as_echo='print
-r --'
32778 as_echo_n='print
-rn --'
32779 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32780 as_echo='printf %s
\n'
32781 as_echo_n='printf %s
'
32783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32784 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32785 as_echo_n='/usr
/ucb
/echo -n'
32787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32788 as_echo_n_body='eval
32792 expr "X$arg" : "X\\(.*\\)$as_nl";
32793 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32795 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32797 export as_echo_n_body
32798 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32800 export as_echo_body
32801 as_echo='sh
-c $as_echo_body as_echo
'
32804 # The user is always right.
32805 if test "${PATH_SEPARATOR+set}" != set; then
32807 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32808 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32815 # We need space, tab and new line, in precisely that order. Quoting is
32816 # there to prevent editors from complaining about space-tab.
32817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32818 # splitting by setting IFS to empty value.)
32821 # Find who we are. Look in the path if we contain no directory separator.
32824 *[\\/]* ) as_myself=$0 ;;
32825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32826 for as_dir in $PATH
32829 test -z "$as_dir" && as_dir=.
32830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32836 # We did not find ourselves, most probably we were run as `sh COMMAND'
32837 # in which case we are not to be found in the path.
32838 if test "x$as_myself" = x
; then
32841 if test ! -f "$as_myself"; then
32842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32846 # Unset variables that we do not need and which cause bugs (e.g. in
32847 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32848 # suppresses any "Segmentation fault" message there. '((' could
32849 # trigger a bug in pdksh 5.2.14.
32850 for as_var
in BASH_ENV ENV MAIL MAILPATH
32851 do eval test x\
${$as_var+set} = xset \
32852 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32865 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32868 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32869 # ----------------------------------------
32870 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32871 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32872 # script with STATUS, using 1 if that was 0.
32875 as_status
=$1; test $as_status -eq 0 && as_status
=1
32877 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32880 $as_echo "$as_me: error: $2" >&2
32881 as_fn_exit
$as_status
32885 # as_fn_set_status STATUS
32886 # -----------------------
32887 # Set $? to STATUS, without forking.
32888 as_fn_set_status
()
32891 } # as_fn_set_status
32893 # as_fn_exit STATUS
32894 # -----------------
32895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32899 as_fn_set_status
$1
32905 # Portably unset VAR.
32908 { eval $1=; unset $1;}
32910 as_unset
=as_fn_unset
32911 # as_fn_append VAR VALUE
32912 # ----------------------
32913 # Append the text in VALUE to the end of the definition contained in VAR. Take
32914 # advantage of any shell optimizations that allow amortized linear growth over
32915 # repeated appends, instead of the typical quadratic growth present in naive
32917 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32918 eval 'as_fn_append ()
32929 # as_fn_arith ARG...
32930 # ------------------
32931 # Perform arithmetic evaluation on the ARGs, and store the result in the
32932 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32933 # must be portable across $(()) and expr.
32934 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32935 eval 'as_fn_arith ()
32942 as_val
=`expr "$@" || test $? -eq 1`
32947 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32948 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32954 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32955 as_basename
=basename
32960 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32966 as_me
=`$as_basename -- "$0" ||
32967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32968 X"$0" : 'X\(//\)$' \| \
32969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32971 sed '/^.*\/\([^/][^/]*\)\/*$/{
32985 # Avoid depending upon Character Ranges.
32986 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32987 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32988 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32989 as_cr_digits
='0123456789'
32990 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32992 ECHO_C
= ECHO_N
= ECHO_T
=
32993 case `echo -n x` in #(((((
32995 case `echo 'xy\c'` in
32996 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32998 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33005 rm -f conf$$ conf$$.exe conf$$.
file
33006 if test -d conf$$.dir
; then
33007 rm -f conf$$.dir
/conf$$.
file
33010 mkdir conf$$.dir
2>/dev
/null
33012 if (echo >conf$$.
file) 2>/dev
/null
; then
33013 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33015 # ... but there are two gotchas:
33016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33018 # In both cases, we have to default to `cp -pR'.
33019 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33021 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33029 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33030 rmdir conf$$.dir
2>/dev
/null
33035 # Create "$as_dir" as a directory, including parents if necessary.
33040 -*) as_dir
=.
/$as_dir;;
33042 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33046 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33047 *) as_qdir
=$as_dir;;
33049 as_dirs
="'$as_qdir' $as_dirs"
33050 as_dir
=`$as_dirname -- "$as_dir" ||
33051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33052 X"$as_dir" : 'X\(//\)[^/]' \| \
33053 X"$as_dir" : 'X\(//\)$' \| \
33054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33055 $as_echo X"$as_dir" |
33056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33060 /^X\(\/\/\)[^/].*/{
33073 test -d "$as_dir" && break
33075 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33076 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33080 if mkdir
-p .
2>/dev
/null
; then
33081 as_mkdir_p
='mkdir -p "$as_dir"'
33083 test -d .
/-p && rmdir .
/-p
33088 # as_fn_executable_p FILE
33089 # -----------------------
33090 # Test if FILE is an executable regular file.
33091 as_fn_executable_p
()
33093 test -f "$1" && test -x "$1"
33094 } # as_fn_executable_p
33095 as_test_x
='test -x'
33096 as_executable_p
=as_fn_executable_p
33098 # Sed expression to map a string onto a valid CPP name.
33099 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33101 # Sed expression to map a string onto a valid variable name.
33102 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33106 ## ----------------------------------- ##
33107 ## Main body of $CONFIG_STATUS script. ##
33108 ## ----------------------------------- ##
33110 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33113 # Save the log message, to keep $0 and so on meaningful, and to
33114 # report actual input values of CONFIG_FILES etc. instead of their
33115 # values after options handling.
33117 This file was extended by $as_me, which was
33118 generated by GNU Autoconf 2.69. Invocation command line was
33120 CONFIG_FILES = $CONFIG_FILES
33121 CONFIG_HEADERS = $CONFIG_HEADERS
33122 CONFIG_LINKS = $CONFIG_LINKS
33123 CONFIG_COMMANDS = $CONFIG_COMMANDS
33126 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33131 case $ac_config_files in *"
33132 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33135 case $ac_config_headers in *"
33136 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33141 # Files that config.status was made for.
33142 config_files="$ac_config_files"
33143 config_headers="$ac_config_headers"
33144 config_links="$ac_config_links"
33145 config_commands="$ac_config_commands"
33149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33151 \`$as_me' instantiates files and other configuration actions
33152 from templates according to the current configuration. Unless the files
33153 and actions are specified as TAGs, all are instantiated by default.
33155 Usage: $0 [OPTION]... [TAG]...
33157 -h, --help print this help, then exit
33158 -V, --version print version number and configuration settings, then exit
33159 --config print configuration, then exit
33160 -q, --quiet, --silent
33161 do not print progress messages
33162 -d, --debug don't remove temporary files
33163 --recheck update $as_me by reconfiguring in the same conditions
33164 --file=FILE[:TEMPLATE]
33165 instantiate the configuration file FILE
33166 --header=FILE[:TEMPLATE]
33167 instantiate the configuration header FILE
33169 Configuration files:
33172 Configuration headers:
33175 Configuration links:
33178 Configuration commands:
33181 Report bugs to the package provider."
33184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33185 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33188 configured by $0, generated by GNU Autoconf 2.69,
33189 with options \\"\$ac_cs_config\\"
33191 Copyright (C) 2012 Free Software Foundation, Inc.
33192 This config.status script is free software; the Free Software Foundation
33193 gives unlimited permission to copy, distribute and modify it."
33198 test -n "\$AWK" || AWK=awk
33201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33202 # The default lists apply if the user does not specify any file.
33208 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33209 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33213 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33225 # Handling of the options.
33226 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33228 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33229 $as_echo "$ac_cs_version"; exit ;;
33230 --config |
--confi |
--conf |
--con |
--co |
--c )
33231 $as_echo "$ac_cs_config"; exit ;;
33232 --debug |
--debu |
--deb |
--de |
--d |
-d )
33234 --file |
--fil |
--fi |
--f )
33237 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33238 '') as_fn_error $?
"missing file argument" ;;
33240 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33241 ac_need_defaults
=false
;;
33242 --header |
--heade |
--head |
--hea )
33245 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33247 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33248 ac_need_defaults
=false
;;
33250 # Conflict between --help and --header
33251 as_fn_error $?
"ambiguous option: \`$1'
33252 Try \`$0 --help' for more information.";;
33253 --help |
--hel |
-h )
33254 $as_echo "$ac_cs_usage"; exit ;;
33255 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33256 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33259 # This is an error.
33260 -*) as_fn_error $?
"unrecognized option: \`$1'
33261 Try \`$0 --help' for more information." ;;
33263 *) as_fn_append ac_config_targets
" $1"
33264 ac_need_defaults
=false
;;
33270 ac_configure_extra_args
=
33272 if $ac_cs_silent; then
33274 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33279 if \$ac_cs_recheck; then
33280 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33282 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33283 CONFIG_SHELL='$SHELL'
33284 export CONFIG_SHELL
33289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33293 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33294 ## Running $as_me. ##
33300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33304 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33305 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33312 # Handling of arguments.
33313 for ac_config_target
in $ac_config_targets
33315 case $ac_config_target in
33316 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33317 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33318 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33319 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33320 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33321 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33322 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33323 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33324 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33325 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33327 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33332 # If the user did not use the arguments to specify the items to instantiate,
33333 # then the envvar interface is used. Set only those that are not.
33334 # We use the long form for the default assignment because of an extremely
33335 # bizarre bug on SunOS 4.1.3.
33336 if $ac_need_defaults; then
33337 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33338 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33339 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33340 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33343 # Have a temporary directory for convenience. Make it in the build tree
33344 # simply because there is no reason against having it here, and in addition,
33345 # creating and moving files from /tmp can sometimes cause problems.
33346 # Hook for its removal unless debugging.
33347 # Note that there is a small window in which the directory will not be cleaned:
33348 # after its creation but before its name has been assigned to `$tmp'.
33352 trap 'exit_status=$?
33353 : "${ac_tmp:=$tmp}"
33354 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33356 trap 'as_fn_exit 1' 1 2 13 15
33358 # Create a (secure) tmp directory for tmp files.
33361 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33365 tmp
=.
/conf$$
-$RANDOM
33366 (umask 077 && mkdir
"$tmp")
33367 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33370 # Set up the scripts for CONFIG_FILES section.
33371 # No need to generate them if there are no CONFIG_FILES.
33372 # This happens for instance with `./config.status config.h'.
33373 if test -n "$CONFIG_FILES"; then
33375 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33376 ac_cs_awk_getline
=:
33377 ac_cs_awk_pipe_init
=
33378 ac_cs_awk_read_file
='
33379 while ((getline aline < (F[key])) > 0)
33382 ac_cs_awk_pipe_fini
=
33384 ac_cs_awk_getline
=false
33385 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33386 ac_cs_awk_read_file
='
33388 print "cat " F[key] " &&"
33389 '$ac_cs_awk_pipe_init
33390 # The final `:' finishes the AND list.
33391 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33393 ac_cr
=`echo X | tr X '\015'`
33394 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33395 # But we know of no other shell where ac_cr would be empty at this
33396 # point, so we can use a bashism as a fallback.
33397 if test "x$ac_cr" = x
; then
33398 eval ac_cr
=\$
\'\\r
\'
33400 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33401 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33404 ac_cs_awk_cr
=$ac_cr
33407 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33410 # Create commands to substitute file output variables.
33412 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33413 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33414 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33417 } >conf$
$files.sh
&&
33418 . .
/conf$
$files.sh ||
33419 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33420 rm -f conf$
$files.sh
33423 echo "cat >conf$$subs.awk <<_ACEOF" &&
33424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33426 } >conf$$subs.sh ||
33427 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33428 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33430 for ac_last_try in false false false false false :; do
33431 . ./conf$$subs.sh ||
33432 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33434 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33435 if test $ac_delim_n = $ac_delim_num; then
33437 elif $ac_last_try; then
33438 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33440 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33443 rm -f conf$$subs.sh
33445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33446 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33450 s/^/S["/; s
/!.
*/"]=/
33460 s/\(.\{148\}\)..*/\1/
33462 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33467 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33474 s/\(.\{148\}\)..*/\1/
33476 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33480 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33485 ' <conf$$subs.awk | sed '
33490 ' >>$CONFIG_STATUS || ac_write_fail=1
33491 rm -f conf$$subs.awk
33492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33494 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33495 for (key in S) S_is_set[key] = 1
33497 \$ac_cs_awk_pipe_init
33501 nfields = split(line, field, "@
")
33503 len = length(field[1])
33504 for (i = 2; i < nfields; i++) {
33506 keylen = length(key)
33507 if (S_is_set[key]) {
33509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33510 len += length(value) + length(field[++i])
33515 if (nfields == 3 && !substed) {
33517 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33518 \$ac_cs_awk_read_file
33524 \$ac_cs_awk_pipe_fini
33527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33528 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33529 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33532 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33533 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33536 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33537 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33538 # trailing colons and then remove the whole line if VPATH becomes empty
33539 # (actually we leave an empty line to preserve line numbers).
33540 if test "x
$srcdir" = x.; then
33541 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33560 fi # test -n "$CONFIG_FILES"
33562 # Set up the scripts for CONFIG_HEADERS section.
33563 # No need to generate them if there are no CONFIG_HEADERS.
33564 # This happens for instance with `./config.status Makefile'.
33565 if test -n "$CONFIG_HEADERS"; then
33566 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33570 # Transform confdefs.h into an awk script `defines.awk', embedded as
33571 # here-document in config.status, that substitutes the proper values into
33572 # config.h.in to produce config.h.
33574 # Create a delimiter string that does not exist in confdefs.h, to ease
33575 # handling of long lines.
33577 for ac_last_try in false false :; do
33578 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33579 if test -z "$ac_tt"; then
33581 elif $ac_last_try; then
33582 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33584 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33588 # For the awk script, D is an array of macro values keyed by name,
33589 # likewise P contains macro parameters if any. Preserve backslash
33590 # newline sequences.
33592 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33594 s/.\{148\}/&'"$ac_delim"'/g
33597 s/^[ ]*#[ ]*define[ ][ ]*/ /
33604 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33606 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33610 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33611 D["\
1"]=" \
3\\\\\\n
"\\/p
33613 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33618 s/.\{148\}/&'"$ac_delim"'/g
33623 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33626 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33628 ' <confdefs.h | sed '
33629 s/'"$ac_delim"'/"\\\
33630 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33633 for (key in D) D_is_set[key] = 1
33636 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33638 split(line, arg, " ")
33639 if (arg[1] == "#") {
33643 defundef
= substr
(arg
[1], 2)
33646 split(mac1
, mac2
, "(") #)
33648 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33649 if (D_is_set
[macro
]) {
33650 # Preserve the white space surrounding the "#".
33651 print prefix
"define", macro P
[macro
] D
[macro
]
33654 # Replace #undef with comments. This is necessary, for example,
33655 # in the case of _POSIX_SOURCE, which is predefined and required
33656 # on some systems where configure will not decide to define it.
33657 if (defundef
== "undef") {
33658 print
"/*", prefix defundef
, macro
, "*/"
33666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33667 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33668 fi # test -n "$CONFIG_HEADERS"
33671 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33676 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33678 case $ac_mode$ac_tag in
33680 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33681 :[FH
]-) ac_tag
=-:-;;
33682 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33699 -) ac_f
="$ac_tmp/stdin";;
33700 *) # Look for the file first in the build tree, then in the source tree
33701 # (if the path is not absolute). The absolute path cannot be DOS-style,
33702 # because $ac_f cannot contain `:'.
33706 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33708 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33710 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33711 as_fn_append ac_file_inputs
" '$ac_f'"
33714 # Let's still pretend it is `configure' which instantiates (i.e., don't
33715 # use $as_me), people would be surprised to read:
33716 # /* config.h. Generated by config.status. */
33717 configure_input
='Generated from '`
33718 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33720 if test x
"$ac_file" != x-
; then
33721 configure_input
="$ac_file. $configure_input"
33722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33723 $as_echo "$as_me: creating $ac_file" >&6;}
33725 # Neutralize special characters interpreted by sed in replacement strings.
33726 case $configure_input in #(
33727 *\
&* |
*\|
* |
*\\* )
33728 ac_sed_conf_input
=`$as_echo "$configure_input" |
33729 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33730 *) ac_sed_conf_input
=$configure_input;;
33734 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33735 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33740 ac_dir
=`$as_dirname -- "$ac_file" ||
33741 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33742 X"$ac_file" : 'X\(//\)[^/]' \| \
33743 X"$ac_file" : 'X\(//\)$' \| \
33744 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33745 $as_echo X"$ac_file" |
33746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33750 /^X\(\/\/\)[^/].*/{
33763 as_dir
="$ac_dir"; as_fn_mkdir_p
33767 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33769 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33770 # A ".." for each directory in $ac_dir_suffix.
33771 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33772 case $ac_top_builddir_sub in
33773 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33774 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33777 ac_abs_top_builddir
=$ac_pwd
33778 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33779 # for backward compatibility:
33780 ac_top_builddir
=$ac_top_build_prefix
33783 .
) # We are building in place.
33785 ac_top_srcdir
=$ac_top_builddir_sub
33786 ac_abs_top_srcdir
=$ac_pwd ;;
33787 [\\/]* | ?
:[\\/]* ) # Absolute name.
33788 ac_srcdir
=$srcdir$ac_dir_suffix;
33789 ac_top_srcdir
=$srcdir
33790 ac_abs_top_srcdir
=$srcdir ;;
33791 *) # Relative name.
33792 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33793 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33794 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33796 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33808 # If the template does not know about datarootdir, expand it.
33809 # FIXME: This hack should be removed a few years after 2.60.
33810 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33821 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33822 *datarootdir
*) ac_datarootdir_seen
=yes;;
33823 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33825 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33828 ac_datarootdir_hack='
33829 s&@datadir@&$datadir&g
33830 s&@docdir@&$docdir&g
33831 s&@infodir@&$infodir&g
33832 s&@localedir@&$localedir&g
33833 s&@mandir@&$mandir&g
33834 s&\\\${datarootdir}&$datarootdir&g' ;;
33838 # Neutralize VPATH when `$srcdir' = `.'.
33839 # Shell code in configure.ac might set extrasub.
33840 # FIXME: do we really want to maintain this feature?
33841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33842 ac_sed_extra="$ac_vpsub
33845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33847 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33848 s|@configure_input@|
$ac_sed_conf_input|
;t t
33849 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33850 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33851 s
&@srcdir@
&$ac_srcdir&;t t
33852 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33853 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33854 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33855 s
&@builddir@
&$ac_builddir&;t t
33856 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33857 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33858 $ac_datarootdir_hack
33860 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33861 if $ac_cs_awk_getline; then
33862 $AWK -f "$ac_tmp/subs.
awk"
33864 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33866 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33868 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33869 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33871 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33873 which seems to be undefined. Please make sure it is defined" >&5
33874 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33875 which seems to be undefined. Please make sure it is defined" >&2;}
33877 rm -f "$ac_tmp/stdin"
33879 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33880 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33888 if test x"$ac_file" != x-; then
33890 $as_echo "/* $configure_input */" \
33891 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33892 } >"$ac_tmp/config.h" \
33893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33894 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33895 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33896 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33899 mv "$ac_tmp/config.h" "$ac_file" \
33900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33903 $as_echo "/* $configure_input */" \
33904 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33905 || as_fn_error $? "could not create -" "$LINENO" 5
33913 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
33916 # Prefer the file from the source tree if names are identical.
33917 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33918 ac_source=$srcdir/$ac_source
33921 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33922 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33924 if test ! -r "$ac_source"; then
33925 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33929 # Try a relative symlink, then a hard link, then a copy.
33931 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33932 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33934 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33935 ln "$ac_source" "$ac_file" 2>/dev/null ||
33936 cp -p "$ac_source" "$ac_file" ||
33937 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33940 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33941 $as_echo "$as_me: executing $ac_file commands" >&6;}
33946 case $ac_file$ac_mode in
33947 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33949 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33950 for lang in $subdirs c-family common analyzer rtl-ssa
33952 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33954 "as":F) chmod +x as ;;
33955 "collect-ld":F) chmod +x collect-ld ;;
33956 "nm":F) chmod +x nm ;;
33957 "dsymutil":F) chmod +x dsymutil ;;
33959 case ${CONFIG_HEADERS} in
33960 *auto-host.h:config.in*)
33963 # Make sure all the subdirs exist.
33964 for d in $subdirs doc build common c-family
33966 test -d $d || mkdir $d
33976 ac_clean_files=$ac_clean_files_save
33978 test $ac_write_fail = 0 ||
33979 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33982 # configure is writing to config.log, and then calls config.status.
33983 # config.status does its own redirection, appending to config.log.
33984 # Unfortunately, on DOS this fails, as config.log is still kept open
33985 # by configure, so config.status won't be able to
write to it
; its
33986 # output is simply discarded. So we exec the FD to /dev/null,
33987 # effectively closing config.log, so it can be properly (re)opened and
33988 # appended to by config.status. When coming back to configure, we
33989 # need to make the FD available again.
33990 if test "$no_create" != yes; then
33992 ac_config_status_args
=
33993 test "$silent" = yes &&
33994 ac_config_status_args
="$ac_config_status_args --quiet"
33996 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33998 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33999 # would make configure fail if this is the last instruction.
34000 $ac_cs_success || as_fn_exit
1
34002 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34004 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}