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.cc"
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
663 common_out_object_file
679 gcc_gxx_libcxx_include_dir_add_sysroot
680 gcc_gxx_libcxx_include_dir
681 gcc_gxx_include_dir_add_sysroot
688 user_headers_inc_next_post
689 user_headers_inc_next_pre
691 TM_MULTILIB_EXCEPTIONS_CONFIG
701 build_xm_include_list
703 build_install_headers_dir
705 all_selected_languages
708 all_lang_configurefrags
716 DO_LINK_SERIALIZATION
728 ld_version_script_option
730 ORIGINAL_DSYMUTIL_FOR_TARGET
735 ORIGINAL_NM_FOR_TARGET
737 ORIGINAL_LD_GOLD_FOR_TARGET
738 ORIGINAL_LD_BFD_FOR_TARGET
739 ORIGINAL_LD_FOR_TARGET
740 ORIGINAL_PLUGIN_LD_FOR_TARGET
742 ORIGINAL_AS_FOR_TARGET
767 BUILD_SYSTEM_HEADER_DIR
787 NATIVE_SYSTEM_HEADER_DIR
814 MAKEINFO_TOC_INLINE_FLAG
828 omp_device_property_deps
829 omp_device_properties
831 real_target_noncanonical
832 enable_as_accelerator
842 DEFAULT_MATCHPD_PARTITIONS
849 valgrind_path_defines
881 CROSS_SYSTEM_HEADER_DIR
882 TARGET_SYSTEM_ROOT_DEFINE
884 SYSROOT_CFLAGS_FOR_TARGET
930 program_transform_name
941 ac_subst_files
='option_includes
944 enable_option_checking
947 with_native_system_header_dir
951 with_gxx_libcxx_include_dir
953 enable_generated_files_in_srcdir
961 enable_build_format_warnings
965 enable_gather_detailed_mem_stats
966 enable_valgrind_annotations
969 with_stack_clash_protection_guard_size
970 with_matchpd_partitions
985 with_documentation_root_url
986 with_changes_root_url
989 with_multilib_generator
996 enable_sjlj_exceptions
997 with_gcc_major_version_only
999 enable_mingw_wildcard
1000 enable_large_address_aware
1001 enable_leading_mingw64_underscores
1003 enable_frame_pointer
1004 enable_win32_registry
1012 enable_gnu_indirect_function
1013 enable_initfini_array
1015 enable_newlib_nano_formatted_io
1016 enable_standard_branch_protection
1017 enable_fix_cortex_a53_835769
1018 enable_fix_cortex_a53_843419
1020 enable_gnu_unique_object
1021 enable_linker_build_id
1024 with_long_double_128
1025 with_long_double_format
1028 enable_maintainer_mode
1030 enable_link_serialization
1031 enable_version_specific_runtime_libs
1035 enable_host_bind_now
1036 enable_libquadmath_support
1037 with_linker_hash_style
1038 with_diagnostics_color
1039 with_diagnostics_urls
1042 enable_s390_excess_float_precision
1044 ac_precious_vars
='build_alias
1063 # Initialize some variables set by options.
1065 ac_init_version
=false
1066 ac_unrecognized_opts
=
1067 ac_unrecognized_sep
=
1068 # The variables have the same names as the options, with
1069 # dashes changed to underlines.
1070 cache_file
=/dev
/null
1077 program_transform_name
=s
,x
,x
,
1085 # Installation directory options.
1086 # These are left unexpanded so users can "make install exec_prefix=/foo"
1087 # and all the variables that are supposed to be based on exec_prefix
1088 # by default will actually change.
1089 # Use braces instead of parens because sh, perl, etc. also accept them.
1090 # (The list follows the same order as the GNU Coding Standards.)
1091 bindir
='${exec_prefix}/bin'
1092 sbindir
='${exec_prefix}/sbin'
1093 libexecdir
='${exec_prefix}/libexec'
1094 datarootdir
='${prefix}/share'
1095 datadir
='${datarootdir}'
1096 sysconfdir
='${prefix}/etc'
1097 sharedstatedir
='${prefix}/com'
1098 localstatedir
='${prefix}/var'
1099 includedir
='${prefix}/include'
1100 oldincludedir
='/usr/include'
1101 docdir
='${datarootdir}/doc/${PACKAGE}'
1102 infodir
='${datarootdir}/info'
1107 libdir
='${exec_prefix}/lib'
1108 localedir
='${datarootdir}/locale'
1109 mandir
='${datarootdir}/man'
1115 # If the previous option needs an argument, assign it.
1116 if test -n "$ac_prev"; then
1117 eval $ac_prev=\
$ac_option
1123 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1128 # Accept the important Cygnus configure options, so we can diagnose typos.
1130 case $ac_dashdash$ac_option in
1134 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1136 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1137 bindir
=$ac_optarg ;;
1139 -build |
--build |
--buil |
--bui |
--bu)
1140 ac_prev
=build_alias
;;
1141 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1142 build_alias
=$ac_optarg ;;
1144 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1145 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1146 ac_prev
=cache_file
;;
1147 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1148 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1149 cache_file
=$ac_optarg ;;
1151 --config-cache |
-C)
1152 cache_file
=config.cache
;;
1154 -datadir |
--datadir |
--datadi |
--datad)
1156 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1157 datadir
=$ac_optarg ;;
1159 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1160 |
--dataroo |
--dataro |
--datar)
1161 ac_prev
=datarootdir
;;
1162 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1163 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1164 datarootdir
=$ac_optarg ;;
1166 -disable-* |
--disable-*)
1167 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1170 as_fn_error $?
"invalid feature name: $ac_useropt"
1171 ac_useropt_orig
=$ac_useropt
1172 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1175 "enable_
$ac_useropt"
1177 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1178 ac_unrecognized_sep
=', ';;
1180 eval enable_
$ac_useropt=no
;;
1182 -docdir |
--docdir |
--docdi |
--doc |
--do)
1184 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1185 docdir
=$ac_optarg ;;
1187 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1189 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1190 dvidir
=$ac_optarg ;;
1192 -enable-* |
--enable-*)
1193 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1196 as_fn_error $?
"invalid feature name: $ac_useropt"
1197 ac_useropt_orig
=$ac_useropt
1198 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "enable_
$ac_useropt"
1203 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1204 ac_unrecognized_sep
=', ';;
1206 eval enable_
$ac_useropt=\
$ac_optarg ;;
1208 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1209 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1210 |
--exec |
--exe |
--ex)
1211 ac_prev
=exec_prefix
;;
1212 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1213 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1214 |
--exec=* |
--exe=* |
--ex=*)
1215 exec_prefix
=$ac_optarg ;;
1217 -gas |
--gas |
--ga |
--g)
1218 # Obsolete; use --with-gas.
1221 -help |
--help |
--hel |
--he |
-h)
1222 ac_init_help
=long
;;
1223 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1224 ac_init_help
=recursive
;;
1225 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1226 ac_init_help
=short
;;
1228 -host |
--host |
--hos |
--ho)
1229 ac_prev
=host_alias
;;
1230 -host=* |
--host=* |
--hos=* |
--ho=*)
1231 host_alias
=$ac_optarg ;;
1233 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1235 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1237 htmldir
=$ac_optarg ;;
1239 -includedir |
--includedir |
--includedi |
--included |
--include \
1240 |
--includ |
--inclu |
--incl |
--inc)
1241 ac_prev
=includedir
;;
1242 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1243 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1244 includedir
=$ac_optarg ;;
1246 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1248 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1249 infodir
=$ac_optarg ;;
1251 -libdir |
--libdir |
--libdi |
--libd)
1253 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1254 libdir
=$ac_optarg ;;
1256 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1257 |
--libexe |
--libex |
--libe)
1258 ac_prev
=libexecdir
;;
1259 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1260 |
--libexe=* |
--libex=* |
--libe=*)
1261 libexecdir
=$ac_optarg ;;
1263 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1264 ac_prev
=localedir
;;
1265 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1266 localedir
=$ac_optarg ;;
1268 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1269 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1270 ac_prev
=localstatedir
;;
1271 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1272 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1273 localstatedir
=$ac_optarg ;;
1275 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1277 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1278 mandir
=$ac_optarg ;;
1280 -nfp |
--nfp |
--nf)
1281 # Obsolete; use --without-fp.
1284 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1285 |
--no-cr |
--no-c |
-n)
1288 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1289 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1292 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1293 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1294 |
--oldin |
--oldi |
--old |
--ol |
--o)
1295 ac_prev
=oldincludedir
;;
1296 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1297 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1298 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1299 oldincludedir
=$ac_optarg ;;
1301 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1303 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1304 prefix
=$ac_optarg ;;
1306 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1307 |
--program-pre |
--program-pr |
--program-p)
1308 ac_prev
=program_prefix
;;
1309 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1310 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1311 program_prefix
=$ac_optarg ;;
1313 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1314 |
--program-suf |
--program-su |
--program-s)
1315 ac_prev
=program_suffix
;;
1316 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1317 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1318 program_suffix
=$ac_optarg ;;
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 ac_prev
=program_transform_name
;;
1328 -program-transform-name=* |
--program-transform-name=* \
1329 |
--program-transform-nam=* |
--program-transform-na=* \
1330 |
--program-transform-n=* |
--program-transform-=* \
1331 |
--program-transform=* |
--program-transfor=* \
1332 |
--program-transfo=* |
--program-transf=* \
1333 |
--program-trans=* |
--program-tran=* \
1334 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1335 program_transform_name
=$ac_optarg ;;
1337 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1339 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1340 pdfdir
=$ac_optarg ;;
1342 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1344 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1347 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1348 |
-silent |
--silent |
--silen |
--sile |
--sil)
1351 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1353 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1355 sbindir
=$ac_optarg ;;
1357 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1358 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1359 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1361 ac_prev
=sharedstatedir
;;
1362 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1363 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1364 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1366 sharedstatedir
=$ac_optarg ;;
1368 -site |
--site |
--sit)
1370 -site=* |
--site=* |
--sit=*)
1373 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1375 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1376 srcdir
=$ac_optarg ;;
1378 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1379 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1380 ac_prev
=sysconfdir
;;
1381 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1382 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1383 sysconfdir
=$ac_optarg ;;
1385 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1386 ac_prev
=target_alias
;;
1387 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1388 target_alias
=$ac_optarg ;;
1390 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1393 -version |
--version |
--versio |
--versi |
--vers |
-V)
1394 ac_init_version
=: ;;
1397 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1400 as_fn_error $?
"invalid package name: $ac_useropt"
1401 ac_useropt_orig
=$ac_useropt
1402 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1403 case $ac_user_opts in
1407 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1408 ac_unrecognized_sep
=', ';;
1410 eval with_
$ac_useropt=\
$ac_optarg ;;
1412 -without-* |
--without-*)
1413 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1414 # Reject names that are not valid shell variable names.
1415 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1416 as_fn_error $?
"invalid package name: $ac_useropt"
1417 ac_useropt_orig
=$ac_useropt
1418 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1419 case $ac_user_opts in
1423 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1424 ac_unrecognized_sep
=', ';;
1426 eval with_
$ac_useropt=no
;;
1429 # Obsolete; use --with-x.
1432 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1433 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1434 ac_prev
=x_includes
;;
1435 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1436 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1437 x_includes
=$ac_optarg ;;
1439 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1440 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1441 ac_prev
=x_libraries
;;
1442 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1443 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1444 x_libraries
=$ac_optarg ;;
1446 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1447 Try \`$0 --help' for more information"
1451 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1452 # Reject names that are not valid shell variable names.
1453 case $ac_envvar in #(
1454 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1455 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1457 eval $ac_envvar=\
$ac_optarg
1458 export $ac_envvar ;;
1461 # FIXME: should be removed in autoconf 3.0.
1462 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1463 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1464 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1465 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1471 if test -n "$ac_prev"; then
1472 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1473 as_fn_error $?
"missing argument to $ac_option"
1476 if test -n "$ac_unrecognized_opts"; then
1477 case $enable_option_checking in
1479 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1480 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1484 # Check all directory arguments for consistency.
1485 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1486 datadir sysconfdir sharedstatedir localstatedir includedir \
1487 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1488 libdir localedir mandir
1490 eval ac_val
=\$
$ac_var
1491 # Remove trailing slashes.
1494 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1495 eval $ac_var=\
$ac_val;;
1497 # Be sure to have absolute directory names.
1499 [\\/$
]* | ?
:[\\/]* ) continue;;
1500 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1502 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1505 # There might be people who depend on the old broken behavior: `$host'
1506 # used to hold the argument of --host etc.
1507 # FIXME: To remove some day.
1510 target
=$target_alias
1512 # FIXME: To remove some day.
1513 if test "x$host_alias" != x
; then
1514 if test "x$build_alias" = x
; then
1515 cross_compiling
=maybe
1516 elif test "x$build_alias" != "x$host_alias"; then
1522 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1524 test "$silent" = yes && exec 6>/dev
/null
1527 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1528 ac_ls_di
=`ls -di .` &&
1529 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1530 as_fn_error $?
"working directory cannot be determined"
1531 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1532 as_fn_error $?
"pwd does not report name of working directory"
1535 # Find the source files, if location was not specified.
1536 if test -z "$srcdir"; then
1537 ac_srcdir_defaulted
=yes
1538 # Try the directory containing this script, then the parent directory.
1539 ac_confdir
=`$as_dirname -- "$as_myself" ||
1540 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1541 X"$as_myself" : 'X\(//\)[^/]' \| \
1542 X"$as_myself" : 'X\(//\)$' \| \
1543 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1544 $as_echo X"$as_myself" |
1545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1563 if test ! -r "$srcdir/$ac_unique_file"; then
1567 ac_srcdir_defaulted
=no
1569 if test ! -r "$srcdir/$ac_unique_file"; then
1570 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1571 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1573 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1575 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1577 # When building in place, set srcdir=.
1578 if test "$ac_abs_confdir" = "$ac_pwd"; then
1581 # Remove unnecessary trailing slashes from srcdir.
1582 # Double slashes in file names in object file debugging info
1583 # mess up M-x gdb in Emacs.
1585 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1587 for ac_var
in $ac_precious_vars; do
1588 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1589 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1590 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1591 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1595 # Report the --help message.
1597 if test "$ac_init_help" = "long"; then
1598 # Omit some internal or obsolete options to make the list less imposing.
1599 # This message is too long to be a string in the A/UX 3.1 sh.
1601 \`configure' configures this package to adapt to many kinds of systems.
1603 Usage: $0 [OPTION]... [VAR=VALUE]...
1605 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1606 VAR=VALUE. See below for descriptions of some of the useful variables.
1608 Defaults for the options are specified in brackets.
1611 -h, --help display this help and exit
1612 --help=short display options specific to this package
1613 --help=recursive display the short help of all the included packages
1614 -V, --version display version information and exit
1615 -q, --quiet, --silent do not print \`checking ...' messages
1616 --cache-file=FILE cache test results in FILE [disabled]
1617 -C, --config-cache alias for \`--cache-file=config.cache'
1618 -n, --no-create do not create output files
1619 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1621 Installation directories:
1622 --prefix=PREFIX install architecture-independent files in PREFIX
1623 [$ac_default_prefix]
1624 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1627 By default, \`make install' will install all the files in
1628 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1629 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1630 for instance \`--prefix=\$HOME'.
1632 For better control, use the options below.
1634 Fine tuning of the installation directories:
1635 --bindir=DIR user executables [EPREFIX/bin]
1636 --sbindir=DIR system admin executables [EPREFIX/sbin]
1637 --libexecdir=DIR program executables [EPREFIX/libexec]
1638 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1639 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1640 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1641 --libdir=DIR object code libraries [EPREFIX/lib]
1642 --includedir=DIR C header files [PREFIX/include]
1643 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1644 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1645 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1646 --infodir=DIR info documentation [DATAROOTDIR/info]
1647 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1648 --mandir=DIR man documentation [DATAROOTDIR/man]
1649 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1650 --htmldir=DIR html documentation [DOCDIR]
1651 --dvidir=DIR dvi documentation [DOCDIR]
1652 --pdfdir=DIR pdf documentation [DOCDIR]
1653 --psdir=DIR ps documentation [DOCDIR]
1659 --program-prefix=PREFIX prepend PREFIX to installed program names
1660 --program-suffix=SUFFIX append SUFFIX to installed program names
1661 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1664 --build=BUILD configure
for building on BUILD
[guessed
]
1665 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1666 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1670 if test -n "$ac_init_help"; then
1675 --disable-option-checking ignore unrecognized
--enable/--with options
1676 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1677 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1678 --enable-generated-files-in-srcdir
1679 put copies of generated files
in source dir intended
1680 for creating
source tarballs
for users without
1681 texinfo bison or flex
1682 --disable-largefile omit support
for large files
1683 --disable-build-format-warnings
1684 don
't use -Wformat while building GCC
1685 --enable-werror-always enable -Werror despite compiler version
1686 --enable-checking[=LIST]
1687 enable expensive run-time checks. With LIST, enable
1688 only specific categories of checks. Categories are:
1689 yes,no,all,none,release. Flags are:
1690 assert,df,extra,fold,gc,gcac,gimple,misc,
1691 rtlflag,rtl,runtime,tree,valgrind,types
1692 --enable-coverage[=LEVEL]
1693 enable compiler's code coverage collection. Use to
1694 measure compiler performance and
locate unused parts
1695 of the compiler. With LEVEL
, specify optimization.
1696 Values are opt
, noopt
, default is noopt
1697 --enable-gather-detailed-mem-stats
1698 enable detailed memory allocation stats gathering
1699 --enable-valgrind-annotations
1700 enable valgrind runtime interaction
1701 --enable-multilib enable library support
for multiple ABIs
1702 --enable-multiarch enable support
for multiarch paths
1703 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1704 --enable-decimal-float={no
,yes,bid
,dpd
}
1705 enable decimal float extension to C. Selecting
'bid'
1706 or
'dpd' choses
which decimal floating point format
1708 --enable-fixed-point enable fixed-point arithmetic extension to C
1709 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1711 --enable-tls enable or disable generation of tls code overriding
1712 the assembler check
for tls support
1713 --enable-vtable-verify enable vtable verification feature
1714 --disable-analyzer disable
-fanalyzer static analyzer
1715 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1716 GNU Objective-C runtime
1717 --disable-shared don't provide a shared libgcc
1718 --disable-gcov don
't provide libgcov and related host tools
1719 --enable-languages=LIST specify which front-ends to build
1720 --disable-rpath do not hardcode runtime library paths
1721 --enable-sjlj-exceptions
1722 arrange to use setjmp/longjmp exception handling
1723 --enable-secureplt enable -msecure-plt by default for PowerPC
1724 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1725 Default to platform configuration
1726 --enable-large-address-aware
1727 Link mingw executables with --large-address-aware
1728 --enable-leading-mingw64-underscores
1729 enable leading underscores on 64 bit mingw targets
1730 --enable-cld enable -mcld by default for 32bit x86
1731 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1732 --disable-win32-registry
1733 disable lookup of installation paths in the Registry
1735 --enable-win32-registry enable registry lookup (default)
1736 --enable-win32-registry=KEY
1737 use KEY instead of GCC version as the last portion
1739 --enable-shared[=PKGS] build shared libraries [default=yes]
1740 --enable-static[=PKGS] build static libraries [default=yes]
1741 --enable-fast-install[=PKGS]
1742 optimize for fast installation [default=yes]
1743 --disable-libtool-lock avoid locking (might break parallel builds)
1744 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1745 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1746 --enable-gnu-indirect-function
1747 enable the use of the @gnu_indirect_function to
1749 --enable-initfini-array use .init_array/.fini_array sections
1750 --enable-comdat enable COMDAT group support
1751 --enable-newlib-nano-formatted-io
1752 Use nano version formatted IO
1754 --enable-standard-branch-protection
1755 enable Branch Target Identification Mechanism and
1756 Return Address Signing by default for AArch64
1757 --disable-standard-branch-protection
1758 disable Branch Target Identification Mechanism and
1759 Return Address Signing by default for AArch64
1762 --enable-fix-cortex-a53-835769
1763 enable workaround for AArch64 Cortex-A53 erratum
1765 --disable-fix-cortex-a53-835769
1766 disable workaround for AArch64 Cortex-A53 erratum
1770 --enable-fix-cortex-a53-843419
1771 enable workaround for AArch64 Cortex-A53 erratum
1773 --disable-fix-cortex-a53-843419
1774 disable workaround for AArch64 Cortex-A53 erratum
1777 --enable-gnu-unique-object
1778 enable the use of the @gnu_unique_object ELF
1779 extension on glibc systems
1780 --enable-linker-build-id
1781 compiler will always pass --build-id to linker
1782 --enable-libssp enable linking against libssp
1783 --enable-default-ssp enable Stack Smashing Protection as default
1784 --enable-maintainer-mode
1785 enable make rules and dependencies not useful (and
1786 sometimes confusing) to the casual installer
1787 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1788 thrashing on the build machine
1789 --enable-link-serialization
1790 avoid linking multiple GCC front-ends at once using
1791 make dependencies to avoid thrashing on the build
1793 --enable-version-specific-runtime-libs
1794 specify that runtime libraries should be installed
1795 in a compiler-specific directory
1796 --enable-plugin enable plugin support
1797 --enable-host-shared build host code as shared libraries
1798 --enable-host-pie build host code as PIE
1799 --enable-host-bind-now link host code as BIND_NOW
1800 --disable-libquadmath-support
1801 disable libquadmath support for Fortran
1802 --enable-default-pie enable Position Independent Executable as default
1803 --enable-cet enable Intel CET in host libraries [default=auto]
1804 --enable-s390-excess-float-precision
1805 on s390 targets, evaluate float with double
1806 precision when in standards-conforming mode
1809 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1810 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1811 --with-build-libsubdir=DIR Directory where to find libraries for build system
1812 --with-local-prefix=DIR specifies directory to put local include
1813 --with-native-system-header-dir=dir
1814 use dir as the directory to look for standard
1815 system header files in. Defaults to /usr/include.
1816 --with-build-sysroot=sysroot
1817 use sysroot as the system root during the build
1818 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1819 --with-gxx-include-dir=DIR
1820 specifies directory to put g++ header files
1821 --with-gxx-libcxx-include-dir=DIR
1822 specifies directory to find libc++ header files
1823 --with-cpp-install-dir=DIR
1824 install the user visible C preprocessor in DIR
1825 (relative to PREFIX) as well as PREFIX/bin
1826 --with-gnu-ld arrange to work with GNU ld
1827 --with-ld arrange to use the specified ld (full pathname)
1828 --with-demangler-in-ld try to use demangler in GNU ld
1829 --with-dsymutil arrange to use the specified dsymutil (full
1831 --with-gnu-as arrange to work with GNU as
1832 --with-as arrange to use the specified as (full pathname)
1833 --with-stack-clash-protection-guard-size=size
1834 Set the default stack clash protection guard size
1835 for specific targets as a power of two in bytes.
1836 --with-matchpd-partitions=num
1837 Set the number of partitions to make for gimple and
1838 generic when splitting match.pd. [default=10]
1839 --with-dwarf2 force the default debug format to be DWARF 2 (or
1841 --with-specs=SPECS add SPECS to driver command-line processing
1842 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1843 --with-bugurl=URL Direct users to URL to report a bug
1844 --with-documentation-root-url=URL
1845 Root for documentation URLs
1846 --with-changes-root-url=URL
1847 Root for GCC changes URLs
1848 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1850 --with-multilib-generator
1851 Multi-libs configuration string (RISC-V only)
1852 --with-zstd=PATH specify prefix directory for installed zstd library.
1853 Equivalent to --with-zstd-include=PATH/include plus
1854 --with-zstd-lib=PATH/lib
1855 --with-zstd-include=PATH
1856 specify directory for installed zstd include files
1857 --with-zstd-lib=PATH specify directory for the installed zstd library
1858 --with-gnu-ld assume the C compiler uses GNU ld default=no
1859 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1860 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1861 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1862 --with-gcc-major-version-only
1863 use only GCC major number
in filesystem paths
1864 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1866 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1867 --with-plugin-ld=[ARG
] specify the plugin linker
1868 --with-glibc-version=M.N
1869 assume GCC used with glibc version M.N or later
1870 --with-long-double-128 use
128-bit long double by default
1871 --with-long-double-format={ieee
,ibm
}
1872 Specify whether PowerPC long double uses IEEE or IBM format
1874 --with-gc={page
,zone
} this option is not supported anymore. It used to
1875 choose the garbage collection mechanism to use with
1877 --with-system-zlib use installed libz
1878 --with-linker-hash-style={sysv
,gnu
,both
}
1879 specify the linker
hash style
1880 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1881 specify the default of
-fdiagnostics-color option
1882 auto-if-env stands
for -fdiagnostics-color=auto
if
1883 GCC_COLOR environment variable is present and
1884 -fdiagnostics-color=never otherwise
1885 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1886 specify the default of
-fdiagnostics-urls option
1887 auto-if-env stands
for -fdiagnostics-urls=auto
if
1888 GCC_URLS or TERM_URLS environment variable is
1889 present and
-fdiagnostics-urls=never otherwise
1891 Some influential environment variables
:
1892 CC C compiler
command
1893 CFLAGS C compiler flags
1894 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1895 nonstandard directory
<lib dir
>
1896 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1897 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1898 you have headers
in a nonstandard directory
<include dir
>
1899 CXX C
++ compiler
command
1900 CXXFLAGS C
++ compiler flags
1901 CXXCPP C
++ preprocessor
1903 GMPLIBS How to link GMP
1904 GMPINC How to
find GMP include files
1905 ISLLIBS How to link isl
1906 ISLINC How to
find isl include files
1908 Use these variables to override the choices made by
`configure' or to help
1909 it to find libraries and programs with nonstandard names/locations.
1911 Report bugs to the package provider.
1916 if test "$ac_init_help" = "recursive"; then
1917 # If there are subdirs, report their specific --help.
1918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1919 test -d "$ac_dir" ||
1920 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1927 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1928 # A ".." for each directory in $ac_dir_suffix.
1929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1930 case $ac_top_builddir_sub in
1931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1935 ac_abs_top_builddir=$ac_pwd
1936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1937 # for backward compatibility:
1938 ac_top_builddir=$ac_top_build_prefix
1941 .) # We are building in place.
1943 ac_top_srcdir=$ac_top_builddir_sub
1944 ac_abs_top_srcdir=$ac_pwd ;;
1945 [\\/]* | ?:[\\/]* ) # Absolute name.
1946 ac_srcdir=$srcdir$ac_dir_suffix;
1947 ac_top_srcdir=$srcdir
1948 ac_abs_top_srcdir=$srcdir ;;
1950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1951 ac_top_srcdir=$ac_top_build_prefix$srcdir
1952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1956 cd "$ac_dir" || { ac_status=$?; continue; }
1957 # Check for guested configure.
1958 if test -f "$ac_srcdir/configure.gnu"; then
1960 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1961 elif test -f "$ac_srcdir/configure"; then
1963 $SHELL "$ac_srcdir/configure" --help=recursive
1965 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1967 cd "$ac_pwd" || { ac_status=$?; break; }
1971 test -n "$ac_init_help" && exit $ac_status
1972 if $ac_init_version; then
1975 generated by GNU Autoconf 2.69
1977 Copyright (C) 2012 Free Software Foundation, Inc.
1978 This configure script is free software; the Free Software Foundation
1979 gives unlimited permission to copy, distribute and modify it.
1984 ## ------------------------ ##
1985 ## Autoconf initialization. ##
1986 ## ------------------------ ##
1988 # ac_fn_c_try_compile LINENO
1989 # --------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_compile ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext
1995 if { { ac_try="$ac_compile"
1997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1998 *) ac_try_echo
=$ac_try;;
2000 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_compile") 2>conftest.err
2004 if test -s conftest.err
; then
2005 grep -v '^ *+' conftest.err
>conftest.er1
2006 cat conftest.er1
>&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest.
$ac_objext; then :
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.
$ac_ext >&5
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status
$ac_retval
2024 } # ac_fn_c_try_compile
2026 # ac_fn_cxx_try_compile LINENO
2027 # ----------------------------
2028 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_compile
()
2031 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2032 rm -f conftest.
$ac_objext
2033 if { { ac_try
="$ac_compile"
2035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_compile") 2>conftest.err
2042 if test -s conftest.err; then
2043 grep -v '^ *+' conftest.err >conftest.er1
2044 cat conftest.er1 >&5
2045 mv -f conftest.er1 conftest.err
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && {
2049 test -z "$ac_cxx_werror_flag" ||
2050 test ! -s conftest.err
2051 } && test -s conftest.$ac_objext; then :
2054 $as_echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 as_fn_set_status $ac_retval
2062 } # ac_fn_cxx_try_compile
2064 # ac_fn_cxx_try_cpp LINENO
2065 # ------------------------
2066 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2067 ac_fn_cxx_try_cpp ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_cpp conftest.$ac_ext"
2072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2073 *) ac_try_echo
=$ac_try;;
2075 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2079 if test -s conftest.err
; then
2080 grep -v '^ *+' conftest.err
>conftest.er1
2081 cat conftest.er1
>&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } > conftest.i
&& {
2086 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2087 test ! -s conftest.err
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.
$ac_ext >&5
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status
$ac_retval
2099 } # ac_fn_cxx_try_cpp
2101 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2102 # ---------------------------------------------------------
2103 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2104 # the include files in INCLUDES and setting the cache variable VAR
2106 ac_fn_cxx_check_header_mongrel
()
2108 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2109 if eval \
${$3+:} false
; then :
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \
${$3+:} false
; then :
2113 $as_echo_n "(cached) " >&6
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2119 # Is the header compilable?
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2121 $as_echo_n "checking $2 usability... " >&6; }
2122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2127 if ac_fn_cxx_try_compile
"$LINENO"; then :
2128 ac_header_compiler
=yes
2130 ac_header_compiler
=no
2132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2134 $as_echo "$ac_header_compiler" >&6; }
2136 # Is the header present?
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2138 $as_echo_n "checking $2 presence... " >&6; }
2139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2143 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2144 ac_header_preproc
=yes
2146 ac_header_preproc
=no
2148 rm -f conftest.err conftest.i conftest.
$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2150 $as_echo "$ac_header_preproc" >&6; }
2152 # So? What about this header?
2153 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2156 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2158 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2162 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2164 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2166 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2168 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \
${$3+:} false
; then :
2176 $as_echo_n "(cached) " >&6
2178 eval "$3=\$ac_header_compiler"
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_cxx_check_header_mongrel
2188 # ac_fn_cxx_try_run LINENO
2189 # ------------------------
2190 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2191 # that executables *can* be run.
2192 ac_fn_cxx_try_run
()
2194 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2195 if { { ac_try
="$ac_link"
2197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_link") 2>&5
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2206 { { case "(($ac_try" in
2207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2208 *) ac_try_echo
=$ac_try;;
2210 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211 $as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_try") 2>&5
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; }; }; then :
2218 $as_echo "$as_me: program exited with status $ac_status" >&5
2219 $as_echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.
$ac_ext >&5
2222 ac_retval
=$ac_status
2224 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status
$ac_retval
2228 } # ac_fn_cxx_try_run
2230 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2231 # ---------------------------------------------------------
2232 # Tests whether HEADER exists and can be compiled using the include files in
2233 # INCLUDES, setting the cache variable VAR accordingly.
2234 ac_fn_cxx_check_header_compile
()
2236 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \
${$3+:} false
; then :
2240 $as_echo_n "(cached) " >&6
2242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2247 if ac_fn_cxx_try_compile
"$LINENO"; then :
2252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 } # ac_fn_cxx_check_header_compile
2261 # ac_fn_c_try_cpp LINENO
2262 # ----------------------
2263 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2266 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2267 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2276 if test -s conftest.err; then
2277 grep -v '^ *+' conftest.err >conftest.er1
2278 cat conftest.er1 >&5
2279 mv -f conftest.er1 conftest.err
2281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; } > conftest.i && {
2283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2284 test ! -s conftest.err
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2298 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2299 # ----------------------------------------------
2300 # Tries to find the compile-time value of EXPR in a program that includes
2301 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2303 ac_fn_cxx_compute_int ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 if test "$cross_compiling" = yes; then
2307 # Depending upon the size, compute the lo and hi bounds.
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2314 static int test_array [1 - 2 * !(($2) >= 0)];
2316 return test_array [0];
2322 if ac_fn_cxx_try_compile "$LINENO"; then :
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2331 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2333 return test_array [0];
2339 if ac_fn_cxx_try_compile "$LINENO"; then :
2340 ac_hi=$ac_mid; break
2342 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2343 if test $ac_lo -le $ac_mid; then
2347 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2358 static int test_array [1 - 2 * !(($2) < 0)];
2360 return test_array [0];
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2375 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2377 return test_array [0];
2383 if ac_fn_cxx_try_compile "$LINENO"; then :
2384 ac_lo=$ac_mid; break
2386 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2387 if test $ac_mid -le $ac_hi; then
2391 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 # Binary search between lo and hi bounds.
2402 while test "x$ac_lo" != "x$ac_hi"; do
2403 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2410 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2412 return test_array [0];
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2421 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2433 static long int longval () { return $2; }
2434 static unsigned long int ulongval () { return $2; }
2441 FILE *f = fopen ("conftest.val", "w");
2446 long int i = longval ();
2449 fprintf (f, "%ld", i);
2453 unsigned long int i = ulongval ();
2456 fprintf (f, "%lu", i);
2458 /* Do not output a trailing newline, as this causes \r\n confusion
2459 on some platforms. */
2460 return ferror (f) || fclose (f) != 0;
2466 if ac_fn_cxx_try_run "$LINENO"; then :
2467 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2472 conftest.$ac_objext conftest.beam conftest.$ac_ext
2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477 as_fn_set_status $ac_retval
2479 } # ac_fn_cxx_compute_int
2481 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2482 # ---------------------------------------------
2483 # Tests whether TYPE exists after having included INCLUDES, setting cache
2484 # variable VAR accordingly.
2485 ac_fn_cxx_check_type ()
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489 $as_echo_n "checking for $2... " >&6; }
2490 if eval \${$3+:} false; then :
2491 $as_echo_n "(cached) " >&6
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2506 if ac_fn_cxx_try_compile "$LINENO"; then :
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533 } # ac_fn_cxx_check_type
2535 # ac_fn_c_find_intX_t LINENO BITS VAR
2536 # -----------------------------------
2537 # Finds a signed integer type with width BITS, setting cache variable VAR
2539 ac_fn_c_find_intX_t ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2543 $as_echo_n "checking for int$2_t... " >&6; }
2544 if eval \${$3+:} false; then :
2545 $as_echo_n "(cached) " >&6
2548 # Order is important - never check a type that is potentially smaller
2549 # than half of the expected target width.
2550 for ac_type in int$2_t 'int' 'long int' \
2551 'long long int' 'short int' 'signed char'; do
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2554 $ac_includes_default
2555 enum { N = $2 / 2 - 1 };
2559 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2561 return test_array [0];
2567 if ac_fn_cxx_try_compile "$LINENO"; then :
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 $ac_includes_default
2571 enum { N = $2 / 2 - 1 };
2575 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2576 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2578 return test_array [0];
2584 if ac_fn_cxx_try_compile "$LINENO"; then :
2591 eval "$3=\$ac_type" ;;
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 if eval test \"x\$"$3"\" = x"no"; then :
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2609 } # ac_fn_c_find_intX_t
2611 # ac_fn_cxx_try_link LINENO
2612 # -------------------------
2613 # Try to link conftest.$ac_ext, and return whether this succeeded.
2614 ac_fn_cxx_try_link ()
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { { ac_try="$ac_link"
2620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2621 *) ac_try_echo
=$ac_try;;
2623 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_link") 2>conftest.err
2627 if test -s conftest.err
; then
2628 grep -v '^ *+' conftest.err
>conftest.er1
2629 cat conftest.er1
>&5
2630 mv -f conftest.er1 conftest.err
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; } && {
2634 test -z "$ac_cxx_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest
$ac_exeext && {
2637 test "$cross_compiling" = yes ||
2638 test -x conftest
$ac_exeext
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.
$ac_ext >&5
2647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2649 # interfere with the next link command; also delete a directory that is
2650 # left behind by Apple's compiler. We do this before executing the actions.
2651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 as_fn_set_status
$ac_retval
2655 } # ac_fn_cxx_try_link
2657 # ac_fn_c_find_uintX_t LINENO BITS VAR
2658 # ------------------------------------
2659 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2661 ac_fn_c_find_uintX_t
()
2663 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2665 $as_echo_n "checking for uint$2_t... " >&6; }
2666 if eval \
${$3+:} false
; then :
2667 $as_echo_n "(cached) " >&6
2670 # Order is important - never check a type that is potentially smaller
2671 # than half of the expected target width.
2672 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2673 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2676 $ac_includes_default
2680 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2682 return test_array [0];
2688 if ac_fn_cxx_try_compile
"$LINENO"; then :
2693 eval "$3=\$ac_type" ;;
2696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2697 if eval test \"x\$
"$3"\" = x
"no"; then :
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2709 } # ac_fn_c_find_uintX_t
2711 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2712 # ------------------------------------------------
2713 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2714 ac_fn_cxx_check_header_preproc
()
2716 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2718 $as_echo_n "checking for $2... " >&6; }
2719 if eval \
${$3+:} false
; then :
2720 $as_echo_n "(cached) " >&6
2722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2723 /* end confdefs.h. */
2726 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2731 rm -f conftest.err conftest.i conftest.
$ac_ext
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2735 $as_echo "$ac_res" >&6; }
2736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2738 } # ac_fn_cxx_check_header_preproc
2740 # ac_fn_cxx_check_func LINENO FUNC VAR
2741 # ------------------------------------
2742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2743 ac_fn_cxx_check_func
()
2745 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if eval \
${$3+:} false
; then :
2749 $as_echo_n "(cached) " >&6
2751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2755 #define $2 innocuous_$2
2757 /* System header to define __stub macros and hopefully few prototypes,
2758 which can conflict with char $2 (); below.
2759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2760 <limits.h> exists even on freestanding compilers. */
2763 # include <limits.h>
2765 # include <assert.h>
2770 /* Override any GCC internal prototype to avoid an error.
2771 Use char because int might match the return type of a GCC
2772 builtin and then its argument prototype would still apply. */
2777 /* The GNU C library defines this for functions which it implements
2778 to always fail with ENOSYS. Some functions are actually named
2779 something starting with __ and the normal name is an alias. */
2780 #if defined __stub_$2 || defined __stub___$2
2792 if ac_fn_cxx_try_link
"$LINENO"; then :
2797 rm -f core conftest.err conftest.
$ac_objext \
2798 conftest
$ac_exeext conftest.
$ac_ext
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2802 $as_echo "$ac_res" >&6; }
2803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805 } # ac_fn_cxx_check_func
2807 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2808 # -----------------------------------------------
2809 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2811 ac_fn_cxx_check_decl
()
2813 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2814 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2815 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2817 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2818 if eval \
${$3+:} false
; then :
2819 $as_echo_n "(cached) " >&6
2821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2827 #ifndef $as_decl_name
2829 (void) $as_decl_use;
2831 (void) $as_decl_name;
2839 if ac_fn_cxx_try_compile
"$LINENO"; then :
2844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2851 } # ac_fn_cxx_check_decl
2853 # ac_fn_c_try_link LINENO
2854 # -----------------------
2855 # Try to link conftest.$ac_ext, and return whether this succeeded.
2858 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2859 rm -f conftest.
$ac_objext conftest
$ac_exeext
2860 if { { ac_try
="$ac_link"
2862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_link") 2>conftest.err
2869 if test -s conftest.err; then
2870 grep -v '^ *+' conftest.err >conftest.er1
2871 cat conftest.er1 >&5
2872 mv -f conftest.er1 conftest.err
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; } && {
2876 test -z "$ac_c_werror_flag" ||
2877 test ! -s conftest.err
2878 } && test -s conftest$ac_exeext && {
2879 test "$cross_compiling" = yes ||
2880 test -x conftest$ac_exeext
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2891 # interfere with the next link command; also delete a directory that is
2892 # left behind by Apple's compiler. We do this before executing the actions.
2893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2895 as_fn_set_status $ac_retval
2897 } # ac_fn_c_try_link
2899 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2900 # ----------------------------------------------
2901 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2902 ac_fn_c_check_header_preproc ()
2904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2906 $as_echo_n "checking for $2... " >&6; }
2907 if eval \${$3+:} false; then :
2908 $as_echo_n "(cached) " >&6
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2914 if ac_fn_c_try_cpp "$LINENO"; then :
2919 rm -f conftest.err conftest.i conftest.$ac_ext
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2923 $as_echo "$ac_res" >&6; }
2924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926 } # ac_fn_c_check_header_preproc
2928 # ac_fn_c_check_func LINENO FUNC VAR
2929 # ----------------------------------
2930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2931 ac_fn_c_check_func ()
2933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2935 $as_echo_n "checking for $2... " >&6; }
2936 if eval \${$3+:} false; then :
2937 $as_echo_n "(cached) " >&6
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2943 #define $2 innocuous_$2
2945 /* System header to define __stub macros and hopefully few prototypes,
2946 which can conflict with char $2 (); below.
2947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2948 <limits.h> exists even on freestanding compilers. */
2951 # include <limits.h>
2953 # include <assert.h>
2958 /* Override any GCC internal prototype to avoid an error.
2959 Use char because int might match the return type of a GCC
2960 builtin and then its argument prototype would still apply. */
2965 /* The GNU C library defines this for functions which it implements
2966 to always fail with ENOSYS. Some functions are actually named
2967 something starting with __ and the normal name is an alias. */
2968 #if defined __stub_$2 || defined __stub___$2
2980 if ac_fn_c_try_link "$LINENO"; then :
2985 rm -f core conftest.err conftest.$ac_objext \
2986 conftest$ac_exeext conftest.$ac_ext
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2990 $as_echo "$ac_res" >&6; }
2991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2993 } # ac_fn_c_check_func
2994 cat >config.log <<_ACEOF
2995 This file contains any messages produced by compilers while
2996 running configure, to aid debugging if configure makes a mistake.
2998 It was created by $as_me, which was
2999 generated by GNU Autoconf 2.69. Invocation command line was
3011 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3012 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3013 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3014 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3015 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3017 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3018 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3020 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3021 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3022 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3023 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3024 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3025 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3026 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 $as_echo "PATH: $as_dir"
3051 # Keep a trace of the command line.
3052 # Strip out --no-create and --no-recursion so they do not pile up.
3053 # Strip out --silent because we don't want to record it for future runs.
3054 # Also quote any args containing shell meta-characters.
3055 # Make two passes to allow for proper duplicate-argument suppression.
3059 ac_must_keep_next=false
3065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3067 | -silent | --silent | --silen | --sile | --sil)
3070 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3073 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3075 as_fn_append ac_configure_args1 " '$ac_arg'"
3076 if test $ac_must_keep_next = true; then
3077 ac_must_keep_next=false # Got value, back to normal.
3080 *=* | --config-cache | -C | -disable-* | --disable-* \
3081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3083 | -with-* | --with-* | -without-* | --without-* | --x)
3084 case "$ac_configure_args0 " in
3085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3088 -* ) ac_must_keep_next=true ;;
3091 as_fn_append ac_configure_args " '$ac_arg'"
3096 { ac_configure_args0=; unset ac_configure_args0;}
3097 { ac_configure_args1=; unset ac_configure_args1;}
3099 # When interrupted or exit'd, cleanup temporary files, and complete
3100 # config.log. We remove comments because anyway the quotes in there
3101 # would cause problems or look ugly.
3102 # WARNING: Use '\'' to represent an apostrophe within the trap.
3103 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3104 trap 'exit_status=$?
3105 # Save into config.log some information that might help in debugging.
3109 $as_echo "## ---------------- ##
3110 ## Cache variables. ##
3111 ## ---------------- ##"
3113 # The following way of writing the cache mishandles newlines in values,
3115 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3116 eval ac_val=\$$ac_var
3120 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3121 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3124 _ | IFS | as_nl) ;; #(
3125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3126 *) { eval $ac_var=; unset $ac_var;} ;;
3131 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3132 *${as_nl}ac_space=\ *)
3134 "s/'\''/'\''\\\\'\'''\''/g;
3135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3145 $as_echo "## ----------------- ##
3146 ## Output variables. ##
3147 ## ----------------- ##"
3149 for ac_var in $ac_subst_vars
3151 eval ac_val=\$$ac_var
3153 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3155 $as_echo "$ac_var='\''$ac_val'\''"
3159 if test -n "$ac_subst_files"; then
3160 $as_echo "## ------------------- ##
3161 ## File substitutions. ##
3162 ## ------------------- ##"
3164 for ac_var in $ac_subst_files
3166 eval ac_val=\$$ac_var
3168 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3170 $as_echo "$ac_var='\''$ac_val'\''"
3175 if test -s confdefs.h; then
3176 $as_echo "## ----------- ##
3183 test "$ac_signal" != 0 &&
3184 $as_echo "$as_me: caught signal $ac_signal"
3185 $as_echo "$as_me: exit $exit_status"
3187 rm -f core *.core core.conftest.* &&
3188 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3191 for ac_signal in 1 2 13 15; do
3192 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3197 rm -f -r conftest* confdefs.h
3199 $as_echo "/* confdefs.h */" > confdefs.h
3201 # Predefined preprocessor variables.
3203 cat >>confdefs.h <<_ACEOF
3204 #define PACKAGE_NAME "$PACKAGE_NAME"
3207 cat >>confdefs.h <<_ACEOF
3208 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3211 cat >>confdefs.h <<_ACEOF
3212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3215 cat >>confdefs.h <<_ACEOF
3216 #define PACKAGE_STRING "$PACKAGE_STRING"
3219 cat >>confdefs.h <<_ACEOF
3220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3223 cat >>confdefs.h <<_ACEOF
3224 #define PACKAGE_URL "$PACKAGE_URL"
3228 # Let the site file select an alternate cache file if it wants to.
3229 # Prefer an explicitly selected file to automatically selected ones.
3232 if test -n "$CONFIG_SITE"; then
3233 # We do not want a PATH search for config.site.
3234 case $CONFIG_SITE in #((
3235 -*) ac_site_file1=./$CONFIG_SITE;;
3236 */*) ac_site_file1=$CONFIG_SITE;;
3237 *) ac_site_file1=./$CONFIG_SITE;;
3239 elif test "x$prefix" != xNONE; then
3240 ac_site_file1=$prefix/share/config.site
3241 ac_site_file2=$prefix/etc/config.site
3243 ac_site_file1=$ac_default_prefix/share/config.site
3244 ac_site_file2=$ac_default_prefix/etc/config.site
3246 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3248 test "x$ac_site_file" = xNONE && continue
3249 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3251 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3252 sed 's/^/| /' "$ac_site_file" >&5
3254 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "failed to load site
script $ac_site_file
3257 See \
`config.log' for more details" "$LINENO" 5; }
3261 if test -r "$cache_file"; then
3262 # Some versions of bash will fail to source /dev/null (special files
3263 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3264 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3266 $as_echo "$as_me: loading cache $cache_file" >&6;}
3268 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3269 *) . "./$cache_file";;
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3274 $as_echo "$as_me: creating cache $cache_file" >&6;}
3278 # Check that the precious variables saved in the cache have kept the same
3280 ac_cache_corrupted=false
3281 for ac_var in $ac_precious_vars; do
3282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3283 eval ac_new_set=\$ac_env_${ac_var}_set
3284 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3285 eval ac_new_val=\$ac_env_${ac_var}_value
3286 case $ac_old_set,$ac_new_set in
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3289 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3290 ac_cache_corrupted=: ;;
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3293 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3294 ac_cache_corrupted=: ;;
3297 if test "x$ac_old_val" != "x$ac_new_val"; then
3298 # differences in whitespace do not lead to failure.
3299 ac_old_val_w=`echo x
$ac_old_val`
3300 ac_new_val_w=`echo x
$ac_new_val`
3301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3303 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3304 ac_cache_corrupted=:
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3307 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3308 eval $ac_var=\$ac_old_val
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3311 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3313 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3316 # Pass precious variables to config.status.
3317 if test "$ac_new_set" = set; then
3319 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3320 *) ac_arg=$ac_var=$ac_new_val ;;
3322 case " $ac_configure_args " in
3323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3324 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3328 if $ac_cache_corrupted; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3332 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3333 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3335 ## -------------------- ##
3336 ## Main body of script. ##
3337 ## -------------------- ##
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3354 gcc_version=`cat $srcdir/BASE-VER
`
3356 # Determine the host, build, and target systems
3358 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3359 if test -f "$ac_dir/install-sh"; then
3361 ac_install_sh="$ac_aux_dir/install-sh -c"
3363 elif test -f "$ac_dir/install.sh"; then
3365 ac_install_sh="$ac_aux_dir/install.sh -c"
3367 elif test -f "$ac_dir/shtool"; then
3369 ac_install_sh="$ac_aux_dir/shtool install -c"
3373 if test -z "$ac_aux_dir"; then
3374 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3377 # These three variables are undocumented and unsupported,
3378 # and are intended to be withdrawn in a future Autoconf release.
3379 # They can cause serious problems if a builder's source tree is in a directory
3380 # whose full name contains unusual characters.
3381 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3382 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3383 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3386 # Make sure we can run config.sub.
3387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3388 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3391 $as_echo_n "checking build system type... " >&6; }
3392 if ${ac_cv_build+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 ac_build_alias=$build_alias
3396 test "x$ac_build_alias" = x &&
3397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3398 test "x$ac_build_alias" = x &&
3399 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3405 $as_echo "$ac_cv_build" >&6; }
3406 case $ac_cv_build in
3408 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3411 ac_save_IFS=$IFS; IFS='-'
3417 # Remember, the first character of IFS is used to create $*,
3418 # except with old shells:
3421 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3425 $as_echo_n "checking host system type... " >&6; }
3426 if ${ac_cv_host+:} false; then :
3427 $as_echo_n "(cached) " >&6
3429 if test "x$host_alias" = x; then
3430 ac_cv_host=$ac_cv_build
3432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3438 $as_echo "$ac_cv_host" >&6; }
3441 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3444 ac_save_IFS=$IFS; IFS='-'
3450 # Remember, the first character of IFS is used to create $*,
3451 # except with old shells:
3454 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3458 $as_echo_n "checking target system type... " >&6; }
3459 if ${ac_cv_target+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 if test "x$target_alias" = x; then
3463 ac_cv_target=$ac_cv_host
3465 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3466 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3471 $as_echo "$ac_cv_target" >&6; }
3472 case $ac_cv_target in
3474 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3476 target=$ac_cv_target
3477 ac_save_IFS=$IFS; IFS='-'
3483 # Remember, the first character of IFS is used to create $*,
3484 # except with old shells:
3487 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3490 # The aliases save the names the user supplied, while $host etc.
3491 # will get canonicalized.
3492 test -n "$target_alias" &&
3493 test "$program_prefix$program_suffix$program_transform_name" = \
3495 program_prefix=${target_alias}-
3497 # Determine the noncanonical host name, for Ada.
3498 case ${build_alias} in
3499 "") build_noncanonical=${build} ;;
3500 *) build_noncanonical=${build_alias} ;;
3503 case ${host_alias} in
3504 "") host_noncanonical=${build_noncanonical} ;;
3505 *) host_noncanonical=${host_alias} ;;
3511 # Determine the noncanonical target name, for directory use.
3512 case ${target_alias} in
3513 "") target_noncanonical=${host_noncanonical} ;;
3514 *) target_noncanonical=${target_alias} ;;
3520 # Used for constructing correct paths for offload compilers.
3521 real_target_noncanonical=${target_noncanonical}
3524 # Determine the target- and build-specific subdirectories
3526 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3527 # have matching libraries, they should use host libraries: Makefile.tpl
3528 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3529 # However, they still use the build modules, because the corresponding
3530 # host modules (e.g. bison) are only built for the host when bootstrap
3532 # - build_subdir is where we find build modules, and never changes.
3533 # - build_libsubdir is where we find build libraries, and can be overridden.
3535 # Prefix 'build-' so this never conflicts with target_subdir.
3536 build_subdir="build-${build_noncanonical}"
3538 # Check whether --with-build-libsubdir was given.
3539 if test "${with_build_libsubdir+set}" = set; then :
3540 withval=$with_build_libsubdir; build_libsubdir="$withval"
3542 build_libsubdir="$build_subdir"
3545 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3546 if ( test $srcdir = . && test -d gcc ) \
3547 || test -d $srcdir/../host-${host_noncanonical}; then
3548 host_subdir="host-${host_noncanonical}"
3553 target_subdir=${target_noncanonical}
3556 # Set program_transform_name
3557 test "$program_prefix" != NONE &&
3558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3559 # Use a double $ so make ignores it.
3560 test "$program_suffix" != NONE &&
3561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3562 # Double any \ or $.
3563 # By default was `s
,x
,x
', remove it if useless.
3564 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3568 # Check for bogus environment variables.
3569 # Test if LIBRARY_PATH contains the notation for the current directory
3570 # since this would lead to problems installing/building glibc.
3571 # LIBRARY_PATH contains the current directory if one of the following
3573 # - one of the terminals (":" and ";") is the first or last sign
3574 # - two terminals occur directly after each other
3575 # - the path contains an element with a dot in it
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3577 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3578 case ${LIBRARY_PATH} in
3579 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3580 library_path_setting="contains current directory"
3583 library_path_setting="ok"
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3587 $as_echo "$library_path_setting" >&6; }
3588 if test "$library_path_setting" != "ok"; then
3590 *** LIBRARY_PATH shouldn't contain the current directory when
3591 *** building gcc. Please change the environment variable
3592 *** and run configure again.
" "$LINENO" 5
3595 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3596 # since this would lead to problems installing/building glibc.
3597 # GCC_EXEC_PREFIX contains the current directory if one of the following
3599 # - one of the terminals (":" and ";") is the first or last sign
3600 # - two terminals occur directly after each other
3601 # - the path contains an element with a dot in it
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3603 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3604 case ${GCC_EXEC_PREFIX} in
3605 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3606 gcc_exec_prefix_setting="contains current directory
"
3609 gcc_exec_prefix_setting="ok
"
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3613 $as_echo "$gcc_exec_prefix_setting" >&6; }
3614 if test "$gcc_exec_prefix_setting" != "ok
"; then
3616 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3617 *** building gcc. Please change the environment variable
3618 *** and run configure again." "$LINENO" 5
3625 # Specify the local prefix
3628 # Check whether --with-local-prefix was given.
3629 if test "${with_local_prefix+set}" = set; then :
3630 withval=$with_local_prefix; case "${withval}" in
3631 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3633 *) local_prefix=$with_local_prefix ;;
3638 # Default local prefix if it is empty
3639 if test x$local_prefix = x; then
3640 local_prefix=/usr/local
3644 # Check whether --with-native-system-header-dir was given.
3645 if test "${with_native_system_header_dir+set}" = set; then :
3646 withval=$with_native_system_header_dir;
3647 case ${with_native_system_header_dir} in
3648 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3649 /* | [A-Za-z]:[\\/]*) ;;
3650 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3652 configured_native_system_header_dir="${withval}"
3655 configured_native_system_header_dir=
3660 # Check whether --with-build-sysroot was given.
3661 if test "${with_build_sysroot+set}" = set; then :
3662 withval=$with_build_sysroot; if test x"$withval" != x ; then
3663 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3666 SYSROOT_CFLAGS_FOR_TARGET=
3671 if test "x$prefix" = xNONE; then
3672 test_prefix=/usr/local
3676 if test "x$exec_prefix" = xNONE; then
3677 test_exec_prefix=$test_prefix
3679 test_exec_prefix=$exec_prefix
3683 # Check whether --with-sysroot was given.
3684 if test "${with_sysroot+set}" = set; then :
3685 withval=$with_sysroot;
3686 case ${with_sysroot} in
3688 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3690 case ${with_sysroot} in
3691 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3692 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3695 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3696 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3698 case ${TARGET_SYSTEM_ROOT} in
3699 "${test_prefix}"|"${test_prefix}/"*|\
3700 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3701 '${prefix}'|'${prefix}/'*|\
3702 '${exec_prefix}'|'${exec_prefix}/'*)
3703 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3704 TARGET_SYSTEM_ROOT_DEFINE="$t"
3711 TARGET_SYSTEM_ROOT_DEFINE=
3712 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3720 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3721 # passed in by the toplevel make and thus we'd get different behavior
3722 # depending on where we built the sources.
3723 gcc_gxx_include_dir
=
3724 # Specify the g++ header file directory
3726 # Check whether --with-gxx-include-dir was given.
3727 if test "${with_gxx_include_dir+set}" = set; then :
3728 withval
=$with_gxx_include_dir; case "${withval}" in
3729 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3731 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3736 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3737 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3738 # relative to the sysroot.
3739 gcc_gxx_include_dir_add_sysroot
=0
3741 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3742 if test x
${gcc_gxx_include_dir} = x
; then
3743 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3744 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3746 libstdcxx_incdir
='include/c++/$(version)'
3747 if test x
$host != x
$target; then
3748 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3750 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3752 elif test "${with_sysroot+set}" = set; then
3753 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3754 if test "${gcc_gxx_without_sysroot}"; then
3755 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3756 gcc_gxx_include_dir_add_sysroot
=1
3760 # Configuration for an alternate set of C++ headers.
3761 gcc_gxx_libcxx_include_dir
=
3762 # Specify the alternate g++ header file directory
3764 # Check whether --with-gxx-libcxx-include-dir was given.
3765 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3766 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3767 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3769 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3774 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3775 # check to see if the latter starts with the former and, upon success, compute
3776 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3777 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3779 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3781 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3784 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3787 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3788 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3789 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3790 gcc_gxx_libcxx_include_dir
='${libsubdir}/libc++_include/c++/v1'
3792 libcxx_incdir
='libc++_include/c++/$(version)/v1'
3793 if test x
$host != x
$target; then
3794 libcxx_incdir
="$target_alias/$libcxx_incdir"
3796 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3798 elif test "${with_sysroot+set}" = set; then
3799 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3800 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3801 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3802 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3807 # Check whether --with-cpp_install_dir was given.
3808 if test "${with_cpp_install_dir+set}" = set; then :
3809 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3810 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3811 elif test x
$withval != xno
; then
3812 cpp_install_dir
=$withval
3817 # We would like to our source tree to be readonly. However when releases or
3818 # pre-releases are generated, the flex/bison generated files as well as the
3819 # various formats of manuals need to be included along with the rest of the
3820 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3824 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3825 # Check whether --enable-generated-files-in-srcdir was given.
3826 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3827 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3829 generated_files_in_srcdir
=no
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3834 $as_echo "$generated_files_in_srcdir" >&6; }
3836 if test "$generated_files_in_srcdir" = "yes"; then
3843 # -------------------
3844 # Find default linker
3845 # -------------------
3849 # Check whether --with-gnu-ld was given.
3850 if test "${with_gnu_ld+set}" = set; then :
3851 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3859 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3860 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3868 # With pre-defined ld
3870 # Check whether --with-ld was given.
3871 if test "${with_ld+set}" = set; then :
3872 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3875 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3876 if test ! -x "$DEFAULT_LINKER"; then
3877 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3878 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3880 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3884 cat >>confdefs.h
<<_ACEOF
3885 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3891 $as_echo_n "checking whether a default linker was specified... " >&6; }
3892 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3893 if test x
"$gnu_ld_flag" = x
"no"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3895 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3898 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3905 # With demangler in GNU ld
3907 # Check whether --with-demangler-in-ld was given.
3908 if test "${with_demangler_in_ld+set}" = set; then :
3909 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3915 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3917 # Check whether --with-dsymutil was given.
3918 if test "${with_dsymutil+set}" = set; then :
3919 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3924 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3925 if test ! -x "$DEFAULT_DSYMUTIL"; then
3926 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3928 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3933 cat >>confdefs.h
<<_ACEOF
3934 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3940 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3941 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3943 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946 $as_echo "no" >&6; }
3949 # ----------------------
3950 # Find default assembler
3951 # ----------------------
3955 # Check whether --with-gnu-as was given.
3956 if test "${with_gnu_as+set}" = set; then :
3957 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3964 # Check whether --with-as was given.
3965 if test "${with_as+set}" = set; then :
3966 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3969 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3970 if test ! -x "$DEFAULT_ASSEMBLER"; then
3971 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3972 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3976 cat >>confdefs.h
<<_ACEOF
3977 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3983 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3984 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3985 if test x
"$gas_flag" = x
"no"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3987 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3990 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
4001 # If a non-executable a.out is present (e.g. created by GNU as above even if
4002 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4003 # file, even when creating an executable, so an execution test fails.
4004 # Remove possible default executable files to avoid this.
4006 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4007 # Autoconf includes it.
4008 rm -f a.out a.exe b.out
4010 # Find the native compiler
4012 ac_cpp
='$CPP $CPPFLAGS'
4013 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4016 if test -n "$ac_tool_prefix"; then
4017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4018 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if ${ac_cv_prog_CC+:} false
; then :
4022 $as_echo_n "(cached) " >&6
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC
="$CC" # Let the user override the test.
4027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir
=.
4032 for ac_exec_ext
in '' $ac_executable_extensions; do
4033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 if test -n "$CC"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4047 $as_echo "$CC" >&6; }
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4055 if test -z "$ac_cv_prog_CC"; then
4057 # Extract the first word of "gcc", so it can be a program name with args.
4058 set dummy gcc
; ac_word
=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4062 $as_echo_n "(cached) " >&6
4064 if test -n "$ac_ct_CC"; then
4065 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4071 test -z "$as_dir" && as_dir
=.
4072 for ac_exec_ext
in '' $ac_executable_extensions; do
4073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_ac_ct_CC
="gcc"
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4085 if test -n "$ac_ct_CC"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4087 $as_echo "$ac_ct_CC" >&6; }
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4093 if test "x$ac_ct_CC" = x
; then
4096 case $cross_compiling:$ac_tool_warned in
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100 ac_tool_warned
=yes ;;
4108 if test -z "$CC"; then
4109 if test -n "$ac_tool_prefix"; then
4110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4111 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_CC+:} false
; then :
4115 $as_echo_n "(cached) " >&6
4117 if test -n "$CC"; then
4118 ac_cv_prog_CC
="$CC" # Let the user override the test.
4120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir
=.
4125 for ac_exec_ext
in '' $ac_executable_extensions; do
4126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 if test -n "$CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4140 $as_echo "$CC" >&6; }
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4149 if test -z "$CC"; then
4150 # Extract the first word of "cc", so it can be a program name with args.
4151 set dummy cc
; ac_word
=$2
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 $as_echo_n "checking for $ac_word... " >&6; }
4154 if ${ac_cv_prog_CC+:} false
; then :
4155 $as_echo_n "(cached) " >&6
4157 if test -n "$CC"; then
4158 ac_cv_prog_CC
="$CC" # Let the user override the test.
4161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir
=.
4166 for ac_exec_ext
in '' $ac_executable_extensions; do
4167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4169 ac_prog_rejected
=yes
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 if test $ac_prog_rejected = yes; then
4181 # We found a bogon in the path, so make sure we never use it.
4182 set dummy
$ac_cv_prog_CC
4184 if test $# != 0; then
4185 # We chose a different compiler from the bogus one.
4186 # However, it has the same basename, so the bogon will be chosen
4187 # first if we set CC to just the basename; use the full file name.
4189 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4205 if test -z "$CC"; then
4206 if test -n "$ac_tool_prefix"; then
4207 for ac_prog
in cl.exe
4209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4210 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_CC+:} false
; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -n "$CC"; then
4217 ac_cv_prog_CC
="$CC" # Let the user override the test.
4219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir
=.
4224 for ac_exec_ext
in '' $ac_executable_extensions; do
4225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 if test -n "$CC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4239 $as_echo "$CC" >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4246 test -n "$CC" && break
4249 if test -z "$CC"; then
4251 for ac_prog
in cl.exe
4253 # Extract the first word of "$ac_prog", so it can be a program name with args.
4254 set dummy
$ac_prog; ac_word
=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4258 $as_echo_n "(cached) " >&6
4260 if test -n "$ac_ct_CC"; then
4261 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4267 test -z "$as_dir" && as_dir
=.
4268 for ac_exec_ext
in '' $ac_executable_extensions; do
4269 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_prog_ac_ct_CC
="$ac_prog"
4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4281 if test -n "$ac_ct_CC"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4283 $as_echo "$ac_ct_CC" >&6; }
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4290 test -n "$ac_ct_CC" && break
4293 if test "x$ac_ct_CC" = x
; then
4296 case $cross_compiling:$ac_tool_warned in
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4300 ac_tool_warned
=yes ;;
4309 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4311 as_fn_error $?
"no acceptable C compiler found in \$PATH
4312 See \`config.log' for more details" "$LINENO" 5; }
4314 # Provide some information about the compiler.
4315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4318 for ac_option
in --version -v -V -qversion; do
4319 { { ac_try
="$ac_compiler $ac_option >&5"
4321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4328 if test -s conftest.err; then
4330 ... rest of stderr output deleted ...
4331 10q' conftest.err >conftest.er1
4332 cat conftest.er1 >&5
4334 rm -f conftest.er1 conftest.err
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; }
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4350 ac_clean_files_save=$ac_clean_files
4351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4352 # Try to create an executable without -o first, disregard a.out.
4353 # It will help us diagnose broken compilers, and finding out an intuition
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4356 $as_echo_n "checking whether the C compiler works... " >&6; }
4357 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4359 # The possible output files:
4360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4363 for ac_file in $ac_files
4366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4372 if { { ac_try="$ac_link_default"
4374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4375 *) ac_try_echo
=$ac_try;;
4377 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_link_default") 2>&5
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }; then :
4383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4386 # so that the user can short-circuit this test for compilers unknown to
4388 for ac_file
in $ac_files ''
4390 test -f "$ac_file" ||
continue
4392 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4395 # We found the default executable, but exeext='' is most
4399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4401 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4403 # We set ac_cv_exeext here because the later test for it is not
4404 # safe: cross compilers may not add the suffix if given an `-o'
4405 # argument, so we may need to know it at that point already.
4406 # Even if this section looks crufty: it has the advantage of
4413 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4418 if test -z "$ac_file"; then :
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.
$ac_ext >&5
4424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error
77 "C compiler cannot create executables
4427 See \`config.log' for more details" "$LINENO" 5; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4430 $as_echo "yes" >&6; }
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4433 $as_echo_n "checking for C compiler default output file name... " >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4435 $as_echo "$ac_file" >&6; }
4436 ac_exeext
=$ac_cv_exeext
4438 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4439 ac_clean_files
=$ac_clean_files_save
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4441 $as_echo_n "checking for suffix of executables... " >&6; }
4442 if { { ac_try
="$ac_link"
4444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_link") 2>&5
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }; then :
4453 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4454 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4455 # work properly (i.e., refer to `conftest.exe'), while it won't with
4457 for ac_file
in conftest.exe conftest conftest.
*; do
4458 test -f "$ac_file" ||
continue
4460 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4461 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4470 See \`config.log' for more details" "$LINENO" 5; }
4472 rm -f conftest conftest
$ac_cv_exeext
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4474 $as_echo "$ac_cv_exeext" >&6; }
4476 rm -f conftest.
$ac_ext
4477 EXEEXT
=$ac_cv_exeext
4479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4485 FILE *f = fopen ("conftest.out", "w");
4486 return ferror (f) || fclose (f) != 0;
4492 ac_clean_files
="$ac_clean_files conftest.out"
4493 # Check that the compiler produces executables we can run. If not, either
4494 # the compiler is broken, or we cross compile.
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4496 $as_echo_n "checking whether we are cross compiling... " >&6; }
4497 if test "$cross_compiling" != yes; then
4498 { { ac_try
="$ac_link"
4500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_link") 2>&5
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }
4509 if { ac_try='./conftest$ac_cv_exeext'
4510 { { case "(($ac_try" in
4511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4512 *) ac_try_echo
=$ac_try;;
4514 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_try") 2>&5
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; }; then
4522 if test "$cross_compiling" = maybe
; then
4525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $?
"cannot run C compiled programs.
4528 If you meant to cross compile, use \`--host'.
4529 See \`config.log' for more details" "$LINENO" 5; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4534 $as_echo "$cross_compiling" >&6; }
4536 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4537 ac_clean_files
=$ac_clean_files_save
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4539 $as_echo_n "checking for suffix of object files... " >&6; }
4540 if ${ac_cv_objext+:} false
; then :
4541 $as_echo_n "(cached) " >&6
4543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4554 rm -f conftest.o conftest.obj
4555 if { { ac_try
="$ac_compile"
4557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561 $as_echo "$ac_try_echo"; } >&5
4562 (eval "$ac_compile") 2>&5
4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565 test $ac_status = 0; }; then :
4566 for ac_file in conftest.o conftest.obj conftest.*; do
4567 test -f "$ac_file" || continue;
4569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4575 $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4581 See \
`config.log' for more details" "$LINENO" 5; }
4583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4586 $as_echo "$ac_cv_objext" >&6; }
4587 OBJEXT=$ac_cv_objext
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4590 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4591 if ${ac_cv_c_compiler_gnu+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4608 if ac_fn_c_try_compile "$LINENO"; then :
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4618 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4619 if test $ac_compiler_gnu = yes; then
4624 ac_test_CFLAGS=${CFLAGS+set}
4625 ac_save_CFLAGS=$CFLAGS
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4627 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4628 if ${ac_cv_prog_cc_g+:} false; then :
4629 $as_echo_n "(cached) " >&6
4631 ac_save_c_werror_flag=$ac_c_werror_flag
4632 ac_c_werror_flag=yes
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4646 if ac_fn_c_try_compile "$LINENO"; then :
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4661 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_c_werror_flag=$ac_save_c_werror_flag
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4677 if ac_fn_c_try_compile "$LINENO"; then :
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 ac_c_werror_flag=$ac_save_c_werror_flag
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4688 $as_echo "$ac_cv_prog_cc_g" >&6; }
4689 if test "$ac_test_CFLAGS" = set; then
4690 CFLAGS=$ac_save_CFLAGS
4691 elif test $ac_cv_prog_cc_g = yes; then
4692 if test "$GCC" = yes; then
4698 if test "$GCC" = yes; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4705 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4706 if ${ac_cv_prog_cc_c89+:} false; then :
4707 $as_echo_n "(cached) " >&6
4709 ac_cv_prog_cc_c89=no
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4717 struct buf { int x; };
4718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4719 static char *e (p, i)
4725 static char *f (char * (*g) (char **, int), char **p, ...)
4730 s = g (p, va_arg (v,int));
4735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4736 function prototypes and stuff, but not '\xHH' hex character constants.
4737 These don't provoke an error unfortunately, instead are silently treated
4738 as 'x'. The following induces an error, until -std is added to get
4739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4740 array size at least. It's necessary to write '\x00'==0 to get something
4741 that's true only with -std. */
4742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4745 inside strings and character constants. */
4747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4749 int test (int i, double x);
4750 struct s1 {int (*f) (int a);};
4751 struct s2 {int (*f) (double a);};
4752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4766 CC="$ac_save_CC $ac_arg"
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_c89=$ac_arg
4770 rm -f core conftest.err conftest.$ac_objext
4771 test "x$ac_cv_prog_cc_c89" != "xno" && break
4773 rm -f conftest.$ac_ext
4778 case "x$ac_cv_prog_cc_c89" in
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4781 $as_echo "none needed" >&6; } ;;
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4784 $as_echo "unsupported" >&6; } ;;
4786 CC="$CC $ac_cv_prog_cc_c89"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4790 if test "x$ac_cv_prog_cc_c89" != xno; then :
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801 ac_cpp='$CXXCPP $CPPFLAGS'
4802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4805 if test -z "$CXX"; then
4806 if test -n "$CCC"; then
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if ${ac_cv_prog_CXX+:} false; then :
4817 $as_echo_n "(cached) " >&6
4819 if test -n "$CXX"; then
4820 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 if test -n "$CXX"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4842 $as_echo "$CXX" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4849 test -n "$CXX" && break
4852 if test -z "$CXX"; then
4854 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$ac_ct_CXX"; then
4864 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_ac_ct_CXX="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4884 if test -n "$ac_ct_CXX"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4886 $as_echo "$ac_ct_CXX" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 test -n "$ac_ct_CXX" && break
4896 if test "x$ac_ct_CXX" = x; then
4899 case $cross_compiling:$ac_tool_warned in
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4911 # Provide some information about the compiler.
4912 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4915 for ac_option in --version -v -V -qversion; do
4916 { { ac_try="$ac_compiler $ac_option >&5"
4918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4919 *) ac_try_echo
=$ac_try;;
4921 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4922 $as_echo "$ac_try_echo"; } >&5
4923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4925 if test -s conftest.err
; then
4927 ... rest of stderr output deleted ...
4928 10q' conftest.err
>conftest.er1
4929 cat conftest.er1
>&5
4931 rm -f conftest.er1 conftest.err
4932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4933 test $ac_status = 0; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4937 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4938 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4939 $as_echo_n "(cached) " >&6
4941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4955 if ac_fn_cxx_try_compile
"$LINENO"; then :
4960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4961 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4965 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4966 if test $ac_compiler_gnu = yes; then
4971 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4972 ac_save_CXXFLAGS
=$CXXFLAGS
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4974 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4975 if ${ac_cv_prog_cxx_g+:} false
; then :
4976 $as_echo_n "(cached) " >&6
4978 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4979 ac_cxx_werror_flag
=yes
4982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4993 if ac_fn_cxx_try_compile
"$LINENO"; then :
4994 ac_cv_prog_cxx_g
=yes
4997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5008 if ac_fn_cxx_try_compile
"$LINENO"; then :
5011 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5024 if ac_fn_cxx_try_compile
"$LINENO"; then :
5025 ac_cv_prog_cxx_g
=yes
5027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5032 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5035 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5036 if test "$ac_test_CXXFLAGS" = set; then
5037 CXXFLAGS
=$ac_save_CXXFLAGS
5038 elif test $ac_cv_prog_cxx_g = yes; then
5039 if test "$GXX" = yes; then
5045 if test "$GXX" = yes; then
5052 ac_cpp
='$CPP $CPPFLAGS'
5053 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5060 if test -n "$ac_tool_prefix"; then
5061 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5062 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_GNATBIND+:} false
; then :
5066 $as_echo_n "(cached) " >&6
5068 if test -n "$GNATBIND"; then
5069 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir
=.
5076 for ac_exec_ext
in '' $ac_executable_extensions; do
5077 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 GNATBIND
=$ac_cv_prog_GNATBIND
5089 if test -n "$GNATBIND"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5091 $as_echo "$GNATBIND" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5099 if test -z "$ac_cv_prog_GNATBIND"; then
5100 ac_ct_GNATBIND
=$GNATBIND
5101 # Extract the first word of "gnatbind", so it can be a program name with args.
5102 set dummy gnatbind
; ac_word
=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5106 $as_echo_n "(cached) " >&6
5108 if test -n "$ac_ct_GNATBIND"; then
5109 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir
=.
5116 for ac_exec_ext
in '' $ac_executable_extensions; do
5117 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5129 if test -n "$ac_ct_GNATBIND"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5131 $as_echo "$ac_ct_GNATBIND" >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5137 if test "x$ac_ct_GNATBIND" = x
; then
5140 case $cross_compiling:$ac_tool_warned in
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144 ac_tool_warned
=yes ;;
5146 GNATBIND
=$ac_ct_GNATBIND
5149 GNATBIND
="$ac_cv_prog_GNATBIND"
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5154 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5158 $as_echo_n "(cached) " >&6
5160 if test -n "$GNATMAKE"; then
5161 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir
=.
5168 for ac_exec_ext
in '' $ac_executable_extensions; do
5169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 GNATMAKE
=$ac_cv_prog_GNATMAKE
5181 if test -n "$GNATMAKE"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5183 $as_echo "$GNATMAKE" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5191 if test -z "$ac_cv_prog_GNATMAKE"; then
5192 ac_ct_GNATMAKE
=$GNATMAKE
5193 # Extract the first word of "gnatmake", so it can be a program name with args.
5194 set dummy gnatmake
; ac_word
=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5198 $as_echo_n "(cached) " >&6
5200 if test -n "$ac_ct_GNATMAKE"; then
5201 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir
=.
5208 for ac_exec_ext
in '' $ac_executable_extensions; do
5209 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5221 if test -n "$ac_ct_GNATMAKE"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5223 $as_echo "$ac_ct_GNATMAKE" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5229 if test "x$ac_ct_GNATMAKE" = x
; then
5232 case $cross_compiling:$ac_tool_warned in
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned
=yes ;;
5238 GNATMAKE
=$ac_ct_GNATMAKE
5241 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5245 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5246 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5247 $as_echo_n "(cached) " >&6
5249 cat >conftest.adb
<<EOF
5250 pragma Warnings (Off);
5252 pragma Warnings (On);
5253 use type System.CRTL.int64;
5254 procedure conftest is begin null; end conftest;
5256 acx_cv_cc_gcc_supports_ada
=no
5257 # There is a bug in old released versions of GCC which causes the
5258 # driver to exit successfully when the appropriate language module
5259 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5260 # Therefore we must check for the error message as well as an
5261 # unsuccessful exit.
5262 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5263 # given a .adb file, but produce no object file. So we must check
5264 # if an object file was really produced to guard against this.
5265 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5266 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5267 acx_cv_cc_gcc_supports_ada
=yes
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5272 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5274 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5282 if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5284 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_GDC+:} false
; then :
5288 $as_echo_n "(cached) " >&6
5290 if test -n "$GDC"; then
5291 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir
=.
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 if test -n "$GDC"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5313 $as_echo "$GDC" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5321 if test -z "$ac_cv_prog_GDC"; then
5323 # Extract the first word of "gdc", so it can be a program name with args.
5324 set dummy gdc
; ac_word
=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5328 $as_echo_n "(cached) " >&6
5330 if test -n "$ac_ct_GDC"; then
5331 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5337 test -z "$as_dir" && as_dir
=.
5338 for ac_exec_ext
in '' $ac_executable_extensions; do
5339 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_ac_ct_GDC
="gdc"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5351 if test -n "$ac_ct_GDC"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5353 $as_echo "$ac_ct_GDC" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5359 if test "x$ac_ct_GDC" = x
; then
5362 case $cross_compiling:$ac_tool_warned in
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366 ac_tool_warned
=yes ;;
5371 GDC
="$ac_cv_prog_GDC"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5375 $as_echo_n "checking whether the D compiler works... " >&6; }
5376 if ${acx_cv_d_compiler_works+:} false
; then :
5377 $as_echo_n "(cached) " >&6
5379 cat >conftest.d
<<EOF
5380 module conftest; int main() { return 0; }
5382 acx_cv_d_compiler_works
=no
5383 if test "x$GDC" != xno
; then
5384 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5385 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5386 acx_cv_d_compiler_works
=yes
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5392 $as_echo "$acx_cv_d_compiler_works" >&6; }
5393 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5400 # Do configure tests with the C++ compiler, since that's what we build with.
5402 ac_cpp
='$CXXCPP $CPPFLAGS'
5403 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5408 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5409 # optimizations to be activated explicitly by the toplevel.
5411 */prev-gcc
/xgcc
*) ;;
5412 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5413 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5419 # Determine PICFLAG for target gnatlib.
5425 # PIC is the default on some targets or must not be used.
5427 # For darwin, common symbols are not allowed in MH_DYLIB files
5429 # If we are using a compiler supporting mdynamic-no-pic
5430 # and the option has been tested as safe to add, then cancel
5431 # it here, since the code generated is incompatible with shared
5433 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5434 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5438 # PIC is the default.
5441 # PIC is the default for 64-bit PA HP-UX.
5443 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5445 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5447 i
[34567]86-*-interix[3-9]*)
5448 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5449 # Instead, we relocate shared libraries at runtime.
5451 i
[34567]86-*-nto-qnx*)
5452 # QNX uses GNU C++, but need to define -shared option too, otherwise
5454 PICFLAG_FOR_TARGET
='-fPIC -shared'
5456 i
[34567]86-pc-msdosdjgpp*)
5457 # DJGPP does not support shared libraries at all.
5460 # On IA64 HP-UX, PIC is the default but the pic flag
5461 # sets the default TLS model and affects inlining.
5462 PICFLAG_FOR_TARGET
=-fPIC
5465 PICFLAG_FOR_TARGET
=-fpic
5468 # PIC is the default.
5470 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5471 # All AIX code is PIC.
5474 # Some targets support both -fPIC and -fpic, but prefer the latter.
5476 i
[34567]86-*-* | x86_64-
*-*)
5477 PICFLAG_FOR_TARGET
=-fpic
5479 # FIXME: Override -fPIC default in libgcc only?
5480 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5481 PICFLAG_FOR_TARGET
=-fpic
5484 PICFLAG_FOR_TARGET
=-fpic
5486 # Default to -fPIC unless specified otherwise.
5488 PICFLAG_FOR_TARGET
=-fPIC
5492 # If the user explicitly uses -fpic/-fPIC, keep that.
5493 case "${CFLAGS_FOR_TARGET}" in
5495 PICFLAG_FOR_TARGET
=-fpic
5498 PICFLAG_FOR_TARGET
=-fPIC
5504 # -------------------------
5505 # Check C compiler features
5506 # -------------------------
5510 ac_cpp
='$CXXCPP $CPPFLAGS'
5511 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5515 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5516 if test -z "$CXXCPP"; then
5517 if ${ac_cv_prog_CXXCPP+:} false
; then :
5518 $as_echo_n "(cached) " >&6
5520 # Double quotes because CXXCPP needs to be expanded
5521 for CXXCPP
in "$CXX -E" "/lib/cpp"
5524 for ac_cxx_preproc_warn_flag
in '' yes
5526 # Use a header file that comes with gcc, so configuring glibc
5527 # with a fresh cross-compiler works.
5528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5529 # <limits.h> exists even on freestanding compilers.
5530 # On the NeXT, cc -E runs the code through the compiler's parser,
5531 # not just through cpp. "Syntax error" is here to catch this case.
5532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5535 # include <limits.h>
5537 # include <assert.h>
5541 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5544 # Broken: fails on valid input.
5547 rm -f conftest.err conftest.i conftest.
$ac_ext
5549 # OK, works on sane cases. Now check whether nonexistent headers
5550 # can be detected and how.
5551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <ac_nonexistent.h>
5555 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5556 # Broken: success on invalid input.
5559 # Passes both tests.
5563 rm -f conftest.err conftest.i conftest.
$ac_ext
5566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5567 rm -f conftest.i conftest.err conftest.
$ac_ext
5568 if $ac_preproc_ok; then :
5573 ac_cv_prog_CXXCPP
=$CXXCPP
5576 CXXCPP
=$ac_cv_prog_CXXCPP
5578 ac_cv_prog_CXXCPP
=$CXXCPP
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5581 $as_echo "$CXXCPP" >&6; }
5583 for ac_cxx_preproc_warn_flag
in '' yes
5585 # Use a header file that comes with gcc, so configuring glibc
5586 # with a fresh cross-compiler works.
5587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588 # <limits.h> exists even on freestanding compilers.
5589 # On the NeXT, cc -E runs the code through the compiler's parser,
5590 # not just through cpp. "Syntax error" is here to catch this case.
5591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5594 # include <limits.h>
5596 # include <assert.h>
5600 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5603 # Broken: fails on valid input.
5606 rm -f conftest.err conftest.i conftest.
$ac_ext
5608 # OK, works on sane cases. Now check whether nonexistent headers
5609 # can be detected and how.
5610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <ac_nonexistent.h>
5614 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5615 # Broken: success on invalid input.
5618 # Passes both tests.
5622 rm -f conftest.err conftest.i conftest.
$ac_ext
5625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626 rm -f conftest.i conftest.err conftest.
$ac_ext
5627 if $ac_preproc_ok; then :
5630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5632 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5633 See \`config.log' for more details" "$LINENO" 5; }
5637 ac_cpp
='$CXXCPP $CPPFLAGS'
5638 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5644 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5645 if ${ac_cv_path_GREP+:} false
; then :
5646 $as_echo_n "(cached) " >&6
5648 if test -z "$GREP"; then
5649 ac_path_GREP_found
=false
5650 # Loop through the user's path and test for each of PROGNAME-LIST
5651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5652 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5655 test -z "$as_dir" && as_dir
=.
5656 for ac_prog
in grep ggrep
; do
5657 for ac_exec_ext
in '' $ac_executable_extensions; do
5658 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5659 as_fn_executable_p
"$ac_path_GREP" ||
continue
5660 # Check for GNU ac_path_GREP and select it if it is found.
5661 # Check for GNU $ac_path_GREP
5662 case `"$ac_path_GREP" --version 2>&1` in
5664 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5667 $as_echo_n 0123456789 >"conftest.in"
5670 cat "conftest.in" "conftest.in" >"conftest.tmp"
5671 mv "conftest.tmp" "conftest.in"
5672 cp "conftest.in" "conftest.nl"
5673 $as_echo 'GREP' >> "conftest.nl"
5674 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5675 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5676 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5677 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5678 # Best one so far, save it but keep looking for a better one
5679 ac_cv_path_GREP
="$ac_path_GREP"
5680 ac_path_GREP_max
=$ac_count
5682 # 10*(2^10) chars as input seems more than enough
5683 test $ac_count -gt 10 && break
5685 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5688 $ac_path_GREP_found && break 3
5693 if test -z "$ac_cv_path_GREP"; then
5694 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5697 ac_cv_path_GREP
=$GREP
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5702 $as_echo "$ac_cv_path_GREP" >&6; }
5703 GREP
="$ac_cv_path_GREP"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5707 $as_echo_n "checking for egrep... " >&6; }
5708 if ${ac_cv_path_EGREP+:} false
; then :
5709 $as_echo_n "(cached) " >&6
5711 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5712 then ac_cv_path_EGREP
="$GREP -E"
5714 if test -z "$EGREP"; then
5715 ac_path_EGREP_found
=false
5716 # Loop through the user's path and test for each of PROGNAME-LIST
5717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5718 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5721 test -z "$as_dir" && as_dir
=.
5722 for ac_prog
in egrep; do
5723 for ac_exec_ext
in '' $ac_executable_extensions; do
5724 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5725 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5726 # Check for GNU ac_path_EGREP and select it if it is found.
5727 # Check for GNU $ac_path_EGREP
5728 case `"$ac_path_EGREP" --version 2>&1` in
5730 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5733 $as_echo_n 0123456789 >"conftest.in"
5736 cat "conftest.in" "conftest.in" >"conftest.tmp"
5737 mv "conftest.tmp" "conftest.in"
5738 cp "conftest.in" "conftest.nl"
5739 $as_echo 'EGREP' >> "conftest.nl"
5740 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5741 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5742 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5743 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5744 # Best one so far, save it but keep looking for a better one
5745 ac_cv_path_EGREP
="$ac_path_EGREP"
5746 ac_path_EGREP_max
=$ac_count
5748 # 10*(2^10) chars as input seems more than enough
5749 test $ac_count -gt 10 && break
5751 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5754 $ac_path_EGREP_found && break 3
5759 if test -z "$ac_cv_path_EGREP"; then
5760 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5763 ac_cv_path_EGREP
=$EGREP
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5769 $as_echo "$ac_cv_path_EGREP" >&6; }
5770 EGREP
="$ac_cv_path_EGREP"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5774 $as_echo_n "checking for ANSI C header files... " >&6; }
5775 if ${ac_cv_header_stdc+:} false
; then :
5776 $as_echo_n "(cached) " >&6
5778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5793 if ac_fn_cxx_try_compile
"$LINENO"; then :
5794 ac_cv_header_stdc
=yes
5796 ac_cv_header_stdc
=no
5798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5800 if test $ac_cv_header_stdc = yes; then
5801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5808 $EGREP "memchr" >/dev
/null
2>&1; then :
5811 ac_cv_header_stdc
=no
5817 if test $ac_cv_header_stdc = yes; then
5818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5825 $EGREP "free" >/dev
/null
2>&1; then :
5828 ac_cv_header_stdc
=no
5834 if test $ac_cv_header_stdc = yes; then
5835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5836 if test "$cross_compiling" = yes; then :
5839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5843 #if ((' ' & 0x0FF) == 0x020)
5844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5847 # define ISLOWER(c) \
5848 (('a' <= (c) && (c) <= 'i') \
5849 || ('j' <= (c) && (c) <= 'r') \
5850 || ('s' <= (c) && (c) <= 'z'))
5851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5859 for (i = 0; i < 256; i++)
5860 if (XOR (islower (i), ISLOWER (i))
5861 || toupper (i) != TOUPPER (i))
5866 if ac_fn_cxx_try_run
"$LINENO"; then :
5869 ac_cv_header_stdc
=no
5871 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5872 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5878 $as_echo "$ac_cv_header_stdc" >&6; }
5879 if test $ac_cv_header_stdc = yes; then
5881 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5885 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5886 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5887 inttypes.h stdint.h unistd.h
5889 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5892 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5893 cat >>confdefs.h
<<_ACEOF
5894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5904 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5911 if test "$MINIX" = yes; then
5913 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5916 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5919 $as_echo "#define _MINIX 1" >>confdefs.h
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5925 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5926 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5927 $as_echo_n "(cached) " >&6
5929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5932 # define __EXTENSIONS__ 1
5933 $ac_includes_default
5942 if ac_fn_cxx_try_compile
"$LINENO"; then :
5943 ac_cv_safe_to_define___extensions__
=yes
5945 ac_cv_safe_to_define___extensions__
=no
5947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5950 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5951 test $ac_cv_safe_to_define___extensions__ = yes &&
5952 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5954 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5956 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5958 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5960 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5965 ac_cpp
='$CPP $CPPFLAGS'
5966 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5971 # On Suns, sometimes $CPP names a directory.
5972 if test -n "$CPP" && test -d "$CPP"; then
5975 if test -z "$CPP"; then
5976 if ${ac_cv_prog_CPP+:} false
; then :
5977 $as_echo_n "(cached) " >&6
5979 # Double quotes because CPP needs to be expanded
5980 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5983 for ac_c_preproc_warn_flag
in '' yes
5985 # Use a header file that comes with gcc, so configuring glibc
5986 # with a fresh cross-compiler works.
5987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 # <limits.h> exists even on freestanding compilers.
5989 # On the NeXT, cc -E runs the code through the compiler's parser,
5990 # not just through cpp. "Syntax error" is here to catch this case.
5991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5994 # include <limits.h>
5996 # include <assert.h>
6000 if ac_fn_c_try_cpp
"$LINENO"; then :
6003 # Broken: fails on valid input.
6006 rm -f conftest.err conftest.i conftest.
$ac_ext
6008 # OK, works on sane cases. Now check whether nonexistent headers
6009 # can be detected and how.
6010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 #include <ac_nonexistent.h>
6014 if ac_fn_c_try_cpp
"$LINENO"; then :
6015 # Broken: success on invalid input.
6018 # Passes both tests.
6022 rm -f conftest.err conftest.i conftest.
$ac_ext
6025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6026 rm -f conftest.i conftest.err conftest.
$ac_ext
6027 if $ac_preproc_ok; then :
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6040 $as_echo "$CPP" >&6; }
6042 for ac_c_preproc_warn_flag
in '' yes
6044 # Use a header file that comes with gcc, so configuring glibc
6045 # with a fresh cross-compiler works.
6046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6047 # <limits.h> exists even on freestanding compilers.
6048 # On the NeXT, cc -E runs the code through the compiler's parser,
6049 # not just through cpp. "Syntax error" is here to catch this case.
6050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6053 # include <limits.h>
6055 # include <assert.h>
6059 if ac_fn_c_try_cpp
"$LINENO"; then :
6062 # Broken: fails on valid input.
6065 rm -f conftest.err conftest.i conftest.
$ac_ext
6067 # OK, works on sane cases. Now check whether nonexistent headers
6068 # can be detected and how.
6069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 #include <ac_nonexistent.h>
6073 if ac_fn_c_try_cpp
"$LINENO"; then :
6074 # Broken: success on invalid input.
6077 # Passes both tests.
6081 rm -f conftest.err conftest.i conftest.
$ac_ext
6084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6085 rm -f conftest.i conftest.err conftest.
$ac_ext
6086 if $ac_preproc_ok; then :
6089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6091 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6092 See \`config.log' for more details" "$LINENO" 5; }
6096 ac_cpp
='$CXXCPP $CPPFLAGS'
6097 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6102 $as_echo_n "checking for inline... " >&6; }
6103 if ${ac_cv_c_inline+:} false
; then :
6104 $as_echo_n "(cached) " >&6
6107 for ac_kw
in inline __inline__ __inline
; do
6108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6112 static $ac_kw foo_t static_foo () {return 0; }
6113 $ac_kw foo_t foo () {return 0; }
6117 if ac_fn_cxx_try_compile
"$LINENO"; then :
6118 ac_cv_c_inline
=$ac_kw
6120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6121 test "$ac_cv_c_inline" != no
&& break
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6126 $as_echo "$ac_cv_c_inline" >&6; }
6128 case $ac_cv_c_inline in
6131 case $ac_cv_c_inline in
6133 *) ac_val
=$ac_cv_c_inline;;
6135 cat >>confdefs.h
<<_ACEOF
6137 #define inline $ac_val
6144 # Check whether --enable-largefile was given.
6145 if test "${enable_largefile+set}" = set; then :
6146 enableval
=$enable_largefile;
6149 if test "$enable_largefile" != no
; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6152 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6153 if ${ac_cv_sys_largefile_CC+:} false
; then :
6154 $as_echo_n "(cached) " >&6
6156 ac_cv_sys_largefile_CC
=no
6157 if test "$GCC" != yes; then
6160 # IRIX 6.2 and later do not support large files by default,
6161 # so use the C compiler's -n32 option if that helps.
6162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <sys/types.h>
6165 /* Check that off_t can represent 2**63 - 1 correctly.
6166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6167 since some C++ compilers masquerading as C compilers
6168 incorrectly reject 9223372036854775807. */
6169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6171 && LARGE_OFF_T % 2147483647 == 1)
6181 if ac_fn_cxx_try_compile
"$LINENO"; then :
6184 rm -f core conftest.err conftest.
$ac_objext
6186 if ac_fn_cxx_try_compile
"$LINENO"; then :
6187 ac_cv_sys_largefile_CC
=' -n32'; break
6189 rm -f core conftest.err conftest.
$ac_objext
6193 rm -f conftest.
$ac_ext
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6197 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6198 if test "$ac_cv_sys_largefile_CC" != no
; then
6199 CC
=$CC$ac_cv_sys_largefile_CC
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6203 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6204 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6205 $as_echo_n "(cached) " >&6
6208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 #include <sys/types.h>
6211 /* Check that off_t can represent 2**63 - 1 correctly.
6212 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6213 since some C++ compilers masquerading as C compilers
6214 incorrectly reject 9223372036854775807. */
6215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6216 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6217 && LARGE_OFF_T % 2147483647 == 1)
6227 if ac_fn_cxx_try_compile
"$LINENO"; then :
6228 ac_cv_sys_file_offset_bits
=no
; break
6230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 #define _FILE_OFFSET_BITS 64
6234 #include <sys/types.h>
6235 /* Check that off_t can represent 2**63 - 1 correctly.
6236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6237 since some C++ compilers masquerading as C compilers
6238 incorrectly reject 9223372036854775807. */
6239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6241 && LARGE_OFF_T % 2147483647 == 1)
6251 if ac_fn_cxx_try_compile
"$LINENO"; then :
6252 ac_cv_sys_file_offset_bits
=64; break
6254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6255 ac_cv_sys_file_offset_bits
=unknown
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6260 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6261 case $ac_cv_sys_file_offset_bits in #(
6264 cat >>confdefs.h
<<_ACEOF
6265 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6270 if test $ac_cv_sys_file_offset_bits = unknown
; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6272 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6273 if ${ac_cv_sys_large_files+:} false
; then :
6274 $as_echo_n "(cached) " >&6
6277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 #include <sys/types.h>
6280 /* Check that off_t can represent 2**63 - 1 correctly.
6281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6282 since some C++ compilers masquerading as C compilers
6283 incorrectly reject 9223372036854775807. */
6284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6286 && LARGE_OFF_T % 2147483647 == 1)
6296 if ac_fn_cxx_try_compile
"$LINENO"; then :
6297 ac_cv_sys_large_files
=no
; break
6299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 #define _LARGE_FILES 1
6303 #include <sys/types.h>
6304 /* Check that off_t can represent 2**63 - 1 correctly.
6305 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6306 since some C++ compilers masquerading as C compilers
6307 incorrectly reject 9223372036854775807. */
6308 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6310 && LARGE_OFF_T % 2147483647 == 1)
6320 if ac_fn_cxx_try_compile
"$LINENO"; then :
6321 ac_cv_sys_large_files
=1; break
6323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6324 ac_cv_sys_large_files
=unknown
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6329 $as_echo "$ac_cv_sys_large_files" >&6; }
6330 case $ac_cv_sys_large_files in #(
6333 cat >>confdefs.h
<<_ACEOF
6334 #define _LARGE_FILES $ac_cv_sys_large_files
6344 # The cast to long int works around a bug in the HP C Compiler
6345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6347 # This bug is HP SR number 8606223364.
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6349 $as_echo_n "checking size of ino_t... " >&6; }
6350 if ${ac_cv_sizeof_ino_t+:} false
; then :
6351 $as_echo_n "(cached) " >&6
6353 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6356 if test "$ac_cv_type_ino_t" = yes; then
6357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6359 as_fn_error
77 "cannot compute sizeof (ino_t)
6360 See \`config.log' for more details" "$LINENO" 5; }
6362 ac_cv_sizeof_ino_t
=0
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6368 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6372 cat >>confdefs.h
<<_ACEOF
6373 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6377 # The cast to long int works around a bug in the HP C Compiler
6378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6380 # This bug is HP SR number 8606223364.
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6382 $as_echo_n "checking size of dev_t... " >&6; }
6383 if ${ac_cv_sizeof_dev_t+:} false
; then :
6384 $as_echo_n "(cached) " >&6
6386 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6389 if test "$ac_cv_type_dev_t" = yes; then
6390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6392 as_fn_error
77 "cannot compute sizeof (dev_t)
6393 See \`config.log' for more details" "$LINENO" 5; }
6395 ac_cv_sizeof_dev_t
=0
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6401 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6405 cat >>confdefs.h
<<_ACEOF
6406 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6411 # Select the right stat being able to handle 64bit inodes, if needed.
6412 if test "$enable_largefile" != no
; then
6413 case "$host, $build" in
6414 *-*-aix*,*|
*,*-*-aix*)
6415 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6417 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6424 # sizeof(char) is 1 by definition.
6425 # The cast to long int works around a bug in the HP C Compiler
6426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6428 # This bug is HP SR number 8606223364.
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6430 $as_echo_n "checking size of void *... " >&6; }
6431 if ${ac_cv_sizeof_void_p+:} false
; then :
6432 $as_echo_n "(cached) " >&6
6434 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6437 if test "$ac_cv_type_void_p" = yes; then
6438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6440 as_fn_error
77 "cannot compute sizeof (void *)
6441 See \`config.log' for more details" "$LINENO" 5; }
6443 ac_cv_sizeof_void_p
=0
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6449 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6453 cat >>confdefs.h
<<_ACEOF
6454 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6458 # The cast to long int works around a bug in the HP C Compiler
6459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6461 # This bug is HP SR number 8606223364.
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6463 $as_echo_n "checking size of short... " >&6; }
6464 if ${ac_cv_sizeof_short+:} false
; then :
6465 $as_echo_n "(cached) " >&6
6467 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6470 if test "$ac_cv_type_short" = yes; then
6471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6473 as_fn_error
77 "cannot compute sizeof (short)
6474 See \`config.log' for more details" "$LINENO" 5; }
6476 ac_cv_sizeof_short
=0
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6482 $as_echo "$ac_cv_sizeof_short" >&6; }
6486 cat >>confdefs.h
<<_ACEOF
6487 #define SIZEOF_SHORT $ac_cv_sizeof_short
6491 # The cast to long int works around a bug in the HP C Compiler
6492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6494 # This bug is HP SR number 8606223364.
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6496 $as_echo_n "checking size of int... " >&6; }
6497 if ${ac_cv_sizeof_int+:} false
; then :
6498 $as_echo_n "(cached) " >&6
6500 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6503 if test "$ac_cv_type_int" = yes; then
6504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6506 as_fn_error
77 "cannot compute sizeof (int)
6507 See \`config.log' for more details" "$LINENO" 5; }
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6515 $as_echo "$ac_cv_sizeof_int" >&6; }
6519 cat >>confdefs.h
<<_ACEOF
6520 #define SIZEOF_INT $ac_cv_sizeof_int
6524 # The cast to long int works around a bug in the HP C Compiler
6525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6527 # This bug is HP SR number 8606223364.
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6529 $as_echo_n "checking size of long... " >&6; }
6530 if ${ac_cv_sizeof_long+:} false
; then :
6531 $as_echo_n "(cached) " >&6
6533 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6536 if test "$ac_cv_type_long" = yes; then
6537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6539 as_fn_error
77 "cannot compute sizeof (long)
6540 See \`config.log' for more details" "$LINENO" 5; }
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6548 $as_echo "$ac_cv_sizeof_long" >&6; }
6552 cat >>confdefs.h
<<_ACEOF
6553 #define SIZEOF_LONG $ac_cv_sizeof_long
6557 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6558 if test "x$ac_cv_type_long_long" = xyes
; then :
6560 cat >>confdefs.h
<<_ACEOF
6561 #define HAVE_LONG_LONG 1
6564 # The cast to long int works around a bug in the HP C Compiler
6565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6567 # This bug is HP SR number 8606223364.
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6569 $as_echo_n "checking size of long long... " >&6; }
6570 if ${ac_cv_sizeof_long_long+:} false
; then :
6571 $as_echo_n "(cached) " >&6
6573 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6576 if test "$ac_cv_type_long_long" = yes; then
6577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6579 as_fn_error
77 "cannot compute sizeof (long long)
6580 See \`config.log' for more details" "$LINENO" 5; }
6582 ac_cv_sizeof_long_long
=0
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6588 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6592 cat >>confdefs.h
<<_ACEOF
6593 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6599 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6600 case $ac_cv_c_int8_t in #(
6604 cat >>confdefs.h
<<_ACEOF
6605 #define int8_t $ac_cv_c_int8_t
6610 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6611 case $ac_cv_c_int16_t in #(
6615 cat >>confdefs.h
<<_ACEOF
6616 #define int16_t $ac_cv_c_int16_t
6621 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6622 case $ac_cv_c_int32_t in #(
6626 cat >>confdefs.h
<<_ACEOF
6627 #define int32_t $ac_cv_c_int32_t
6632 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6633 case $ac_cv_c_int64_t in #(
6637 cat >>confdefs.h
<<_ACEOF
6638 #define int64_t $ac_cv_c_int64_t
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6645 $as_echo_n "checking for unsigned long long int... " >&6; }
6646 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6647 $as_echo_n "(cached) " >&6
6649 ac_cv_type_unsigned_long_long_int
=yes
6650 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6654 /* For now, do not test the preprocessor; as of 2007 there are too many
6655 implementations with broken preprocessors. Perhaps this can
6656 be revisited in 2012. In the meantime, code should not expect
6657 #if to work with literals wider than 32 bits. */
6658 /* Test literals. */
6659 long long int ll = 9223372036854775807ll;
6660 long long int nll = -9223372036854775807LL;
6661 unsigned long long int ull = 18446744073709551615ULL;
6662 /* Test constant expressions. */
6663 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6665 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6671 /* Test availability of runtime routines for shift and division. */
6672 long long int llmax = 9223372036854775807ll;
6673 unsigned long long int ullmax = 18446744073709551615ull;
6674 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6675 | (llmax / ll) | (llmax % ll)
6676 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6677 | (ullmax / ull) | (ullmax % ull));
6683 if ac_fn_cxx_try_link
"$LINENO"; then :
6686 ac_cv_type_unsigned_long_long_int
=no
6688 rm -f core conftest.err conftest.
$ac_objext \
6689 conftest
$ac_exeext conftest.
$ac_ext
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6693 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6694 if test $ac_cv_type_unsigned_long_long_int = yes; then
6696 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6703 $as_echo_n "checking for long long int... " >&6; }
6704 if ${ac_cv_type_long_long_int+:} false
; then :
6705 $as_echo_n "(cached) " >&6
6707 ac_cv_type_long_long_int
=yes
6708 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6709 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6710 if test $ac_cv_type_long_long_int = yes; then
6711 if test "$cross_compiling" = yes; then :
6714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6719 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6720 # define LLONG_MAX (HALF - 1 + HALF)
6725 long long int n = 1;
6729 long long int m = n << i;
6732 if (LLONG_MAX / 2 < m)
6740 if ac_fn_cxx_try_run
"$LINENO"; then :
6743 ac_cv_type_long_long_int
=no
6745 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6746 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6753 $as_echo "$ac_cv_type_long_long_int" >&6; }
6754 if test $ac_cv_type_long_long_int = yes; then
6756 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6762 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6763 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6765 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6768 test $ac_cv_type_long_long_int = yes \
6769 && ac_type
='long long int' \
6770 || ac_type
='long int'
6772 cat >>confdefs.h
<<_ACEOF
6773 #define intmax_t $ac_type
6780 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6781 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6783 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6786 for ac_type
in 'int' 'long int' 'long long int'; do
6787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 $ac_includes_default
6793 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6795 return test_array [0];
6801 if ac_fn_cxx_try_compile
"$LINENO"; then :
6803 cat >>confdefs.h
<<_ACEOF
6804 #define intptr_t $ac_type
6809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6810 test -z "$ac_type" && break
6815 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6816 case $ac_cv_c_uint8_t in #(
6820 $as_echo "#define _UINT8_T 1" >>confdefs.h
6823 cat >>confdefs.h
<<_ACEOF
6824 #define uint8_t $ac_cv_c_uint8_t
6829 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6830 case $ac_cv_c_uint16_t in #(
6835 cat >>confdefs.h
<<_ACEOF
6836 #define uint16_t $ac_cv_c_uint16_t
6841 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6842 case $ac_cv_c_uint32_t in #(
6846 $as_echo "#define _UINT32_T 1" >>confdefs.h
6849 cat >>confdefs.h
<<_ACEOF
6850 #define uint32_t $ac_cv_c_uint32_t
6855 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6856 case $ac_cv_c_uint64_t in #(
6860 $as_echo "#define _UINT64_T 1" >>confdefs.h
6863 cat >>confdefs.h
<<_ACEOF
6864 #define uint64_t $ac_cv_c_uint64_t
6871 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6872 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6874 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6877 test $ac_cv_type_unsigned_long_long_int = yes \
6878 && ac_type
='unsigned long long int' \
6879 || ac_type
='unsigned long int'
6881 cat >>confdefs.h
<<_ACEOF
6882 #define uintmax_t $ac_type
6889 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6890 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6892 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6895 for ac_type
in 'unsigned int' 'unsigned long int' \
6896 'unsigned long long int'; do
6897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 $ac_includes_default
6903 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6905 return test_array [0];
6911 if ac_fn_cxx_try_compile
"$LINENO"; then :
6913 cat >>confdefs.h
<<_ACEOF
6914 #define uintptr_t $ac_type
6919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6920 test -z "$ac_type" && break
6937 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6938 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6941 # check what underlying integer type int64_t uses
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6943 $as_echo_n "checking for int64_t underlying type... " >&6; }
6944 if ${ac_cv_int64_t_type+:} false
; then :
6945 $as_echo_n "(cached) " >&6
6948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6951 #ifdef HAVE_STDINT_H
6954 template <typename T> struct X { };
6956 struct X<long> { typedef long t; };
6966 if ac_fn_cxx_try_compile
"$LINENO"; then :
6967 ac_cv_int64_t_type
=long
6969 ac_cv_int64_t_type
="long long"
6971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6974 $as_echo "$ac_cv_int64_t_type" >&6; }
6975 if test "$ac_cv_int64_t_type" = "long"; then
6977 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6983 #ifdef HAVE_STDINT_H
6986 template <typename T> struct X { };
6988 struct X<long long> { typedef long long t; };
6998 if ac_fn_cxx_try_compile
"$LINENO"; then :
7001 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
7003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7007 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7008 if ${ac_cv_std_swap_in_utility+:} false
; then :
7009 $as_echo_n "(cached) " >&6
7012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7020 int a, b; std::swap(a,b);
7025 if ac_fn_cxx_try_compile
"$LINENO"; then :
7026 ac_cv_std_swap_in_utility
=yes
7028 ac_cv_std_swap_in_utility
=no
7030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7033 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7034 if test $ac_cv_std_swap_in_utility = yes; then
7036 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7040 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7041 # If the host compiler is affected by the bug, and we build with optimization
7042 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7043 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7044 # Since there is no reliable feature check for the presence of this bug,
7045 # we simply use a GCC version number check. (This should never trigger for
7046 # stages 2 or 3 of a native bootstrap.)
7048 if test "$GCC" = yes; then
7049 saved_CXXFLAGS
="$CXXFLAGS"
7051 # The following test compilation will succeed if and only if $CXX accepts
7052 # -fno-strict-aliasing *and* is older than GCC 4.3.
7053 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7055 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7059 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7060 #error compiler not affected by placement new aliasing bug
7064 if ac_fn_cxx_try_compile
"$LINENO"; then :
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7066 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7073 CXXFLAGS
="$saved_CXXFLAGS"
7079 # ---------------------
7080 # Warnings and checking
7081 # ---------------------
7083 # Check $CC warning features (if it's GCC).
7084 # We want to use -pedantic, but we don't want warnings about
7087 # * overlong strings
7088 # * C++11 narrowing conversions in { }
7089 # So, we only use -pedantic if we can disable those warnings.
7091 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7092 # Check whether --enable-build-format-warnings was given.
7093 if test "${enable_build_format_warnings+set}" = set; then :
7094 enableval
=$enable_build_format_warnings;
7096 enable_build_format_warnings
=yes
7099 if test $enable_build_format_warnings = no
; then :
7105 ac_cpp
='$CXXCPP $CPPFLAGS'
7106 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7107 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7108 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7111 save_CXXFLAGS
="$CXXFLAGS"
7112 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7113 # Do the check with the no- prefix removed since gcc silently
7114 # accepts any -Wno-* option on purpose
7115 case $real_option in
7116 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7117 *) option
=$real_option ;;
7119 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7122 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7123 if eval \
${$as_acx_Woption+:} false
; then :
7124 $as_echo_n "(cached) " >&6
7127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7138 if ac_fn_cxx_try_compile
"$LINENO"; then :
7139 eval "$as_acx_Woption=yes"
7141 eval "$as_acx_Woption=no"
7143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7146 eval ac_res
=\$
$as_acx_Woption
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7148 $as_echo "$ac_res" >&6; }
7149 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7150 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7153 CXXFLAGS
="$save_CXXFLAGS"
7155 ac_cpp
='$CXXCPP $CPPFLAGS'
7156 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7163 ac_cpp
='$CPP $CPPFLAGS'
7164 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7165 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7166 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7169 save_CFLAGS
="$CFLAGS"
7170 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7171 # Do the check with the no- prefix removed since gcc silently
7172 # accepts any -Wno-* option on purpose
7173 case $real_option in
7174 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7175 *) option
=$real_option ;;
7177 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7180 $as_echo_n "checking whether $CC supports $option... " >&6; }
7181 if eval \
${$as_acx_Woption+:} false
; then :
7182 $as_echo_n "(cached) " >&6
7185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7196 if ac_fn_c_try_compile
"$LINENO"; then :
7197 eval "$as_acx_Woption=yes"
7199 eval "$as_acx_Woption=no"
7201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7204 eval ac_res
=\$
$as_acx_Woption
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7206 $as_echo "$ac_res" >&6; }
7207 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7208 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7211 CFLAGS
="$save_CFLAGS"
7213 ac_cpp
='$CXXCPP $CPPFLAGS'
7214 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7220 ac_cpp
='$CXXCPP $CPPFLAGS'
7221 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7226 save_CXXFLAGS
="$CXXFLAGS"
7227 for real_option
in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7228 # Do the check with the no- prefix removed since gcc silently
7229 # accepts any -Wno-* option on purpose
7230 case $real_option in
7231 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7232 *) option
=$real_option ;;
7234 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7237 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7238 if eval \
${$as_acx_Woption+:} false
; then :
7239 $as_echo_n "(cached) " >&6
7242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7253 if ac_fn_cxx_try_compile
"$LINENO"; then :
7254 eval "$as_acx_Woption=yes"
7256 eval "$as_acx_Woption=no"
7258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7261 eval ac_res
=\$
$as_acx_Woption
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7263 $as_echo "$ac_res" >&6; }
7264 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7265 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7268 CXXFLAGS
="$save_CXXFLAGS"
7270 ac_cpp
='$CXXCPP $CPPFLAGS'
7271 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7277 ac_cpp
='$CPP $CPPFLAGS'
7278 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7283 save_CFLAGS
="$CFLAGS"
7284 for real_option
in -Wold-style-definition -Wc++-compat; do
7285 # Do the check with the no- prefix removed since gcc silently
7286 # accepts any -Wno-* option on purpose
7287 case $real_option in
7288 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7289 *) option
=$real_option ;;
7291 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7294 $as_echo_n "checking whether $CC supports $option... " >&6; }
7295 if eval \
${$as_acx_Woption+:} false
; then :
7296 $as_echo_n "(cached) " >&6
7299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7310 if ac_fn_c_try_compile
"$LINENO"; then :
7311 eval "$as_acx_Woption=yes"
7313 eval "$as_acx_Woption=no"
7315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7318 eval ac_res
=\$
$as_acx_Woption
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7320 $as_echo "$ac_res" >&6; }
7321 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7322 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7325 CFLAGS
="$save_CFLAGS"
7327 ac_cpp
='$CXXCPP $CPPFLAGS'
7328 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7334 ac_cpp
='$CXXCPP $CPPFLAGS'
7335 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7339 # Do the check with the no- prefix removed from the warning options
7340 # since gcc silently accepts any -Wno-* option on purpose
7341 if test "$GXX" = yes; then :
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7343 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7344 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7345 $as_echo_n "(cached) " >&6
7347 save_CXXFLAGS
="$CXXFLAGS"
7348 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7360 if ac_fn_cxx_try_compile
"$LINENO"; then :
7361 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7363 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7366 CXXFLAGS
="$save_CXXFLAGS"
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7369 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7370 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7371 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7376 ac_cpp
='$CXXCPP $CPPFLAGS'
7377 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7383 ac_cpp
='$CXXCPP $CPPFLAGS'
7384 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7388 # Check whether --enable-werror-always was given.
7389 if test "${enable_werror_always+set}" = set; then :
7390 enableval
=$enable_werror_always;
7392 enable_werror_always
=no
7395 if test $enable_werror_always = yes; then :
7396 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7400 ac_cpp
='$CXXCPP $CPPFLAGS'
7401 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7407 # The above macros do nothing if the compiler is not GCC. However, the
7408 # Makefile has more goo to add other flags, so these variables are used
7409 # to enable warnings only for GCC.
7412 if test "x$GCC" = "xyes"; then
7413 warn_cflags
='$(GCC_WARN_CFLAGS)'
7414 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7419 # Disable exceptions and RTTI if building with g++
7421 ac_cpp
='$CPP $CPPFLAGS'
7422 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7427 save_CFLAGS
="$CFLAGS"
7428 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7429 # Do the check with the no- prefix removed since gcc silently
7430 # accepts any -Wno-* option on purpose
7431 case $real_option in
7432 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7433 *) option
=$real_option ;;
7435 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7438 $as_echo_n "checking whether $CC supports $option... " >&6; }
7439 if eval \
${$as_acx_Woption+:} false
; then :
7440 $as_echo_n "(cached) " >&6
7443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7454 if ac_fn_c_try_compile
"$LINENO"; then :
7455 eval "$as_acx_Woption=yes"
7457 eval "$as_acx_Woption=no"
7459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7462 eval ac_res
=\$
$as_acx_Woption
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7464 $as_echo "$ac_res" >&6; }
7465 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7466 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7469 CFLAGS
="$save_CFLAGS"
7471 ac_cpp
='$CXXCPP $CPPFLAGS'
7472 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7478 # Enable expensive internal checks
7480 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7484 # Check whether --enable-checking was given.
7485 if test "${enable_checking+set}" = set; then :
7486 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7489 # Determine the default checks.
7490 if test x
$is_release = x
; then
7491 ac_checking_flags
=yes,extra
7493 ac_checking_flags
=release
7497 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7498 for check
in release
$ac_checking_flags
7501 # these set all the flags to specific states
7502 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7503 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7504 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7505 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7506 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7507 ac_types_checking
=1 ;;
7508 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7509 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7510 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7511 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7512 ac_tree_checking
= ; ac_valgrind_checking
= ;
7513 ac_types_checking
= ;;
7514 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7515 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7516 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7517 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7518 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7519 ac_types_checking
=1 ;;
7520 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7521 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7522 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7523 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7524 ac_tree_checking
= ; ac_valgrind_checking
= ;
7525 ac_types_checking
= ;;
7526 # these enable particular checks
7527 assert
) ac_assert_checking
=1 ;;
7528 df
) ac_df_checking
=1 ;;
7529 extra
) ac_extra_checking
=1 ;;
7530 fold) ac_fold_checking
=1 ;;
7531 gc
) ac_gc_checking
=1 ;;
7532 gcac
) ac_gc_always_collect
=1 ;;
7533 gimple
) ac_gimple_checking
=1 ;;
7534 misc
) ac_checking
=1 ;;
7535 rtl
) ac_rtl_checking
=1 ;;
7536 rtlflag
) ac_rtlflag_checking
=1 ;;
7537 runtime
) ac_runtime_checking
=1 ;;
7538 tree
) ac_tree_checking
=1 ;;
7539 types
) ac_types_checking
=1 ;;
7540 valgrind
) ac_valgrind_checking
=1 ;;
7541 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7547 if test x
$ac_checking != x
; then
7549 $as_echo "#define CHECKING_P 1" >>confdefs.h
7551 nocommon_flag
=-fno-common
7553 $as_echo "#define CHECKING_P 0" >>confdefs.h
7557 if test x
$ac_extra_checking != x
; then
7559 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7562 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7565 if test x
$ac_df_checking != x
; then
7567 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7570 if test x
$ac_assert_checking != x
; then
7572 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7575 if test x
$ac_gimple_checking != x
; then
7577 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7581 if test x
$ac_runtime_checking != x
; then
7583 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7586 if test x
$ac_tree_checking != x
; then
7588 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7592 if test x
$ac_types_checking != x
; then
7594 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7598 if test x
$ac_rtl_checking != x
; then
7600 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7603 if test x
$ac_rtlflag_checking != x
; then
7605 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7608 if test x
$ac_gc_checking != x
; then
7610 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7613 if test x
$ac_gc_always_collect != x
; then
7615 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7618 if test x
$ac_fold_checking != x
; then
7620 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7623 valgrind_path_defines
=
7626 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7627 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7635 # It is certainly possible that there's valgrind but no valgrind.h.
7636 # GCC relies on making annotations so we must have both.
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7638 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 #include <valgrind/memcheck.h>
7642 #ifndef VALGRIND_DISCARD
7643 #error VALGRIND_DISCARD not defined
7646 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7647 gcc_cv_header_valgrind_memcheck_h
=yes
7649 gcc_cv_header_valgrind_memcheck_h
=no
7651 rm -f conftest.err conftest.i conftest.
$ac_ext
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7653 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7655 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 #include <memcheck.h>
7659 #ifndef VALGRIND_DISCARD
7660 #error VALGRIND_DISCARD not defined
7663 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7664 gcc_cv_header_memcheck_h
=yes
7666 gcc_cv_header_memcheck_h
=no
7668 rm -f conftest.err conftest.i conftest.
$ac_ext
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7670 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7671 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7673 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7676 if test $gcc_cv_header_memcheck_h = yes; then
7678 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7682 if test x
$ac_valgrind_checking != x
; then
7684 # Prepare PATH_SEPARATOR.
7685 # The user is always right.
7686 if test "${PATH_SEPARATOR+set}" != set; then
7687 echo "#! /bin/sh" >conf$$.sh
7688 echo "exit 0" >>conf$$.sh
7690 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7698 # Find out how to test for executable files. Don't use a zero-byte file,
7699 # as systems may use methods other than mode bits to determine executability.
7700 cat >conf$$.
file <<_ASEOF
7704 chmod +x conf$$.
file
7705 if test -x conf$$.
file >/dev
/null
2>&1; then
7706 ac_executable_p
="test -x"
7708 ac_executable_p
="test -f"
7712 # Extract the first word of "valgrind", so it can be a program name with args.
7713 set dummy valgrind
; ac_word
=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if ${ac_cv_path_valgrind_path+:} false
; then :
7717 $as_echo_n "(cached) " >&6
7719 case "$valgrind_path" in
7721 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7724 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7725 for ac_dir
in $PATH; do
7727 test -z "$ac_dir" && ac_dir
=.
7728 for ac_exec_ext
in '' $ac_executable_extensions; do
7729 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7730 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7731 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7741 valgrind_path
="$ac_cv_path_valgrind_path"
7742 if test -n "$valgrind_path"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7744 $as_echo "$valgrind_path" >&6; }
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7750 if test "x$valgrind_path" = "x" \
7751 ||
(test $have_valgrind_h = no \
7752 && test $gcc_cv_header_memcheck_h = no \
7753 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7754 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7756 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7757 valgrind_command
="$valgrind_path -q"
7759 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7765 # Enable code coverage collection
7766 # Check whether --enable-coverage was given.
7767 if test "${enable_coverage+set}" = set; then :
7768 enableval
=$enable_coverage; case "${enableval}" in
7770 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7773 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7776 # a.k.a. --disable-coverage
7780 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7789 # Check whether --enable-gather-detailed-mem-stats was given.
7790 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7791 enableval
=$enable_gather_detailed_mem_stats;
7793 enable_gather_detailed_mem_stats
=no
7796 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7798 cat >>confdefs.h
<<_ACEOF
7799 #define GATHER_STATISTICS $gather_stats
7803 # Check whether --enable-valgrind-annotations was given.
7804 if test "${enable_valgrind_annotations+set}" = set; then :
7805 enableval
=$enable_valgrind_annotations;
7807 enable_valgrind_annotations
=no
7810 if test x
$enable_valgrind_annotations != xno \
7811 ||
test x
$ac_valgrind_checking != x
; then
7812 if (test $have_valgrind_h = no \
7813 && test $gcc_cv_header_memcheck_h = no \
7814 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7815 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7818 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7822 # -------------------------------
7823 # Miscenalleous configure options
7824 # -------------------------------
7826 # Determine whether or not multilibs are enabled.
7827 # Check whether --enable-multilib was given.
7828 if test "${enable_multilib+set}" = set; then :
7829 enableval
=$enable_multilib;
7836 # Determine whether or not multiarch is enabled.
7837 # Check whether --enable-multiarch was given.
7838 if test "${enable_multiarch+set}" = set; then :
7839 enableval
=$enable_multiarch; case "${enableval}" in
7840 yes|no|auto
) enable_multiarch
=$enableval;;
7841 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7844 enable_multiarch
=auto
7847 if test x
${enable_multiarch} = xauto
; then
7848 if test x
${with_native_system_header_dir} != x
; then
7849 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7852 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7853 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7857 if test x
${enable_multiarch} = xyes
; then
7859 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7863 $as_echo_n "checking for multiarch configuration... " >&6; }
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7866 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7868 # needed for setting the multiarch name for soft-float/hard-float ABIs
7872 # default stack clash protection guard size as power of twos in bytes.
7873 # Please keep these in sync with params.def.
7877 # Keep the default value when the option is not used to 0, this allows us to
7878 # distinguish between the cases where the user specifially set a value via
7879 # configure and when the normal default value is used.
7881 # Check whether --with-stack-clash-protection-guard-size was given.
7882 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7883 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7885 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7888 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7889 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7890 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7891 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
7895 cat >>confdefs.h
<<_ACEOF
7896 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7900 # Specify the number of splits of match.pd to generate.
7902 # Check whether --with-matchpd-partitions was given.
7903 if test "${with_matchpd_partitions+set}" = set; then :
7904 withval
=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS
="$with_matchpd_partitions"
7906 DEFAULT_MATCHPD_PARTITIONS
=10
7909 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7910 as_fn_error $?
"Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7915 # Enable __cxa_atexit for C++.
7916 # Check whether --enable-__cxa_atexit was given.
7917 if test "${enable___cxa_atexit+set}" = set; then :
7918 enableval
=$enable___cxa_atexit;
7922 # Enable C extension for decimal float if target supports it.
7924 # Check whether --enable-decimal-float was given.
7925 if test "${enable_decimal_float+set}" = set; then :
7926 enableval
=$enable_decimal_float;
7927 case $enable_decimal_float in
7928 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7929 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7930 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7937 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7938 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7939 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7940 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7941 enable_decimal_float
=yes
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7945 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7946 enable_decimal_float
=no
7953 # x86's use BID format instead of DPD
7954 case x
$enable_decimal_float in
7957 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7958 enable_decimal_float
=bid
7961 enable_decimal_float
=dpd
7964 default_decimal_float
=$enable_decimal_float
7967 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7968 # dependency on libdecnumber.
7969 default_decimal_float
=dpd
7976 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7978 cat >>confdefs.h
<<_ACEOF
7979 #define ENABLE_DECIMAL_FLOAT $dfp
7983 # Use default_decimal_float for dependency.
7984 enable_decimal_float
=$default_decimal_float
7986 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7988 cat >>confdefs.h
<<_ACEOF
7989 #define ENABLE_DECIMAL_BID_FORMAT $bid
7993 # Enable C extension for fixed-point arithmetic.
7994 # Check whether --enable-fixed-point was given.
7995 if test "${enable_fixed_point+set}" = set; then :
7996 enableval
=$enable_fixed_point;
8001 enable_fixed_point
=yes
8005 enable_fixed_point
=yes
8008 enable_fixed_point
=yes
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8012 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8013 enable_fixed_point
=no
8021 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8023 cat >>confdefs.h
<<_ACEOF
8024 #define ENABLE_FIXED_POINT $fixedpoint
8029 # Pass with no value to take the default
8030 # Pass with a value to specify a thread package
8031 # Check whether --enable-threads was given.
8032 if test "${enable_threads+set}" = set; then :
8033 enableval
=$enable_threads;
8039 # Check whether --enable-tls was given.
8040 if test "${enable_tls+set}" = set; then :
8041 enableval
=$enable_tls;
8044 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8045 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8053 # Check whether --enable-vtable-verify was given.
8054 if test "${enable_vtable_verify+set}" = set; then :
8055 enableval
=$enable_vtable_verify;
8057 enable_vtable_verify
=no
8060 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8062 cat >>confdefs.h
<<_ACEOF
8063 #define ENABLE_VTABLE_VERIFY $vtable_verify
8067 # Check whether --enable-analyzer was given.
8068 if test "${enable_analyzer+set}" = set; then :
8069 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8079 cat >>confdefs.h
<<_ACEOF
8080 #define ENABLE_ANALYZER $analyzer
8084 # Check whether --enable-objc-gc was given.
8085 if test "${enable_objc_gc+set}" = set; then :
8086 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8097 # Check whether --with-dwarf2 was given.
8098 if test "${with_dwarf2+set}" = set; then :
8099 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8105 # Check whether --enable-shared was given.
8106 if test "${enable_shared+set}" = set; then :
8107 enableval
=$enable_shared;
8108 case $enable_shared in
8112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8113 for pkg
in $enableval; do
8114 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8128 # Check whether --enable-gcov was given.
8129 if test "${enable_gcov+set}" = set; then :
8130 enableval
=$enable_gcov;
8146 # Check whether --with-specs was given.
8147 if test "${with_specs+set}" = set; then :
8148 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8158 # Check whether --with-pkgversion was given.
8159 if test "${with_pkgversion+set}" = set; then :
8160 withval
=$with_pkgversion; case "$withval" in
8161 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8163 *) PKGVERSION
="($withval) " ;;
8174 # Check whether --with-bugurl was given.
8175 if test "${with_bugurl+set}" = set; then :
8176 withval
=$with_bugurl; case "$withval" in
8177 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8180 *) BUGURL
="$withval"
8184 BUGURL
="https://gcc.gnu.org/bugs/"
8194 REPORT_BUGS_TO
="<$BUGURL>"
8195 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8202 # Allow overriding the default URL for documentation
8204 # Check whether --with-documentation-root-url was given.
8205 if test "${with_documentation_root_url+set}" = set; then :
8206 withval
=$with_documentation_root_url; case "$withval" in
8207 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8208 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8209 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8210 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8213 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8218 cat >>confdefs.h
<<_ACEOF
8219 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8223 # Allow overriding the default URL for GCC changes
8225 # Check whether --with-changes-root-url was given.
8226 if test "${with_changes_root_url+set}" = set; then :
8227 withval
=$with_changes_root_url; case "$withval" in
8228 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8229 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8230 */) CHANGES_ROOT_URL
="$withval" ;;
8231 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8234 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8239 cat >>confdefs.h
<<_ACEOF
8240 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8244 # Sanity check enable_languages in case someone does not run the toplevel
8245 # configure # script.
8246 # Check whether --enable-languages was given.
8247 if test "${enable_languages+set}" = set; then :
8248 enableval
=$enable_languages; case ,${enable_languages}, in
8250 # go safe -- we cannot be much sure without the toplevel
8252 # analysis of which target libs are present and usable
8256 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8261 enable_languages
=c
,${enable_languages}
8269 # If top-level libada has been disabled, then wire in install-gnatlib
8270 # invocation with `make install', so that one can build and install
8271 # the library manually with `make -C gcc all gnatlib gnattools install'.
8272 if test x
"$enable_libada" = xno
; then
8273 gnat_install_lib
=gnat-install-lib
8279 if test x
"$enable_as_accelerator_for" != x
; then
8281 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8283 enable_as_accelerator
=yes
8284 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8285 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8286 accel_dir_suffix
=/accel
/${target_noncanonical}
8287 real_target_noncanonical
=${enable_as_accelerator_for}
8293 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8294 tgt
=`echo $tgt | sed 's/=.*//'`
8299 omp_device_property
=omp-device-properties-gcn
8300 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8303 omp_device_property
=omp-device-properties-nvptx
8304 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8307 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8310 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8311 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8313 if test x
"$offload_targets" = x
; then
8314 offload_targets
=$tgt
8316 offload_targets
="$offload_targets,$tgt"
8323 cat >>confdefs.h
<<_ACEOF
8324 #define OFFLOAD_TARGETS "$offload_targets"
8327 if test x
"$enable_offloading" != x
; then
8329 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8333 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8337 if test "x$enable_offload_defaulted" = xyes
; then
8339 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8344 # Check whether --with-multilib-list was given.
8345 if test "${with_multilib_list+set}" = set; then :
8346 withval
=$with_multilib_list; :
8348 with_multilib_list
=default
8353 # Check whether --with-multilib-generator was given.
8354 if test "${with_multilib_generator+set}" = set; then :
8355 withval
=$with_multilib_generator; :
8357 with_multilib_generator
=default
8361 # -------------------------
8362 # Checks for other programs
8363 # -------------------------
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8366 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8368 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8369 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8370 $as_echo_n "(cached) " >&6
8372 cat >conftest.
make <<\_ACEOF
8375 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8377 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8378 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8380 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8382 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8386 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8388 $as_echo "yes" >&6; }
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 SET_MAKE
="MAKE=${MAKE-make}"
8397 # Find some useful tools
8398 for ac_prog
in gawk mawk nawk
awk
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy
$ac_prog; ac_word
=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if ${ac_cv_prog_AWK+:} false
; then :
8405 $as_echo_n "(cached) " >&6
8407 if test -n "$AWK"; then
8408 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir
=.
8415 for ac_exec_ext
in '' $ac_executable_extensions; do
8416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_AWK
="$ac_prog"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 if test -n "$AWK"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8430 $as_echo "$AWK" >&6; }
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8437 test -n "$AWK" && break
8440 # We need awk to create options.cc and options.h.
8441 # Bail out if it's missing.
8443 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8447 $as_echo_n "checking whether ln -s works... " >&6; }
8448 if ${gcc_cv_prog_LN_S+:} false
; then :
8449 $as_echo_n "(cached) " >&6
8451 rm -f conftestdata_t
8452 echo >conftestdata_f
8453 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8455 gcc_cv_prog_LN_S
="ln -s"
8457 if ln conftestdata_f conftestdata_t
2>/dev
/null
8461 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8463 gcc_cv_prog_LN_S
="cp -p"
8469 rm -f conftestdata_f conftestdata_t
8472 LN_S
="$gcc_cv_prog_LN_S"
8473 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8475 $as_echo "yes" >&6; }
8477 if test "$gcc_cv_prog_LN_S" = "ln"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8479 $as_echo "no, using ln" >&6; }
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8482 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8487 $as_echo_n "checking whether ln works... " >&6; }
8488 if ${acx_cv_prog_LN+:} false
; then :
8489 $as_echo_n "(cached) " >&6
8491 rm -f conftestdata_t
8492 echo >conftestdata_f
8493 if ln conftestdata_f conftestdata_t
2>/dev
/null
8499 rm -f conftestdata_f conftestdata_t
8502 if test $acx_cv_prog_LN = no
; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8505 $as_echo "no, using $LN" >&6; }
8507 LN
="$acx_cv_prog_LN"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8509 $as_echo "yes" >&6; }
8512 if test -n "$ac_tool_prefix"; then
8513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8514 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if ${ac_cv_prog_RANLIB+:} false
; then :
8518 $as_echo_n "(cached) " >&6
8520 if test -n "$RANLIB"; then
8521 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8527 test -z "$as_dir" && as_dir
=.
8528 for ac_exec_ext
in '' $ac_executable_extensions; do
8529 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8530 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 RANLIB
=$ac_cv_prog_RANLIB
8541 if test -n "$RANLIB"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8543 $as_echo "$RANLIB" >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8551 if test -z "$ac_cv_prog_RANLIB"; then
8552 ac_ct_RANLIB
=$RANLIB
8553 # Extract the first word of "ranlib", so it can be a program name with args.
8554 set dummy ranlib
; ac_word
=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8558 $as_echo_n "(cached) " >&6
8560 if test -n "$ac_ct_RANLIB"; then
8561 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8567 test -z "$as_dir" && as_dir
=.
8568 for ac_exec_ext
in '' $ac_executable_extensions; do
8569 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8570 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8581 if test -n "$ac_ct_RANLIB"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8583 $as_echo "$ac_ct_RANLIB" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8589 if test "x$ac_ct_RANLIB" = x
; then
8592 case $cross_compiling:$ac_tool_warned in
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8596 ac_tool_warned
=yes ;;
8598 RANLIB
=$ac_ct_RANLIB
8601 RANLIB
="$ac_cv_prog_RANLIB"
8607 # Find a good install program. We prefer a C program (faster),
8608 # so one script is as good as another. But avoid the broken or
8609 # incompatible versions:
8610 # SysV /etc/install, /usr/sbin/install
8611 # SunOS /usr/etc/install
8612 # IRIX /sbin/install
8614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8616 # ./install, which can be erroneously created by make from ./install.sh.
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8618 $as_echo_n "checking for a BSD compatible install... " >&6; }
8619 if test -z "$INSTALL"; then
8620 if ${ac_cv_path_install+:} false
; then :
8621 $as_echo_n "(cached) " >&6
8623 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8624 for ac_dir
in $PATH; do
8625 # Account for people who put trailing slashes in PATH elements.
8627 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8629 # OSF1 and SCO ODT 3.0 have their own names for install.
8630 for ac_prog
in ginstall scoinst
install; do
8631 if test -f $ac_dir/$ac_prog; then
8632 if test $ac_prog = install &&
8633 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8634 # AIX install. It has an incompatible calling convention.
8635 # OSF/1 installbsd also uses dspmsg, but is usable.
8638 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8649 if test "${ac_cv_path_install+set}" = set; then
8650 INSTALL
="$ac_cv_path_install"
8652 # As a last resort, use the slow shell script. We don't cache a
8653 # path for INSTALL within a source directory, because that will
8654 # break other packages using the cache if that directory is
8655 # removed, or if the path is relative.
8656 INSTALL
="$ac_install_sh"
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8660 $as_echo "$INSTALL" >&6; }
8662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8663 # It thinks the first close brace ends the variable substitution.
8664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8666 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8669 # See if cmp has --ignore-initial.
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8671 $as_echo_n "checking for cmp's capabilities... " >&6; }
8672 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8673 $as_echo_n "(cached) " >&6
8677 gcc_cv_prog_cmp_skip
=slowcompare
8678 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8679 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8682 gcc_cv_prog_cmp_skip
=gnucompare
8685 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8686 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8687 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8690 gcc_cv_prog_cmp_skip
=fastcompare
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8698 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8699 make_compare_target
=$gcc_cv_prog_cmp_skip
8703 # See if we have the mktemp command.
8704 # Extract the first word of "mktemp", so it can be a program name with args.
8705 set dummy mktemp
; ac_word
=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8709 $as_echo_n "(cached) " >&6
8711 if test -n "$have_mktemp_command"; then
8712 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8718 test -z "$as_dir" && as_dir
=.
8719 for ac_exec_ext
in '' $ac_executable_extensions; do
8720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8721 ac_cv_prog_have_mktemp_command
="yes"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8729 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8732 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8733 if test -n "$have_mktemp_command"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8735 $as_echo "$have_mktemp_command" >&6; }
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8743 # See if makeinfo has been installed and is modern enough
8744 # that we can use it.
8746 # Extract the first word of "makeinfo", so it can be a program name with args.
8747 set dummy makeinfo
; ac_word
=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8751 $as_echo_n "(cached) " >&6
8753 if test -n "$MAKEINFO"; then
8754 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8760 test -z "$as_dir" && as_dir
=.
8761 for ac_exec_ext
in '' $ac_executable_extensions; do
8762 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_MAKEINFO
="makeinfo"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 MAKEINFO
=$ac_cv_prog_MAKEINFO
8774 if test -n "$MAKEINFO"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8776 $as_echo "$MAKEINFO" >&6; }
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8783 if test -n "$MAKEINFO"; then
8784 # Found it, now check the version.
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8786 $as_echo_n "checking for modern makeinfo... " >&6; }
8787 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8788 $as_echo_n "(cached) " >&6
8790 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8791 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8793 case $ac_prog_version in
8794 '') gcc_cv_prog_makeinfo_modern
=no
;;
8795 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8796 *) gcc_cv_prog_makeinfo_modern
=no
;;
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8801 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8803 gcc_cv_prog_makeinfo_modern
=no
8805 if test $gcc_cv_prog_makeinfo_modern = no
; then
8806 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8809 if test $gcc_cv_prog_makeinfo_modern = no
; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8811 *** Makeinfo is missing or too old.
8812 *** Info documentation will not be built." >&5
8813 $as_echo "$as_me: WARNING:
8814 *** Makeinfo is missing or too old.
8815 *** Info documentation will not be built." >&2;}
8822 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8823 # If it does, we want to pass it to makeinfo in order to restore the old
8824 # behavior of @{summary,}contents placement.
8825 MAKEINFO_TOC_INLINE_FLAG
=
8826 if test x
"$MAKEINFO" != x
; then :
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8829 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8830 if ${gcc_cv_texi_add_toc_inline_flags+:} false
; then :
8831 $as_echo_n "(cached) " >&6
8834 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8835 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION
=inline
</dev
/null
2>&1 \
8836 |
grep CONTENTS_OUTPUT_LOCATION
>/dev
/null
; then
8837 gcc_cv_texi_add_toc_inline_flags
=no
8839 gcc_cv_texi_add_toc_inline_flags
=yes
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8844 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8845 if test x
"$gcc_cv_texi_add_toc_inline_flags" = xyes
; then
8846 MAKEINFO_TOC_INLINE_FLAG
='-c CONTENTS_OUTPUT_LOCATION=inline'
8852 # Is pod2man recent enough to regenerate manpages?
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8854 $as_echo_n "checking for recent Pod::Man... " >&6; }
8855 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8857 $as_echo "yes" >&6; }
8858 GENERATED_MANPAGES
=generated-manpages
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8866 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8871 # Extract the first word of "$ac_prog", so it can be a program name with args.
8872 set dummy
$ac_prog; ac_word
=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if ${ac_cv_prog_FLEX+:} false
; then :
8876 $as_echo_n "(cached) " >&6
8878 if test -n "$FLEX"; then
8879 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8885 test -z "$as_dir" && as_dir
=.
8886 for ac_exec_ext
in '' $ac_executable_extensions; do
8887 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8888 ac_cv_prog_FLEX
="$ac_prog"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 FLEX
=$ac_cv_prog_FLEX
8899 if test -n "$FLEX"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8901 $as_echo "$FLEX" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8908 test -n "$FLEX" && break
8910 test -n "$FLEX" || FLEX
="$MISSING flex"
8914 for ac_prog
in bison
8916 # Extract the first word of "$ac_prog", so it can be a program name with args.
8917 set dummy
$ac_prog; ac_word
=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if ${ac_cv_prog_BISON+:} false
; then :
8921 $as_echo_n "(cached) " >&6
8923 if test -n "$BISON"; then
8924 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8930 test -z "$as_dir" && as_dir
=.
8931 for ac_exec_ext
in '' $ac_executable_extensions; do
8932 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_BISON
="$ac_prog"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8943 BISON
=$ac_cv_prog_BISON
8944 if test -n "$BISON"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8946 $as_echo "$BISON" >&6; }
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8953 test -n "$BISON" && break
8955 test -n "$BISON" || BISON
="$MISSING bison"
8960 # Extract the first word of "python3", so it can be a program name with args.
8961 set dummy python3
; ac_word
=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_prog_PYTHON+:} false
; then :
8965 $as_echo_n "(cached) " >&6
8967 if test -n "$PYTHON"; then
8968 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
8970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8974 test -z "$as_dir" && as_dir
=.
8975 for ac_exec_ext
in '' $ac_executable_extensions; do
8976 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8977 ac_cv_prog_PYTHON
="python3"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 PYTHON
=$ac_cv_prog_PYTHON
8988 if test -n "$PYTHON"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8990 $as_echo "$PYTHON" >&6; }
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8997 if test -n "$PYTHON"; then
8998 # Found it, now check the version.
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9000 $as_echo_n "checking for modern python3... " >&6; }
9001 if ${gcc_cv_prog_python3_modern+:} false
; then :
9002 $as_echo_n "(cached) " >&6
9004 ac_prog_version
=`eval $PYTHON --version 2>&1 |
9005 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9007 case $ac_prog_version in
9008 '') gcc_cv_prog_python3_modern
=no
;;
9009 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*) gcc_cv_prog_python3_modern
=yes;;
9010 *) gcc_cv_prog_python3_modern
=no
;;
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9015 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9017 gcc_cv_prog_python3_modern
=no
9019 if test $gcc_cv_prog_python3_modern = no
; then
9020 PYTHON
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9023 if test $gcc_cv_prog_python3_modern = no
; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9025 *** Python3 is missing.
9026 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9027 $as_echo "$as_me: WARNING:
9028 *** Python3 is missing.
9029 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9036 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9037 # check for build == host before using them.
9040 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
9041 && test -d ..
/binutils
; then
9042 NM
='${objdir}/../binutils/nm-new'
9044 # Extract the first word of "nm", so it can be a program name with args.
9045 set dummy nm
; ac_word
=$2
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 $as_echo_n "checking for $ac_word... " >&6; }
9048 if ${ac_cv_prog_NM+:} false
; then :
9049 $as_echo_n "(cached) " >&6
9051 if test -n "$NM"; then
9052 ac_cv_prog_NM
="$NM" # Let the user override the test.
9054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9058 test -z "$as_dir" && as_dir
=.
9059 for ac_exec_ext
in '' $ac_executable_extensions; do
9060 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9073 if test -n "$NM"; then
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9075 $as_echo "$NM" >&6; }
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9085 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
9086 && test -d ..
/binutils
; then
9087 AR
='${objdir}/../binutils/ar'
9089 # Extract the first word of "ar", so it can be a program name with args.
9090 set dummy
ar; ac_word
=$2
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 $as_echo_n "checking for $ac_word... " >&6; }
9093 if ${ac_cv_prog_AR+:} false
; then :
9094 $as_echo_n "(cached) " >&6
9096 if test -n "$AR"; then
9097 ac_cv_prog_AR
="$AR" # Let the user override the test.
9099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9103 test -z "$as_dir" && as_dir
=.
9104 for ac_exec_ext
in '' $ac_executable_extensions; do
9105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9118 if test -n "$AR"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9120 $as_echo "$AR" >&6; }
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9129 # The jit documentation looks better if built with sphinx, but can be
9130 # built with texinfo if sphinx is not available.
9131 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9132 # Extract the first word of "sphinx-build", so it can be a program name with args.
9133 set dummy sphinx-build
; ac_word
=$2
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135 $as_echo_n "checking for $ac_word... " >&6; }
9136 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9137 $as_echo_n "(cached) " >&6
9139 if test -n "$doc_build_sys"; then
9140 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9146 test -z "$as_dir" && as_dir
=.
9147 for ac_exec_ext
in '' $ac_executable_extensions; do
9148 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9149 ac_cv_prog_doc_build_sys
="sphinx"
9150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9160 doc_build_sys
=$ac_cv_prog_doc_build_sys
9161 if test -n "$doc_build_sys"; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9163 $as_echo "$doc_build_sys" >&6; }
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 $as_echo "no" >&6; }
9171 # --------------------
9172 # Checks for C headers
9173 # --------------------
9175 # Need to reject headers which give warnings, so that the -Werror bootstrap
9176 # works later. *sigh* This needs to come before all header checks.
9178 ac_c_preproc_warn_flag
=yes
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9181 $as_echo_n "checking for ANSI C header files... " >&6; }
9182 if ${ac_cv_header_stdc+:} false
; then :
9183 $as_echo_n "(cached) " >&6
9185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9200 if ac_fn_cxx_try_compile
"$LINENO"; then :
9201 ac_cv_header_stdc
=yes
9203 ac_cv_header_stdc
=no
9205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9207 if test $ac_cv_header_stdc = yes; then
9208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9215 $EGREP "memchr" >/dev
/null
2>&1; then :
9218 ac_cv_header_stdc
=no
9224 if test $ac_cv_header_stdc = yes; then
9225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9232 $EGREP "free" >/dev
/null
2>&1; then :
9235 ac_cv_header_stdc
=no
9241 if test $ac_cv_header_stdc = yes; then
9242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9243 if test "$cross_compiling" = yes; then :
9246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9250 #if ((' ' & 0x0FF) == 0x020)
9251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9254 # define ISLOWER(c) \
9255 (('a' <= (c) && (c) <= 'i') \
9256 || ('j' <= (c) && (c) <= 'r') \
9257 || ('s' <= (c) && (c) <= 'z'))
9258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9266 for (i = 0; i < 256; i++)
9267 if (XOR (islower (i), ISLOWER (i))
9268 || toupper (i) != TOUPPER (i))
9273 if ac_fn_cxx_try_run
"$LINENO"; then :
9276 ac_cv_header_stdc
=no
9278 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9279 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9285 $as_echo "$ac_cv_header_stdc" >&6; }
9286 if test $ac_cv_header_stdc = yes; then
9288 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9293 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9294 if ${ac_cv_header_time+:} false
; then :
9295 $as_echo_n "(cached) " >&6
9297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <sys/types.h>
9300 #include <sys/time.h>
9306 if ((struct tm *) 0)
9312 if ac_fn_cxx_try_compile
"$LINENO"; then :
9313 ac_cv_header_time
=yes
9315 ac_cv_header_time
=no
9317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9320 $as_echo "$ac_cv_header_time" >&6; }
9321 if test $ac_cv_header_time = yes; then
9323 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9328 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9329 if ${gcc_cv_header_string+:} false
; then :
9330 $as_echo_n "(cached) " >&6
9332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9335 #include <strings.h>
9344 if ac_fn_cxx_try_compile
"$LINENO"; then :
9345 gcc_cv_header_string
=yes
9347 gcc_cv_header_string
=no
9349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9352 $as_echo "$gcc_cv_header_string" >&6; }
9353 if test $gcc_cv_header_string = yes; then
9355 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9360 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9361 if ${ac_cv_header_sys_wait_h+:} false
; then :
9362 $as_echo_n "(cached) " >&6
9364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9366 #include <sys/types.h>
9367 #include <sys/wait.h>
9369 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9372 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9380 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9385 if ac_fn_cxx_try_compile
"$LINENO"; then :
9386 ac_cv_header_sys_wait_h
=yes
9388 ac_cv_header_sys_wait_h
=no
9390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9393 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9394 if test $ac_cv_header_sys_wait_h = yes; then
9396 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9401 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9402 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9403 $as_echo_n "(cached) " >&6
9405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 #include <sys/types.h>
9408 #include <termios.h>
9414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9415 $EGREP "yes" >/dev
/null
2>&1; then :
9416 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9418 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9424 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9426 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9428 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9429 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9430 $as_echo_n "(cached) " >&6
9432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #include <sys/types.h>
9435 #include <sys/ioctl.h>
9441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9442 $EGREP "yes" >/dev
/null
2>&1; then :
9443 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9445 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9451 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9453 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9455 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9460 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9461 fcntl.h ftw.h unistd.h sys
/auxv.h sys
/file.h sys
/time.h sys
/mman.h \
9462 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9463 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9465 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9466 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9467 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9468 cat >>confdefs.h
<<_ACEOF
9469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9476 # Check for thread headers.
9477 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9478 if test "x$ac_cv_header_thread_h" = xyes
; then :
9484 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9485 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9492 # These tests can't be done till we know if we have limits.h.
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9494 $as_echo_n "checking for CHAR_BIT... " >&6; }
9495 if ${gcc_cv_decl_char_bit+:} false
; then :
9496 $as_echo_n "(cached) " >&6
9498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 #ifdef HAVE_LIMITS_H
9507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9508 $EGREP "found" >/dev
/null
2>&1; then :
9509 gcc_cv_decl_char_bit
=yes
9511 gcc_cv_decl_char_bit
=no
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9518 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9519 if test $gcc_cv_decl_char_bit = no
; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9521 $as_echo_n "checking number of bits in a byte... " >&6; }
9522 if ${gcc_cv_c_nbby+:} false
; then :
9523 $as_echo_n "(cached) " >&6
9527 while test $i -lt 65; do
9528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9535 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9536 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9542 if ac_fn_cxx_try_compile
"$LINENO"; then :
9543 gcc_cv_c_nbby
=$i; break
9545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9548 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9552 $as_echo "$gcc_cv_c_nbby" >&6; }
9553 if test $gcc_cv_c_nbby = failed
; then
9554 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9557 cat >>confdefs.h
<<_ACEOF
9558 #define CHAR_BIT $gcc_cv_c_nbby
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9564 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9565 if ${ac_cv_c_bigendian+:} false
; then :
9566 $as_echo_n "(cached) " >&6
9568 ac_cv_c_bigendian
=unknown
9569 # See if we're dealing with a universal compiler.
9570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572 #ifndef __APPLE_CC__
9573 not a universal capable compiler
9578 if ac_fn_cxx_try_compile
"$LINENO"; then :
9580 # Check for potential -arch flags. It is not universal unless
9581 # there are at least two -arch flags with different values.
9584 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9585 if test -n "$ac_prev"; then
9587 i?
86 | x86_64 | ppc | ppc64
)
9588 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9591 ac_cv_c_bigendian
=universal
9597 elif test "x$ac_word" = "x-arch"; then
9602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9603 if test $ac_cv_c_bigendian = unknown
; then
9604 # See if sys/param.h defines the BYTE_ORDER macro.
9605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9607 #include <sys/types.h>
9608 #include <sys/param.h>
9613 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9614 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9623 if ac_fn_cxx_try_compile
"$LINENO"; then :
9624 # It does; now see whether it defined to BIG_ENDIAN or not.
9625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627 #include <sys/types.h>
9628 #include <sys/param.h>
9633 #if BYTE_ORDER != BIG_ENDIAN
9641 if ac_fn_cxx_try_compile
"$LINENO"; then :
9642 ac_cv_c_bigendian
=yes
9644 ac_cv_c_bigendian
=no
9646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9650 if test $ac_cv_c_bigendian = unknown
; then
9651 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9659 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9667 if ac_fn_cxx_try_compile
"$LINENO"; then :
9668 # It does; now see whether it defined to _BIG_ENDIAN or not.
9669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9684 if ac_fn_cxx_try_compile
"$LINENO"; then :
9685 ac_cv_c_bigendian
=yes
9687 ac_cv_c_bigendian
=no
9689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9693 if test $ac_cv_c_bigendian = unknown
; then
9694 # Compile a test program.
9695 if test "$cross_compiling" = yes; then :
9696 # Try to guess by grepping values from an object file.
9697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 short int ascii_mm[] =
9700 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9701 short int ascii_ii[] =
9702 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9703 int use_ascii (int i) {
9704 return ascii_mm[i] + ascii_ii[i];
9706 short int ebcdic_ii[] =
9707 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9708 short int ebcdic_mm[] =
9709 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9710 int use_ebcdic (int i) {
9711 return ebcdic_mm[i] + ebcdic_ii[i];
9718 return use_ascii (foo) == use_ebcdic (foo);
9723 if ac_fn_cxx_try_compile
"$LINENO"; then :
9724 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9725 ac_cv_c_bigendian
=yes
9727 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9728 if test "$ac_cv_c_bigendian" = unknown
; then
9729 ac_cv_c_bigendian
=no
9731 # finding both strings is unlikely to happen, but who knows?
9732 ac_cv_c_bigendian
=unknown
9736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 $ac_includes_default
9745 /* Are we little or big endian? From Harbison&Steele. */
9749 char c[sizeof (long int)];
9752 return u.c[sizeof (long int) - 1] == 1;
9758 if ac_fn_cxx_try_run
"$LINENO"; then :
9759 ac_cv_c_bigendian
=no
9761 ac_cv_c_bigendian
=yes
9763 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9764 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9770 $as_echo "$ac_cv_c_bigendian" >&6; }
9771 case $ac_cv_c_bigendian in #(
9773 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9779 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9783 as_fn_error $?
"unknown endianness
9784 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9788 # ----------------------
9789 # Checks for C++ headers
9790 # ----------------------
9793 ac_cpp
='$CXXCPP $CPPFLAGS'
9794 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9795 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9796 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9798 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9799 if test -z "$CXXCPP"; then
9800 if ${ac_cv_prog_CXXCPP+:} false
; then :
9801 $as_echo_n "(cached) " >&6
9803 # Double quotes because CXXCPP needs to be expanded
9804 for CXXCPP
in "$CXX -E" "/lib/cpp"
9807 for ac_cxx_preproc_warn_flag
in '' yes
9809 # Use a header file that comes with gcc, so configuring glibc
9810 # with a fresh cross-compiler works.
9811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812 # <limits.h> exists even on freestanding compilers.
9813 # On the NeXT, cc -E runs the code through the compiler's parser,
9814 # not just through cpp. "Syntax error" is here to catch this case.
9815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9818 # include <limits.h>
9820 # include <assert.h>
9824 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9827 # Broken: fails on valid input.
9830 rm -f conftest.err conftest.i conftest.
$ac_ext
9832 # OK, works on sane cases. Now check whether nonexistent headers
9833 # can be detected and how.
9834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 #include <ac_nonexistent.h>
9838 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9839 # Broken: success on invalid input.
9842 # Passes both tests.
9846 rm -f conftest.err conftest.i conftest.
$ac_ext
9849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9850 rm -f conftest.i conftest.err conftest.
$ac_ext
9851 if $ac_preproc_ok; then :
9856 ac_cv_prog_CXXCPP
=$CXXCPP
9859 CXXCPP
=$ac_cv_prog_CXXCPP
9861 ac_cv_prog_CXXCPP
=$CXXCPP
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9864 $as_echo "$CXXCPP" >&6; }
9866 for ac_cxx_preproc_warn_flag
in '' yes
9868 # Use a header file that comes with gcc, so configuring glibc
9869 # with a fresh cross-compiler works.
9870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9871 # <limits.h> exists even on freestanding compilers.
9872 # On the NeXT, cc -E runs the code through the compiler's parser,
9873 # not just through cpp. "Syntax error" is here to catch this case.
9874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9877 # include <limits.h>
9879 # include <assert.h>
9883 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9886 # Broken: fails on valid input.
9889 rm -f conftest.err conftest.i conftest.
$ac_ext
9891 # OK, works on sane cases. Now check whether nonexistent headers
9892 # can be detected and how.
9893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895 #include <ac_nonexistent.h>
9897 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9898 # Broken: success on invalid input.
9901 # Passes both tests.
9905 rm -f conftest.err conftest.i conftest.
$ac_ext
9908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9909 rm -f conftest.i conftest.err conftest.
$ac_ext
9910 if $ac_preproc_ok; then :
9913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9916 See \`config.log' for more details" >&5
9917 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9918 See \`config.log' for more details" >&2;}; }
9922 ac_cpp
='$CXXCPP $CPPFLAGS'
9923 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9924 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9925 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9928 for ac_header
in unordered_map
9930 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9931 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9932 cat >>confdefs.h
<<_ACEOF
9933 #define HAVE_UNORDERED_MAP 1
9939 for ac_header
in tr1/unordered_map
9941 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9942 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9943 cat >>confdefs.h
<<_ACEOF
9944 #define HAVE_TR1_UNORDERED_MAP 1
9950 for ac_header
in ext
/hash_map
9952 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9953 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9954 cat >>confdefs.h
<<_ACEOF
9955 #define HAVE_EXT_HASH_MAP 1
9963 # Dependency checking.
9966 rm -rf .tst
2>/dev
/null
9967 mkdir .tst
2>/dev
/null
9968 if test -d .tst
; then
9973 rmdir .tst
2>/dev
/null
9975 DEPDIR
="${am__leading_dot}deps"
9977 ac_config_commands
="$ac_config_commands depdir"
9980 ac_config_commands
="$ac_config_commands gccdepdir"
9983 depcc
="$CXX" am_compiler_list
=
9985 am_depcomp
=$ac_aux_dir/depcomp
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9987 $as_echo_n "checking dependency style of $depcc... " >&6; }
9988 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9989 $as_echo_n "(cached) " >&6
9991 if test -f "$am_depcomp"; then
9992 # We make a subdir and do the tests there. Otherwise we can end up
9993 # making bogus files that we don't know about and never remove. For
9994 # instance it was reported that on HP-UX the gcc test will end up
9995 # making a dummy file named `D' -- because `-MD' means `put the output
9998 # Copy depcomp to subdir because otherwise we won't find it if we're
9999 # using a relative directory.
10000 cp "$am_depcomp" conftest.dir
10002 # We will build objects and dependencies in a subdirectory because
10003 # it helps to detect inapplicable dependency modes. For instance
10004 # both Tru64's cc and ICC support -MD to output dependencies as a
10005 # side effect of compilation, but ICC will put the dependencies in
10006 # the current directory while Tru64 will put them in the object
10010 am_cv_CXX_dependencies_compiler_type
=none
10011 if test "$am_compiler_list" = ""; then
10012 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10014 for depmode
in $am_compiler_list; do
10015 if test $depmode = none
; then break; fi
10017 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10018 # Setup a source with many dependencies, because some compilers
10019 # like to wrap large dependency lists on column 80 (with \), and
10020 # we should not choose a depcomp mode which is confused by this.
10022 # We need to recreate these files for each test, as the compiler may
10023 # overwrite some of them when testing with obscure command lines.
10024 # This happens at least with the AIX C compiler.
10026 for i
in 1 2 3 4 5 6; do
10027 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10029 # Solaris 8's {/usr,}/bin/sh.
10030 touch sub
/conftst
$i.h
10032 echo "include sub/conftest.Po" > confmf
10034 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10035 # mode. It turns out that the SunPro C++ compiler does not properly
10036 # handle `-M -o', and we need to detect this.
10037 depcmd
="depmode=$depmode \
10038 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10040 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10041 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
10042 if env
$depcmd > conftest.err
2>&1 &&
10043 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
10044 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
10045 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
10046 # icc doesn't choke on unknown options, it will just issue warnings
10047 # or remarks (even with -Werror). So we grep stderr for any message
10048 # that says an option was ignored or not supported.
10049 # When given -MP, icc 7.0 and 7.1 complain thusly:
10050 # icc: Command line warning: ignoring option '-M'; no argument required
10051 # The diagnosis changed in icc 8.0:
10052 # icc: Command line remark: option '-MP' not supported
10053 if (grep 'ignoring option' conftest.err ||
10054 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10055 am_cv_CXX_dependencies_compiler_type
=$depmode
10056 $as_echo "$as_me:$LINENO: success" >&5
10060 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10061 sed -e 's/^/| /' < conftest.err
>&5
10065 rm -rf conftest.dir
10067 am_cv_CXX_dependencies_compiler_type
=none
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10072 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10073 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
10074 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
10075 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
10085 # These libraries may be used by collect2.
10086 # We may need a special search path to get them linked.
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10088 $as_echo_n "checking for collect2 libraries... " >&6; }
10089 if ${gcc_cv_collect2_libs+:} false
; then :
10090 $as_echo_n "(cached) " >&6
10093 for libs
in '' -lld -lmld \
10094 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10095 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10101 /* Override any GCC internal prototype to avoid an error.
10102 Use char because int might match the return type of a GCC
10103 builtin and then its argument prototype would still apply. */
10116 if ac_fn_cxx_try_link
"$LINENO"; then :
10117 gcc_cv_collect2_libs
="$libs"; break
10119 rm -f core conftest.err conftest.
$ac_objext \
10120 conftest
$ac_exeext conftest.
$ac_ext
10123 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10126 $as_echo "$gcc_cv_collect2_libs" >&6; }
10127 case $gcc_cv_collect2_libs in
10128 "none required") ;;
10129 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10133 # When building Ada code on Alpha, we need exc_resume which is usually in
10134 # -lexc. So test for it.
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10138 $as_echo_n "checking for library containing exc_resume... " >&6; }
10139 if ${ac_cv_search_exc_resume+:} false
; then :
10140 $as_echo_n "(cached) " >&6
10142 ac_func_search_save_LIBS
=$LIBS
10143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10146 /* Override any GCC internal prototype to avoid an error.
10147 Use char because int might match the return type of a GCC
10148 builtin and then its argument prototype would still apply. */
10152 char exc_resume ();
10156 return exc_resume ();
10161 for ac_lib
in '' exc
; do
10162 if test -z "$ac_lib"; then
10163 ac_res
="none required"
10166 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10168 if ac_fn_cxx_try_link
"$LINENO"; then :
10169 ac_cv_search_exc_resume
=$ac_res
10171 rm -f core conftest.err conftest.
$ac_objext \
10173 if ${ac_cv_search_exc_resume+:} false
; then :
10177 if ${ac_cv_search_exc_resume+:} false
; then :
10180 ac_cv_search_exc_resume
=no
10182 rm conftest.
$ac_ext
10183 LIBS
=$ac_func_search_save_LIBS
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10186 $as_echo "$ac_cv_search_exc_resume" >&6; }
10187 ac_res
=$ac_cv_search_exc_resume
10188 if test "$ac_res" != no
; then :
10189 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10193 GNAT_LIBEXC
="$LIBS"
10197 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10201 $as_echo_n "checking for library containing kstat_open... " >&6; }
10202 if ${ac_cv_search_kstat_open+:} false
; then :
10203 $as_echo_n "(cached) " >&6
10205 ac_func_search_save_LIBS
=$LIBS
10206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10209 /* Override any GCC internal prototype to avoid an error.
10210 Use char because int might match the return type of a GCC
10211 builtin and then its argument prototype would still apply. */
10215 char kstat_open ();
10219 return kstat_open ();
10224 for ac_lib
in '' kstat
; do
10225 if test -z "$ac_lib"; then
10226 ac_res
="none required"
10229 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10231 if ac_fn_cxx_try_link
"$LINENO"; then :
10232 ac_cv_search_kstat_open
=$ac_res
10234 rm -f core conftest.err conftest.
$ac_objext \
10236 if ${ac_cv_search_kstat_open+:} false
; then :
10240 if ${ac_cv_search_kstat_open+:} false
; then :
10243 ac_cv_search_kstat_open
=no
10245 rm conftest.
$ac_ext
10246 LIBS
=$ac_func_search_save_LIBS
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10249 $as_echo "$ac_cv_search_kstat_open" >&6; }
10250 ac_res
=$ac_cv_search_kstat_open
10251 if test "$ac_res" != no
; then :
10252 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10256 EXTRA_GCC_LIBS
="$LIBS"
10260 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10261 # C++ needs those for libcody.
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10266 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10267 if ${ac_cv_search_gethostbyname+:} false
; then :
10268 $as_echo_n "(cached) " >&6
10270 ac_func_search_save_LIBS
=$LIBS
10271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10274 /* Override any GCC internal prototype to avoid an error.
10275 Use char because int might match the return type of a GCC
10276 builtin and then its argument prototype would still apply. */
10280 char gethostbyname ();
10284 return gethostbyname ();
10289 for ac_lib
in '' nsl
; do
10290 if test -z "$ac_lib"; then
10291 ac_res
="none required"
10294 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10296 if ac_fn_cxx_try_link
"$LINENO"; then :
10297 ac_cv_search_gethostbyname
=$ac_res
10299 rm -f core conftest.err conftest.
$ac_objext \
10301 if ${ac_cv_search_gethostbyname+:} false
; then :
10305 if ${ac_cv_search_gethostbyname+:} false
; then :
10308 ac_cv_search_gethostbyname
=no
10310 rm conftest.
$ac_ext
10311 LIBS
=$ac_func_search_save_LIBS
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10314 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10315 ac_res
=$ac_cv_search_gethostbyname
10316 if test "$ac_res" != no
; then :
10317 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10322 $as_echo_n "checking for library containing socket... " >&6; }
10323 if ${ac_cv_search_socket+:} false
; then :
10324 $as_echo_n "(cached) " >&6
10326 ac_func_search_save_LIBS
=$LIBS
10327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10345 for ac_lib
in '' socket
; do
10346 if test -z "$ac_lib"; then
10347 ac_res
="none required"
10350 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10352 if ac_fn_cxx_try_link
"$LINENO"; then :
10353 ac_cv_search_socket
=$ac_res
10355 rm -f core conftest.err conftest.
$ac_objext \
10357 if ${ac_cv_search_socket+:} false
; then :
10361 if ${ac_cv_search_socket+:} false
; then :
10364 ac_cv_search_socket
=no
10366 rm conftest.
$ac_ext
10367 LIBS
=$ac_func_search_save_LIBS
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10370 $as_echo "$ac_cv_search_socket" >&6; }
10371 ac_res
=$ac_cv_search_socket
10372 if test "$ac_res" != no
; then :
10373 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10378 $as_echo_n "checking for socket in -lsocket... " >&6; }
10379 if ${ac_cv_lib_socket_socket+:} false
; then :
10380 $as_echo_n "(cached) " >&6
10382 ac_check_lib_save_LIBS
=$LIBS
10383 LIBS
="-lsocket -lnsl $LIBS"
10384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10402 if ac_fn_cxx_try_link
"$LINENO"; then :
10403 ac_cv_lib_socket_socket
=yes
10405 ac_cv_lib_socket_socket
=no
10407 rm -f core conftest.err conftest.
$ac_objext \
10408 conftest
$ac_exeext conftest.
$ac_ext
10409 LIBS
=$ac_check_lib_save_LIBS
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10412 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10413 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10414 LIBS
="-lsocket -lnsl $LIBS"
10424 # Some systems put ldexp and frexp in libm instead of libc; assume
10425 # they're both in the same place. jcf-dump needs them.
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10429 $as_echo_n "checking for library containing ldexp... " >&6; }
10430 if ${ac_cv_search_ldexp+:} false
; then :
10431 $as_echo_n "(cached) " >&6
10433 ac_func_search_save_LIBS
=$LIBS
10434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10452 for ac_lib
in '' m
; do
10453 if test -z "$ac_lib"; then
10454 ac_res
="none required"
10457 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10459 if ac_fn_cxx_try_link
"$LINENO"; then :
10460 ac_cv_search_ldexp
=$ac_res
10462 rm -f core conftest.err conftest.
$ac_objext \
10464 if ${ac_cv_search_ldexp+:} false
; then :
10468 if ${ac_cv_search_ldexp+:} false
; then :
10471 ac_cv_search_ldexp
=no
10473 rm conftest.
$ac_ext
10474 LIBS
=$ac_func_search_save_LIBS
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10477 $as_echo "$ac_cv_search_ldexp" >&6; }
10478 ac_res
=$ac_cv_search_ldexp
10479 if test "$ac_res" != no
; then :
10480 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10488 # Some systems need dlopen
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10492 $as_echo_n "checking for library containing dlopen... " >&6; }
10493 if ${ac_cv_search_dlopen+:} false
; then :
10494 $as_echo_n "(cached) " >&6
10496 ac_func_search_save_LIBS
=$LIBS
10497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10500 /* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10515 for ac_lib
in '' dl
; do
10516 if test -z "$ac_lib"; then
10517 ac_res
="none required"
10520 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10522 if ac_fn_cxx_try_link
"$LINENO"; then :
10523 ac_cv_search_dlopen
=$ac_res
10525 rm -f core conftest.err conftest.
$ac_objext \
10527 if ${ac_cv_search_dlopen+:} false
; then :
10531 if ${ac_cv_search_dlopen+:} false
; then :
10534 ac_cv_search_dlopen
=no
10536 rm conftest.
$ac_ext
10537 LIBS
=$ac_func_search_save_LIBS
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10540 $as_echo "$ac_cv_search_dlopen" >&6; }
10541 ac_res
=$ac_cv_search_dlopen
10542 if test "$ac_res" != no
; then :
10543 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10551 # Use <inttypes.h> only if it exists,
10552 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10555 $as_echo_n "checking for inttypes.h... " >&6; }
10556 if ${gcc_cv_header_inttypes_h+:} false
; then :
10557 $as_echo_n "(cached) " >&6
10559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561 #define __STDC_FORMAT_MACROS
10562 #include <sys/types.h>
10563 #include <inttypes.h>
10575 if ac_fn_cxx_try_compile
"$LINENO"; then :
10576 gcc_cv_header_inttypes_h
=yes
10578 gcc_cv_header_inttypes_h
=no
10580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10584 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10585 if test $gcc_cv_header_inttypes_h = yes; then
10587 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10591 # Look for the ZSTD package.
10601 # Check whether --with-zstd was given.
10602 if test "${with_zstd+set}" = set; then :
10603 withval
=$with_zstd;
10607 # Check whether --with-zstd-include was given.
10608 if test "${with_zstd_include+set}" = set; then :
10609 withval
=$with_zstd_include;
10613 # Check whether --with-zstd-lib was given.
10614 if test "${with_zstd_lib+set}" = set; then :
10615 withval
=$with_zstd_lib;
10618 case "x$with_zstd" in
10624 *) ZSTD_INCLUDE
=$with_zstd/include
10625 ZSTD_LIB
=$with_zstd/lib
10629 if test "x$with_zstd" != xno
; then
10630 if test "x$with_zstd_include" != x
; then
10631 ZSTD_INCLUDE
=$with_zstd_include
10633 if test "x$with_zstd_lib" != x
; then
10634 ZSTD_LIB
=$with_zstd_lib
10636 if test "x$ZSTD_INCLUDE" != x \
10637 && test "x$ZSTD_INCLUDE" != xno
; then
10638 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10640 if test "x$ZSTD_LIB" != x \
10641 && test "x$ZSTD_LIB" != xno
; then
10642 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10645 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10646 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10648 # LTO can use zstd compression algorithm
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10652 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10653 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10654 $as_echo_n "(cached) " >&6
10656 ac_func_search_save_LIBS
=$LIBS
10657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10666 char ZSTD_compress ();
10670 return ZSTD_compress ();
10675 for ac_lib
in '' zstd
; do
10676 if test -z "$ac_lib"; then
10677 ac_res
="none required"
10680 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10682 if ac_fn_cxx_try_link
"$LINENO"; then :
10683 ac_cv_search_ZSTD_compress
=$ac_res
10685 rm -f core conftest.err conftest.
$ac_objext \
10687 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10691 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10694 ac_cv_search_ZSTD_compress
=no
10696 rm conftest.
$ac_ext
10697 LIBS
=$ac_func_search_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10700 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10701 ac_res
=$ac_cv_search_ZSTD_compress
10702 if test "$ac_res" != no
; then :
10703 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10706 gcc_cv_header_zstd_h
=no
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10714 $as_echo_n "checking for zstd.h... " >&6; }
10715 if ${gcc_cv_header_zstd_h+:} false
; then :
10716 $as_echo_n "(cached) " >&6
10718 # We require version 1.3.0 or later. This is the first version that has
10719 # ZSTD_getFrameContentSize.
10720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10723 #if ZSTD_VERSION_NUMBER < 10300
10724 #error "need zstd 1.3.0 or better"
10734 if ac_fn_cxx_try_compile
"$LINENO"; then :
10735 gcc_cv_header_zstd_h
=yes
10737 gcc_cv_header_zstd_h
=no
10739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10743 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10744 if test $gcc_cv_header_zstd_h = yes; then
10746 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10748 elif test "x$with_zstd" != x
; then
10749 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10755 for ac_func
in times clock kill getrlimit setrlimit atoq \
10756 popen sysconf strsignal getrusage nl_langinfo \
10757 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10758 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 getauxval
10760 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10761 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10762 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10763 cat >>confdefs.h
<<_ACEOF
10764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10771 if test x
$ac_cv_func_mbstowcs = xyes
; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10773 $as_echo_n "checking whether mbstowcs works... " >&6; }
10774 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10775 $as_echo_n "(cached) " >&6
10777 if test "$cross_compiling" = yes; then :
10778 gcc_cv_func_mbstowcs_works
=yes
10780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10782 #include <stdlib.h>
10785 mbstowcs(0, "", 0);
10789 if ac_fn_cxx_try_run
"$LINENO"; then :
10790 gcc_cv_func_mbstowcs_works
=yes
10792 gcc_cv_func_mbstowcs_works
=no
10794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10795 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10800 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10801 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10803 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10808 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10809 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10813 cat >>confdefs.h
<<_ACEOF
10814 #define ssize_t int
10819 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10820 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10824 cat >>confdefs.h
<<_ACEOF
10825 #define caddr_t char *
10830 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10832 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10834 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10840 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10841 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10842 gcc_header_sys_mman_h
=yes
10844 gcc_header_sys_mman_h
=no
10847 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10848 if test "x$ac_cv_func_mmap" = xyes
; then :
10854 if test "$gcc_header_sys_mman_h" != yes \
10855 ||
test "$gcc_func_mmap" != yes; then
10856 gcc_cv_func_mmap_file
=no
10857 gcc_cv_func_mmap_dev_zero
=no
10858 gcc_cv_func_mmap_anon
=no
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10861 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10862 if ${gcc_cv_func_mmap_file+:} false
; then :
10863 $as_echo_n "(cached) " >&6
10865 # Add a system to this blacklist if
10866 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10867 # memory area containing the same data that you'd get if you applied
10868 # read() to the same fd. The only system known to have a problem here
10869 # is VMS, where text files have record structure.
10872 gcc_cv_func_mmap_file
=no
;;
10874 gcc_cv_func_mmap_file
=yes;;
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10878 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10880 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10881 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10882 $as_echo_n "(cached) " >&6
10884 # Add a system to this blacklist if it has mmap() but /dev/zero
10885 # does not exist, or if mmapping /dev/zero does not give anonymous
10886 # zeroed pages with both the following properties:
10887 # 1. If you map N consecutive pages in with one call, and then
10888 # unmap any subset of those pages, the pages that were not
10889 # explicitly unmapped remain accessible.
10890 # 2. If you map two adjacent blocks of memory and then unmap them
10891 # both at once, they must both go away.
10892 # Systems known to be in this category are Windows (all variants),
10895 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10896 gcc_cv_func_mmap_dev_zero
=no
;;
10898 gcc_cv_func_mmap_dev_zero
=yes;;
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10902 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10904 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10906 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10907 if ${gcc_cv_decl_map_anon+:} false
; then :
10908 $as_echo_n "(cached) " >&6
10910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912 #include <sys/types.h>
10913 #include <sys/mman.h>
10914 #include <unistd.h>
10916 #ifndef MAP_ANONYMOUS
10917 #define MAP_ANONYMOUS MAP_ANON
10923 int n = MAP_ANONYMOUS;
10928 if ac_fn_cxx_try_compile
"$LINENO"; then :
10929 gcc_cv_decl_map_anon
=yes
10931 gcc_cv_decl_map_anon
=no
10933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10936 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10938 if test $gcc_cv_decl_map_anon = no
; then
10939 gcc_cv_func_mmap_anon
=no
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10942 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10943 if ${gcc_cv_func_mmap_anon+:} false
; then :
10944 $as_echo_n "(cached) " >&6
10946 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10947 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10948 # doesn't give anonymous zeroed pages with the same properties listed
10949 # above for use of /dev/zero.
10950 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10952 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10953 gcc_cv_func_mmap_anon
=no
;;
10955 gcc_cv_func_mmap_anon
=yes;;
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10959 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10963 if test $gcc_cv_func_mmap_file = yes; then
10965 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10968 if test $gcc_cv_func_mmap_dev_zero = yes; then
10970 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10973 if test $gcc_cv_func_mmap_anon = yes; then
10975 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10982 # Under VMS, vfork works very differently than on Unix. The standard test
10983 # won't work, and it isn't easily adaptable. It makes more sense to
10985 ac_cv_func_vfork_works
=yes
10988 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10989 if test "x$ac_cv_type_pid_t" = xyes
; then :
10993 cat >>confdefs.h
<<_ACEOF
10999 for ac_header
in vfork.h
11001 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11002 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11003 cat >>confdefs.h
<<_ACEOF
11004 #define HAVE_VFORK_H 1
11010 for ac_func
in fork vfork
11012 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11013 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11014 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11015 cat >>confdefs.h
<<_ACEOF
11016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11022 if test "x$ac_cv_func_fork" = xyes
; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11024 $as_echo_n "checking for working fork... " >&6; }
11025 if ${ac_cv_func_fork_works+:} false
; then :
11026 $as_echo_n "(cached) " >&6
11028 if test "$cross_compiling" = yes; then :
11029 ac_cv_func_fork_works
=cross
11031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033 $ac_includes_default
11038 /* By Ruediger Kuhlmann. */
11039 return fork () < 0;
11045 if ac_fn_cxx_try_run
"$LINENO"; then :
11046 ac_cv_func_fork_works
=yes
11048 ac_cv_func_fork_works
=no
11050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11056 $as_echo "$ac_cv_func_fork_works" >&6; }
11059 ac_cv_func_fork_works
=$ac_cv_func_fork
11061 if test "x$ac_cv_func_fork_works" = xcross
; then
11063 *-*-amigaos* |
*-*-msdosdjgpp*)
11064 # Override, as these systems have only a dummy fork() stub
11065 ac_cv_func_fork_works
=no
11068 ac_cv_func_fork_works
=yes
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11072 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11074 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11075 if test "x$ac_cv_func_vfork" = xyes
; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11077 $as_echo_n "checking for working vfork... " >&6; }
11078 if ${ac_cv_func_vfork_works+:} false
; then :
11079 $as_echo_n "(cached) " >&6
11081 if test "$cross_compiling" = yes; then :
11082 ac_cv_func_vfork_works
=cross
11084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086 /* Thanks to Paul Eggert for this test. */
11087 $ac_includes_default
11088 #include <sys/wait.h>
11089 #ifdef HAVE_VFORK_H
11090 # include <vfork.h>
11092 /* On some sparc systems, changes by the child to local and incoming
11093 argument registers are propagated back to the parent. The compiler
11094 is told about this with #include <vfork.h>, but some compilers
11095 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11096 static variable whose address is put into a register that is
11097 clobbered by the vfork. */
11100 sparc_address_test (int arg)
11102 sparc_address_test (arg) int arg;
11105 static pid_t child;
11123 pid_t parent = getpid ();
11126 sparc_address_test (0);
11131 /* Here is another test for sparc vfork register problems. This
11132 test uses lots of local variables, at least as many local
11133 variables as main has allocated so far including compiler
11134 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11135 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11136 reuse the register of parent for one of the local variables,
11137 since it will think that parent can't possibly be used any more
11138 in this routine. Assigning to the local variable will thus
11139 munge parent in the parent process. */
11141 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11142 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11143 /* Convince the compiler that p..p7 are live; otherwise, it might
11144 use the same hardware register for all 8 local variables. */
11145 if (p != p1 || p != p2 || p != p3 || p != p4
11146 || p != p5 || p != p6 || p != p7)
11149 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11150 from child file descriptors. If the child closes a descriptor
11151 before it execs or exits, this munges the parent's descriptor
11152 as well. Test for this by closing stdout in the child. */
11153 _exit(close(fileno(stdout)) != 0);
11158 while (wait(&status) != child)
11161 /* Was there some problem with vforking? */
11164 /* Did the child fail? (This shouldn't happen.) */
11167 /* Did the vfork/compiler bug occur? */
11168 || parent != getpid()
11170 /* Did the file descriptor bug occur? */
11171 || fstat(fileno(stdout), &st) != 0
11176 if ac_fn_cxx_try_run
"$LINENO"; then :
11177 ac_cv_func_vfork_works
=yes
11179 ac_cv_func_vfork_works
=no
11181 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11182 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11187 $as_echo "$ac_cv_func_vfork_works" >&6; }
11190 if test "x$ac_cv_func_fork_works" = xcross
; then
11191 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11193 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11196 if test "x$ac_cv_func_vfork_works" = xyes
; then
11198 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11202 $as_echo "#define vfork fork" >>confdefs.h
11205 if test "x$ac_cv_func_fork_works" = xyes
; then
11207 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11213 if test "X$prefix" = "XNONE"; then
11214 acl_final_prefix
="$ac_default_prefix"
11216 acl_final_prefix
="$prefix"
11218 if test "X$exec_prefix" = "XNONE"; then
11219 acl_final_exec_prefix
='${prefix}'
11221 acl_final_exec_prefix
="$exec_prefix"
11223 acl_save_prefix
="$prefix"
11224 prefix
="$acl_final_prefix"
11225 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11226 prefix
="$acl_save_prefix"
11229 # Check whether --with-gnu-ld was given.
11230 if test "${with_gnu_ld+set}" = set; then :
11231 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11236 # Prepare PATH_SEPARATOR.
11237 # The user is always right.
11238 if test "${PATH_SEPARATOR+set}" != set; then
11239 echo "#! /bin/sh" >conf$$.sh
11240 echo "exit 0" >>conf$$.sh
11242 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11250 if test "$GCC" = yes; then
11251 # Check if gcc -print-prog-name=ld gives a path.
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11253 $as_echo_n "checking for ld used by GCC... " >&6; }
11256 # gcc leaves a trailing carriage return which upsets mingw
11257 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11259 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11262 # Accept absolute paths.
11263 [\\/]* |
[A-Za-z
]:[\\/]*)
11264 re_direlt
='/[^/][^/]*/\.\./'
11265 # Canonicalize the path of ld
11266 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11267 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11268 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11270 test -z "$LD" && LD
="$ac_prog"
11273 # If it fails, then pretend we aren't using GCC.
11277 # If it is relative, then search for the first ld in PATH.
11278 with_gnu_ld
=unknown
11281 elif test "$with_gnu_ld" = yes; then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11283 $as_echo_n "checking for GNU ld... " >&6; }
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11286 $as_echo_n "checking for non-GNU ld... " >&6; }
11288 if ${acl_cv_path_LD+:} false
; then :
11289 $as_echo_n "(cached) " >&6
11291 if test -z "$LD"; then
11292 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11293 for ac_dir
in $PATH; do
11294 test -z "$ac_dir" && ac_dir
=.
11295 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11296 acl_cv_path_LD
="$ac_dir/$ac_prog"
11297 # Check to see if the program is GNU ld. I'd rather use --version,
11298 # but apparently some GNU ld's only accept -v.
11299 # Break only if it was the GNU/non-GNU ld that we prefer.
11300 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
11301 test "$with_gnu_ld" != no
&& break
11303 test "$with_gnu_ld" != yes && break
11309 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11313 LD
="$acl_cv_path_LD"
11314 if test -n "$LD"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11316 $as_echo "$LD" >&6; }
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11321 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11324 if ${acl_cv_prog_gnu_ld+:} false
; then :
11325 $as_echo_n "(cached) " >&6
11327 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11328 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
11329 acl_cv_prog_gnu_ld
=yes
11331 acl_cv_prog_gnu_ld
=no
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11335 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11336 with_gnu_ld
=$acl_cv_prog_gnu_ld
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11341 $as_echo_n "checking for shared library run path origin... " >&6; }
11342 if ${acl_cv_rpath+:} false
; then :
11343 $as_echo_n "(cached) " >&6
11346 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11347 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11349 rm -f .
/conftest.sh
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11354 $as_echo "$acl_cv_rpath" >&6; }
11356 libext
="$acl_cv_libext"
11357 shlibext
="$acl_cv_shlibext"
11358 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11359 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11360 hardcode_direct
="$acl_cv_hardcode_direct"
11361 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11362 # Check whether --enable-rpath was given.
11363 if test "${enable_rpath+set}" = set; then :
11364 enableval
=$enable_rpath; :
11378 acl_save_prefix
="$prefix"
11379 prefix
="$acl_final_prefix"
11380 acl_save_exec_prefix
="$exec_prefix"
11381 exec_prefix
="$acl_final_exec_prefix"
11383 eval additional_includedir
=\"$includedir\"
11384 eval additional_libdir
=\"$libdir\"
11386 exec_prefix
="$acl_save_exec_prefix"
11387 prefix
="$acl_save_prefix"
11390 # Check whether --with-libiconv-prefix was given.
11391 if test "${with_libiconv_prefix+set}" = set; then :
11392 withval
=$with_libiconv_prefix;
11393 if test "X$withval" = "Xno"; then
11396 if test "X$withval" = "X"; then
11398 acl_save_prefix
="$prefix"
11399 prefix
="$acl_final_prefix"
11400 acl_save_exec_prefix
="$exec_prefix"
11401 exec_prefix
="$acl_final_exec_prefix"
11403 eval additional_includedir
=\"$includedir\"
11404 eval additional_libdir
=\"$libdir\"
11406 exec_prefix
="$acl_save_exec_prefix"
11407 prefix
="$acl_save_prefix"
11410 additional_includedir
="$withval/include"
11411 additional_libdir
="$withval/lib"
11418 # Check whether --with-libiconv-type was given.
11419 if test "${with_libiconv_type+set}" = set; then :
11420 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11422 with_libiconv_type
=auto
11425 lib_type
=`eval echo \$with_libiconv_type`
11432 names_already_handled
=
11433 names_next_round
='iconv '
11434 while test -n "$names_next_round"; do
11435 names_this_round
="$names_next_round"
11437 for name
in $names_this_round; do
11439 for n
in $names_already_handled; do
11440 if test "$n" = "$name"; then
11441 already_handled
=yes
11445 if test -z "$already_handled"; then
11446 names_already_handled
="$names_already_handled $name"
11447 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11448 eval value
=\"\
$HAVE_LIB$uppername\"
11449 if test -n "$value"; then
11450 if test "$value" = yes; then
11451 eval value
=\"\
$LIB$uppername\"
11452 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11453 eval value
=\"\
$LTLIB$uppername\"
11454 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11463 if test $use_additional = yes; then
11464 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11465 found_dir
="$additional_libdir"
11466 found_so
="$additional_libdir/lib$name.$shlibext"
11467 if test -f "$additional_libdir/lib$name.la"; then
11468 found_la
="$additional_libdir/lib$name.la"
11470 elif test x
$lib_type != xshared
; then
11471 if test -f "$additional_libdir/lib$name.$libext"; then
11472 found_dir
="$additional_libdir"
11473 found_a
="$additional_libdir/lib$name.$libext"
11474 if test -f "$additional_libdir/lib$name.la"; then
11475 found_la
="$additional_libdir/lib$name.la"
11480 if test "X$found_dir" = "X"; then
11481 for x
in $LDFLAGS $LTLIBICONV; do
11483 acl_save_prefix
="$prefix"
11484 prefix
="$acl_final_prefix"
11485 acl_save_exec_prefix
="$exec_prefix"
11486 exec_prefix
="$acl_final_exec_prefix"
11488 exec_prefix
="$acl_save_exec_prefix"
11489 prefix
="$acl_save_prefix"
11493 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11494 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11496 found_so
="$dir/lib$name.$shlibext"
11497 if test -f "$dir/lib$name.la"; then
11498 found_la
="$dir/lib$name.la"
11500 elif test x
$lib_type != xshared
; then
11501 if test -f "$dir/lib$name.$libext"; then
11503 found_a
="$dir/lib$name.$libext"
11504 if test -f "$dir/lib$name.la"; then
11505 found_la
="$dir/lib$name.la"
11511 if test "X$found_dir" != "X"; then
11516 if test "X$found_dir" != "X"; then
11517 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11518 if test "X$found_so" != "X"; then
11519 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11520 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11523 for x
in $ltrpathdirs; do
11524 if test "X$x" = "X$found_dir"; then
11529 if test -z "$haveit"; then
11530 ltrpathdirs
="$ltrpathdirs $found_dir"
11532 if test "$hardcode_direct" = yes; then
11533 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11535 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11536 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11538 for x
in $rpathdirs; do
11539 if test "X$x" = "X$found_dir"; then
11544 if test -z "$haveit"; then
11545 rpathdirs
="$rpathdirs $found_dir"
11549 for x
in $LDFLAGS $LIBICONV; do
11551 acl_save_prefix
="$prefix"
11552 prefix
="$acl_final_prefix"
11553 acl_save_exec_prefix
="$exec_prefix"
11554 exec_prefix
="$acl_final_exec_prefix"
11556 exec_prefix
="$acl_save_exec_prefix"
11557 prefix
="$acl_save_prefix"
11559 if test "X$x" = "X-L$found_dir"; then
11564 if test -z "$haveit"; then
11565 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11567 if test "$hardcode_minus_L" != no
; then
11568 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11570 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11576 if test "X$found_a" != "X"; then
11577 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11579 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11582 additional_includedir
=
11583 case "$found_dir" in
11585 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11586 additional_includedir
="$basedir/include"
11589 if test "X$additional_includedir" != "X"; then
11590 if test "X$additional_includedir" != "X/usr/include"; then
11592 if test "X$additional_includedir" = "X/usr/local/include"; then
11593 if test -n "$GCC"; then
11595 linux
*) haveit
=yes;;
11599 if test -z "$haveit"; then
11600 for x
in $CPPFLAGS $INCICONV; do
11602 acl_save_prefix
="$prefix"
11603 prefix
="$acl_final_prefix"
11604 acl_save_exec_prefix
="$exec_prefix"
11605 exec_prefix
="$acl_final_exec_prefix"
11607 exec_prefix
="$acl_save_exec_prefix"
11608 prefix
="$acl_save_prefix"
11610 if test "X$x" = "X-I$additional_includedir"; then
11615 if test -z "$haveit"; then
11616 if test -d "$additional_includedir"; then
11617 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11623 if test -n "$found_la"; then
11624 save_libdir
="$libdir"
11625 case "$found_la" in
11626 */* |
*\\*) .
"$found_la" ;;
11627 *) .
"./$found_la" ;;
11629 libdir
="$save_libdir"
11630 for dep
in $dependency_libs; do
11633 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11634 if test "X$additional_libdir" != "X/usr/lib"; then
11636 if test "X$additional_libdir" = "X/usr/local/lib"; then
11637 if test -n "$GCC"; then
11639 linux
*) haveit
=yes;;
11643 if test -z "$haveit"; then
11645 for x
in $LDFLAGS $LIBICONV; do
11647 acl_save_prefix
="$prefix"
11648 prefix
="$acl_final_prefix"
11649 acl_save_exec_prefix
="$exec_prefix"
11650 exec_prefix
="$acl_final_exec_prefix"
11652 exec_prefix
="$acl_save_exec_prefix"
11653 prefix
="$acl_save_prefix"
11655 if test "X$x" = "X-L$additional_libdir"; then
11660 if test -z "$haveit"; then
11661 if test -d "$additional_libdir"; then
11662 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11666 for x
in $LDFLAGS $LTLIBICONV; do
11668 acl_save_prefix
="$prefix"
11669 prefix
="$acl_final_prefix"
11670 acl_save_exec_prefix
="$exec_prefix"
11671 exec_prefix
="$acl_final_exec_prefix"
11673 exec_prefix
="$acl_save_exec_prefix"
11674 prefix
="$acl_save_prefix"
11676 if test "X$x" = "X-L$additional_libdir"; then
11681 if test -z "$haveit"; then
11682 if test -d "$additional_libdir"; then
11683 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11690 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11691 if test "$enable_rpath" != no
; then
11693 for x
in $rpathdirs; do
11694 if test "X$x" = "X$dir"; then
11699 if test -z "$haveit"; then
11700 rpathdirs
="$rpathdirs $dir"
11703 for x
in $ltrpathdirs; do
11704 if test "X$x" = "X$dir"; then
11709 if test -z "$haveit"; then
11710 ltrpathdirs
="$ltrpathdirs $dir"
11715 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11718 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11721 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11722 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11728 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11729 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11730 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11732 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11733 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11740 if test "X$rpathdirs" != "X"; then
11741 if test -n "$hardcode_libdir_separator"; then
11743 for found_dir
in $rpathdirs; do
11744 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11746 acl_save_libdir
="$libdir"
11748 eval flag
=\"$hardcode_libdir_flag_spec\"
11749 libdir
="$acl_save_libdir"
11750 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11752 for found_dir
in $rpathdirs; do
11753 acl_save_libdir
="$libdir"
11754 libdir
="$found_dir"
11755 eval flag
=\"$hardcode_libdir_flag_spec\"
11756 libdir
="$acl_save_libdir"
11757 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11761 if test "X$ltrpathdirs" != "X"; then
11762 for found_dir
in $ltrpathdirs; do
11763 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11774 $as_echo_n "checking for iconv... " >&6; }
11775 if ${am_cv_func_iconv+:} false
; then :
11776 $as_echo_n "(cached) " >&6
11779 am_cv_func_iconv
="no, consider installing GNU libiconv"
11781 am_save_CPPFLAGS
="$CPPFLAGS"
11782 CPPFLAGS
="$CPPFLAGS $INCICONV"
11783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785 #include <stdlib.h>
11790 iconv_t cd = iconv_open("","");
11791 iconv(cd,NULL,NULL,NULL,NULL);
11797 if ac_fn_cxx_try_link
"$LINENO"; then :
11798 am_cv_func_iconv
=yes
11800 rm -f core conftest.err conftest.
$ac_objext \
11801 conftest
$ac_exeext conftest.
$ac_ext
11802 CPPFLAGS
="$am_save_CPPFLAGS"
11804 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11805 for _libs
in .libs _libs
; do
11806 am_save_CPPFLAGS
="$CPPFLAGS"
11807 am_save_LIBS
="$LIBS"
11808 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11809 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812 #include <stdlib.h>
11817 iconv_t cd = iconv_open("","");
11818 iconv(cd,NULL,NULL,NULL,NULL);
11824 if ac_fn_cxx_try_link
"$LINENO"; then :
11825 INCICONV
="-I../libiconv/include"
11826 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11827 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11828 am_cv_lib_iconv
=yes
11829 am_cv_func_iconv
=yes
11831 rm -f core conftest.err conftest.
$ac_objext \
11832 conftest
$ac_exeext conftest.
$ac_ext
11833 CPPFLAGS
="$am_save_CPPFLAGS"
11834 LIBS
="$am_save_LIBS"
11835 if test "$am_cv_func_iconv" = "yes"; then
11841 if test "$am_cv_func_iconv" != yes; then
11842 am_save_CPPFLAGS
="$CPPFLAGS"
11843 am_save_LIBS
="$LIBS"
11844 CPPFLAGS
="$CPPFLAGS $INCICONV"
11845 LIBS
="$LIBS $LIBICONV"
11846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848 #include <stdlib.h>
11853 iconv_t cd = iconv_open("","");
11854 iconv(cd,NULL,NULL,NULL,NULL);
11860 if ac_fn_cxx_try_link
"$LINENO"; then :
11861 am_cv_lib_iconv
=yes
11862 am_cv_func_iconv
=yes
11864 rm -f core conftest.err conftest.
$ac_objext \
11865 conftest
$ac_exeext conftest.
$ac_ext
11866 CPPFLAGS
="$am_save_CPPFLAGS"
11867 LIBS
="$am_save_LIBS"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11872 $as_echo "$am_cv_func_iconv" >&6; }
11873 if test "$am_cv_func_iconv" = yes; then
11875 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11878 if test "$am_cv_lib_iconv" = yes; then
11880 for element
in $INCICONV; do
11882 for x
in $CPPFLAGS; do
11884 acl_save_prefix
="$prefix"
11885 prefix
="$acl_final_prefix"
11886 acl_save_exec_prefix
="$exec_prefix"
11887 exec_prefix
="$acl_final_exec_prefix"
11889 exec_prefix
="$acl_save_exec_prefix"
11890 prefix
="$acl_save_prefix"
11892 if test "X$x" = "X$element"; then
11897 if test -z "$haveit"; then
11898 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11903 $as_echo_n "checking how to link with libiconv... " >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11905 $as_echo "$LIBICONV" >&6; }
11913 if test "$am_cv_func_iconv" = yes; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11915 $as_echo_n "checking for iconv declaration... " >&6; }
11916 if ${am_cv_proto_iconv+:} false
; then :
11917 $as_echo_n "(cached) " >&6
11920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11923 #include <stdlib.h>
11929 #if defined(__STDC__) || defined(__cplusplus)
11930 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11943 if ac_fn_cxx_try_compile
"$LINENO"; then :
11944 am_cv_proto_iconv_arg1
=""
11946 am_cv_proto_iconv_arg1
="const"
11948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11949 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);"
11952 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11954 }$am_cv_proto_iconv" >&5
11956 }$am_cv_proto_iconv" >&6; }
11958 cat >>confdefs.h
<<_ACEOF
11959 #define ICONV_CONST $am_cv_proto_iconv_arg1
11965 # Until we have in-tree GNU iconv:
11967 if test -f "$LTLIBICONV"; then
11968 LIBICONV_DEP
=$LTLIBICONV
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11974 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11975 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11976 $as_echo_n "(cached) " >&6
11978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980 #include <locale.h>
11989 if ac_fn_cxx_try_link
"$LINENO"; then :
11990 am_cv_val_LC_MESSAGES
=yes
11992 am_cv_val_LC_MESSAGES
=no
11994 rm -f core conftest.err conftest.
$ac_objext \
11995 conftest
$ac_exeext conftest.
$ac_ext
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11998 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11999 if test $am_cv_val_LC_MESSAGES = yes; then
12001 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12008 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12009 if ${am_cv_langinfo_codeset+:} false
; then :
12010 $as_echo_n "(cached) " >&6
12012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 #include <langinfo.h>
12018 char* cs = nl_langinfo(CODESET);
12023 if ac_fn_cxx_try_link
"$LINENO"; then :
12024 am_cv_langinfo_codeset
=yes
12026 am_cv_langinfo_codeset
=no
12028 rm -f core conftest.err conftest.
$ac_objext \
12029 conftest
$ac_exeext conftest.
$ac_ext
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12033 $as_echo "$am_cv_langinfo_codeset" >&6; }
12034 if test $am_cv_langinfo_codeset = yes; then
12036 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12041 # We will need to find libiberty.h and ansidecl.h
12042 saved_CFLAGS
="$CFLAGS"
12043 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12044 saved_CXXFLAGS
="$CXXFLAGS"
12045 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12047 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12048 # normal autoconf function for these. But force definition of
12049 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12050 # basename handling in libiberty.h.
12051 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12052 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12053 #undef HAVE_DECL_BASENAME
12054 #define HAVE_DECL_BASENAME 1
12055 #include \"ansidecl.h\"
12056 #include \"system.h\"
12058 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12064 cat >>confdefs.h
<<_ACEOF
12065 #define HAVE_DECL_BASENAME $ac_have_decl
12067 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12068 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12069 #undef HAVE_DECL_BASENAME
12070 #define HAVE_DECL_BASENAME 1
12071 #include \"ansidecl.h\"
12072 #include \"system.h\"
12074 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12080 cat >>confdefs.h
<<_ACEOF
12081 #define HAVE_DECL_STRSTR $ac_have_decl
12085 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12086 madvise stpcpy strnlen strsignal strverscmp \
12087 strtol strtoul strtoll strtoull setenv unsetenv \
12088 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12089 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
12091 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12093 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12094 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12095 $as_echo_n "(cached) " >&6
12097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12100 #define $ac_tr_decl 1
12102 #include "ansidecl.h"
12103 #include "system.h"
12109 char *(*pfn) = (char *(*)) $ac_func ;
12115 if ac_fn_cxx_try_compile
"$LINENO"; then :
12116 eval "gcc_cv_have_decl_$ac_func=yes"
12118 eval "gcc_cv_have_decl_$ac_func=no"
12120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12123 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12125 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12126 #define $ac_tr_decl 1
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12132 #define $ac_tr_decl 0
12140 for ac_func
in getrlimit setrlimit getrusage
12142 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12144 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12145 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12146 $as_echo_n "(cached) " >&6
12148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12151 #define $ac_tr_decl 1
12153 #include "ansidecl.h"
12154 #include "system.h"
12155 #ifdef HAVE_SYS_RESOURCE_H
12156 #include <sys/resource.h>
12164 char *(*pfn) = (char *(*)) $ac_func ;
12170 if ac_fn_cxx_try_compile
"$LINENO"; then :
12171 eval "gcc_cv_have_decl_$ac_func=yes"
12173 eval "gcc_cv_have_decl_$ac_func=no"
12175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12178 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12181 #define $ac_tr_decl 1
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12187 #define $ac_tr_decl 0
12195 for ac_func
in mallinfo mallinfo2
12197 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12199 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12200 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12201 $as_echo_n "(cached) " >&6
12203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12206 #define $ac_tr_decl 1
12208 #include "ansidecl.h"
12209 #include "system.h"
12210 #ifdef HAVE_MALLOC_H
12211 #include <malloc.h>
12219 char *(*pfn) = (char *(*)) $ac_func ;
12225 if ac_fn_cxx_try_compile
"$LINENO"; then :
12226 eval "gcc_cv_have_decl_$ac_func=yes"
12228 eval "gcc_cv_have_decl_$ac_func=no"
12230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12233 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12235 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12236 #define $ac_tr_decl 1
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12242 #define $ac_tr_decl 0
12250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12253 #include "ansidecl.h"
12254 #include "system.h"
12255 #ifdef HAVE_SYS_RESOURCE_H
12256 #include <sys/resource.h>
12267 if ac_fn_cxx_try_compile
"$LINENO"; then :
12271 $as_echo "#define rlim_t long" >>confdefs.h
12274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12276 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12277 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12278 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12279 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12280 for ac_func
in ldgetname
12282 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12284 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12285 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12286 $as_echo_n "(cached) " >&6
12288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12291 #define $ac_tr_decl 1
12293 #include "ansidecl.h"
12294 #include "system.h"
12295 #ifdef HAVE_LDFCN_H
12306 char *(*pfn) = (char *(*)) $ac_func ;
12312 if ac_fn_cxx_try_compile
"$LINENO"; then :
12313 eval "gcc_cv_have_decl_$ac_func=yes"
12315 eval "gcc_cv_have_decl_$ac_func=no"
12317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12320 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12323 #define $ac_tr_decl 1
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12329 #define $ac_tr_decl 0
12337 for ac_func
in times
12339 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12341 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12342 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12343 $as_echo_n "(cached) " >&6
12345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12348 #define $ac_tr_decl 1
12350 #include "ansidecl.h"
12351 #include "system.h"
12352 #ifdef HAVE_SYS_TIMES_H
12353 #include <sys/times.h>
12361 char *(*pfn) = (char *(*)) $ac_func ;
12367 if ac_fn_cxx_try_compile
"$LINENO"; then :
12368 eval "gcc_cv_have_decl_$ac_func=yes"
12370 eval "gcc_cv_have_decl_$ac_func=no"
12372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12375 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12377 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12378 #define $ac_tr_decl 1
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12384 #define $ac_tr_decl 0
12392 for ac_func
in sigaltstack
12394 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12396 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12397 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12398 $as_echo_n "(cached) " >&6
12400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12403 #define $ac_tr_decl 1
12405 #include "ansidecl.h"
12406 #include "system.h"
12407 #include <signal.h>
12414 char *(*pfn) = (char *(*)) $ac_func ;
12420 if ac_fn_cxx_try_compile
"$LINENO"; then :
12421 eval "gcc_cv_have_decl_$ac_func=yes"
12423 eval "gcc_cv_have_decl_$ac_func=no"
12425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12428 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12430 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12431 #define $ac_tr_decl 1
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12437 #define $ac_tr_decl 0
12445 # More time-related stuff.
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12447 $as_echo_n "checking for struct tms... " >&6; }
12448 if ${ac_cv_struct_tms+:} false
; then :
12449 $as_echo_n "(cached) " >&6
12452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12455 #include "ansidecl.h"
12456 #include "system.h"
12457 #ifdef HAVE_SYS_TIMES_H
12458 #include <sys/times.h>
12469 if ac_fn_cxx_try_compile
"$LINENO"; then :
12470 ac_cv_struct_tms
=yes
12472 ac_cv_struct_tms
=no
12474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12477 $as_echo "$ac_cv_struct_tms" >&6; }
12478 if test $ac_cv_struct_tms = yes; then
12480 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12484 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12485 # revisit after autoconf 2.50.
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12487 $as_echo_n "checking for clock_t... " >&6; }
12488 if ${gcc_cv_type_clock_t+:} false
; then :
12489 $as_echo_n "(cached) " >&6
12492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12495 #include "ansidecl.h"
12496 #include "system.h"
12506 if ac_fn_cxx_try_compile
"$LINENO"; then :
12507 gcc_cv_type_clock_t
=yes
12509 gcc_cv_type_clock_t
=no
12511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12514 $as_echo "$gcc_cv_type_clock_t" >&6; }
12515 if test $gcc_cv_type_clock_t = yes; then
12517 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12521 # Check if F_SETLKW is supported by fcntl.
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12523 $as_echo_n "checking for F_SETLKW... " >&6; }
12524 if ${ac_cv_f_setlkw+:} false
; then :
12525 $as_echo_n "(cached) " >&6
12528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12541 return fcntl (1, F_SETLKW, &fl);
12546 if ac_fn_cxx_try_compile
"$LINENO"; then :
12551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12554 $as_echo "$ac_cv_f_setlkw" >&6; }
12555 if test $ac_cv_f_setlkw = yes; then
12557 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12561 # Check if O_CLOEXEC is defined by fcntl
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12563 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12564 if ${ac_cv_o_cloexec+:} false
; then :
12565 $as_echo_n "(cached) " >&6
12568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12576 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12581 if ac_fn_cxx_try_compile
"$LINENO"; then :
12582 ac_cv_o_cloexec
=yes
12586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12589 $as_echo "$ac_cv_o_cloexec" >&6; }
12590 if test $ac_cv_o_cloexec = yes; then
12592 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12596 # Check if O_NONBLOCK is defined by fcntl
12597 for ac_header
in fcntl.h
12599 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12600 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12601 cat >>confdefs.h
<<_ACEOF
12602 #define HAVE_FCNTL_H 1
12608 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12610 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12614 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12616 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12621 # C++ Modules would like some networking features to provide the mapping
12622 # server. You can still use modules without them though.
12623 # The following network-related checks could probably do with some
12624 # Windows and other non-linux defenses and checking.
12626 # Local socket connectivity wants AF_UNIX networking
12627 # Check for AF_UNIX networking
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12629 $as_echo_n "checking for AF_UNIX... " >&6; }
12630 if ${ac_cv_af_unix+:} false
; then :
12631 $as_echo_n "(cached) " >&6
12634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12637 #include <sys/types.h>
12638 #include <sys/socket.h>
12639 #include <sys/un.h>
12640 #include <netinet/in.h>
12646 un.sun_family = AF_UNSPEC;
12647 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12648 connect (fd, (sockaddr *)&un, sizeof (un));
12653 if ac_fn_cxx_try_compile
"$LINENO"; then :
12658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12661 $as_echo "$ac_cv_af_unix" >&6; }
12662 if test $ac_cv_af_unix = yes; then
12664 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12668 # Remote socket connectivity wants AF_INET6 networking
12669 # Check for AF_INET6 networking
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12671 $as_echo_n "checking for AF_INET6... " >&6; }
12672 if ${ac_cv_af_inet6+:} false
; then :
12673 $as_echo_n "(cached) " >&6
12676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12679 #include <sys/types.h>
12680 #include <sys/socket.h>
12681 #include <netinet/in.h>
12688 in6.sin6_family = AF_UNSPEC;
12689 struct addrinfo *addrs = 0;
12690 struct addrinfo hints;
12691 hints.ai_flags = 0;
12692 hints.ai_family = AF_INET6;
12693 hints.ai_socktype = SOCK_STREAM;
12694 hints.ai_protocol = 0;
12695 hints.ai_canonname = 0;
12698 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12699 const char *str = gai_strerror (e);
12700 freeaddrinfo (addrs);
12701 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12702 connect (fd, (sockaddr *)&in6, sizeof (in6));
12707 if ac_fn_cxx_try_compile
"$LINENO"; then :
12712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12715 $as_echo "$ac_cv_af_inet6" >&6; }
12716 if test $ac_cv_af_inet6 = yes; then
12718 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12722 # Check if _LK_LOCK is supported by _locking
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12724 $as_echo_n "checking for _LK_LOCK... " >&6; }
12725 if ${ac_cv_lk_lock+:} false
; then :
12726 $as_echo_n "(cached) " >&6
12729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12733 #include <sys/locking.h>
12739 return _locking (fd, _LK_LOCK, 0);
12744 if ac_fn_cxx_try_compile
"$LINENO"; then :
12749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12752 $as_echo "$ac_cv_lk_lock" >&6; }
12753 if test $ac_cv_lk_lock = yes; then
12755 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12759 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12760 CFLAGS
="$saved_CFLAGS"
12761 CXXFLAGS
="$saved_CXXFLAGS"
12763 # mkdir takes a single argument on some systems.
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12765 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12766 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12767 $as_echo_n "(cached) " >&6
12769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12772 #include <sys/types.h>
12773 #ifdef HAVE_SYS_STAT_H
12774 # include <sys/stat.h>
12776 #ifdef HAVE_UNISTD_H
12777 # include <unistd.h>
12779 #ifdef HAVE_DIRECT_H
12780 # include <direct.h>
12790 if ac_fn_cxx_try_compile
"$LINENO"; then :
12791 gcc_cv_mkdir_takes_one_arg
=no
12793 gcc_cv_mkdir_takes_one_arg
=yes
12795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12798 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12799 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12801 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12812 # With Setjmp/Longjmp based exception handling.
12813 # Check whether --enable-sjlj-exceptions was given.
12814 if test "${enable_sjlj_exceptions+set}" = set; then :
12815 enableval
=$enable_sjlj_exceptions; force_sjlj_exceptions
=yes
12819 force_sjlj_exceptions
=yes
12823 force_sjlj_exceptions
=no
12828 if test $force_sjlj_exceptions = yes; then
12829 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12831 cat >>confdefs.h
<<_ACEOF
12832 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12837 # --------------------------------------------------------
12838 # Build, host, and target specific configuration fragments
12839 # --------------------------------------------------------
12841 # Collect build-machine-specific information.
12842 .
${srcdir}/config.build ||
exit 1
12844 # Collect host-machine-specific information.
12845 .
${srcdir}/config.
host ||
exit 1
12849 # Collect target-machine-specific information.
12850 .
${srcdir}/config.gcc ||
exit 1
12852 extra_objs
="${host_extra_objs} ${extra_objs}"
12853 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12855 # Default the target-machine variables that were not explicitly set.
12856 if test x
"$tm_file" = x
12857 then tm_file
=$cpu_type/$cpu_type.h
; fi
12859 if test x
"$extra_headers" = x
12860 then extra_headers
=; fi
12862 if test x
$md_file = x
12863 then md_file
=$cpu_type/$cpu_type.md
; fi
12865 if test x
$out_file = x
12866 then out_file
=$cpu_type/$cpu_type.cc
; fi
12868 if test x
"$tmake_file" = x
12869 then tmake_file
=$cpu_type/t-
$cpu_type
12872 # Support --enable-initfini-array.
12873 if test x
$enable_initfini_array != xno
; then
12874 tm_file
="${tm_file} initfini-array.h"
12877 if test x
"$dwarf2" = xyes
12878 then tm_file
="$tm_file tm-dwarf2.h"
12881 # Say what files are being used for the output code and MD file.
12882 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12883 echo "Using \`$srcdir/config/$md_file' as machine description file."
12885 # If any of the xm_file variables contain nonexistent files, warn
12886 # about them and drop them.
12889 for x
in $build_xm_file; do
12890 if test -f $srcdir/config
/$x
12892 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12893 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12896 build_xm_file
="$bx"
12899 for x
in $host_xm_file; do
12900 if test -f $srcdir/config
/$x
12902 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12903 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12909 for x
in $xm_file; do
12910 if test -f $srcdir/config
/$x
12912 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12913 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12919 for f
in $tm_file; do
12922 if test $count = ax
; then
12923 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12925 echo "Using the following target machine macro files:"
12926 for f
in $tm_file; do
12927 echo " $srcdir/config/$f"
12931 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12933 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12937 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12939 cat >>confdefs.h
<<_ACEOF
12940 #define HAVE_GNU_LD $gnu_ld_bool
12944 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12946 cat >>confdefs.h
<<_ACEOF
12947 #define HAVE_GNU_AS $gnu_as_bool
12952 for f
in $host_xm_file; do
12955 if test $count = a
; then
12957 elif test $count = ax
; then
12958 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12960 echo "Using the following host machine macro files:"
12961 for f
in $host_xm_file; do
12962 echo " $srcdir/config/$f"
12965 echo "Using ${out_host_hook_obj} for host machine hooks."
12967 if test "$host_xm_file" != "$build_xm_file"; then
12969 for f
in $build_xm_file; do
12972 if test $count = a
; then
12974 elif test $count = ax
; then
12975 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12977 echo "Using the following build machine macro files:"
12978 for f
in $build_xm_file; do
12979 echo " $srcdir/config/$f"
12984 if test -n "$configured_native_system_header_dir"; then
12985 native_system_header_dir
=$configured_native_system_header_dir
12987 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12991 powerpc
*-*-darwin*)
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12993 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12994 if ${gcc_cv_mcontext_underscores+:} false
; then :
12995 $as_echo_n "(cached) " >&6
12997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
13000 #include <sys/cdefs.h>
13001 #include <sys/signal.h>
13002 #include <ucontext.h>
13003 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13006 if ac_fn_cxx_try_compile
"$LINENO"; then :
13007 gcc_cv_mcontext_underscores
=no
13009 gcc_cv_mcontext_underscores
=yes
13011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13014 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13015 if test $gcc_cv_mcontext_underscores = yes; then
13017 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13027 # Check if a valid thread package
13028 case ${enable_threads} in
13031 target_thread_file
='single'
13035 target_thread_file
='single'
13037 aix | dce | lynx | mipssde | posix | rtems | \
13038 single | tpf | vxworks | win32 | mcf
)
13039 target_thread_file
=${enable_threads}
13042 echo "${enable_threads} is an unknown thread package" 1>&2
13047 if test x
${thread_file} = x
; then
13048 # No thread file set by target-specific clauses in config.gcc,
13049 # so use file chosen by default logic above
13050 thread_file
=${target_thread_file}
13058 if test x
$enable___cxa_atexit = xyes || \
13059 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
13060 if test x
$host = x
$target; then
13062 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13063 # keyed to flag_use_cxa_atexit
13071 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13072 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
13075 echo "__cxa_atexit can't be enabled on this target"
13081 # We can't check for __cxa_atexit when building a cross, so assume
13085 if test x
$use_cxa_atexit = xyes
; then
13087 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13092 # Look for a file containing extra machine modes.
13093 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
13094 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
13097 cat >>confdefs.h
<<_ACEOF
13098 #define EXTRA_MODES_FILE "config/$extra_modes"
13103 # Convert extra_options into a form suitable for Makefile use.
13106 for f
in $extra_options; do
13107 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
13108 all_opt_files
="$all_opt_files $srcdir/config/$f"
13112 # auto-host.h is the file containing items generated by autoconf and is
13113 # the first file included by config.h.
13114 # If host=build, it is correct to have bconfig include auto-host.h
13115 # as well. If host!=build, we are in error and need to do more
13116 # work to find out the build config parameters.
13117 if test x
$host = x
$build
13119 build_auto
=auto-host.h
13120 HAVE_AUTO_BUILD
='# '
13122 # We create a subdir, then run autoconf in the subdir.
13123 # To prevent recursion we set host and build for the new
13124 # invocation of configure to the build for this invocation
13131 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
13132 *) realsrcdir
=..
/${srcdir};;
13134 # Clearing GMPINC is necessary to prevent host headers being
13135 # used by the build compiler. Defining GENERATOR_FILE stops
13136 # system.h from including gmp.h.
13137 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13138 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13139 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13140 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13141 ${realsrcdir}/configure \
13142 --enable-languages=${enable_languages-all} \
13143 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13144 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13145 --target=$target_alias --host=$build_alias \
13146 --build=$build_alias ||
exit # retaining $tempdir
13148 # We just finished tests for the build machine, so rename
13149 # the file auto-build.h in the gcc directory.
13150 mv auto-host.h ..
/auto-build.h
13153 build_auto
=auto-build.h
13159 tm_file
="${tm_file} defaults.h"
13160 tm_p_file
="${tm_p_file} tm-preds.h"
13161 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13162 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13163 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13164 # put this back in temporarily.
13165 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13171 # Compile in configure arguments.
13172 if test -f configargs.h
; then
13173 # Being re-configured.
13174 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13175 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13176 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13177 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13180 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13183 # Double all backslashes and backslash all quotes to turn
13184 # gcc_config_arguments into a C string.
13185 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13186 $gcc_config_arguments
13188 gcc_config_arguments_str
=`cat conftest.out`
13191 cat > configargs.h
<<EOF
13192 /* Generated automatically. */
13193 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13194 static const char thread_model[] = "$thread_file";
13196 static const struct {
13197 const char *name, *value;
13198 } configure_default_options[] = $configure_default_options;
13201 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13202 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13203 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13204 if test -f $srcdir/REVISION
; then
13205 gcc_REVISION
=`cat $srcdir/REVISION`
13209 cat > plugin-version.h
<<EOF
13210 #include "configargs.h"
13212 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13213 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13214 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13215 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13217 static char basever[] = "$gcc_BASEVER";
13218 static char datestamp[] = "$gcc_DATESTAMP";
13219 static char devphase[] = "$gcc_DEVPHASE";
13220 static char revision[] = "$gcc_REVISION";
13222 /* FIXME plugins: We should make the version information more precise.
13223 One way to do is to add a checksum. */
13225 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13226 devphase, revision,
13227 configuration_arguments};
13230 # Determine what GCC version number to use in filesystem paths.
13232 get_gcc_base_ver
="cat"
13234 # Check whether --with-gcc-major-version-only was given.
13235 if test "${with_gcc_major_version_only+set}" = set; then :
13236 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13237 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13245 # Internationalization
13246 # If we haven't got the data from the intl directory,
13247 # assume NLS is disabled.
13256 if test -f ..
/intl
/config.intl
; then
13257 . ..
/intl
/config.intl
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13260 $as_echo_n "checking whether NLS is requested... " >&6; }
13261 if test x
"$USE_NLS" != xyes
; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13266 $as_echo "yes" >&6; }
13268 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13272 $as_echo_n "checking for catalogs to be installed... " >&6; }
13273 # Look for .po and .gmo files in the source directory.
13276 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13277 # If there aren't any .gmo files the shell will give us the
13278 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13280 case "$cat" in *\
**)
13283 # The quadruple backslash is collapsed to a double backslash
13284 # by the backticks, then collapsed again by the double quotes,
13285 # leaving us with one backslash in the sed expression (right
13286 # before the dot that mustn't act as a wildcard).
13287 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13288 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13289 # The user is allowed to set LINGUAS to a list of languages to
13290 # install catalogs for. If it's empty that means "all of them."
13291 if test "x$LINGUAS" = x
; then
13292 CATALOGS
="$CATALOGS $cat"
13293 XLINGUAS
="$XLINGUAS $lang"
13295 case "$LINGUAS" in *$lang*)
13296 CATALOGS
="$CATALOGS $cat"
13297 XLINGUAS
="$XLINGUAS $lang"
13302 LINGUAS
="$XLINGUAS"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13304 $as_echo "$LINGUAS" >&6; }
13317 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13318 # -liconv on the link line twice.
13319 case "$LIBINTL" in *$LIBICONV*)
13323 # Check whether --enable-secureplt was given.
13324 if test "${enable_secureplt+set}" = set; then :
13325 enableval
=$enable_secureplt;
13329 # Check whether --enable-mingw-wildcard was given.
13330 if test "${enable_mingw_wildcard+set}" = set; then :
13331 enableval
=$enable_mingw_wildcard;
13333 enable_mingw_wildcard
=platform
13336 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13338 cat >>confdefs.h
<<_ACEOF
13339 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13344 # Check whether --enable-large-address-aware was given.
13345 if test "${enable_large_address_aware+set}" = set; then :
13346 enableval
=$enable_large_address_aware;
13349 if test x
"$enable_large_address_aware" = xyes
; then :
13351 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13355 # Check whether --enable-leading-mingw64-underscores was given.
13356 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13357 enableval
=$enable_leading_mingw64_underscores;
13360 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13362 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13366 # Check whether --enable-cld was given.
13367 if test "${enable_cld+set}" = set; then :
13368 enableval
=$enable_cld;
13374 # Check whether --enable-frame-pointer was given.
13375 if test "${enable_frame_pointer+set}" = set; then :
13376 enableval
=$enable_frame_pointer;
13380 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13381 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13382 enable_frame_pointer
=no
13385 enable_frame_pointer
=yes
13393 i
[34567]86-*-* | x86_64-
*-*)
13394 if test "x$enable_cld" = xyes
; then
13395 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13397 if test "x$enable_frame_pointer" = xyes
; then
13398 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13403 # Windows32 Registry support for specifying GCC installation paths.
13404 # Check whether --enable-win32-registry was given.
13405 if test "${enable_win32_registry+set}" = set; then :
13406 enableval
=$enable_win32_registry;
13411 win32 | pe | cygwin
* | mingw32
*)
13412 if test "x$enable_win32_registry" != xno
; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13414 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13415 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13416 $as_echo_n "(cached) " >&6
13418 ac_func_search_save_LIBS
=$LIBS
13419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13422 /* Override any GCC internal prototype to avoid an error.
13423 Use char because int might match the return type of a GCC
13424 builtin and then its argument prototype would still apply. */
13428 char RegOpenKeyExA ();
13432 return RegOpenKeyExA ();
13437 for ac_lib
in '' advapi32
; do
13438 if test -z "$ac_lib"; then
13439 ac_res
="none required"
13442 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13444 if ac_fn_cxx_try_link
"$LINENO"; then :
13445 ac_cv_search_RegOpenKeyExA
=$ac_res
13447 rm -f core conftest.err conftest.
$ac_objext \
13449 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13453 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13456 ac_cv_search_RegOpenKeyExA
=no
13458 rm conftest.
$ac_ext
13459 LIBS
=$ac_func_search_save_LIBS
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13462 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13463 ac_res
=$ac_cv_search_RegOpenKeyExA
13464 if test "$ac_res" != no
; then :
13465 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13468 enable_win32_registry
=no
13473 if test "x$enable_win32_registry" != xno
; then
13475 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13478 if test "x$enable_win32_registry" != xyes \
13479 && test "x$enable_win32_registry" != x
; then
13481 cat >>confdefs.h
<<_ACEOF
13482 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13490 # Get an absolute path to the GCC top-level source directory
13491 holddir
=`${PWDCMD-pwd}`
13493 topdir
=`${PWDCMD-pwd}`
13496 # Conditionalize the makefile for this host machine.
13498 for f
in ${host_xmake_file}
13500 if test -f ${srcdir}/config
/$f
13502 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13506 # Conditionalize the makefile for this target machine.
13508 for f
in ${tmake_file}
13510 if test -f ${srcdir}/config
/$f
13512 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13515 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13517 out_object_file
=`basename $out_file .cc`.o
13518 common_out_object_file
=`basename $common_out_file .cc`.o
13520 tm_file_list
="options.h"
13521 tm_include_list
="options.h insn-constants.h"
13522 for f
in $tm_file; do
13525 f
=`echo $f | sed 's/^..//'`
13526 tm_file_list
="${tm_file_list} $f"
13527 tm_include_list
="${tm_include_list} $f"
13530 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13531 tm_include_list
="${tm_include_list} $f"
13534 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13535 tm_include_list
="${tm_include_list} config/$f"
13542 for f
in $tm_p_file; do
13545 tm_p_file_list
="${tm_p_file_list} $f"
13546 tm_p_include_list
="${tm_p_include_list} $f"
13549 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13550 tm_p_include_list
="${tm_p_include_list} config/$f"
13556 for f
in $tm_d_file; do
13559 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13560 tm_d_include_list
="${tm_d_include_list} config/$f"
13567 for f
in $xm_file; do
13570 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13571 xm_include_list
="${xm_include_list} $f"
13574 xm_file_list
="${xm_file_list} $f"
13575 xm_include_list
="${xm_include_list} $f"
13578 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13579 xm_include_list
="${xm_include_list} config/$f"
13585 host_xm_include_list
=
13586 for f
in $host_xm_file; do
13589 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13590 host_xm_include_list
="${host_xm_include_list} $f"
13593 host_xm_file_list
="${host_xm_file_list} $f"
13594 host_xm_include_list
="${host_xm_include_list} $f"
13597 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13598 host_xm_include_list
="${host_xm_include_list} config/$f"
13603 build_xm_file_list
=
13604 for f
in $build_xm_file; do
13607 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13608 build_xm_include_list
="${build_xm_include_list} $f"
13610 auto-build.h | auto-host.h
)
13611 build_xm_file_list
="${build_xm_file_list} $f"
13612 build_xm_include_list
="${build_xm_include_list} $f"
13615 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13616 build_xm_include_list
="${build_xm_include_list} config/$f"
13621 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13622 # cross-compiler which does not use the native headers and libraries.
13623 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13626 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13627 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13629 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13630 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13631 if test "x$with_build_sysroot" != x
; then
13632 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13634 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13637 if test x
$host != x
$target
13639 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13641 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13642 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13643 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13646 if test "x$with_build_sysroot" != "x"; then
13647 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13648 elif test "x$with_sysroot" = x
; then
13649 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13650 elif test "x$with_sysroot" = xyes
; then
13651 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13653 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13656 target_header_dir
=${native_system_header_dir}
13659 # If this is a cross-compiler that does not
13660 # have its own set of headers then define
13663 # If this is using newlib, without having the headers available now,
13664 # then define inhibit_libc in LIBGCC2_CFLAGS.
13665 # This prevents libgcc2 from containing any code which requires libc
13667 : ${inhibit_libc=false}
13668 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13669 test x
$with_newlib = xyes
; } &&
13670 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13675 # When building gcc with a cross-compiler, we need to adjust things so
13676 # that the generator programs are still built with the native compiler.
13677 # Also, we cannot run fixincludes.
13679 # These are the normal (build=host) settings:
13680 CC_FOR_BUILD
='$(CC)'
13681 CXX_FOR_BUILD
='$(CXX)'
13682 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13683 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13684 BUILD_LDFLAGS
='$(LDFLAGS)'
13685 STMP_FIXINC
=stmp-fixinc
13687 # And these apply if build != host, or we are generating coverage data
13688 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13690 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13691 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13692 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13696 if test x
$enable_fixincludes = xno
;
13701 # Expand extra_headers to include complete path.
13702 # This substitutes for lots of t-* files.
13703 extra_headers_list
=
13704 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13705 for file in ${extra_headers} ; do
13706 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13709 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13710 if test x
"$use_gcc_tgmath" = xyes
13711 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13714 # Define collect2 in Makefile.
13715 case $host_can_use_collect2 in
13717 *) collect2
='collect2$(exeext)' ;;
13721 # Add a definition of USE_COLLECT2 if system wants one.
13722 case $use_collect2 in
13723 no
) use_collect2
= ;;
13726 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13727 xm_defines
="${xm_defines} USE_COLLECT2"
13728 case $host_can_use_collect2 in
13730 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13737 cat >>confdefs.h
<<_ACEOF
13738 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13742 # ---------------------------
13743 # Assembler & linker features
13744 # ---------------------------
13746 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13747 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13748 # However when ld-new is first executed from the build tree, libtool will
13749 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13750 # to the build tree. While doing this we need to use the previous-stage
13751 # linker, or we have an infinite loop. The presence of a shell script as
13752 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13753 # the gcc/collect-ld script. So we need to know how libtool works, or
13754 # exec-tool will fail.
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13760 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13765 macro_version
='2.2.7a'
13766 macro_revision
='1.3134'
13780 ltmain
="$ac_aux_dir/ltmain.sh"
13782 # Backslashify metacharacters that are still active within
13783 # double-quoted strings.
13784 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13786 # Same as above, but do not quote variable references.
13787 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13789 # Sed substitution to delay expansion of an escaped shell variable in a
13790 # double_quote_subst'ed string.
13791 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13793 # Sed substitution to delay expansion of an escaped single quote.
13794 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13796 # Sed substitution to avoid accidental globbing in evaled expressions
13797 no_glob_subst
='s/\*/\\\*/g'
13799 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13800 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13801 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13804 $as_echo_n "checking how to print strings... " >&6; }
13805 # Test print first, because it will be a builtin if present.
13806 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13807 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13809 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13812 # Use this function as a fallback that always works.
13813 func_fallback_echo ()
13815 eval 'cat <<_LTECHO_EOF
13819 ECHO='func_fallback_echo
'
13822 # func_echo_all arg...
13823 # Invoke $ECHO with all args, space-separated.
13830 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13831 $as_echo "printf" >&6; } ;;
13832 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13833 $as_echo "print -r" >&6; } ;;
13834 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13835 $as_echo "cat" >&6; } ;;
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13852 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13853 if ${ac_cv_path_SED+:} false; then :
13854 $as_echo_n "(cached) " >&6
13856 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13857 for ac_i in 1 2 3 4 5 6 7; do
13858 ac_script="$ac_script$as_nl$ac_script"
13860 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13861 { ac_script=; unset ac_script;}
13862 if test -z "$SED"; then
13863 ac_path_SED_found=false
13864 # Loop through the user's path and
test for each of PROGNAME-LIST
13865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13866 for as_dir
in $PATH
13869 test -z "$as_dir" && as_dir
=.
13870 for ac_prog
in sed gsed
; do
13871 for ac_exec_ext
in '' $ac_executable_extensions; do
13872 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13873 as_fn_executable_p
"$ac_path_SED" ||
continue
13874 # Check for GNU ac_path_SED and select it if it is found.
13875 # Check for GNU $ac_path_SED
13876 case `"$ac_path_SED" --version 2>&1` in
13878 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13881 $as_echo_n 0123456789 >"conftest.in"
13884 cat "conftest.in" "conftest.in" >"conftest.tmp"
13885 mv "conftest.tmp" "conftest.in"
13886 cp "conftest.in" "conftest.nl"
13887 $as_echo '' >> "conftest.nl"
13888 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13889 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13890 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13891 if test $ac_count -gt ${ac_path_SED_max-0}; then
13892 # Best one so far, save it but keep looking for a better one
13893 ac_cv_path_SED
="$ac_path_SED"
13894 ac_path_SED_max
=$ac_count
13896 # 10*(2^10) chars as input seems more than enough
13897 test $ac_count -gt 10 && break
13899 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13902 $ac_path_SED_found && break 3
13907 if test -z "$ac_cv_path_SED"; then
13908 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13911 ac_cv_path_SED
=$SED
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13916 $as_echo "$ac_cv_path_SED" >&6; }
13917 SED
="$ac_cv_path_SED"
13920 test -z "$SED" && SED
=sed
13921 Xsed
="$SED -e 1s/^X//"
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13934 $as_echo_n "checking for fgrep... " >&6; }
13935 if ${ac_cv_path_FGREP+:} false
; then :
13936 $as_echo_n "(cached) " >&6
13938 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13939 then ac_cv_path_FGREP
="$GREP -F"
13941 if test -z "$FGREP"; then
13942 ac_path_FGREP_found
=false
13943 # Loop through the user's path and test for each of PROGNAME-LIST
13944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13945 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13948 test -z "$as_dir" && as_dir
=.
13949 for ac_prog
in fgrep
; do
13950 for ac_exec_ext
in '' $ac_executable_extensions; do
13951 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13952 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13953 # Check for GNU ac_path_FGREP and select it if it is found.
13954 # Check for GNU $ac_path_FGREP
13955 case `"$ac_path_FGREP" --version 2>&1` in
13957 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13960 $as_echo_n 0123456789 >"conftest.in"
13963 cat "conftest.in" "conftest.in" >"conftest.tmp"
13964 mv "conftest.tmp" "conftest.in"
13965 cp "conftest.in" "conftest.nl"
13966 $as_echo 'FGREP' >> "conftest.nl"
13967 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13968 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13969 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13970 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13971 # Best one so far, save it but keep looking for a better one
13972 ac_cv_path_FGREP
="$ac_path_FGREP"
13973 ac_path_FGREP_max
=$ac_count
13975 # 10*(2^10) chars as input seems more than enough
13976 test $ac_count -gt 10 && break
13978 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13981 $ac_path_FGREP_found && break 3
13986 if test -z "$ac_cv_path_FGREP"; then
13987 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13990 ac_cv_path_FGREP
=$FGREP
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13996 $as_echo "$ac_cv_path_FGREP" >&6; }
13997 FGREP
="$ac_cv_path_FGREP"
14000 test -z "$GREP" && GREP
=grep
14020 # Check whether --with-gnu-ld was given.
14021 if test "${with_gnu_ld+set}" = set; then :
14022 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
14028 if test "$GCC" = yes; then
14029 # Check if gcc -print-prog-name=ld gives a path.
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14031 $as_echo_n "checking for ld used by $CC... " >&6; }
14034 # gcc leaves a trailing carriage return which upsets mingw
14035 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14037 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
14040 # Accept absolute paths.
14042 re_direlt
='/[^/][^/]*/\.\./'
14043 # Canonicalize the pathname of ld
14044 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14045 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
14046 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14048 test -z "$LD" && LD
="$ac_prog"
14051 # If it fails, then pretend we aren't using GCC.
14055 # If it is relative, then search for the first ld in PATH.
14056 with_gnu_ld
=unknown
14059 elif test "$with_gnu_ld" = yes; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14061 $as_echo_n "checking for GNU ld... " >&6; }
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14064 $as_echo_n "checking for non-GNU ld... " >&6; }
14066 if ${lt_cv_path_LD+:} false
; then :
14067 $as_echo_n "(cached) " >&6
14069 if test -z "$LD"; then
14070 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14071 for ac_dir
in $PATH; do
14073 test -z "$ac_dir" && ac_dir
=.
14074 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
14075 lt_cv_path_LD
="$ac_dir/$ac_prog"
14076 # Check to see if the program is GNU ld. I'd rather use --version,
14077 # but apparently some variants of GNU ld only accept -v.
14078 # Break only if it was the GNU/non-GNU ld that we prefer.
14079 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14080 *GNU
* |
*'with BFD'*)
14081 test "$with_gnu_ld" != no
&& break
14084 test "$with_gnu_ld" != yes && break
14091 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
14095 LD
="$lt_cv_path_LD"
14096 if test -n "$LD"; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14098 $as_echo "$LD" >&6; }
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14103 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14105 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14106 if ${lt_cv_prog_gnu_ld+:} false
; then :
14107 $as_echo_n "(cached) " >&6
14109 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14110 case `$LD -v 2>&1 </dev/null` in
14111 *GNU
* |
*'with BFD'*)
14112 lt_cv_prog_gnu_ld
=yes
14115 lt_cv_prog_gnu_ld
=no
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14120 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14121 with_gnu_ld
=$lt_cv_prog_gnu_ld
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14132 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14133 if ${lt_cv_path_NM+:} false
; then :
14134 $as_echo_n "(cached) " >&6
14136 if test -n "$NM"; then
14137 # Let the user override the nm to test.
14138 lt_nm_to_check
="$NM"
14140 lt_nm_to_check
="${ac_tool_prefix}nm"
14141 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14142 lt_nm_to_check
="$lt_nm_to_check nm"
14145 for lt_tmp_nm
in "$lt_nm_to_check"; do
14146 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14147 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14149 test -z "$ac_dir" && ac_dir
=.
14150 # Strip out any user-provided options from the nm to test twice,
14151 # the first time to test to see if nm (rather than its options) has
14152 # an explicit path, the second time to yield a file which can be
14154 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
14155 case "$tmp_nm_path" in
14156 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
14157 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
14159 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
14160 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
14161 # Check to see if the nm accepts a BSD-compat flag.
14162 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14163 # nm: unknown option "B" ignored
14164 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14165 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
14169 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
14171 lt_cv_path_NM
="$tmp_nm -p"
14175 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14176 continue # so that we can try to find one that supports BSD flags
14185 : ${lt_cv_path_NM=no}
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14188 $as_echo "$lt_cv_path_NM" >&6; }
14189 if test "$lt_cv_path_NM" != "no"; then
14190 NM
="$lt_cv_path_NM"
14192 # Didn't find any BSD compatible name lister, look for dumpbin.
14193 if test -n "$DUMPBIN"; then :
14194 # Let the user override the test.
14196 if test -n "$ac_tool_prefix"; then
14197 for ac_prog
in dumpbin
"link -dump"
14199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14200 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202 $as_echo_n "checking for $ac_word... " >&6; }
14203 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14204 $as_echo_n "(cached) " >&6
14206 if test -n "$DUMPBIN"; then
14207 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14210 for as_dir
in $PATH
14213 test -z "$as_dir" && as_dir
=.
14214 for ac_exec_ext
in '' $ac_executable_extensions; do
14215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14216 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14226 DUMPBIN
=$ac_cv_prog_DUMPBIN
14227 if test -n "$DUMPBIN"; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14229 $as_echo "$DUMPBIN" >&6; }
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14236 test -n "$DUMPBIN" && break
14239 if test -z "$DUMPBIN"; then
14240 ac_ct_DUMPBIN
=$DUMPBIN
14241 for ac_prog
in dumpbin
"link -dump"
14243 # Extract the first word of "$ac_prog", so it can be a program name with args.
14244 set dummy
$ac_prog; ac_word
=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14248 $as_echo_n "(cached) " >&6
14250 if test -n "$ac_ct_DUMPBIN"; then
14251 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14254 for as_dir
in $PATH
14257 test -z "$as_dir" && as_dir
=.
14258 for ac_exec_ext
in '' $ac_executable_extensions; do
14259 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14260 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14270 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14271 if test -n "$ac_ct_DUMPBIN"; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14273 $as_echo "$ac_ct_DUMPBIN" >&6; }
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14280 test -n "$ac_ct_DUMPBIN" && break
14283 if test "x$ac_ct_DUMPBIN" = x
; then
14286 case $cross_compiling:$ac_tool_warned in
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14290 ac_tool_warned
=yes ;;
14292 DUMPBIN
=$ac_ct_DUMPBIN
14296 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14298 DUMPBIN
="$DUMPBIN -symbols"
14306 if test "$DUMPBIN" != ":"; then
14310 test -z "$NM" && NM
=nm
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14318 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14319 if ${lt_cv_nm_interface+:} false
; then :
14320 $as_echo_n "(cached) " >&6
14322 lt_cv_nm_interface
="BSD nm"
14323 echo "int some_variable = 0;" > conftest.
$ac_ext
14324 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14325 (eval "$ac_compile" 2>conftest.err
)
14326 cat conftest.err
>&5
14327 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14328 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14329 cat conftest.err
>&5
14330 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14331 cat conftest.out
>&5
14332 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14333 lt_cv_nm_interface
="MS dumpbin"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14338 $as_echo "$lt_cv_nm_interface" >&6; }
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14341 $as_echo_n "checking whether ln -s works... " >&6; }
14343 if test "$LN_S" = "ln -s"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14345 $as_echo "yes" >&6; }
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14348 $as_echo "no, using $LN_S" >&6; }
14351 # find the maximum length of command line arguments
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14353 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14354 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14355 $as_echo_n "(cached) " >&6
14362 # On DJGPP, this test can blow up pretty badly due to problems in libc
14363 # (any single argument exceeding 2000 bytes causes a buffer overrun
14364 # during glob expansion). Even if it were fixed, the result of this
14365 # check would be larger than it should be.
14366 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14370 # Under GNU Hurd, this test is not required because there is
14371 # no limit to the length of command line arguments.
14372 # Libtool will interpret -1 as no limit whatsoever
14373 lt_cv_sys_max_cmd_len
=-1;
14376 cygwin
* | mingw
* | cegcc
*)
14377 # On Win9x/ME, this test blows up -- it succeeds, but takes
14378 # about 5 minutes as the teststring grows exponentially.
14379 # Worse, since 9x/ME are not pre-emptively multitasking,
14380 # you end up with a "frozen" computer, even though with patience
14381 # the test eventually succeeds (with a max line length of 256k).
14382 # Instead, let's just punt: use the minimum linelength reported by
14383 # all of the supported platforms: 8192 (on NT/2K/XP).
14384 lt_cv_sys_max_cmd_len
=8192;
14388 # On MiNT this can take a long time and run out of memory.
14389 lt_cv_sys_max_cmd_len
=8192;
14393 # On AmigaOS with pdksh, this test takes hours, literally.
14394 # So we just punt and use a minimum line length of 8192.
14395 lt_cv_sys_max_cmd_len
=8192;
14398 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14399 # This has been around since 386BSD, at least. Likely further.
14400 if test -x /sbin
/sysctl
; then
14401 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14402 elif test -x /usr
/sbin
/sysctl
; then
14403 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14405 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14407 # And add a safety zone
14408 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14409 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14413 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14414 lt_cv_sys_max_cmd_len
=196608
14418 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14419 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14420 # nice to cause kernel panics so lets avoid the loop below.
14421 # First set a reasonable default.
14422 lt_cv_sys_max_cmd_len
=16384
14424 if test -x /sbin
/sysconfig
; then
14425 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14426 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14431 lt_cv_sys_max_cmd_len
=102400
14433 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14434 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14435 if test -n "$kargmax"; then
14436 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14438 lt_cv_sys_max_cmd_len
=32768
14442 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14443 if test -n "$lt_cv_sys_max_cmd_len"; then
14444 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14445 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14447 # Make teststring a little bigger before we do anything with it.
14448 # a 1K string should be a reasonable start.
14449 for i
in 1 2 3 4 5 6 7 8 ; do
14450 teststring
=$teststring$teststring
14452 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14453 # If test is not a shell built-in, we'll probably end up computing a
14454 # maximum length that is only half of the actual maximum length, but
14456 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14457 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14458 test $i != 17 # 1/2 MB should be enough
14461 teststring
=$teststring$teststring
14463 # Only check the string length outside the loop.
14464 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14466 # Add a significant safety factor because C++ compilers can tack on
14467 # massive amounts of additional arguments before passing them to the
14468 # linker. It appears as though 1/2 is a usable value.
14469 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14476 if test -n $lt_cv_sys_max_cmd_len ; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14478 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14481 $as_echo "none" >&6; }
14483 max_cmd_len
=$lt_cv_sys_max_cmd_len
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14495 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14496 # Try some XSI features
14498 ( _lt_dummy
="a/b/c"
14499 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14501 && eval 'test $(( 1 + 1 )) -eq 2 \
14502 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14505 $as_echo "$xsi_shell" >&6; }
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14509 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14511 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14513 && lt_shell_append=yes
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14515 $as_echo "$lt_shell_append" >&6; }
14518 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14528 # test EBCDIC or ASCII
14529 case `echo X|tr X '\101'` in
14530 A) # ASCII based system
14531 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14532 lt_SP2NL='tr \040 \012'
14533 lt_NL2SP='tr \015\012 \040\040'
14535 *) # EBCDIC based system
14536 lt_SP2NL='tr \100 \n'
14537 lt_NL2SP='tr \r\n \100\100'
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14550 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14551 if ${lt_cv_ld_reload_flag+:} false; then :
14552 $as_echo_n "(cached
) " >&6
14554 lt_cv_ld_reload_flag='-r'
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14557 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14558 reload_flag=$lt_cv_ld_reload_flag
14559 case $reload_flag in
14561 *) reload_flag=" $reload_flag" ;;
14563 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14566 if test "$GCC" = yes; then
14567 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14569 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14582 if test -n "$ac_tool_prefix"; then
14583 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14584 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14586 $as_echo_n "checking
for $ac_word...
" >&6; }
14587 if ${ac_cv_prog_OBJDUMP+:} false; then :
14588 $as_echo_n "(cached
) " >&6
14590 if test -n "$OBJDUMP"; then
14591 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14594 for as_dir in $PATH
14597 test -z "$as_dir" && as_dir=.
14598 for ac_exec_ext in '' $ac_executable_extensions; do
14599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14600 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14601 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14610 OBJDUMP=$ac_cv_prog_OBJDUMP
14611 if test -n "$OBJDUMP"; then
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14613 $as_echo "$OBJDUMP" >&6; }
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14616 $as_echo "no
" >&6; }
14621 if test -z "$ac_cv_prog_OBJDUMP"; then
14622 ac_ct_OBJDUMP=$OBJDUMP
14623 # Extract the first word of "objdump
", so it can be a program name with args.
14624 set dummy objdump; ac_word=$2
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14626 $as_echo_n "checking
for $ac_word...
" >&6; }
14627 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14628 $as_echo_n "(cached
) " >&6
14630 if test -n "$ac_ct_OBJDUMP"; then
14631 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634 for as_dir in $PATH
14637 test -z "$as_dir" && as_dir=.
14638 for ac_exec_ext in '' $ac_executable_extensions; do
14639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14640 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14641 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14650 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14651 if test -n "$ac_ct_OBJDUMP"; then
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14653 $as_echo "$ac_ct_OBJDUMP" >&6; }
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14656 $as_echo "no
" >&6; }
14659 if test "x
$ac_ct_OBJDUMP" = x; then
14662 case $cross_compiling:$ac_tool_warned in
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14665 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14666 ac_tool_warned=yes ;;
14668 OBJDUMP=$ac_ct_OBJDUMP
14671 OBJDUMP="$ac_cv_prog_OBJDUMP"
14674 test -z "$OBJDUMP" && OBJDUMP=objdump
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14685 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14686 if ${lt_cv_deplibs_check_method+:} false; then :
14687 $as_echo_n "(cached
) " >&6
14689 lt_cv_file_magic_cmd='$MAGIC_CMD'
14690 lt_cv_file_magic_test_file=
14691 lt_cv_deplibs_check_method='unknown'
14692 # Need to set the preceding variable on all platforms that support
14693 # interlibrary dependencies.
14694 # 'none' -- dependencies not supported.
14695 # `unknown' -- same as none, but documents that we really don't know.
14696 # 'pass_all' -- all dependencies passed with no checks.
14697 # 'test_compile' -- check by making test program.
14698 # 'file_magic [[regex]]' -- check by looking for files in library path
14699 # which responds to the $file_magic_cmd with a given extended regex.
14700 # If you have `file' or equivalent on your system and you're not sure
14701 # whether `pass_all' will *always* work, you probably want this one.
14705 lt_cv_deplibs_check_method=pass_all
14709 lt_cv_deplibs_check_method=pass_all
14713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14714 lt_cv_file_magic_cmd='/usr/bin/file -L'
14715 lt_cv_file_magic_test_file=/shlib/libc.so
14719 # func_win32_libid is a shell function defined in ltmain.sh
14720 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14721 lt_cv_file_magic_cmd='func_win32_libid'
14725 # Base MSYS/MinGW do not provide the 'file' command needed by
14726 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14727 # unless we find 'file', for example because we are cross-compiling.
14728 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14729 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14730 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14731 lt_cv_file_magic_cmd='func_win32_libid'
14733 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14734 lt_cv_file_magic_cmd='$OBJDUMP -f'
14739 # use the weaker test based on 'objdump'. See mingw*.
14740 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14741 lt_cv_file_magic_cmd='$OBJDUMP -f'
14744 darwin* | rhapsody*)
14745 lt_cv_deplibs_check_method=pass_all
14748 freebsd* | dragonfly*)
14749 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14752 # Not sure whether the presence of OpenBSD here was a mistake.
14753 # Let's accept both of them until this is cleared up.
14754 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14755 lt_cv_file_magic_cmd=/usr/bin/file
14756 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14760 lt_cv_deplibs_check_method=pass_all
14765 lt_cv_deplibs_check_method=pass_all
14769 lt_cv_deplibs_check_method=pass_all
14772 hpux10.20* | hpux11*)
14773 lt_cv_file_magic_cmd=/usr/bin/file
14776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14777 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14780 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]'
14781 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14785 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14791 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14795 irix5* | irix6* | nonstopux*)
14797 *-32|*"-32 ") libmagic=32-bit;;
14798 *-n32|*"-n32 ") libmagic=N32;;
14799 *-64|*"-64 ") libmagic=64-bit;;
14800 *) libmagic=never-match;;
14802 lt_cv_deplibs_check_method=pass_all
14805 # This must be Linux ELF.
14806 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14807 lt_cv_deplibs_check_method=pass_all
14811 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14820 lt_cv_file_magic_cmd=/usr/bin/file
14821 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14825 lt_cv_deplibs_check_method=pass_all
14829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14836 osf3* | osf4* | osf5*)
14837 lt_cv_deplibs_check_method=pass_all
14841 lt_cv_deplibs_check_method=pass_all
14845 lt_cv_deplibs_check_method=pass_all
14848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14849 lt_cv_deplibs_check_method=pass_all
14853 case $host_vendor in
14855 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]'
14856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14859 lt_cv_deplibs_check_method=pass_all
14862 lt_cv_file_magic_cmd='/bin/file'
14863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14866 lt_cv_file_magic_cmd='/bin/file'
14867 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14868 lt_cv_file_magic_test_file=/lib/libc.so
14871 lt_cv_deplibs_check_method=pass_all
14874 lt_cv_deplibs_check_method=pass_all
14880 lt_cv_deplibs_check_method=pass_all
14883 # Assume VxWorks cross toolchains are built on Linux, possibly
14884 # as canadian for Windows hosts.
14885 lt_cv_deplibs_check_method=pass_all
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14891 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14892 file_magic_cmd=$lt_cv_file_magic_cmd
14893 deplibs_check_method=$lt_cv_deplibs_check_method
14894 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14908 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
14909 for plugin in $plugin_names; do
14910 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14911 if test x$plugin_so = x$plugin; then
14912 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14914 if test x$plugin_so != x$plugin; then
14915 plugin_option="--plugin $plugin_so"
14920 if test -n "$ac_tool_prefix"; then
14921 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14922 set dummy ${ac_tool_prefix}ar; ac_word=$2
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14924 $as_echo_n "checking
for $ac_word...
" >&6; }
14925 if ${ac_cv_prog_AR+:} false; then :
14926 $as_echo_n "(cached
) " >&6
14928 if test -n "$AR"; then
14929 ac_cv_prog_AR="$AR" # Let the user override the test.
14931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14932 for as_dir in $PATH
14935 test -z "$as_dir" && as_dir=.
14936 for ac_exec_ext in '' $ac_executable_extensions; do
14937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14938 ac_cv_prog_AR="${ac_tool_prefix}ar"
14939 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14949 if test -n "$AR"; then
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14951 $as_echo "$AR" >&6; }
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14954 $as_echo "no
" >&6; }
14959 if test -z "$ac_cv_prog_AR"; then
14961 # Extract the first word of "ar", so it can be a program name with args.
14962 set dummy ar; ac_word=$2
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14964 $as_echo_n "checking
for $ac_word...
" >&6; }
14965 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14966 $as_echo_n "(cached
) " >&6
14968 if test -n "$ac_ct_AR"; then
14969 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14972 for as_dir in $PATH
14975 test -z "$as_dir" && as_dir=.
14976 for ac_exec_ext in '' $ac_executable_extensions; do
14977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14978 ac_cv_prog_ac_ct_AR="ar"
14979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14988 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14989 if test -n "$ac_ct_AR"; then
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14991 $as_echo "$ac_ct_AR" >&6; }
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14994 $as_echo "no
" >&6; }
14997 if test "x
$ac_ct_AR" = x; then
15000 case $cross_compiling:$ac_tool_warned in
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15003 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15004 ac_tool_warned=yes ;;
15009 AR="$ac_cv_prog_AR"
15012 test -z "$AR" && AR=ar
15013 if test -n "$plugin_option"; then
15014 if $AR --help 2>&1 | grep -q "\
--plugin"; then
15016 $AR $plugin_option rc conftest.a conftest.c
15017 if test "$?
" != 0; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
15019 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
15021 AR="$AR $plugin_option"
15026 test -z "$AR_FLAGS" && AR_FLAGS=cru
15038 if test -n "$ac_tool_prefix"; then
15039 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
15040 set dummy ${ac_tool_prefix}strip; ac_word=$2
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15042 $as_echo_n "checking
for $ac_word...
" >&6; }
15043 if ${ac_cv_prog_STRIP+:} false; then :
15044 $as_echo_n "(cached
) " >&6
15046 if test -n "$STRIP"; then
15047 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050 for as_dir in $PATH
15053 test -z "$as_dir" && as_dir=.
15054 for ac_exec_ext in '' $ac_executable_extensions; do
15055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15056 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
15057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15066 STRIP=$ac_cv_prog_STRIP
15067 if test -n "$STRIP"; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
15069 $as_echo "$STRIP" >&6; }
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15072 $as_echo "no
" >&6; }
15077 if test -z "$ac_cv_prog_STRIP"; then
15079 # Extract the first word of "strip
", so it can be a program name with args.
15080 set dummy strip; ac_word=$2
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15082 $as_echo_n "checking
for $ac_word...
" >&6; }
15083 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15084 $as_echo_n "(cached
) " >&6
15086 if test -n "$ac_ct_STRIP"; then
15087 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15090 for as_dir in $PATH
15093 test -z "$as_dir" && as_dir=.
15094 for ac_exec_ext in '' $ac_executable_extensions; do
15095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15096 ac_cv_prog_ac_ct_STRIP="strip
"
15097 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15106 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15107 if test -n "$ac_ct_STRIP"; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
15109 $as_echo "$ac_ct_STRIP" >&6; }
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15112 $as_echo "no
" >&6; }
15115 if test "x
$ac_ct_STRIP" = x; then
15118 case $cross_compiling:$ac_tool_warned in
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15121 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15122 ac_tool_warned=yes ;;
15127 STRIP="$ac_cv_prog_STRIP"
15130 test -z "$STRIP" && STRIP=:
15137 if test -n "$ac_tool_prefix"; then
15138 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
15139 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15141 $as_echo_n "checking
for $ac_word...
" >&6; }
15142 if ${ac_cv_prog_RANLIB+:} false; then :
15143 $as_echo_n "(cached
) " >&6
15145 if test -n "$RANLIB"; then
15146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15149 for as_dir in $PATH
15152 test -z "$as_dir" && as_dir=.
15153 for ac_exec_ext in '' $ac_executable_extensions; do
15154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15155 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
15156 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15165 RANLIB=$ac_cv_prog_RANLIB
15166 if test -n "$RANLIB"; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
15168 $as_echo "$RANLIB" >&6; }
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15171 $as_echo "no
" >&6; }
15176 if test -z "$ac_cv_prog_RANLIB"; then
15177 ac_ct_RANLIB=$RANLIB
15178 # Extract the first word of "ranlib
", so it can be a program name with args.
15179 set dummy ranlib; ac_word=$2
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15181 $as_echo_n "checking
for $ac_word...
" >&6; }
15182 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15183 $as_echo_n "(cached
) " >&6
15185 if test -n "$ac_ct_RANLIB"; then
15186 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189 for as_dir in $PATH
15192 test -z "$as_dir" && as_dir=.
15193 for ac_exec_ext in '' $ac_executable_extensions; do
15194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15195 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15196 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15205 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15206 if test -n "$ac_ct_RANLIB"; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15208 $as_echo "$ac_ct_RANLIB" >&6; }
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15211 $as_echo "no
" >&6; }
15214 if test "x
$ac_ct_RANLIB" = x; then
15217 case $cross_compiling:$ac_tool_warned in
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15220 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15221 ac_tool_warned=yes ;;
15223 RANLIB=$ac_ct_RANLIB
15226 RANLIB="$ac_cv_prog_RANLIB"
15229 test -z "$RANLIB" && RANLIB=:
15230 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
15231 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
15232 RANLIB="$RANLIB $plugin_option"
15241 # Determine commands to create old-style static archives.
15242 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15243 old_postinstall_cmds='chmod 644 $oldlib'
15244 old_postuninstall_cmds=
15246 if test -n "$RANLIB"; then
15249 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15252 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15255 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15260 lock_old_archive_extraction=yes ;;
15262 lock_old_archive_extraction=no ;;
15303 # If no C compiler was specified, use CC.
15306 # If no C compiler flags were specified, use CFLAGS.
15307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15309 # Allow CC to be a program name with arguments.
15313 # Check for command to grab the raw symbol name followed by C symbol from nm.
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15315 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15316 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15317 $as_echo_n "(cached
) " >&6
15320 # These are sane defaults that work on at least a few old systems.
15321 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15323 # Character class describing NM global symbol codes.
15324 symcode='[BCDEGRST]'
15326 # Regexp to match symbols that can be accessed directly from C.
15327 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15329 # Define system-specific variables.
15334 cygwin* | mingw* | pw32* | cegcc*)
15335 symcode='[ABCDGISTW]'
15338 if test "$host_cpu" = ia64; then
15339 symcode='[ABCDEGRST]'
15342 irix* | nonstopux*)
15343 symcode='[BCDEGRST]'
15346 symcode='[BCDEGQRST]'
15357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15365 # If we're using GNU nm, then use its standard symbol codes.
15366 case `$NM -V 2>&1` in
15367 *GNU* | *'with BFD'*)
15368 symcode='[ABCDGIRSTW]' ;;
15371 # Transform an extracted symbol line into a proper C declaration.
15372 # Some systems (esp. on ia64) link data and code symbols differently,
15373 # so use this general approach.
15374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15376 # Transform an extracted symbol line into symbol name and symbol address
15377 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15378 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'"
15380 # Handle CRLF in mingw tool chain
15384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15388 # Try without a prefix underscore, then with it.
15389 for ac_symprfx in "" "_
"; do
15391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15392 symxfrm="\\1 $ac_symprfx\\2 \\2"
15394 # Write the raw and C identifiers.
15395 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15396 # Fake it for dumpbin and say T for any non-static function
15397 # and D for any global variable.
15398 # Also find C++ and __fastcall symbols from MSVC++,
15399 # which start with @ or ?.
15400 lt_cv_sys_global_symbol_pipe="$AWK '"\
15401 " {last_section=section; section=\$ 3};"\
15402 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15403 " \$ 0!~/External *\|/{next};"\
15404 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15405 " {if(hide[section]) next};"\
15406 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15407 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15408 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15409 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15410 " ' prfx
=^
$ac_symprfx"
15412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15415 # Check to see that the pipe works correctly.
15419 cat > conftest.$ac_ext <<_LT_EOF
15424 void nm_test_func(void);
15425 void nm_test_func(void){}
15429 int main(){nm_test_var='a';nm_test_func();return(0);}
15432 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15433 (eval $ac_compile) 2>&5
15435 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15436 test $ac_status = 0; }; then
15437 # Now try to grab the symbols.
15439 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15440 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15442 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15443 test $ac_status = 0; } && test -s "$nlist"; then
15444 # Try sorting and uniquifying the output.
15445 if sort "$nlist" | uniq > "$nlist"T; then
15446 mv -f "$nlist"T "$nlist"
15451 # Make sure that we snagged all the symbols we need.
15452 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15453 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15454 cat <<_LT_EOF > conftest.$ac_ext
15460 # Now generate the symbol file.
15461 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15463 cat <<_LT_EOF >> conftest.$ac_ext
15465 /* The mapping between symbol names and symbols. */
15470 lt__PROGRAM__LTX_preloaded_symbols[] =
15472 { "@PROGRAM@
", (void *) 0 },
15474 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15475 cat <<\_LT_EOF >> conftest.$ac_ext
15479 /* This works around a problem in FreeBSD linker */
15480 #ifdef FREEBSD_WORKAROUND
15481 static const void *lt_preloaded_setup() {
15482 return lt__PROGRAM__LTX_preloaded_symbols;
15490 # Now try linking the two files.
15491 mv conftest.$ac_objext conftstm.$ac_objext
15492 lt_save_LIBS="$LIBS"
15493 lt_save_CFLAGS="$CFLAGS"
15494 LIBS="conftstm.
$ac_objext"
15495 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15496 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15497 (eval $ac_link) 2>&5
15499 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15500 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15503 LIBS="$lt_save_LIBS"
15504 CFLAGS="$lt_save_CFLAGS"
15506 echo "cannot
find nm_test_func
in $nlist" >&5
15509 echo "cannot
find nm_test_var
in $nlist" >&5
15512 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15515 echo "$progname: failed program was
:" >&5
15516 cat conftest.$ac_ext >&5
15518 rm -rf conftest* conftst*
15520 # Do not use the global_symbol_pipe unless it works.
15521 if test "$pipe_works" = yes; then
15524 lt_cv_sys_global_symbol_pipe=
15530 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15531 lt_cv_sys_global_symbol_to_cdecl=
15533 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15535 $as_echo "failed
" >&6; }
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15538 $as_echo "ok
" >&6; }
15562 # Check whether --enable-libtool-lock was given.
15563 if test "${enable_libtool_lock+set}" = set; then :
15564 enableval=$enable_libtool_lock;
15567 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15569 # Some flags need to be propagated to the compiler or linker for good
15573 # Find out which ABI we are using.
15574 echo 'int i;' > conftest.$ac_ext
15575 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15576 (eval $ac_compile) 2>&5
15578 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15579 test $ac_status = 0; }; then
15580 case `/usr/bin/file conftest.$ac_objext` in
15582 HPUX_IA64_MODE="32"
15585 HPUX_IA64_MODE="64"
15592 # Find out which ABI we are using.
15593 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15594 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15595 (eval $ac_compile) 2>&5
15597 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15598 test $ac_status = 0; }; then
15599 if test "$lt_cv_prog_gnu_ld" = yes; then
15600 case `/usr/bin/file conftest.$ac_objext` in
15602 LD="${LD-ld} -melf32bsmip"
15605 LD="${LD-ld} -melf32bmipn32"
15608 LD="${LD-ld} -melf64bmip"
15612 case `/usr/bin/file conftest.$ac_objext` in
15628 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15629 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15630 # Find out which ABI we are using.
15631 echo 'int i;' > conftest.$ac_ext
15632 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15633 (eval $ac_compile) 2>&5
15635 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15636 test $ac_status = 0; }; then
15637 case `/usr/bin/file conftest.o` in
15640 x86_64-*kfreebsd*-gnu)
15641 LD="${LD-ld} -m elf_i386_fbsd
"
15644 case `/usr/bin/file conftest.o` in
15646 LD="${LD-ld} -m elf32_x86_64
"
15649 LD="${LD-ld} -m elf_i386
"
15653 powerpc64le-*linux*)
15654 LD="${LD-ld} -m elf32lppclinux
"
15657 LD="${LD-ld} -m elf32ppclinux
"
15660 LD="${LD-ld} -m elf_s390
"
15663 LD="${LD-ld} -m elf32_sparc
"
15669 x86_64-*kfreebsd*-gnu)
15670 LD="${LD-ld} -m elf_x86_64_fbsd
"
15673 LD="${LD-ld} -m elf_x86_64
"
15676 LD="${LD-ld} -m elf64lppc
"
15679 LD="${LD-ld} -m elf64ppc
"
15681 s390*-*linux*|s390*-*tpf*)
15682 LD="${LD-ld} -m elf64_s390
"
15685 LD="${LD-ld} -m elf64_sparc
"
15695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15696 SAVE_CFLAGS="$CFLAGS"
15697 CFLAGS="$CFLAGS -belf"
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15699 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15700 if ${lt_cv_cc_needs_belf+:} false; then :
15701 $as_echo_n "(cached
) " >&6
15704 ac_cpp='$CPP $CPPFLAGS'
15705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15720 if ac_fn_c_try_link "$LINENO"; then :
15721 lt_cv_cc_needs_belf=yes
15723 lt_cv_cc_needs_belf=no
15725 rm -f core conftest.err conftest.$ac_objext \
15726 conftest$ac_exeext conftest.$ac_ext
15728 ac_cpp='$CPP $CPPFLAGS'
15729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15735 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15736 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15737 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15738 CFLAGS="$SAVE_CFLAGS"
15742 # Find out which ABI we are using.
15743 echo 'int i;' > conftest.$ac_ext
15744 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15745 (eval $ac_compile) 2>&5
15747 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15748 test $ac_status = 0; }; then
15749 case `/usr/bin/file conftest.o` in
15751 case $lt_cv_prog_gnu_ld in
15752 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15754 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15766 need_locks="$enable_libtool_lock"
15770 rhapsody* | darwin*)
15771 if test -n "$ac_tool_prefix"; then
15772 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15773 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15775 $as_echo_n "checking
for $ac_word...
" >&6; }
15776 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15777 $as_echo_n "(cached
) " >&6
15779 if test -n "$DSYMUTIL"; then
15780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15783 for as_dir in $PATH
15786 test -z "$as_dir" && as_dir=.
15787 for ac_exec_ext in '' $ac_executable_extensions; do
15788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15789 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15790 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15799 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15800 if test -n "$DSYMUTIL"; then
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15802 $as_echo "$DSYMUTIL" >&6; }
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15805 $as_echo "no
" >&6; }
15810 if test -z "$ac_cv_prog_DSYMUTIL"; then
15811 ac_ct_DSYMUTIL=$DSYMUTIL
15812 # Extract the first word of "dsymutil
", so it can be a program name with args.
15813 set dummy dsymutil; ac_word=$2
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15815 $as_echo_n "checking
for $ac_word...
" >&6; }
15816 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15817 $as_echo_n "(cached
) " >&6
15819 if test -n "$ac_ct_DSYMUTIL"; then
15820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15823 for as_dir in $PATH
15826 test -z "$as_dir" && as_dir=.
15827 for ac_exec_ext in '' $ac_executable_extensions; do
15828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15829 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15830 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15839 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15840 if test -n "$ac_ct_DSYMUTIL"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15842 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15845 $as_echo "no
" >&6; }
15848 if test "x
$ac_ct_DSYMUTIL" = x; then
15851 case $cross_compiling:$ac_tool_warned in
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15854 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15855 ac_tool_warned=yes ;;
15857 DSYMUTIL=$ac_ct_DSYMUTIL
15860 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15863 if test -n "$ac_tool_prefix"; then
15864 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15865 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15867 $as_echo_n "checking
for $ac_word...
" >&6; }
15868 if ${ac_cv_prog_NMEDIT+:} false; then :
15869 $as_echo_n "(cached
) " >&6
15871 if test -n "$NMEDIT"; then
15872 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15878 test -z "$as_dir" && as_dir=.
15879 for ac_exec_ext in '' $ac_executable_extensions; do
15880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15882 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15891 NMEDIT=$ac_cv_prog_NMEDIT
15892 if test -n "$NMEDIT"; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15894 $as_echo "$NMEDIT" >&6; }
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15897 $as_echo "no
" >&6; }
15902 if test -z "$ac_cv_prog_NMEDIT"; then
15903 ac_ct_NMEDIT=$NMEDIT
15904 # Extract the first word of "nmedit
", so it can be a program name with args.
15905 set dummy nmedit; ac_word=$2
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15907 $as_echo_n "checking
for $ac_word...
" >&6; }
15908 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15909 $as_echo_n "(cached
) " >&6
15911 if test -n "$ac_ct_NMEDIT"; then
15912 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15915 for as_dir in $PATH
15918 test -z "$as_dir" && as_dir=.
15919 for ac_exec_ext in '' $ac_executable_extensions; do
15920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15921 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15922 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15931 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15932 if test -n "$ac_ct_NMEDIT"; then
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15934 $as_echo "$ac_ct_NMEDIT" >&6; }
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15937 $as_echo "no
" >&6; }
15940 if test "x
$ac_ct_NMEDIT" = x; then
15943 case $cross_compiling:$ac_tool_warned in
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15946 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15947 ac_tool_warned=yes ;;
15949 NMEDIT=$ac_ct_NMEDIT
15952 NMEDIT="$ac_cv_prog_NMEDIT"
15955 if test -n "$ac_tool_prefix"; then
15956 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15957 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15959 $as_echo_n "checking
for $ac_word...
" >&6; }
15960 if ${ac_cv_prog_LIPO+:} false; then :
15961 $as_echo_n "(cached
) " >&6
15963 if test -n "$LIPO"; then
15964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15967 for as_dir in $PATH
15970 test -z "$as_dir" && as_dir=.
15971 for ac_exec_ext in '' $ac_executable_extensions; do
15972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15973 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15974 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15983 LIPO=$ac_cv_prog_LIPO
15984 if test -n "$LIPO"; then
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15986 $as_echo "$LIPO" >&6; }
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15989 $as_echo "no
" >&6; }
15994 if test -z "$ac_cv_prog_LIPO"; then
15996 # Extract the first word of "lipo
", so it can be a program name with args.
15997 set dummy lipo; ac_word=$2
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15999 $as_echo_n "checking
for $ac_word...
" >&6; }
16000 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
16001 $as_echo_n "(cached
) " >&6
16003 if test -n "$ac_ct_LIPO"; then
16004 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16007 for as_dir in $PATH
16010 test -z "$as_dir" && as_dir=.
16011 for ac_exec_ext in '' $ac_executable_extensions; do
16012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16013 ac_cv_prog_ac_ct_LIPO="lipo
"
16014 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16023 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16024 if test -n "$ac_ct_LIPO"; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
16026 $as_echo "$ac_ct_LIPO" >&6; }
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16029 $as_echo "no
" >&6; }
16032 if test "x
$ac_ct_LIPO" = x; then
16035 case $cross_compiling:$ac_tool_warned in
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16038 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16039 ac_tool_warned=yes ;;
16044 LIPO="$ac_cv_prog_LIPO"
16047 if test -n "$ac_tool_prefix"; then
16048 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
16049 set dummy ${ac_tool_prefix}otool; ac_word=$2
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16051 $as_echo_n "checking
for $ac_word...
" >&6; }
16052 if ${ac_cv_prog_OTOOL+:} false; then :
16053 $as_echo_n "(cached
) " >&6
16055 if test -n "$OTOOL"; then
16056 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16059 for as_dir in $PATH
16062 test -z "$as_dir" && as_dir=.
16063 for ac_exec_ext in '' $ac_executable_extensions; do
16064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16065 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
16066 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16075 OTOOL=$ac_cv_prog_OTOOL
16076 if test -n "$OTOOL"; then
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
16078 $as_echo "$OTOOL" >&6; }
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16081 $as_echo "no
" >&6; }
16086 if test -z "$ac_cv_prog_OTOOL"; then
16088 # Extract the first word of "otool
", so it can be a program name with args.
16089 set dummy otool; ac_word=$2
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16091 $as_echo_n "checking
for $ac_word...
" >&6; }
16092 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16093 $as_echo_n "(cached
) " >&6
16095 if test -n "$ac_ct_OTOOL"; then
16096 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16099 for as_dir in $PATH
16102 test -z "$as_dir" && as_dir=.
16103 for ac_exec_ext in '' $ac_executable_extensions; do
16104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16105 ac_cv_prog_ac_ct_OTOOL="otool
"
16106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16115 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16116 if test -n "$ac_ct_OTOOL"; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
16118 $as_echo "$ac_ct_OTOOL" >&6; }
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16121 $as_echo "no
" >&6; }
16124 if test "x
$ac_ct_OTOOL" = x; then
16127 case $cross_compiling:$ac_tool_warned in
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16130 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16131 ac_tool_warned=yes ;;
16136 OTOOL="$ac_cv_prog_OTOOL"
16139 if test -n "$ac_tool_prefix"; then
16140 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
16141 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16143 $as_echo_n "checking
for $ac_word...
" >&6; }
16144 if ${ac_cv_prog_OTOOL64+:} false; then :
16145 $as_echo_n "(cached
) " >&6
16147 if test -n "$OTOOL64"; then
16148 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16151 for as_dir in $PATH
16154 test -z "$as_dir" && as_dir=.
16155 for ac_exec_ext in '' $ac_executable_extensions; do
16156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16157 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
16158 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16167 OTOOL64=$ac_cv_prog_OTOOL64
16168 if test -n "$OTOOL64"; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
16170 $as_echo "$OTOOL64" >&6; }
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16173 $as_echo "no
" >&6; }
16178 if test -z "$ac_cv_prog_OTOOL64"; then
16179 ac_ct_OTOOL64=$OTOOL64
16180 # Extract the first word of "otool64
", so it can be a program name with args.
16181 set dummy otool64; ac_word=$2
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16183 $as_echo_n "checking
for $ac_word...
" >&6; }
16184 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16185 $as_echo_n "(cached
) " >&6
16187 if test -n "$ac_ct_OTOOL64"; then
16188 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16191 for as_dir in $PATH
16194 test -z "$as_dir" && as_dir=.
16195 for ac_exec_ext in '' $ac_executable_extensions; do
16196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16197 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16198 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16207 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16208 if test -n "$ac_ct_OTOOL64"; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16210 $as_echo "$ac_ct_OTOOL64" >&6; }
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16213 $as_echo "no
" >&6; }
16216 if test "x
$ac_ct_OTOOL64" = x; then
16219 case $cross_compiling:$ac_tool_warned in
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16222 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16223 ac_tool_warned=yes ;;
16225 OTOOL64=$ac_ct_OTOOL64
16228 OTOOL64="$ac_cv_prog_OTOOL64"
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16258 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16259 if ${lt_cv_apple_cc_single_mod+:} false; then :
16260 $as_echo_n "(cached
) " >&6
16262 lt_cv_apple_cc_single_mod=no
16263 if test -z "${LT_MULTI_MODULE}"; then
16264 # By default we will add the -single_module flag. You can override
16265 # by either setting the environment variable LT_MULTI_MODULE
16266 # non-empty at configure time, or by adding -multi_module to the
16268 rm -rf libconftest.dylib*
16269 echo "int foo
(void
){return 1;}" > conftest.c
16270 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16271 -dynamiclib -Wl,-single_module conftest.c
" >&5
16272 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16273 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16275 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16276 lt_cv_apple_cc_single_mod=yes
16278 cat conftest.err >&5
16280 rm -rf libconftest.dylib*
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16285 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16287 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16288 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16289 $as_echo_n "(cached
) " >&6
16291 lt_cv_ld_exported_symbols_list=no
16292 save_LDFLAGS=$LDFLAGS
16293 echo "_main
" > conftest.sym
16294 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16306 if ac_fn_c_try_link "$LINENO"; then :
16307 lt_cv_ld_exported_symbols_list=yes
16309 lt_cv_ld_exported_symbols_list=no
16311 rm -f core conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
16313 LDFLAGS="$save_LDFLAGS"
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16317 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16319 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16320 if ${lt_cv_ld_force_load+:} false; then :
16321 $as_echo_n "(cached
) " >&6
16323 lt_cv_ld_force_load=no
16324 cat > conftest.c << _LT_EOF
16325 int forced_loaded() { return 2;}
16327 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16328 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16329 echo "$AR cru libconftest.a conftest.o
" >&5
16330 $AR cru libconftest.a conftest.o 2>&5
16331 cat > conftest.c << _LT_EOF
16332 int main() { return 0;}
16334 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16335 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16337 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16338 lt_cv_ld_force_load=yes
16340 cat conftest.err >&5
16342 rm -f conftest.err libconftest.a conftest conftest.c
16343 rm -rf conftest.dSYM
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16347 $as_echo "$lt_cv_ld_force_load" >&6; }
16348 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16349 # build without first building modern cctools / linker.
16350 case $host_cpu-$host_os in
16351 *-rhapsody* | *-darwin1.[012])
16352 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16354 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16356 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16357 # deployment target is forced to an earlier version.
16358 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16359 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16362 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16369 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16370 _lt_dar_single_mod='$single_module'
16372 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16373 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16375 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16377 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16378 _lt_dsymutil='~$DSYMUTIL $lib || :'
16386 for ac_header in dlfcn.h
16388 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16389 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16390 cat >>confdefs.h <<_ACEOF
16391 #define HAVE_DLFCN_H 1
16408 enable_win32_dll=no
16411 # Check whether --enable-shared was given.
16412 if test "${enable_shared+set}" = set; then :
16413 enableval=$enable_shared; p=${PACKAGE-default}
16415 yes) enable_shared=yes ;;
16416 no) enable_shared=no ;;
16419 # Look at the argument we got. We use all the common list separators.
16420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16421 for pkg in $enableval; do
16423 if test "X
$pkg" = "X
$p"; then
16442 # Check whether --enable-static was given.
16443 if test "${enable_static+set}" = set; then :
16444 enableval=$enable_static; p=${PACKAGE-default}
16446 yes) enable_static=yes ;;
16447 no) enable_static=no ;;
16450 # Look at the argument we got. We use all the common list separators.
16451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16452 for pkg in $enableval; do
16454 if test "X
$pkg" = "X
$p"; then
16474 # Check whether --with-pic was given.
16475 if test "${with_pic+set}" = set; then :
16476 withval=$with_pic; pic_mode="$withval"
16482 test -z "$pic_mode" && pic_mode=default
16490 # Check whether --enable-fast-install was given.
16491 if test "${enable_fast_install+set}" = set; then :
16492 enableval=$enable_fast_install; p=${PACKAGE-default}
16494 yes) enable_fast_install=yes ;;
16495 no) enable_fast_install=no ;;
16497 enable_fast_install=no
16498 # Look at the argument we got. We use all the common list separators.
16499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16500 for pkg in $enableval; do
16502 if test "X
$pkg" = "X
$p"; then
16503 enable_fast_install=yes
16510 enable_fast_install=yes
16523 # This can be used to rebuild libtool when needed
16524 LIBTOOL_DEPS="$ltmain"
16526 # Always use our own libtool.
16527 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16554 test -z "$LN_S" && LN_S="ln -s"
16569 if test -n "${ZSH_VERSION+set}" ; then
16570 setopt NO_GLOB_SUBST
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16574 $as_echo_n "checking
for objdir...
" >&6; }
16575 if ${lt_cv_objdir+:} false; then :
16576 $as_echo_n "(cached
) " >&6
16578 rm -f .libs 2>/dev/null
16579 mkdir .libs 2>/dev/null
16580 if test -d .libs; then
16583 # MS-DOS does not allow filenames that begin with a dot.
16586 rmdir .libs 2>/dev/null
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16589 $as_echo "$lt_cv_objdir" >&6; }
16590 objdir=$lt_cv_objdir
16596 cat >>confdefs.h <<_ACEOF
16597 #define LT_OBJDIR "$lt_cv_objdir/"
16605 # AIX sometimes has problems with the GCC collect2 program. For some
16606 # reason, if we set the COLLECT_NAMES environment variable, the problems
16607 # vanish in a puff of smoke.
16608 if test "X
${COLLECT_NAMES+set}" != Xset; then
16610 export COLLECT_NAMES
16615 # Global variables:
16617 can_build_shared=yes
16619 # All known linkers require a `.a' archive for static linking (except MSVC,
16620 # which needs '.lib').
16623 with_gnu_ld="$lt_cv_prog_gnu_ld"
16626 old_CFLAGS="$CFLAGS"
16628 # Set sane defaults for various variables
16629 test -z "$CC" && CC=cc
16630 test -z "$LTCC" && LTCC=$CC
16631 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16632 test -z "$LD" && LD=ld
16633 test -z "$ac_objext" && ac_objext=o
16635 for cc_temp in $compiler""; do
16637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16643 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16646 # Only perform the check for file, if the check method requires it
16647 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16648 case $deplibs_check_method in
16650 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16652 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16653 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16654 $as_echo_n "(cached
) " >&6
16658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16661 lt_save_MAGIC_CMD="$MAGIC_CMD"
16662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16663 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16664 for ac_dir in $ac_dummy; do
16666 test -z "$ac_dir" && ac_dir=.
16667 if test -f $ac_dir/${ac_tool_prefix}file; then
16668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16669 if test -n "$file_magic_test_file"; then
16670 case $deplibs_check_method in
16672 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16675 $EGREP "$file_magic_regex" > /dev/null; then
16680 *** Warning: the command libtool uses to detect shared libraries,
16681 *** $file_magic_cmd, produces output that libtool cannot recognize.
16682 *** The result is that libtool may fail to recognize shared libraries
16683 *** as such. This will affect the creation of libtool libraries that
16684 *** depend on shared libraries, but programs linked with such libtool
16685 *** libraries will work regardless of this problem. Nevertheless, you
16686 *** may want to report the problem to your system manager and/or to
16687 *** bug-libtool@gnu.org
16697 MAGIC_CMD="$lt_save_MAGIC_CMD"
16702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16703 if test -n "$MAGIC_CMD"; then
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16705 $as_echo "$MAGIC_CMD" >&6; }
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16708 $as_echo "no
" >&6; }
16715 if test -z "$lt_cv_path_MAGIC_CMD"; then
16716 if test -n "$ac_tool_prefix"; then
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16718 $as_echo_n "checking
for file...
" >&6; }
16719 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16720 $as_echo_n "(cached
) " >&6
16724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16727 lt_save_MAGIC_CMD="$MAGIC_CMD"
16728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16729 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16730 for ac_dir in $ac_dummy; do
16732 test -z "$ac_dir" && ac_dir=.
16733 if test -f $ac_dir/file; then
16734 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16735 if test -n "$file_magic_test_file"; then
16736 case $deplibs_check_method in
16738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16741 $EGREP "$file_magic_regex" > /dev/null; then
16746 *** Warning: the command libtool uses to detect shared libraries,
16747 *** $file_magic_cmd, produces output that libtool cannot recognize.
16748 *** The result is that libtool may fail to recognize shared libraries
16749 *** as such. This will affect the creation of libtool libraries that
16750 *** depend on shared libraries, but programs linked with such libtool
16751 *** libraries will work regardless of this problem. Nevertheless, you
16752 *** may want to report the problem to your system manager and/or to
16753 *** bug-libtool@gnu.org
16763 MAGIC_CMD="$lt_save_MAGIC_CMD"
16768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16769 if test -n "$MAGIC_CMD"; then
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16771 $as_echo "$MAGIC_CMD" >&6; }
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16774 $as_echo "no
" >&6; }
16787 # Use C for the default configuration in the libtool script
16791 ac_cpp='$CPP $CPPFLAGS'
16792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16797 # Source file extension for C test sources.
16800 # Object file extension for compiled C test sources.
16804 # Code to be used in simple compile tests
16805 lt_simple_compile_test_code="int some_variable
= 0;"
16807 # Code to be used in simple link tests
16808 lt_simple_link_test_code='int main(){return(0);}'
16816 # If no C compiler was specified, use CC.
16819 # If no C compiler flags were specified, use CFLAGS.
16820 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16822 # Allow CC to be a program name with arguments.
16825 # Save the default compiler, since it gets overwritten when the other
16826 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16827 compiler_DEFAULT=$CC
16829 # save warnings/boilerplate of simple test code
16830 ac_outfile=conftest.$ac_objext
16831 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16833 _lt_compiler_boilerplate=`cat conftest.err`
16836 ac_outfile=conftest.$ac_objext
16837 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16839 _lt_linker_boilerplate=`cat conftest.err`
16844 ## There is no encapsulation within the following macros, do not change
16845 ## the running order or otherwise move them around unless you know exactly
16846 ## what you are doing...
16847 if test -n "$compiler"; then
16849 lt_prog_compiler_no_builtin_flag=
16851 if test "$GCC" = yes; then
16852 case $cc_basename in
16854 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16856 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16860 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16861 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16862 $as_echo_n "(cached
) " >&6
16864 lt_cv_prog_compiler_rtti_exceptions=no
16865 ac_outfile=conftest.$ac_objext
16866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16867 lt_compiler_flag="-fno-rtti -fno-exceptions"
16868 # Insert the option either (1) after the last *FLAGS variable, or
16869 # (2) before a word containing "conftest.
", or (3) at the end.
16870 # Note that $ac_compile itself does not contain backslashes and begins
16871 # with a dollar sign (not a hyphen), so the echo should work correctly.
16872 # The option is referenced via a variable to avoid confusing sed.
16873 lt_compile=`echo "$ac_compile" | $SED \
16874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16876 -e 's:$: $lt_compiler_flag:'`
16877 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16878 (eval "$lt_compile" 2>conftest.err)
16880 cat conftest.err >&5
16881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16882 if (exit $ac_status) && test -s "$ac_outfile"; then
16883 # The compiler can only warn and ignore the option if not recognized
16884 # So say no if there are warnings other than the usual output.
16885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16888 lt_cv_prog_compiler_rtti_exceptions=yes
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16895 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16898 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16910 lt_prog_compiler_wl=
16911 lt_prog_compiler_pic=
16912 lt_prog_compiler_static=
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16915 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16917 if test "$GCC" = yes; then
16918 lt_prog_compiler_wl='-Wl,'
16919 lt_prog_compiler_static='-static'
16923 # All AIX code is PIC.
16924 if test "$host_cpu" = ia64; then
16925 # AIX 5 now supports IA64 processor
16926 lt_prog_compiler_static='-Bstatic'
16928 lt_prog_compiler_pic='-fPIC'
16934 # see comment about AmigaOS4 .so support
16935 lt_prog_compiler_pic='-fPIC'
16938 # FIXME: we need at least 68020 code to build shared libraries, but
16939 # adding the `-m68020' flag to GCC prevents building anything better,
16941 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16946 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16947 # PIC is the default for these OSes.
16950 mingw* | cygwin* | pw32* | os2* | cegcc*)
16951 # This hack is so that the source file can tell whether it is being
16952 # built for inclusion in a dll (and should export symbols for example).
16953 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16954 # (--disable-auto-import) libraries
16955 lt_prog_compiler_pic='-DDLL_EXPORT'
16958 darwin* | rhapsody*)
16959 # PIC is the default on this platform
16960 # Common symbols not allowed in MH_DYLIB files
16961 lt_prog_compiler_pic='-fno-common'
16965 # PIC is the default for Haiku.
16966 # The "-static" flag exists, but is broken.
16967 lt_prog_compiler_static=
16971 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16972 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16973 # sets the default TLS model and affects inlining.
16979 lt_prog_compiler_pic='-fPIC'
16985 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16986 # Instead, we relocate shared libraries at runtime.
16990 # Just because we use GCC doesn't mean we suddenly get shared libraries
16991 # on systems that don't support them.
16992 lt_prog_compiler_can_build_shared=no
16997 # QNX uses GNU C++, but need to define -shared option too, otherwise
16998 # it will coredump.
16999 lt_prog_compiler_pic='-fPIC -shared'
17003 if test -d /usr/nec; then
17004 lt_prog_compiler_pic=-Kconform_pic
17009 lt_prog_compiler_pic='-fPIC'
17013 case $cc_basename in
17014 nvcc*) # Cuda Compiler Driver 2.2
17015 lt_prog_compiler_wl='-Xlinker '
17016 lt_prog_compiler_pic='-Xcompiler -fPIC'
17020 # PORTME Check for flag to pass linker flags through the system compiler.
17023 lt_prog_compiler_wl='-Wl,'
17024 if test "$host_cpu" = ia64; then
17025 # AIX 5 now supports IA64 processor
17026 lt_prog_compiler_static='-Bstatic'
17028 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17032 mingw* | cygwin* | pw32* | os2* | cegcc*)
17033 # This hack is so that the source file can tell whether it is being
17034 # built for inclusion in a dll (and should export symbols for example).
17035 lt_prog_compiler_pic='-DDLL_EXPORT'
17038 hpux9* | hpux10* | hpux11*)
17039 lt_prog_compiler_wl='-Wl,'
17040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17041 # not for PA HP-UX.
17047 lt_prog_compiler_pic='+Z'
17050 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17051 lt_prog_compiler_static='${wl}-a ${wl}archive'
17054 irix5* | irix6* | nonstopux*)
17055 lt_prog_compiler_wl='-Wl,'
17056 # PIC (with -KPIC) is the default.
17057 lt_prog_compiler_static='-non_shared'
17060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17061 case $cc_basename in
17062 # old Intel for x86_64 which still supported -KPIC.
17064 lt_prog_compiler_wl='-Wl,'
17065 lt_prog_compiler_pic='-KPIC'
17066 lt_prog_compiler_static='-static'
17068 # icc used to be incompatible with GCC.
17069 # ICC 10 doesn't accept -KPIC any more.
17071 lt_prog_compiler_wl='-Wl,'
17072 lt_prog_compiler_pic='-fPIC'
17073 lt_prog_compiler_static='-static'
17075 # Lahey Fortran 8.1.
17077 lt_prog_compiler_wl='-Wl,'
17078 lt_prog_compiler_pic='--shared'
17079 lt_prog_compiler_static='--static'
17081 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17082 # Portland Group compilers (*not* the Pentium gcc compiler,
17083 # which looks to be a dead project)
17084 lt_prog_compiler_wl='-Wl,'
17085 lt_prog_compiler_pic='-fpic'
17086 lt_prog_compiler_static='-Bstatic'
17089 lt_prog_compiler_wl='-Wl,'
17090 # All Alpha code is PIC.
17091 lt_prog_compiler_static='-non_shared'
17093 xl* | bgxl* | bgf* | mpixl*)
17094 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17095 lt_prog_compiler_wl='-Wl,'
17096 lt_prog_compiler_pic='-qpic'
17097 lt_prog_compiler_static='-qstaticlink'
17100 case `$CC -V 2>&1 | sed 5q` in
17101 *Sun\ F* | *Sun*Fortran*)
17102 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17103 lt_prog_compiler_pic='-KPIC'
17104 lt_prog_compiler_static='-Bstatic'
17105 lt_prog_compiler_wl=''
17109 lt_prog_compiler_pic='-KPIC'
17110 lt_prog_compiler_static='-Bstatic'
17111 lt_prog_compiler_wl='-Wl,'
17119 lt_prog_compiler_pic='-KPIC'
17120 lt_prog_compiler_static='-Bstatic'
17124 # QNX uses GNU C++, but need to define -shared option too, otherwise
17125 # it will coredump.
17126 lt_prog_compiler_pic='-fPIC -shared'
17129 osf3* | osf4* | osf5*)
17130 lt_prog_compiler_wl='-Wl,'
17131 # All OSF/1 code is PIC.
17132 lt_prog_compiler_static='-non_shared'
17136 lt_prog_compiler_static='-non_shared'
17140 lt_prog_compiler_pic='-KPIC'
17141 lt_prog_compiler_static='-Bstatic'
17142 case $cc_basename in
17143 f77* | f90* | f95*)
17144 lt_prog_compiler_wl='-Qoption ld ';;
17146 lt_prog_compiler_wl='-Wl,';;
17151 lt_prog_compiler_wl='-Qoption ld '
17152 lt_prog_compiler_pic='-PIC'
17153 lt_prog_compiler_static='-Bstatic'
17156 sysv4 | sysv4.2uw2* | sysv4.3*)
17157 lt_prog_compiler_wl='-Wl,'
17158 lt_prog_compiler_pic='-KPIC'
17159 lt_prog_compiler_static='-Bstatic'
17163 if test -d /usr/nec ;then
17164 lt_prog_compiler_pic='-Kconform_pic'
17165 lt_prog_compiler_static='-Bstatic'
17169 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17170 lt_prog_compiler_wl='-Wl,'
17171 lt_prog_compiler_pic='-KPIC'
17172 lt_prog_compiler_static='-Bstatic'
17176 lt_prog_compiler_wl='-Wl,'
17177 lt_prog_compiler_can_build_shared=no
17181 lt_prog_compiler_pic='-pic'
17182 lt_prog_compiler_static='-Bstatic'
17186 lt_prog_compiler_can_build_shared=no
17192 # For platforms which do not support PIC, -DPIC is meaningless:
17194 lt_prog_compiler_pic=
17197 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17201 $as_echo "$lt_prog_compiler_pic" >&6; }
17209 # Check to make sure the PIC flag actually works.
17211 if test -n "$lt_prog_compiler_pic"; then
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17213 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17214 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17215 $as_echo_n "(cached
) " >&6
17217 lt_cv_prog_compiler_pic_works=no
17218 ac_outfile=conftest.$ac_objext
17219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17220 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17221 # Insert the option either (1) after the last *FLAGS variable, or
17222 # (2) before a word containing "conftest.
", or (3) at the end.
17223 # Note that $ac_compile itself does not contain backslashes and begins
17224 # with a dollar sign (not a hyphen), so the echo should work correctly.
17225 # The option is referenced via a variable to avoid confusing sed.
17226 lt_compile=`echo "$ac_compile" | $SED \
17227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17229 -e 's:$: $lt_compiler_flag:'`
17230 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17231 (eval "$lt_compile" 2>conftest.err)
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17235 if (exit $ac_status) && test -s "$ac_outfile"; then
17236 # The compiler can only warn and ignore the option if not recognized
17237 # So say no if there are warnings other than the usual output.
17238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17240 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17241 lt_cv_prog_compiler_pic_works=yes
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17248 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17250 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17251 case $lt_prog_compiler_pic in
17253 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17256 lt_prog_compiler_pic=
17257 lt_prog_compiler_can_build_shared=no
17268 # Check to make sure the static flag actually works.
17270 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17272 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17273 if ${lt_cv_prog_compiler_static_works+:} false; then :
17274 $as_echo_n "(cached
) " >&6
17276 lt_cv_prog_compiler_static_works=no
17277 save_LDFLAGS="$LDFLAGS"
17278 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17279 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17281 # The linker can only warn and ignore the option if not recognized
17282 # So say no if there are warnings
17283 if test -s conftest.err; then
17284 # Append any errors to the config.log.
17285 cat conftest.err 1>&5
17286 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17288 if diff conftest.exp conftest.er2 >/dev/null; then
17289 lt_cv_prog_compiler_static_works=yes
17292 lt_cv_prog_compiler_static_works=yes
17296 LDFLAGS="$save_LDFLAGS"
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17300 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17302 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17305 lt_prog_compiler_static=
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17315 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17316 if ${lt_cv_prog_compiler_c_o+:} false; then :
17317 $as_echo_n "(cached
) " >&6
17319 lt_cv_prog_compiler_c_o=no
17320 $RM -r conftest 2>/dev/null
17324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17326 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17327 # Insert the option either (1) after the last *FLAGS variable, or
17328 # (2) before a word containing "conftest.
", or (3) at the end.
17329 # Note that $ac_compile itself does not contain backslashes and begins
17330 # with a dollar sign (not a hyphen), so the echo should work correctly.
17331 lt_compile=`echo "$ac_compile" | $SED \
17332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17334 -e 's:$: $lt_compiler_flag:'`
17335 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17336 (eval "$lt_compile" 2>out/conftest.err)
17338 cat out/conftest.err >&5
17339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17340 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17342 # The compiler can only warn and ignore the option if not recognized
17343 # So say no if there are warnings
17344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17345 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17346 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17347 lt_cv_prog_compiler_c_o=yes
17352 # SGI C++ compiler will create directory out/ii_files/ for
17353 # template instantiation
17354 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17355 $RM out/* && rmdir out
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17362 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17370 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17371 if ${lt_cv_prog_compiler_c_o+:} false; then :
17372 $as_echo_n "(cached
) " >&6
17374 lt_cv_prog_compiler_c_o=no
17375 $RM -r conftest 2>/dev/null
17379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17381 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17382 # Insert the option either (1) after the last *FLAGS variable, or
17383 # (2) before a word containing "conftest.
", or (3) at the end.
17384 # Note that $ac_compile itself does not contain backslashes and begins
17385 # with a dollar sign (not a hyphen), so the echo should work correctly.
17386 lt_compile=`echo "$ac_compile" | $SED \
17387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17389 -e 's:$: $lt_compiler_flag:'`
17390 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17391 (eval "$lt_compile" 2>out/conftest.err)
17393 cat out/conftest.err >&5
17394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17395 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17397 # The compiler can only warn and ignore the option if not recognized
17398 # So say no if there are warnings
17399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17400 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17401 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17402 lt_cv_prog_compiler_c_o=yes
17407 # SGI C++ compiler will create directory out/ii_files/ for
17408 # template instantiation
17409 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17410 $RM out/* && rmdir out
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17417 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17422 hard_links="nottested
"
17423 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17424 # do not overwrite the value of need_locks provided by the user
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17426 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17431 ln conftest.a conftest.b 2>&5 || hard_links=no
17432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17434 $as_echo "$hard_links" >&6; }
17435 if test "$hard_links" = no; then
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17437 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17450 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17453 allow_undefined_flag=
17454 always_export_symbols=no
17456 archive_expsym_cmds=
17457 compiler_needs_object=no
17458 enable_shared_with_static_runtimes=no
17459 export_dynamic_flag_spec=
17460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17461 hardcode_automatic=no
17463 hardcode_direct_absolute=no
17464 hardcode_libdir_flag_spec=
17465 hardcode_libdir_flag_spec_ld=
17466 hardcode_libdir_separator=
17467 hardcode_minus_L=no
17468 hardcode_shlibpath_var=unsupported
17470 link_all_deplibs=unknown
17472 module_expsym_cmds=
17473 old_archive_from_new_cmds=
17474 old_archive_from_expsyms_cmds=
17475 thread_safe_flag_spec=
17476 whole_archive_flag_spec=
17477 # include_expsyms should be a list of space-separated symbols to be *always*
17478 # included in the symbol list
17480 # exclude_expsyms can be an extended regexp of symbols to exclude
17481 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17482 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17483 # as well as any symbol that contains `d'.
17484 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17485 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17486 # platforms (ab)use it in PIC code, but their linkers get confused if
17487 # the symbol is explicitly referenced. Since portable code cannot
17488 # rely on this symbol name, it's probably fine to never include it in
17489 # preloaded symbol tables.
17490 # Exclude shared library initialization/finalization symbols.
17491 extract_expsyms_cmds=
17494 cygwin* | mingw* | pw32* | cegcc*)
17495 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17496 # When not using gcc, we currently assume that we are using
17497 # Microsoft Visual C++.
17498 if test "$GCC" != yes; then
17503 # we just hope/assume this is gcc and not c89 (= MSVC++)
17513 # On some targets, GNU ld is compatible enough with the native linker
17514 # that we're better off using the native interface for both.
17515 lt_use_gnu_ld_interface=no
17516 if test "$with_gnu_ld" = yes; then
17519 # The AIX port of GNU ld has always aspired to compatibility
17520 # with the native linker. However, as the warning in the GNU ld
17521 # block says, versions before 2.19.5* couldn't really create working
17522 # shared libraries, regardless of the interface used.
17523 case `$LD -v 2>&1` in
17524 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17525 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17526 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17528 lt_use_gnu_ld_interface=yes
17533 lt_use_gnu_ld_interface=yes
17538 if test "$lt_use_gnu_ld_interface" = yes; then
17539 # If archive_cmds runs LD, not CC, wlarc should be empty
17542 # Set some defaults for GNU ld with shared library support. These
17543 # are reset later if shared libraries are not supported. Putting them
17544 # here allows them to be overridden if necessary.
17545 runpath_var=LD_RUN_PATH
17546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17547 export_dynamic_flag_spec='${wl}--export-dynamic'
17548 # ancient GNU ld didn't support --whole-archive et. al.
17549 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17550 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17552 whole_archive_flag_spec=
17554 supports_anon_versioning=no
17555 case `$LD -v 2>&1` in
17556 *GNU\ gold*) supports_anon_versioning=yes ;;
17557 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17558 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17559 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17560 *\ 2.11.*) ;; # other 2.11 versions
17561 *) supports_anon_versioning=yes ;;
17564 # See if GNU ld supports shared libraries.
17567 # On AIX/PPC, the GNU linker is very broken
17568 if test "$host_cpu" != ia64; then
17572 *** Warning: the GNU linker, at least up to release 2.19, is reported
17573 *** to be unable to reliably create shared libraries on AIX.
17574 *** Therefore, libtool is disabling shared libraries support. If you
17575 *** really care for shared libraries, you may want to install binutils
17576 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17577 *** You will then need to restart the configuration process.
17586 # see comment about AmigaOS4 .so support
17587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17588 archive_expsym_cmds=''
17591 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)'
17592 hardcode_libdir_flag_spec
='-L$libdir'
17593 hardcode_minus_L
=yes
17599 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17600 allow_undefined_flag
=unsupported
17601 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17602 # support --undefined. This deserves some investigation. FIXME
17603 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17609 cygwin
* | mingw
* | pw32
* | cegcc
*)
17610 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17611 # as there is no search path for DLLs.
17612 hardcode_libdir_flag_spec
='-L$libdir'
17613 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17614 allow_undefined_flag
=unsupported
17615 always_export_symbols
=no
17616 enable_shared_with_static_runtimes
=yes
17617 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17619 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17620 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17621 # If the export-symbols file already is a .def file (1st line
17622 # is EXPORTS), use it as is; otherwise, prepend...
17623 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17624 cp $export_symbols $output_objdir/$soname.def;
17626 echo EXPORTS > $output_objdir/$soname.def;
17627 cat $export_symbols >> $output_objdir/$soname.def;
17629 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17636 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17637 link_all_deplibs
=yes
17642 hardcode_shlibpath_var
=no
17643 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17644 export_dynamic_flag_spec
='${wl}-E'
17645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17646 # Instead, shared libraries are loaded at an image base (0x10000000 by
17647 # default) and relocated if they conflict, which is a slow very memory
17648 # consuming and fragmenting process. To avoid this, we pick a random,
17649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17651 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17652 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'
17655 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17657 if test "$host_os" = linux-dietlibc
; then
17658 case $cc_basename in
17659 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17662 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17663 && test "$tmp_diet" = no
17665 tmp_addflag
=' $pic_flag'
17666 tmp_sharedflag
='-shared'
17667 case $cc_basename,$host_cpu in
17668 pgcc
*) # Portland Group C compiler
17669 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'
17670 tmp_addflag
=' $pic_flag'
17672 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17673 # Portland Group f77 and f90 compilers
17674 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'
17675 tmp_addflag
=' $pic_flag -Mnomain' ;;
17676 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17677 tmp_addflag
=' -i_dynamic' ;;
17678 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17679 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17680 ifc
* | ifort
*) # Intel Fortran compiler
17681 tmp_addflag
=' -nofor_main' ;;
17682 lf95
*) # Lahey Fortran 8.1
17683 whole_archive_flag_spec
=
17684 tmp_sharedflag
='--shared' ;;
17685 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17686 tmp_sharedflag
='-qmkshrobj'
17688 nvcc
*) # Cuda Compiler Driver 2.2
17689 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'
17690 compiler_needs_object
=yes
17693 case `$CC -V 2>&1 | sed 5q` in
17694 *Sun\ C
*) # Sun C 5.9
17695 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'
17696 compiler_needs_object
=yes
17697 tmp_sharedflag
='-G' ;;
17698 *Sun\ F
*) # Sun Fortran 8.3
17699 tmp_sharedflag
='-G' ;;
17701 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17703 if test "x$supports_anon_versioning" = xyes
; then
17704 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17706 echo "local: *; };" >> $output_objdir/$libname.ver~
17707 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17710 case $cc_basename in
17711 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17712 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17713 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17714 hardcode_libdir_flag_spec
=
17715 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17716 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17717 if test "x$supports_anon_versioning" = xyes
; then
17718 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17720 echo "local: *; };" >> $output_objdir/$libname.ver~
17721 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17731 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17732 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17735 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17736 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17741 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17745 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17746 *** create shared libraries on Solaris systems. Therefore, libtool
17747 *** is disabling shared libraries support. We urge you to upgrade GNU
17748 *** binutils to release 2.9.1 or newer. Another option is to modify
17749 *** your PATH or compiler configuration so that the native linker is
17750 *** used, and then restart.
17753 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17754 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17755 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17761 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17762 case `$LD -v 2>&1` in
17763 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17767 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17768 *** reliably create shared libraries on SCO systems. Therefore, libtool
17769 *** is disabling shared libraries support. We urge you to upgrade GNU
17770 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17771 *** your PATH or compiler configuration so that the native linker is
17772 *** used, and then restart.
17777 # For security reasons, it is highly recommended that you always
17778 # use absolute paths for naming shared libraries, and exclude the
17779 # DT_RUNPATH tag from executables and libraries. But doing so
17780 # requires that you compile everything twice, which is a pain.
17781 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17782 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17783 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17784 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17793 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17795 hardcode_direct
=yes
17796 hardcode_shlibpath_var
=no
17800 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17801 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17802 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17809 if test "$ld_shlibs" = no
; then
17811 hardcode_libdir_flag_spec
=
17812 export_dynamic_flag_spec
=
17813 whole_archive_flag_spec
=
17816 # PORTME fill in a description of your system's linker (not GNU ld)
17819 allow_undefined_flag
=unsupported
17820 always_export_symbols
=yes
17821 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'
17822 # Note: this linker hardcodes the directories in LIBPATH if there
17823 # are no directories specified by -L.
17824 hardcode_minus_L
=yes
17825 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17826 # Neither direct hardcoding nor static linking is supported with a
17828 hardcode_direct
=unsupported
17833 if test "$host_cpu" = ia64
; then
17834 # On IA64, the linker does run time linking by default, so we don't
17835 # have to do anything special.
17836 aix_use_runtimelinking
=no
17837 exp_sym_flag
='-Bexport'
17840 # If we're using GNU nm, then we don't want the "-C" option.
17841 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17842 # Also, AIX nm treats weak defined symbols like other global
17843 # defined symbols, whereas GNU nm marks them as "W".
17844 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17845 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'
17847 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'
17849 aix_use_runtimelinking
=no
17851 # Test if we are trying to use run time linking or normal
17852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17853 # need to do runtime linking.
17854 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17855 for ld_flag
in $LDFLAGS; do
17856 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17857 aix_use_runtimelinking
=yes
17864 exp_sym_flag
='-bexport'
17865 no_entry_flag
='-bnoentry'
17868 # When large executables or shared objects are built, AIX ld can
17869 # have problems creating the table of contents. If linking a library
17870 # or program results in "error TOC overflow" add -mminimal-toc to
17871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17875 hardcode_direct
=yes
17876 hardcode_direct_absolute
=yes
17877 hardcode_libdir_separator
=':'
17878 link_all_deplibs
=yes
17879 file_list_spec
='${wl}-f,'
17881 if test "$GCC" = yes; then
17882 case $host_os in aix4.
[012]|aix4.
[012].
*)
17883 # We only want to do this on AIX 4.2 and lower, the check
17884 # below for broken collect2 doesn't work under 4.3+
17885 collect2name
=`${CC} -print-prog-name=collect2`
17886 if test -f "$collect2name" &&
17887 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17889 # We have reworked collect2
17892 # We have old collect2
17893 hardcode_direct
=unsupported
17894 # It fails to find uninstalled libraries when the uninstalled
17895 # path is not listed in the libpath. Setting hardcode_minus_L
17896 # to unsupported forces relinking
17897 hardcode_minus_L
=yes
17898 hardcode_libdir_flag_spec
='-L$libdir'
17899 hardcode_libdir_separator
=
17903 shared_flag
='-shared'
17904 if test "$aix_use_runtimelinking" = yes; then
17905 shared_flag
="$shared_flag "'${wl}-G'
17909 if test "$host_cpu" = ia64
; then
17910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17911 # chokes on -Wl,-G. The following line is correct:
17914 if test "$aix_use_runtimelinking" = yes; then
17915 shared_flag
='${wl}-G'
17917 shared_flag
='${wl}-bM:SRE'
17922 export_dynamic_flag_spec
='${wl}-bexpall'
17923 # It seems that -bexpall does not export symbols beginning with
17924 # underscore (_), so it is better to generate a list of symbols to export.
17925 always_export_symbols
=yes
17926 if test "$aix_use_runtimelinking" = yes; then
17927 # Warning - without using the other runtime loading flags (-brtl),
17928 # -berok will link without error, but may produce a broken library.
17929 allow_undefined_flag
='-berok'
17930 # Determine the default libpath from the value encoded in an
17931 # empty executable.
17932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17943 if ac_fn_c_try_link
"$LINENO"; then :
17945 lt_aix_libpath_sed
='
17946 /Import File Strings/,/^$/ {
17952 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17953 # Check for a 64-bit object if we didn't find anything.
17954 if test -z "$aix_libpath"; then
17955 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17958 rm -f core conftest.err conftest.
$ac_objext \
17959 conftest
$ac_exeext conftest.
$ac_ext
17960 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17962 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17963 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"
17965 if test "$host_cpu" = ia64
; then
17966 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17967 allow_undefined_flag
="-z nodefs"
17968 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"
17970 # Determine the default libpath from the value encoded in an
17971 # empty executable.
17972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17983 if ac_fn_c_try_link
"$LINENO"; then :
17985 lt_aix_libpath_sed
='
17986 /Import File Strings/,/^$/ {
17992 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17993 # Check for a 64-bit object if we didn't find anything.
17994 if test -z "$aix_libpath"; then
17995 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17998 rm -f core conftest.err conftest.
$ac_objext \
17999 conftest
$ac_exeext conftest.
$ac_ext
18000 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18002 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
18003 # Warning - without using the other run time loading flags,
18004 # -berok will link without error, but may produce a broken library.
18005 no_undefined_flag
=' ${wl}-bernotok'
18006 allow_undefined_flag
=' ${wl}-berok'
18007 if test "$with_gnu_ld" = yes; then
18008 # We only use this code for GNU lds that support --whole-archive.
18009 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18011 # Exported symbols can be pulled into shared objects from archives
18012 whole_archive_flag_spec
='$convenience'
18014 archive_cmds_need_lc
=yes
18015 # This is similar to how AIX traditionally builds its shared libraries.
18016 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'
18024 # see comment about AmigaOS4 .so support
18025 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18026 archive_expsym_cmds
=''
18029 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)'
18030 hardcode_libdir_flag_spec
='-L$libdir'
18031 hardcode_minus_L
=yes
18037 export_dynamic_flag_spec
=-rdynamic
18040 cygwin
* | mingw
* | pw32
* | cegcc
*)
18041 # When not using gcc, we currently assume that we are using
18042 # Microsoft Visual C++.
18043 # hardcode_libdir_flag_spec is actually meaningless, as there is
18044 # no search path for DLLs.
18045 hardcode_libdir_flag_spec
=' '
18046 allow_undefined_flag
=unsupported
18047 # Tell ltmain to make .lib files, not .a files.
18049 # Tell ltmain to make .dll files, not .so files.
18051 # FIXME: Setting linknames here is a bad hack.
18052 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18053 # The linker will automatically build a .lib file if we build a DLL.
18054 old_archive_from_new_cmds
='true'
18055 # FIXME: Should let the user specify the lib program.
18056 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18057 fix_srcfile_path
='`cygpath -w "$srcfile"`'
18058 enable_shared_with_static_runtimes
=yes
18061 darwin
* | rhapsody
*)
18064 archive_cmds_need_lc
=no
18066 hardcode_automatic
=yes
18067 hardcode_shlibpath_var
=unsupported
18068 if test "$lt_cv_ld_force_load" = "yes"; then
18069 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\"`'
18071 whole_archive_flag_spec
=''
18073 link_all_deplibs
=yes
18074 allow_undefined_flag
="$_lt_dar_allow_undefined"
18075 case $cc_basename in
18076 ifort
*) _lt_dar_can_shared
=yes ;;
18077 *) _lt_dar_can_shared
=$GCC ;;
18079 if test "$_lt_dar_can_shared" = "yes"; then
18080 output_verbose_link_cmd
=func_echo_all
18081 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18082 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18083 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}"
18084 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}"
18093 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18094 hardcode_libdir_flag_spec
='-L$libdir'
18095 hardcode_shlibpath_var
=no
18098 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18099 # support. Future versions do this automatically, but an explicit c++rt0.o
18100 # does not break anything, and helps significantly (at the cost of a little
18103 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18104 hardcode_libdir_flag_spec
='-R$libdir'
18105 hardcode_direct
=yes
18106 hardcode_shlibpath_var
=no
18109 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18111 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18112 hardcode_direct
=yes
18113 hardcode_minus_L
=yes
18114 hardcode_shlibpath_var
=no
18117 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18118 freebsd
* | dragonfly
*)
18119 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18120 hardcode_libdir_flag_spec
='-R$libdir'
18121 hardcode_direct
=yes
18122 hardcode_shlibpath_var
=no
18126 if test "$GCC" = yes; then
18127 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'
18129 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'
18131 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18132 hardcode_libdir_separator
=:
18133 hardcode_direct
=yes
18135 # hardcode_minus_L: Not really in the search PATH,
18136 # but as the default location of the library.
18137 hardcode_minus_L
=yes
18138 export_dynamic_flag_spec
='${wl}-E'
18142 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18143 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18145 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18147 if test "$with_gnu_ld" = no
; then
18148 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18149 hardcode_libdir_flag_spec_ld
='+b $libdir'
18150 hardcode_libdir_separator
=:
18151 hardcode_direct
=yes
18152 hardcode_direct_absolute
=yes
18153 export_dynamic_flag_spec
='${wl}-E'
18154 # hardcode_minus_L: Not really in the search PATH,
18155 # but as the default location of the library.
18156 hardcode_minus_L
=yes
18161 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
18164 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18167 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18170 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18176 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18179 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18183 # Older versions of the 11.00 compiler do not understand -b yet
18184 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18186 $as_echo_n "checking if $CC understands -b... " >&6; }
18187 if ${lt_cv_prog_compiler__b+:} false
; then :
18188 $as_echo_n "(cached) " >&6
18190 lt_cv_prog_compiler__b
=no
18191 save_LDFLAGS
="$LDFLAGS"
18192 LDFLAGS
="$LDFLAGS -b"
18193 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18194 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18195 # The linker can only warn and ignore the option if not recognized
18196 # So say no if there are warnings
18197 if test -s conftest.err
; then
18198 # Append any errors to the config.log.
18199 cat conftest.err
1>&5
18200 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18201 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18202 if diff conftest.exp conftest.er2
>/dev
/null
; then
18203 lt_cv_prog_compiler__b
=yes
18206 lt_cv_prog_compiler__b
=yes
18210 LDFLAGS
="$save_LDFLAGS"
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18214 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18216 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18217 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18219 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18225 if test "$with_gnu_ld" = no
; then
18226 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18227 hardcode_libdir_separator
=:
18232 hardcode_shlibpath_var
=no
18235 hardcode_direct
=yes
18236 hardcode_direct_absolute
=yes
18237 export_dynamic_flag_spec
='${wl}-E'
18239 # hardcode_minus_L: Not really in the search PATH,
18240 # but as the default location of the library.
18241 hardcode_minus_L
=yes
18247 irix5
* | irix6
* | nonstopux
*)
18248 if test "$GCC" = yes; then
18249 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'
18250 # Try to use the -exported_symbol ld option, if it does not
18251 # work, assume that -exports_file does not work either and
18252 # implicitly export all symbols.
18253 save_LDFLAGS
="$LDFLAGS"
18254 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18259 if ac_fn_c_try_link
"$LINENO"; then :
18260 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'
18263 rm -f core conftest.err conftest.
$ac_objext \
18264 conftest
$ac_exeext conftest.
$ac_ext
18265 LDFLAGS
="$save_LDFLAGS"
18267 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'
18268 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'
18270 archive_cmds_need_lc
='no'
18271 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18272 hardcode_libdir_separator
=:
18274 link_all_deplibs
=yes
18278 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18279 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18281 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18283 hardcode_libdir_flag_spec
='-R$libdir'
18284 hardcode_direct
=yes
18285 hardcode_shlibpath_var
=no
18289 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290 hardcode_direct
=yes
18291 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18292 hardcode_libdir_separator
=:
18293 hardcode_shlibpath_var
=no
18300 if test -f /usr
/libexec
/ld.so
; then
18301 hardcode_direct
=yes
18302 hardcode_shlibpath_var
=no
18303 hardcode_direct_absolute
=yes
18304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18305 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18306 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18307 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18308 export_dynamic_flag_spec
='${wl}-E'
18311 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18312 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18313 hardcode_libdir_flag_spec
='-R$libdir'
18316 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18317 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18327 hardcode_libdir_flag_spec
='-L$libdir'
18328 hardcode_minus_L
=yes
18329 allow_undefined_flag
=unsupported
18330 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'
18331 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18335 if test "$GCC" = yes; then
18336 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18337 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'
18339 allow_undefined_flag
=' -expect_unresolved \*'
18340 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'
18342 archive_cmds_need_lc
='no'
18343 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18344 hardcode_libdir_separator
=:
18347 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18348 if test "$GCC" = yes; then
18349 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18350 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'
18351 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18353 allow_undefined_flag
=' -expect_unresolved \*'
18354 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'
18355 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~
18356 $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'
18358 # Both c and cxx compiler support -rpath directly
18359 hardcode_libdir_flag_spec
='-rpath $libdir'
18361 archive_cmds_need_lc
='no'
18362 hardcode_libdir_separator
=:
18366 no_undefined_flag
=' -z defs'
18367 if test "$GCC" = yes; then
18369 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18370 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18371 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18373 case `$CC -V 2>&1` in
18376 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18377 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18378 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18382 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18383 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18384 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18388 hardcode_libdir_flag_spec
='-R$libdir'
18389 hardcode_shlibpath_var
=no
18391 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18393 # The compiler driver will combine and reorder linker options,
18394 # but understands `-z linker_flag'. GCC discards it without `$wl',
18395 # but is careful enough not to reorder.
18396 # Supported since Solaris 2.6 (maybe 2.5.1?)
18397 if test "$GCC" = yes; then
18398 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18400 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18404 link_all_deplibs
=yes
18408 if test "x$host_vendor" = xsequent
; then
18409 # Use $CC to link under sequent, because it throws in some extra .o
18410 # files that make .init and .fini sections work.
18411 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18413 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18415 hardcode_libdir_flag_spec
='-L$libdir'
18416 hardcode_direct
=yes
18417 hardcode_minus_L
=yes
18418 hardcode_shlibpath_var
=no
18422 case $host_vendor in
18424 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18425 hardcode_direct
=yes # is this really true???
18428 ## LD is ld it makes a PLAMLIB
18429 ## CC just makes a GrossModule.
18430 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18431 reload_cmds
='$CC -r -o $output$reload_objs'
18435 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18436 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18439 runpath_var
='LD_RUN_PATH'
18440 hardcode_shlibpath_var
=no
18444 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18445 hardcode_shlibpath_var
=no
18446 export_dynamic_flag_spec
='-Bexport'
18450 if test -d /usr
/nec
; then
18451 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18452 hardcode_shlibpath_var
=no
18453 runpath_var
=LD_RUN_PATH
18454 hardcode_runpath_var
=yes
18459 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18460 no_undefined_flag
='${wl}-z,text'
18461 archive_cmds_need_lc
=no
18462 hardcode_shlibpath_var
=no
18463 runpath_var
='LD_RUN_PATH'
18465 if test "$GCC" = yes; then
18466 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18467 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18469 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18470 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18474 sysv5
* | sco3.2v5
* | sco5v6
*)
18475 # Note: We can NOT use -z defs as we might desire, because we do not
18476 # link with -lc, and that would cause any symbols used from libc to
18477 # always be unresolved, which means just about no library would
18478 # ever link correctly. If we're not using GNU ld we use -z text
18479 # though, which does catch some bad symbols but isn't as heavy-handed
18481 no_undefined_flag
='${wl}-z,text'
18482 allow_undefined_flag
='${wl}-z,nodefs'
18483 archive_cmds_need_lc
=no
18484 hardcode_shlibpath_var
=no
18485 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18486 hardcode_libdir_separator
=':'
18487 link_all_deplibs
=yes
18488 export_dynamic_flag_spec
='${wl}-Bexport'
18489 runpath_var
='LD_RUN_PATH'
18491 if test "$GCC" = yes; then
18492 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18493 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18495 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18496 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18501 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18502 hardcode_libdir_flag_spec
='-L$libdir'
18503 hardcode_shlibpath_var
=no
18511 if test x
$host_vendor = xsni
; then
18513 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18514 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18521 $as_echo "$ld_shlibs" >&6; }
18522 test "$ld_shlibs" = no
&& can_build_shared
=no
18524 with_gnu_ld
=$with_gnu_ld
18541 # Do we need to explicitly link libc?
18543 case "x$archive_cmds_need_lc" in
18545 # Assume -lc should be added
18546 archive_cmds_need_lc
=yes
18548 if test "$enable_shared" = yes && test "$GCC" = yes; then
18549 case $archive_cmds in
18551 # FIXME: we may have to deal with multi-command sequences.
18554 # Test whether the compiler implicitly links with -lc since on some
18555 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18556 # to ld, don't add -lc before -lgcc.
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18558 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18559 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18560 $as_echo_n "(cached) " >&6
18563 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18566 (eval $ac_compile) 2>&5
18568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18569 test $ac_status = 0; } 2>conftest.err
; then
18572 libobjs
=conftest.
$ac_objext
18574 wl
=$lt_prog_compiler_wl
18575 pic_flag
=$lt_prog_compiler_pic
18581 lt_save_allow_undefined_flag
=$allow_undefined_flag
18582 allow_undefined_flag
=
18583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18584 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18587 test $ac_status = 0; }
18589 lt_cv_archive_cmds_need_lc
=no
18591 lt_cv_archive_cmds_need_lc
=yes
18593 allow_undefined_flag
=$lt_save_allow_undefined_flag
18595 cat conftest.err
1>&5
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18601 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18602 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18766 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18768 if test "$GCC" = yes; then
18770 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18771 *) lt_awk_arg
="/^libraries:/" ;;
18774 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18775 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18777 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18778 case $lt_search_path_spec in
18780 # if the path contains ";" then we assume it to be the separator
18781 # otherwise default to the standard path separator (i.e. ":") - it is
18782 # assumed that no part of a normal pathname contains ";" but that should
18783 # okay in the real world where ";" in dirpaths is itself problematic.
18784 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18787 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18790 # Ok, now we have the path, separated by spaces, we can step through it
18791 # and add multilib dir if necessary.
18792 lt_tmp_lt_search_path_spec
=
18793 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18794 for lt_sys_path
in $lt_search_path_spec; do
18795 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18796 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18798 test -d "$lt_sys_path" && \
18799 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18802 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18803 BEGIN {RS=" "; FS="/|\n";} {
18806 for (lt_i = NF; lt_i > 0; lt_i--) {
18807 if ($lt_i != "" && $lt_i != ".") {
18808 if ($lt_i == "..") {
18811 if (lt_count == 0) {
18812 lt_foo="/" $lt_i lt_foo;
18819 if (lt_foo != "") { lt_freq[lt_foo]++; }
18820 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18822 # AWK program above erroneously prepends '/' to C:/dos/paths
18825 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18826 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18828 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18830 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18832 library_names_spec
=
18833 libname_spec
='lib$name'
18837 postuninstall_cmds
=
18841 shlibpath_overrides_runpath
=unknown
18843 dynamic_linker
="$host_os ld.so"
18844 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18845 need_lib_prefix
=unknown
18846 hardcode_into_libs
=no
18848 # when you set need_version to no, make sure it does not cause -set_version
18849 # flags to be left without arguments
18850 need_version
=unknown
18855 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18856 shlibpath_var
=LIBPATH
18858 # AIX 3 has no versioning support, so we append a major version to the name.
18859 soname_spec
='${libname}${release}${shared_ext}$major'
18866 hardcode_into_libs
=yes
18867 if test "$host_cpu" = ia64
; then
18868 # AIX 5 supports IA64
18869 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18870 shlibpath_var
=LD_LIBRARY_PATH
18872 # With GCC up to 2.95.x, collect2 would create an import file
18873 # for dependence libraries. The import file would start with
18874 # the line `#! .'. This would cause the generated library to
18875 # depend on `.', always an invalid library. This was fixed in
18876 # development snapshots of GCC prior to 3.0.
18878 aix4 | aix4.
[01] | aix4.
[01].
*)
18879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18881 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18884 can_build_shared
=no
18888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18889 # soname into executable. Probably we can add versioning support to
18890 # collect2, so additional links can be useful in future.
18891 if test "$aix_use_runtimelinking" = yes; then
18892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18893 # instead of lib<name>.a to let people know that these are not
18894 # typical AIX shared libraries.
18895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18897 # We preserve .a as extension for shared libraries through AIX4.2
18898 # and later when we are not doing run time linking.
18899 library_names_spec
='${libname}${release}.a $libname.a'
18900 soname_spec
='${libname}${release}${shared_ext}$major'
18902 shlibpath_var
=LIBPATH
18909 # Since July 2007 AmigaOS4 officially supports .so libraries.
18910 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18911 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18914 library_names_spec
='$libname.ixlibrary $libname.a'
18915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18916 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'
18922 library_names_spec
='${libname}${shared_ext}'
18923 dynamic_linker
="$host_os ld.so"
18924 shlibpath_var
=LIBRARY_PATH
18930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18931 soname_spec
='${libname}${release}${shared_ext}$major'
18932 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18933 shlibpath_var
=LD_LIBRARY_PATH
18934 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18935 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18936 # the default ld.so.conf also contains /usr/contrib/lib and
18937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18938 # libtool to hard-code these into programs
18941 cygwin
* | mingw
* | pw32
* | cegcc
*)
18942 version_type
=windows
18947 case $GCC,$host_os in
18948 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18949 library_names_spec
='$libname.dll.a'
18950 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18951 postinstall_cmds
='base_file=`basename \${file}`~
18952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18953 dldir=$destdir/`dirname \$dlpath`~
18954 test -d \$dldir || mkdir -p \$dldir~
18955 $install_prog $dir/$dlname \$dldir/$dlname~
18956 chmod a+x \$dldir/$dlname~
18957 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18958 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18960 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18961 dlpath=$dir/\$dldll~
18963 shlibpath_overrides_runpath
=yes
18967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18968 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18970 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18973 # MinGW DLLs use traditional 'lib' prefix
18974 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18977 # pw32 DLLs use 'pw' prefix rather than 'lib'
18978 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18984 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18987 dynamic_linker
='Win32 ld.exe'
18988 # FIXME: first we should search . and the directory the executable is in
18992 darwin
* | rhapsody
*)
18993 dynamic_linker
="$host_os dyld"
18994 version_type
=darwin
18997 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18998 soname_spec
='${libname}${release}${major}$shared_ext'
18999 shlibpath_overrides_runpath
=yes
19000 shlibpath_var
=DYLD_LIBRARY_PATH
19001 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19003 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
19004 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19012 soname_spec
='${libname}${release}${shared_ext}$major'
19013 shlibpath_var
=LD_LIBRARY_PATH
19016 freebsd
* | dragonfly
*)
19017 # DragonFly does not have aout. When/if they implement a new
19018 # versioning mechanism, adjust this.
19019 if test -x /usr
/bin
/objformat
; then
19020 objformat
=`/usr/bin/objformat`
19023 freebsd
[23].
*) objformat
=aout
;;
19024 *) objformat
=elf
;;
19027 version_type
=freebsd-
$objformat
19028 case $version_type in
19030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19035 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19039 shlibpath_var
=LD_LIBRARY_PATH
19042 shlibpath_overrides_runpath
=yes
19044 freebsd3.
[01]* | freebsdelf3.
[01]*)
19045 shlibpath_overrides_runpath
=yes
19046 hardcode_into_libs
=yes
19048 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19049 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19050 shlibpath_overrides_runpath
=no
19051 hardcode_into_libs
=yes
19053 *) # from 4.6 on, and DragonFly
19054 shlibpath_overrides_runpath
=yes
19055 hardcode_into_libs
=yes
19064 dynamic_linker
="$host_os runtime_loader"
19065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19066 soname_spec
='${libname}${release}${shared_ext}$major'
19067 shlibpath_var
=LIBRARY_PATH
19068 shlibpath_overrides_runpath
=yes
19069 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19070 hardcode_into_libs
=yes
19073 hpux9
* | hpux10
* | hpux11
*)
19074 # Give a soname corresponding to the major version so that dld.sl refuses to
19075 # link against other versions.
19082 hardcode_into_libs
=yes
19083 dynamic_linker
="$host_os dld.so"
19084 shlibpath_var
=LD_LIBRARY_PATH
19085 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19087 soname_spec
='${libname}${release}${shared_ext}$major'
19088 if test "X$HPUX_IA64_MODE" = X32
; then
19089 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19091 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
19093 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19097 hardcode_into_libs
=yes
19098 dynamic_linker
="$host_os dld.sl"
19099 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
19100 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102 soname_spec
='${libname}${release}${shared_ext}$major'
19103 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19104 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
19108 dynamic_linker
="$host_os dld.sl"
19109 shlibpath_var
=SHLIB_PATH
19110 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
19111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19112 soname_spec
='${libname}${release}${shared_ext}$major'
19115 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19116 postinstall_cmds
='chmod 555 $lib'
19117 # or fails outright, so override atomically:
19118 install_override_mode
=555
19125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19126 soname_spec
='${libname}${release}${shared_ext}$major'
19127 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
19128 shlibpath_var
=LD_LIBRARY_PATH
19129 shlibpath_overrides_runpath
=no
19130 hardcode_into_libs
=yes
19133 irix5
* | irix6
* | nonstopux
*)
19135 nonstopux
*) version_type
=nonstopux
;;
19137 if test "$lt_cv_prog_gnu_ld" = yes; then
19145 soname_spec
='${libname}${release}${shared_ext}$major'
19146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19148 irix5
* | nonstopux
*)
19149 libsuff
= shlibsuff
=
19152 case $LD in # libtool.m4 will add one of these switches to LD
19153 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
19154 libsuff
= shlibsuff
= libmagic
=32-bit;;
19155 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19156 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19157 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19158 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19159 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19163 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19164 shlibpath_overrides_runpath
=no
19165 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19166 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19167 hardcode_into_libs
=yes
19170 # No shared lib support for Linux oldld, aout, or coff.
19171 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19175 # This must be Linux ELF.
19177 # uclinux* changes (here and below) have been submitted to the libtool
19178 # project, but have not yet been accepted: they are GCC-local changes
19179 # for the time being. (See
19180 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19181 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
19185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19186 soname_spec
='${libname}${release}${shared_ext}$major'
19187 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19188 shlibpath_var
=LD_LIBRARY_PATH
19189 shlibpath_overrides_runpath
=no
19191 # Some binutils ld are patched to set DT_RUNPATH
19192 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
19193 $as_echo_n "(cached) " >&6
19195 lt_cv_shlibpath_overrides_runpath
=no
19196 save_LDFLAGS
=$LDFLAGS
19197 save_libdir
=$libdir
19198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h. */
19211 if ac_fn_c_try_link
"$LINENO"; then :
19212 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19213 lt_cv_shlibpath_overrides_runpath
=yes
19216 rm -f core conftest.err conftest.
$ac_objext \
19217 conftest
$ac_exeext conftest.
$ac_ext
19218 LDFLAGS
=$save_LDFLAGS
19219 libdir
=$save_libdir
19223 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19225 # This implies no fast_install, which is unacceptable.
19226 # Some rework will be needed to allow for fast_install
19227 # before this can be enabled.
19228 hardcode_into_libs
=yes
19230 # Append ld.so.conf contents to the search path
19231 if test -f /etc
/ld.so.conf
; then
19232 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' ' '`
19233 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19236 # We used to test for /lib/ld.so.1 and disable shared libraries on
19237 # powerpc, because MkLinux only supported shared libraries with the
19238 # GNU dynamic linker. Since this was broken with cross compilers,
19239 # most powerpc-linux boxes support dynamic linking these days and
19240 # people can always --disable-shared, the test was removed, and we
19241 # assume the GNU/Linux dynamic linker is in use.
19242 dynamic_linker
='GNU/Linux ld.so'
19249 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19251 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19252 dynamic_linker
='NetBSD (a.out) ld.so'
19254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19255 soname_spec
='${libname}${release}${shared_ext}$major'
19256 dynamic_linker
='NetBSD ld.elf_so'
19258 shlibpath_var
=LD_LIBRARY_PATH
19259 shlibpath_overrides_runpath
=yes
19260 hardcode_into_libs
=yes
19265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19266 shlibpath_var
=LD_LIBRARY_PATH
19267 shlibpath_overrides_runpath
=yes
19274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19275 soname_spec
='${libname}${release}${shared_ext}$major'
19276 shlibpath_var
=LD_LIBRARY_PATH
19277 shlibpath_overrides_runpath
=no
19278 hardcode_into_libs
=yes
19279 dynamic_linker
='ldqnx.so'
19284 sys_lib_dlsearch_path_spec
="/usr/lib"
19286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19288 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19289 *) need_version
=no
;;
19291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19292 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19293 shlibpath_var
=LD_LIBRARY_PATH
19294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19296 openbsd2.
[89] | openbsd2.
[89].
*)
19297 shlibpath_overrides_runpath
=no
19300 shlibpath_overrides_runpath
=yes
19304 shlibpath_overrides_runpath
=yes
19309 libname_spec
='$name'
19312 library_names_spec
='$libname${shared_ext} $libname.a'
19313 dynamic_linker
='OS/2 ld.exe'
19314 shlibpath_var
=LIBPATH
19317 osf3
* | osf4
* | osf5
*)
19321 soname_spec
='${libname}${release}${shared_ext}$major'
19322 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323 shlibpath_var
=LD_LIBRARY_PATH
19324 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19325 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19336 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19337 soname_spec
='${libname}${release}${shared_ext}$major'
19338 shlibpath_var
=LD_LIBRARY_PATH
19339 shlibpath_overrides_runpath
=yes
19340 hardcode_into_libs
=yes
19341 # ldd complains unless libraries are executable
19342 postinstall_cmds
='chmod +x $lib'
19347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19348 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19349 shlibpath_var
=LD_LIBRARY_PATH
19350 shlibpath_overrides_runpath
=yes
19351 if test "$with_gnu_ld" = yes; then
19359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19360 soname_spec
='${libname}${release}${shared_ext}$major'
19361 shlibpath_var
=LD_LIBRARY_PATH
19362 case $host_vendor in
19364 shlibpath_overrides_runpath
=no
19366 runpath_var
=LD_RUN_PATH
19374 shlibpath_overrides_runpath
=no
19375 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19381 if test -d /usr
/nec
;then
19383 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19384 soname_spec
='$libname${shared_ext}.$major'
19385 shlibpath_var
=LD_LIBRARY_PATH
19389 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19390 version_type
=freebsd-elf
19393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19394 soname_spec
='${libname}${release}${shared_ext}$major'
19395 shlibpath_var
=LD_LIBRARY_PATH
19396 shlibpath_overrides_runpath
=yes
19397 hardcode_into_libs
=yes
19398 if test "$with_gnu_ld" = yes; then
19399 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19401 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19404 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19408 sys_lib_dlsearch_path_spec
='/usr/lib'
19412 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19417 shlibpath_var
=LD_LIBRARY_PATH
19418 shlibpath_overrides_runpath
=no
19419 hardcode_into_libs
=yes
19424 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19425 soname_spec
='${libname}${release}${shared_ext}$major'
19426 shlibpath_var
=LD_LIBRARY_PATH
19429 # Shared libraries for VwWorks, >= 7 only at this stage
19430 # and (fpic) still incompatible with "large" code models
19431 # in a few configurations. Only for RTP mode in any case,
19432 # and upon explicit request at configure time.
19435 case ${with_multisubdir}-${enable_shared} in
19442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19443 soname_spec
='${libname}${release}${shared_ext}$major'
19444 dynamic_linker
="$host_os module_loader"
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19453 $as_echo "$dynamic_linker" >&6; }
19454 test "$dynamic_linker" = no
&& can_build_shared
=no
19456 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19457 if test "$GCC" = yes; then
19458 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19461 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19462 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19464 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19465 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19560 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19562 if test -n "$hardcode_libdir_flag_spec" ||
19563 test -n "$runpath_var" ||
19564 test "X$hardcode_automatic" = "Xyes" ; then
19566 # We can hardcode non-existent directories.
19567 if test "$hardcode_direct" != no
&&
19568 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19569 # have to relink, otherwise we might link with an installed library
19570 # when we should be linking with a yet-to-be-installed one
19571 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19572 test "$hardcode_minus_L" != no
; then
19573 # Linking always hardcodes the temporary library directory.
19574 hardcode_action
=relink
19576 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19577 hardcode_action
=immediate
19580 # We cannot hardcode anything, or else we can only hardcode existing
19582 hardcode_action
=unsupported
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19585 $as_echo "$hardcode_action" >&6; }
19587 if test "$hardcode_action" = relink ||
19588 test "$inherit_rpath" = yes; then
19589 # Fast installation is not supported
19590 enable_fast_install
=no
19591 elif test "$shlibpath_overrides_runpath" = yes ||
19592 test "$enable_shared" = no
; then
19593 # Fast installation is not necessary
19594 enable_fast_install
=needless
19602 if test "x$enable_dlopen" != xyes
; then
19603 enable_dlopen
=unknown
19604 enable_dlopen_self
=unknown
19605 enable_dlopen_self_static
=unknown
19612 lt_cv_dlopen
="load_add_on"
19614 lt_cv_dlopen_self
=yes
19617 mingw
* | pw32
* | cegcc
*)
19618 lt_cv_dlopen
="LoadLibrary"
19623 lt_cv_dlopen
="dlopen"
19628 # if libdl is installed we need to link against it
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19630 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19631 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19632 $as_echo_n "(cached) " >&6
19634 ac_check_lib_save_LIBS
=$LIBS
19636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19639 /* Override any GCC internal prototype to avoid an error.
19640 Use char because int might match the return type of a GCC
19641 builtin and then its argument prototype would still apply. */
19654 if ac_fn_c_try_link
"$LINENO"; then :
19655 ac_cv_lib_dl_dlopen
=yes
19657 ac_cv_lib_dl_dlopen
=no
19659 rm -f core conftest.err conftest.
$ac_objext \
19660 conftest
$ac_exeext conftest.
$ac_ext
19661 LIBS
=$ac_check_lib_save_LIBS
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19664 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19665 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19666 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19669 lt_cv_dlopen
="dyld"
19671 lt_cv_dlopen_self
=yes
19678 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19679 if test "x$ac_cv_func_shl_load" = xyes
; then :
19680 lt_cv_dlopen
="shl_load"
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19683 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19684 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19685 $as_echo_n "(cached) " >&6
19687 ac_check_lib_save_LIBS
=$LIBS
19689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h. */
19692 /* Override any GCC internal prototype to avoid an error.
19693 Use char because int might match the return type of a GCC
19694 builtin and then its argument prototype would still apply. */
19702 return shl_load ();
19707 if ac_fn_c_try_link
"$LINENO"; then :
19708 ac_cv_lib_dld_shl_load
=yes
19710 ac_cv_lib_dld_shl_load
=no
19712 rm -f core conftest.err conftest.
$ac_objext \
19713 conftest
$ac_exeext conftest.
$ac_ext
19714 LIBS
=$ac_check_lib_save_LIBS
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19717 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19718 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19719 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19721 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19722 if test "x$ac_cv_func_dlopen" = xyes
; then :
19723 lt_cv_dlopen
="dlopen"
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19726 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19727 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19728 $as_echo_n "(cached) " >&6
19730 ac_check_lib_save_LIBS
=$LIBS
19732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19733 /* end confdefs.h. */
19735 /* Override any GCC internal prototype to avoid an error.
19736 Use char because int might match the return type of a GCC
19737 builtin and then its argument prototype would still apply. */
19750 if ac_fn_c_try_link
"$LINENO"; then :
19751 ac_cv_lib_dl_dlopen
=yes
19753 ac_cv_lib_dl_dlopen
=no
19755 rm -f core conftest.err conftest.
$ac_objext \
19756 conftest
$ac_exeext conftest.
$ac_ext
19757 LIBS
=$ac_check_lib_save_LIBS
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19760 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19761 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19762 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19765 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19766 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19767 $as_echo_n "(cached) " >&6
19769 ac_check_lib_save_LIBS
=$LIBS
19770 LIBS
="-lsvld $LIBS"
19771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19772 /* end confdefs.h. */
19774 /* Override any GCC internal prototype to avoid an error.
19775 Use char because int might match the return type of a GCC
19776 builtin and then its argument prototype would still apply. */
19789 if ac_fn_c_try_link
"$LINENO"; then :
19790 ac_cv_lib_svld_dlopen
=yes
19792 ac_cv_lib_svld_dlopen
=no
19794 rm -f core conftest.err conftest.
$ac_objext \
19795 conftest
$ac_exeext conftest.
$ac_ext
19796 LIBS
=$ac_check_lib_save_LIBS
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19799 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19800 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19801 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19804 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19805 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19806 $as_echo_n "(cached) " >&6
19808 ac_check_lib_save_LIBS
=$LIBS
19810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19813 /* Override any GCC internal prototype to avoid an error.
19814 Use char because int might match the return type of a GCC
19815 builtin and then its argument prototype would still apply. */
19823 return dld_link ();
19828 if ac_fn_c_try_link
"$LINENO"; then :
19829 ac_cv_lib_dld_dld_link
=yes
19831 ac_cv_lib_dld_dld_link
=no
19833 rm -f core conftest.err conftest.
$ac_objext \
19834 conftest
$ac_exeext conftest.
$ac_ext
19835 LIBS
=$ac_check_lib_save_LIBS
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19838 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19839 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19840 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19861 if test "x$lt_cv_dlopen" != xno
; then
19867 case $lt_cv_dlopen in
19869 save_CPPFLAGS
="$CPPFLAGS"
19870 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19872 save_LDFLAGS
="$LDFLAGS"
19873 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19876 LIBS
="$lt_cv_dlopen_libs $LIBS"
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19879 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19880 if ${lt_cv_dlopen_self+:} false
; then :
19881 $as_echo_n "(cached) " >&6
19883 if test "$cross_compiling" = yes; then :
19884 lt_cv_dlopen_self
=cross
19886 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19887 lt_status
=$lt_dlunknown
19888 cat > conftest.
$ac_ext <<_LT_EOF
19889 #line 19889 "configure"
19890 #include "confdefs.h"
19899 # define LT_DLGLOBAL RTLD_GLOBAL
19902 # define LT_DLGLOBAL DL_GLOBAL
19904 # define LT_DLGLOBAL 0
19908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19909 find out it does not work in some platform. */
19910 #ifndef LT_DLLAZY_OR_NOW
19912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19915 # define LT_DLLAZY_OR_NOW DL_LAZY
19918 # define LT_DLLAZY_OR_NOW RTLD_NOW
19921 # define LT_DLLAZY_OR_NOW DL_NOW
19923 # define LT_DLLAZY_OR_NOW 0
19930 /* When -fvisbility=hidden is used, assume the code has been annotated
19931 correspondingly for the symbols needed. */
19932 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19933 void fnord () __attribute__((visibility("default")));
19936 void fnord () { int i=42; }
19939 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19940 int status = $lt_dlunknown;
19944 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19947 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19948 else puts (dlerror ());
19950 /* dlclose (self); */
19958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19959 (eval $ac_link) 2>&5
19961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19962 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19963 (.
/conftest
; exit; ) >&5 2>/dev
/null
19965 case x
$lt_status in
19966 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19967 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19968 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19971 # compilation failed
19972 lt_cv_dlopen_self
=no
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19980 $as_echo "$lt_cv_dlopen_self" >&6; }
19982 if test "x$lt_cv_dlopen_self" = xyes
; then
19983 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19985 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19986 if ${lt_cv_dlopen_self_static+:} false
; then :
19987 $as_echo_n "(cached) " >&6
19989 if test "$cross_compiling" = yes; then :
19990 lt_cv_dlopen_self_static
=cross
19992 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19993 lt_status
=$lt_dlunknown
19994 cat > conftest.
$ac_ext <<_LT_EOF
19995 #line 19995 "configure"
19996 #include "confdefs.h"
20005 # define LT_DLGLOBAL RTLD_GLOBAL
20008 # define LT_DLGLOBAL DL_GLOBAL
20010 # define LT_DLGLOBAL 0
20014 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20015 find out it does not work in some platform. */
20016 #ifndef LT_DLLAZY_OR_NOW
20018 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20021 # define LT_DLLAZY_OR_NOW DL_LAZY
20024 # define LT_DLLAZY_OR_NOW RTLD_NOW
20027 # define LT_DLLAZY_OR_NOW DL_NOW
20029 # define LT_DLLAZY_OR_NOW 0
20036 /* When -fvisbility=hidden is used, assume the code has been annotated
20037 correspondingly for the symbols needed. */
20038 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20039 void fnord () __attribute__((visibility("default")));
20042 void fnord () { int i=42; }
20045 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20046 int status = $lt_dlunknown;
20050 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20053 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20054 else puts (dlerror ());
20056 /* dlclose (self); */
20064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20065 (eval $ac_link) 2>&5
20067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20068 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
20069 (.
/conftest
; exit; ) >&5 2>/dev
/null
20071 case x
$lt_status in
20072 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
20073 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
20074 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
20077 # compilation failed
20078 lt_cv_dlopen_self_static
=no
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20086 $as_echo "$lt_cv_dlopen_self_static" >&6; }
20089 CPPFLAGS
="$save_CPPFLAGS"
20090 LDFLAGS
="$save_LDFLAGS"
20095 case $lt_cv_dlopen_self in
20096 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
20097 *) enable_dlopen_self
=unknown
;;
20100 case $lt_cv_dlopen_self_static in
20101 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
20102 *) enable_dlopen_self_static
=unknown
;;
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20125 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
20126 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
20127 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
20128 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20130 $as_echo "yes" >&6; }
20132 # FIXME - insert some real tests, host_os isn't really good enough
20135 if test -n "$STRIP" ; then
20136 striplib
="$STRIP -x"
20137 old_striplib
="$STRIP -S"
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20139 $as_echo "yes" >&6; }
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20142 $as_echo "no" >&6; }
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20147 $as_echo "no" >&6; }
20163 # Report which library types will actually be built
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20165 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20167 $as_echo "$can_build_shared" >&6; }
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20170 $as_echo_n "checking whether to build shared libraries... " >&6; }
20171 test "$can_build_shared" = "no" && enable_shared
=no
20173 # On AIX, shared libraries and static libraries use the same namespace, and
20174 # are all built from PIC.
20177 test "$enable_shared" = yes && enable_static
=no
20178 if test -n "$RANLIB"; then
20179 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
20180 postinstall_cmds
='$RANLIB $lib'
20185 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
20186 test "$enable_shared" = yes && enable_static
=no
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20191 $as_echo "$enable_shared" >&6; }
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20194 $as_echo_n "checking whether to build static libraries... " >&6; }
20195 # Make sure either enable_shared or enable_static is yes.
20196 test "$enable_shared" = yes || enable_static
=yes
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20198 $as_echo "$enable_static" >&6; }
20205 ac_cpp
='$CXXCPP $CPPFLAGS'
20206 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20207 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20208 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20212 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20213 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20214 (test "X$CXX" != "Xg++"))) ; then
20216 ac_cpp
='$CXXCPP $CPPFLAGS'
20217 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20218 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20219 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20221 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20222 if test -z "$CXXCPP"; then
20223 if ${ac_cv_prog_CXXCPP+:} false
; then :
20224 $as_echo_n "(cached) " >&6
20226 # Double quotes because CXXCPP needs to be expanded
20227 for CXXCPP
in "$CXX -E" "/lib/cpp"
20229 ac_preproc_ok
=false
20230 for ac_cxx_preproc_warn_flag
in '' yes
20232 # Use a header file that comes with gcc, so configuring glibc
20233 # with a fresh cross-compiler works.
20234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20235 # <limits.h> exists even on freestanding compilers.
20236 # On the NeXT, cc -E runs the code through the compiler's parser,
20237 # not just through cpp. "Syntax error" is here to catch this case.
20238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h. */
20241 # include <limits.h>
20243 # include <assert.h>
20247 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20250 # Broken: fails on valid input.
20253 rm -f conftest.err conftest.i conftest.
$ac_ext
20255 # OK, works on sane cases. Now check whether nonexistent headers
20256 # can be detected and how.
20257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20258 /* end confdefs.h. */
20259 #include <ac_nonexistent.h>
20261 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20262 # Broken: success on invalid input.
20265 # Passes both tests.
20269 rm -f conftest.err conftest.i conftest.
$ac_ext
20272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20273 rm -f conftest.i conftest.err conftest.
$ac_ext
20274 if $ac_preproc_ok; then :
20279 ac_cv_prog_CXXCPP
=$CXXCPP
20282 CXXCPP
=$ac_cv_prog_CXXCPP
20284 ac_cv_prog_CXXCPP
=$CXXCPP
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20287 $as_echo "$CXXCPP" >&6; }
20288 ac_preproc_ok
=false
20289 for ac_cxx_preproc_warn_flag
in '' yes
20291 # Use a header file that comes with gcc, so configuring glibc
20292 # with a fresh cross-compiler works.
20293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20294 # <limits.h> exists even on freestanding compilers.
20295 # On the NeXT, cc -E runs the code through the compiler's parser,
20296 # not just through cpp. "Syntax error" is here to catch this case.
20297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20300 # include <limits.h>
20302 # include <assert.h>
20306 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20309 # Broken: fails on valid input.
20312 rm -f conftest.err conftest.i conftest.
$ac_ext
20314 # OK, works on sane cases. Now check whether nonexistent headers
20315 # can be detected and how.
20316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h. */
20318 #include <ac_nonexistent.h>
20320 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20321 # Broken: success on invalid input.
20324 # Passes both tests.
20328 rm -f conftest.err conftest.i conftest.
$ac_ext
20331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20332 rm -f conftest.i conftest.err conftest.
$ac_ext
20333 if $ac_preproc_ok; then :
20336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20338 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20339 See \`config.log' for more details" "$LINENO" 5; }
20343 ac_cpp
='$CXXCPP $CPPFLAGS'
20344 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20345 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20346 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20349 _lt_caught_CXX_error
=yes
20353 ac_cpp
='$CXXCPP $CPPFLAGS'
20354 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20355 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20356 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20358 archive_cmds_need_lc_CXX
=no
20359 allow_undefined_flag_CXX
=
20360 always_export_symbols_CXX
=no
20361 archive_expsym_cmds_CXX
=
20362 compiler_needs_object_CXX
=no
20363 export_dynamic_flag_spec_CXX
=
20364 hardcode_direct_CXX
=no
20365 hardcode_direct_absolute_CXX
=no
20366 hardcode_libdir_flag_spec_CXX
=
20367 hardcode_libdir_flag_spec_ld_CXX
=
20368 hardcode_libdir_separator_CXX
=
20369 hardcode_minus_L_CXX
=no
20370 hardcode_shlibpath_var_CXX
=unsupported
20371 hardcode_automatic_CXX
=no
20372 inherit_rpath_CXX
=no
20374 module_expsym_cmds_CXX
=
20375 link_all_deplibs_CXX
=unknown
20376 old_archive_cmds_CXX
=$old_archive_cmds
20377 reload_flag_CXX
=$reload_flag
20378 reload_cmds_CXX
=$reload_cmds
20379 no_undefined_flag_CXX
=
20380 whole_archive_flag_spec_CXX
=
20381 enable_shared_with_static_runtimes_CXX
=no
20383 # Source file extension for C++ test sources.
20386 # Object file extension for compiled C++ test sources.
20390 # No sense in running all these tests if we already determined that
20391 # the CXX compiler isn't working. Some variables (like enable_shared)
20392 # are currently assumed to apply to all compilers on this platform,
20393 # and will be corrupted by setting them based on a non-working compiler.
20394 if test "$_lt_caught_CXX_error" != yes; then
20395 # Code to be used in simple compile tests
20396 lt_simple_compile_test_code
="int some_variable = 0;"
20398 # Code to be used in simple link tests
20399 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20401 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20408 # If no C compiler was specified, use CC.
20411 # If no C compiler flags were specified, use CFLAGS.
20412 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20414 # Allow CC to be a program name with arguments.
20418 # save warnings/boilerplate of simple test code
20419 ac_outfile
=conftest.
$ac_objext
20420 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20421 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20422 _lt_compiler_boilerplate
=`cat conftest.err`
20425 ac_outfile
=conftest.
$ac_objext
20426 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20427 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20428 _lt_linker_boilerplate
=`cat conftest.err`
20432 # Allow CC to be a program name with arguments.
20437 lt_save_with_gnu_ld
=$with_gnu_ld
20438 lt_save_path_LD
=$lt_cv_path_LD
20439 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20440 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20442 $as_unset lt_cv_prog_gnu_ld
20444 if test -n "${lt_cv_path_LDCXX+set}"; then
20445 lt_cv_path_LD
=$lt_cv_path_LDCXX
20447 $as_unset lt_cv_path_LD
20449 test -z "${LDCXX+set}" || LD
=$LDCXX
20453 for cc_temp
in $compiler""; do
20455 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20456 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20461 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20464 if test -n "$compiler"; then
20465 # We don't want -fno-exception when compiling C++ code, so set the
20466 # no_builtin_flag separately
20467 if test "$GXX" = yes; then
20468 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20470 lt_prog_compiler_no_builtin_flag_CXX
=
20473 if test "$GXX" = yes; then
20474 # Set up default GNU C++ configuration
20478 # Check whether --with-gnu-ld was given.
20479 if test "${with_gnu_ld+set}" = set; then :
20480 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20486 if test "$GCC" = yes; then
20487 # Check if gcc -print-prog-name=ld gives a path.
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20489 $as_echo_n "checking for ld used by $CC... " >&6; }
20492 # gcc leaves a trailing carriage return which upsets mingw
20493 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20495 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20498 # Accept absolute paths.
20500 re_direlt
='/[^/][^/]*/\.\./'
20501 # Canonicalize the pathname of ld
20502 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20503 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20504 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20506 test -z "$LD" && LD
="$ac_prog"
20509 # If it fails, then pretend we aren't using GCC.
20513 # If it is relative, then search for the first ld in PATH.
20514 with_gnu_ld
=unknown
20517 elif test "$with_gnu_ld" = yes; then
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20519 $as_echo_n "checking for GNU ld... " >&6; }
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20522 $as_echo_n "checking for non-GNU ld... " >&6; }
20524 if ${lt_cv_path_LD+:} false
; then :
20525 $as_echo_n "(cached) " >&6
20527 if test -z "$LD"; then
20528 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20529 for ac_dir
in $PATH; do
20531 test -z "$ac_dir" && ac_dir
=.
20532 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20533 lt_cv_path_LD
="$ac_dir/$ac_prog"
20534 # Check to see if the program is GNU ld. I'd rather use --version,
20535 # but apparently some variants of GNU ld only accept -v.
20536 # Break only if it was the GNU/non-GNU ld that we prefer.
20537 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20538 *GNU
* |
*'with BFD'*)
20539 test "$with_gnu_ld" != no
&& break
20542 test "$with_gnu_ld" != yes && break
20549 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20553 LD
="$lt_cv_path_LD"
20554 if test -n "$LD"; then
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20556 $as_echo "$LD" >&6; }
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20559 $as_echo "no" >&6; }
20561 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20563 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20564 if ${lt_cv_prog_gnu_ld+:} false
; then :
20565 $as_echo_n "(cached) " >&6
20567 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20568 case `$LD -v 2>&1 </dev/null` in
20569 *GNU
* |
*'with BFD'*)
20570 lt_cv_prog_gnu_ld
=yes
20573 lt_cv_prog_gnu_ld
=no
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20578 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20579 with_gnu_ld
=$lt_cv_prog_gnu_ld
20587 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20588 # archiving commands below assume that GNU ld is being used.
20589 if test "$with_gnu_ld" = yes; then
20590 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20591 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'
20593 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20594 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20596 # If archive_cmds runs LD, not CC, wlarc should be empty
20597 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20598 # investigate it a little bit more. (MM)
20601 # ancient GNU ld didn't support --whole-archive et. al.
20602 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20603 $GREP 'no-whole-archive' > /dev
/null
; then
20604 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20606 whole_archive_flag_spec_CXX
=
20612 # A generic and very simple default shared library creation
20613 # command for GNU C++ for the case where it uses the native
20614 # linker, instead of GNU ld. If possible, this setting should
20615 # overridden to take advantage of the native linker features on
20616 # the platform it is being used on.
20617 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
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.
20623 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20631 # PORTME: fill in a description of your system's C++ link characteristics
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20633 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20637 # FIXME: insert proper C++ library support
20641 if test "$host_cpu" = ia64
; then
20642 # On IA64, the linker does run time linking by default, so we don't
20643 # have to do anything special.
20644 aix_use_runtimelinking
=no
20645 exp_sym_flag
='-Bexport'
20648 aix_use_runtimelinking
=no
20650 # Test if we are trying to use run time linking or normal
20651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20652 # need to do runtime linking.
20653 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20654 for ld_flag
in $LDFLAGS; do
20657 aix_use_runtimelinking
=yes
20665 exp_sym_flag
='-bexport'
20666 no_entry_flag
='-bnoentry'
20669 # When large executables or shared objects are built, AIX ld can
20670 # have problems creating the table of contents. If linking a library
20671 # or program results in "error TOC overflow" add -mminimal-toc to
20672 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20673 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20675 archive_cmds_CXX
=''
20676 hardcode_direct_CXX
=yes
20677 hardcode_direct_absolute_CXX
=yes
20678 hardcode_libdir_separator_CXX
=':'
20679 link_all_deplibs_CXX
=yes
20680 file_list_spec_CXX
='${wl}-f,'
20682 if test "$GXX" = yes; then
20683 case $host_os in aix4.
[012]|aix4.
[012].
*)
20684 # We only want to do this on AIX 4.2 and lower, the check
20685 # below for broken collect2 doesn't work under 4.3+
20686 collect2name
=`${CC} -print-prog-name=collect2`
20687 if test -f "$collect2name" &&
20688 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20690 # We have reworked collect2
20693 # We have old collect2
20694 hardcode_direct_CXX
=unsupported
20695 # It fails to find uninstalled libraries when the uninstalled
20696 # path is not listed in the libpath. Setting hardcode_minus_L
20697 # to unsupported forces relinking
20698 hardcode_minus_L_CXX
=yes
20699 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20700 hardcode_libdir_separator_CXX
=
20703 shared_flag
='-shared'
20704 if test "$aix_use_runtimelinking" = yes; then
20705 shared_flag
="$shared_flag "'${wl}-G'
20709 if test "$host_cpu" = ia64
; then
20710 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20711 # chokes on -Wl,-G. The following line is correct:
20714 if test "$aix_use_runtimelinking" = yes; then
20715 shared_flag
='${wl}-G'
20717 shared_flag
='${wl}-bM:SRE'
20722 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20723 # It seems that -bexpall does not export symbols beginning with
20724 # underscore (_), so it is better to generate a list of symbols to
20726 always_export_symbols_CXX
=yes
20727 if test "$aix_use_runtimelinking" = yes; then
20728 # Warning - without using the other runtime loading flags (-brtl),
20729 # -berok will link without error, but may produce a broken library.
20730 allow_undefined_flag_CXX
='-berok'
20731 # Determine the default libpath from the value encoded in an empty
20733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20734 /* end confdefs.h. */
20744 if ac_fn_cxx_try_link
"$LINENO"; then :
20746 lt_aix_libpath_sed
='
20747 /Import File Strings/,/^$/ {
20753 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20754 # Check for a 64-bit object if we didn't find anything.
20755 if test -z "$aix_libpath"; then
20756 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20759 rm -f core conftest.err conftest.
$ac_objext \
20760 conftest
$ac_exeext conftest.
$ac_ext
20761 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20763 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20765 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"
20767 if test "$host_cpu" = ia64
; then
20768 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20769 allow_undefined_flag_CXX
="-z nodefs"
20770 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"
20772 # Determine the default libpath from the value encoded in an
20773 # empty executable.
20774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20775 /* end confdefs.h. */
20785 if ac_fn_cxx_try_link
"$LINENO"; then :
20787 lt_aix_libpath_sed
='
20788 /Import File Strings/,/^$/ {
20794 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20795 # Check for a 64-bit object if we didn't find anything.
20796 if test -z "$aix_libpath"; then
20797 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20800 rm -f core conftest.err conftest.
$ac_objext \
20801 conftest
$ac_exeext conftest.
$ac_ext
20802 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20804 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20805 # Warning - without using the other run time loading flags,
20806 # -berok will link without error, but may produce a broken library.
20807 no_undefined_flag_CXX
=' ${wl}-bernotok'
20808 allow_undefined_flag_CXX
=' ${wl}-berok'
20809 if test "$with_gnu_ld" = yes; then
20810 # We only use this code for GNU lds that support --whole-archive.
20811 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20813 # Exported symbols can be pulled into shared objects from archives
20814 whole_archive_flag_spec_CXX
='$convenience'
20816 archive_cmds_need_lc_CXX
=yes
20817 # This is similar to how AIX traditionally builds its shared
20819 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'
20825 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20826 allow_undefined_flag_CXX
=unsupported
20827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20828 # support --undefined. This deserves some investigation. FIXME
20829 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20836 case $cc_basename in
20838 # FIXME: insert proper C++ library support
20844 cygwin
* | mingw
* | pw32
* | cegcc
*)
20845 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20846 # as there is no search path for DLLs.
20847 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20848 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20849 allow_undefined_flag_CXX
=unsupported
20850 always_export_symbols_CXX
=no
20851 enable_shared_with_static_runtimes_CXX
=yes
20853 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20854 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'
20855 # If the export-symbols file already is a .def file (1st line
20856 # is EXPORTS), use it as is; otherwise, prepend...
20857 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20858 cp $export_symbols $output_objdir/$soname.def;
20860 echo EXPORTS > $output_objdir/$soname.def;
20861 cat $export_symbols >> $output_objdir/$soname.def;
20863 $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'
20868 darwin
* | rhapsody
*)
20871 archive_cmds_need_lc_CXX
=no
20872 hardcode_direct_CXX
=no
20873 hardcode_automatic_CXX
=yes
20874 hardcode_shlibpath_var_CXX
=unsupported
20875 if test "$lt_cv_ld_force_load" = "yes"; then
20876 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\"`'
20878 whole_archive_flag_spec_CXX
=''
20880 link_all_deplibs_CXX
=yes
20881 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20882 case $cc_basename in
20883 ifort
*) _lt_dar_can_shared
=yes ;;
20884 *) _lt_dar_can_shared
=$GCC ;;
20886 if test "$_lt_dar_can_shared" = "yes"; then
20887 output_verbose_link_cmd
=func_echo_all
20888 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}"
20889 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20890 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}"
20891 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}"
20892 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20893 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}"
20894 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}"
20904 case $cc_basename in
20906 # FIXME: insert proper C++ library support
20910 # Green Hills C++ Compiler
20911 # FIXME: insert proper C++ library support
20915 # FIXME: insert proper C++ library support
20922 # C++ shared libraries reported to be fairly broken before
20928 archive_cmds_need_lc_CXX
=no
20931 freebsd
* | dragonfly
*)
20932 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20941 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20942 link_all_deplibs_CXX
=yes
20946 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20947 hardcode_libdir_separator_CXX
=:
20948 export_dynamic_flag_spec_CXX
='${wl}-E'
20949 hardcode_direct_CXX
=yes
20950 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20951 # but as the default
20952 # location of the library.
20954 case $cc_basename in
20956 # FIXME: insert proper C++ library support
20960 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'
20961 # Commands to make compiler produce verbose output that lists
20962 # what "hidden" libraries, object files and flags are used when
20963 # linking a shared library.
20965 # There doesn't appear to be a way to prevent this compiler from
20966 # explicitly linking system object files so we need to strip them
20967 # from the output so that they don't get included in the library
20969 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"'
20972 if test "$GXX" = yes; then
20973 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'
20975 # FIXME: insert proper C++ library support
20983 if test $with_gnu_ld = no
; then
20984 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20985 hardcode_libdir_separator_CXX
=:
20991 export_dynamic_flag_spec_CXX
='${wl}-E'
20997 hardcode_direct_CXX
=no
20998 hardcode_shlibpath_var_CXX
=no
21001 hardcode_direct_CXX
=yes
21002 hardcode_direct_absolute_CXX
=yes
21003 hardcode_minus_L_CXX
=yes # Not in the search PATH,
21004 # but as the default
21005 # location of the library.
21009 case $cc_basename in
21011 # FIXME: insert proper C++ library support
21017 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21020 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21023 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21026 # Commands to make compiler produce verbose output that lists
21027 # what "hidden" libraries, object files and flags are used when
21028 # linking a shared library.
21030 # There doesn't appear to be a way to prevent this compiler from
21031 # explicitly linking system object files so we need to strip them
21032 # from the output so that they don't get included in the library
21034 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"'
21037 if test "$GXX" = yes; then
21038 if test $with_gnu_ld = no
; then
21041 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21044 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21047 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'
21052 # FIXME: insert proper C++ library support
21060 hardcode_direct_CXX
=no
21061 hardcode_shlibpath_var_CXX
=no
21062 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21063 export_dynamic_flag_spec_CXX
='${wl}-E'
21064 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21065 # Instead, shared libraries are loaded at an image base (0x10000000 by
21066 # default) and relocated if they conflict, which is a slow very memory
21067 # consuming and fragmenting process. To avoid this, we pick a random,
21068 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21069 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21070 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'
21071 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'
21074 case $cc_basename in
21077 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'
21079 # Archives containing C++ object files must be created using
21080 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21081 # necessary to make sure instantiated templates are included
21083 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
21086 if test "$GXX" = yes; then
21087 if test "$with_gnu_ld" = no
; then
21088 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'
21090 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'
21093 link_all_deplibs_CXX
=yes
21096 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21097 hardcode_libdir_separator_CXX
=:
21098 inherit_rpath_CXX
=yes
21101 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21102 case $cc_basename in
21104 # Kuck and Associates, Inc. (KAI) C++ Compiler
21106 # KCC will only create a shared library if the output file
21107 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21108 # to its proper name (with version) after linking.
21109 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'
21110 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'
21111 # Commands to make compiler produce verbose output that lists
21112 # what "hidden" libraries, object files and flags are used when
21113 # linking a shared library.
21115 # There doesn't appear to be a way to prevent this compiler from
21116 # explicitly linking system object files so we need to strip them
21117 # from the output so that they don't get included in the library
21119 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"'
21121 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21122 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21124 # Archives containing C++ object files must be created using
21125 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21126 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
21131 # version 8.0 and above of icpc choke on multiply defined symbols
21132 # if we add $predep_objects and $postdep_objects, however 7.1 and
21133 # earlier do not add the objects themselves.
21134 case `$CC -V 2>&1` in
21136 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21137 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'
21139 *) # Version 8.0 or newer
21142 ia64
*) tmp_idyn
=' -i_dynamic';;
21144 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21145 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'
21148 archive_cmds_need_lc_CXX
=no
21149 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21150 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21151 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21154 # Portland Group C++ compiler
21156 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
21157 prelink_cmds_CXX
='tpldir=Template.dir~
21159 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21160 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21161 old_archive_cmds_CXX
='tpldir=Template.dir~
21163 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21164 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21166 archive_cmds_CXX
='tpldir=Template.dir~
21168 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21169 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21170 archive_expsym_cmds_CXX
='tpldir=Template.dir~
21172 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21173 $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'
21175 *) # Version 6 and above use weak symbols
21176 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21177 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'
21181 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
21182 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21183 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'
21187 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21188 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'
21190 runpath_var
=LD_RUN_PATH
21191 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21192 hardcode_libdir_separator_CXX
=:
21194 # Commands to make compiler produce verbose output that lists
21195 # what "hidden" libraries, object files and flags are used when
21196 # linking a shared library.
21198 # There doesn't appear to be a way to prevent this compiler from
21199 # explicitly linking system object files so we need to strip them
21200 # from the output so that they don't get included in the library
21202 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'
21204 xl
* | mpixl
* | bgxl
*)
21205 # IBM XL 8.0 on PPC, with GNU ld
21206 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21207 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21208 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21209 if test "x$supports_anon_versioning" = xyes
; then
21210 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
21211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21212 echo "local: *; };" >> $output_objdir/$libname.ver~
21213 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21217 case `$CC -V 2>&1 | sed 5q` in
21220 no_undefined_flag_CXX
=' -zdefs'
21221 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21222 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'
21223 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21224 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'
21225 compiler_needs_object_CXX
=yes
21227 # Not sure whether something based on
21228 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21230 output_verbose_link_cmd
='func_echo_all'
21232 # Archives containing C++ object files must be created using
21233 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21234 # necessary to make sure instantiated templates are included
21236 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21244 # FIXME: insert proper C++ library support
21249 # FIXME: insert proper C++ library support
21254 case $cc_basename in
21256 # FIXME: insert proper C++ library support
21260 # FIXME: insert proper C++ library support
21267 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21268 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21270 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21271 hardcode_direct_CXX
=yes
21272 hardcode_shlibpath_var_CXX
=no
21274 # Workaround some broken pre-1.5 toolchains
21275 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21283 # C++ shared libraries are fairly broken
21288 if test -f /usr
/libexec
/ld.so
; then
21289 hardcode_direct_CXX
=yes
21290 hardcode_shlibpath_var_CXX
=no
21291 hardcode_direct_absolute_CXX
=yes
21292 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21293 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21295 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21296 export_dynamic_flag_spec_CXX
='${wl}-E'
21297 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21299 output_verbose_link_cmd
=func_echo_all
21305 osf3
* | osf4
* | osf5
*)
21306 case $cc_basename in
21308 # Kuck and Associates, Inc. (KAI) C++ Compiler
21310 # KCC will only create a shared library if the output file
21311 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21312 # to its proper name (with version) after linking.
21313 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'
21315 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21316 hardcode_libdir_separator_CXX
=:
21318 # Archives containing C++ object files must be created using
21319 # the KAI C++ compiler.
21321 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21322 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21326 # Rational C++ 2.4.1
21327 # FIXME: insert proper C++ library support
21333 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21334 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'
21335 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21338 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21339 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'
21340 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21341 echo "-hidden">> $lib.exp~
21342 $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~
21344 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21348 hardcode_libdir_separator_CXX
=:
21350 # Commands to make compiler produce verbose output that lists
21351 # what "hidden" libraries, object files and flags are used when
21352 # linking a shared library.
21354 # There doesn't appear to be a way to prevent this compiler from
21355 # explicitly linking system object files so we need to strip them
21356 # from the output so that they don't get included in the library
21358 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"'
21361 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21362 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21365 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'
21368 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'
21372 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21373 hardcode_libdir_separator_CXX
=:
21375 # Commands to make compiler produce verbose output that lists
21376 # what "hidden" libraries, object files and flags are used when
21377 # linking a shared library.
21378 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21381 # FIXME: insert proper C++ library support
21389 # FIXME: insert proper C++ library support
21394 case $cc_basename in
21397 # FIXME: insert proper C++ library support
21402 # FIXME: insert proper C++ library support
21406 # FIXME: insert proper C++ library support
21413 case $cc_basename in
21415 # Sun C++ 4.2, 5.x and Centerline C++
21416 archive_cmds_need_lc_CXX
=yes
21417 no_undefined_flag_CXX
=' -zdefs'
21418 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21419 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21420 $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'
21422 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21423 hardcode_shlibpath_var_CXX
=no
21425 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21427 # The compiler driver will combine and reorder linker options,
21428 # but understands `-z linker_flag'.
21429 # Supported since Solaris 2.6 (maybe 2.5.1?)
21430 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21433 link_all_deplibs_CXX
=yes
21435 output_verbose_link_cmd
='func_echo_all'
21437 # Archives containing C++ object files must be created using
21438 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21439 # necessary to make sure instantiated templates are included
21441 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21444 # Green Hills C++ Compiler
21445 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21447 # The C++ compiler must be used to create the archive.
21448 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21451 # GNU C++ compiler with Solaris linker
21452 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21453 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21454 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21455 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21456 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21457 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21459 # Commands to make compiler produce verbose output that lists
21460 # what "hidden" libraries, object files and flags are used when
21461 # linking a shared library.
21462 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21464 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21466 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21467 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21468 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21470 # Commands to make compiler produce verbose output that lists
21471 # what "hidden" libraries, object files and flags are used when
21472 # linking a shared library.
21473 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21476 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21478 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21480 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21488 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21489 no_undefined_flag_CXX
='${wl}-z,text'
21490 archive_cmds_need_lc_CXX
=no
21491 hardcode_shlibpath_var_CXX
=no
21492 runpath_var
='LD_RUN_PATH'
21494 case $cc_basename in
21496 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21497 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21500 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21501 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21506 sysv5
* | sco3.2v5
* | sco5v6
*)
21507 # Note: We can NOT use -z defs as we might desire, because we do not
21508 # link with -lc, and that would cause any symbols used from libc to
21509 # always be unresolved, which means just about no library would
21510 # ever link correctly. If we're not using GNU ld we use -z text
21511 # though, which does catch some bad symbols but isn't as heavy-handed
21513 no_undefined_flag_CXX
='${wl}-z,text'
21514 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21515 archive_cmds_need_lc_CXX
=no
21516 hardcode_shlibpath_var_CXX
=no
21517 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21518 hardcode_libdir_separator_CXX
=':'
21519 link_all_deplibs_CXX
=yes
21520 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21521 runpath_var
='LD_RUN_PATH'
21523 case $cc_basename in
21525 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21526 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21527 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21528 '"$old_archive_cmds_CXX"
21529 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21530 '"$reload_cmds_CXX"
21533 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21534 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21540 case $cc_basename in
21542 # NonStop-UX NCC 3.20
21543 # FIXME: insert proper C++ library support
21547 # FIXME: insert proper C++ library support
21554 # For VxWorks ports, we assume the use of a GNU linker with
21555 # standard elf conventions.
21560 # FIXME: insert proper C++ library support
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21566 $as_echo "$ld_shlibs_CXX" >&6; }
21567 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21573 ## There is no encapsulation within the following macros, do not change
21574 ## the running order or otherwise move them around unless you know exactly
21575 ## what you are doing...
21576 # Dependencies to place before and after the object being linked:
21577 predep_objects_CXX
=
21578 postdep_objects_CXX
=
21581 compiler_lib_search_path_CXX
=
21583 cat > conftest.
$ac_ext <<_LT_EOF
21587 Foo (void) { a = 0; }
21593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21594 (eval $ac_compile) 2>&5
21596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21597 test $ac_status = 0; }; then
21598 # Parse the compiler output and extract the necessary
21599 # objects, libraries and library flags.
21601 # Sentinel used to keep track of whether or not we are before
21602 # the conftest object file.
21603 pre_test_object_deps_done
=no
21605 for p
in `eval "$output_verbose_link_cmd"`; do
21609 # Some compilers place space between "-{L,R}" and the path.
21610 # Remove the space.
21611 if test $p = "-L" ||
21612 test $p = "-R"; then
21619 if test "$pre_test_object_deps_done" = no
; then
21622 # Internal compiler library paths should come after those
21623 # provided the user. The postdeps already come after the
21624 # user supplied libs so there is no need to process them.
21625 if test -z "$compiler_lib_search_path_CXX"; then
21626 compiler_lib_search_path_CXX
="${prev}${p}"
21628 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21631 # The "-l" case would never come before the object being
21632 # linked, so don't bother handling this case.
21635 if test -z "$postdeps_CXX"; then
21636 postdeps_CXX
="${prev}${p}"
21638 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21644 # This assumes that the test object file only shows up
21645 # once in the compiler output.
21646 if test "$p" = "conftest.$objext"; then
21647 pre_test_object_deps_done
=yes
21651 if test "$pre_test_object_deps_done" = no
; then
21652 if test -z "$predep_objects_CXX"; then
21653 predep_objects_CXX
="$p"
21655 predep_objects_CXX
="$predep_objects_CXX $p"
21658 if test -z "$postdep_objects_CXX"; then
21659 postdep_objects_CXX
="$p"
21661 postdep_objects_CXX
="$postdep_objects_CXX $p"
21666 *) ;; # Ignore the rest.
21674 echo "libtool.m4: error: problem compiling CXX test program"
21677 $RM -f confest.
$objext
21679 # PORTME: override above test on systems where it is broken
21682 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21683 # hack all around it, let's just trust "g++" to DTRT.
21684 predep_objects_CXX
=
21685 postdep_objects_CXX
=
21690 case `$CC -V 2>&1 | sed 5q` in
21694 # The more standards-conforming stlport4 library is
21695 # incompatible with the Cstd library. Avoid specifying
21696 # it if it's in CXXFLAGS. Ignore libCrun as
21697 # -library=stlport4 depends on it.
21698 case " $CXX $CXXFLAGS " in
21699 *" -library=stlport4 "*)
21700 solaris_use_stlport4
=yes
21704 if test "$solaris_use_stlport4" != yes; then
21705 postdeps_CXX
='-library=Cstd -library=Crun'
21712 case $cc_basename in
21714 # The more standards-conforming stlport4 library is
21715 # incompatible with the Cstd library. Avoid specifying
21716 # it if it's in CXXFLAGS. Ignore libCrun as
21717 # -library=stlport4 depends on it.
21718 case " $CXX $CXXFLAGS " in
21719 *" -library=stlport4 "*)
21720 solaris_use_stlport4
=yes
21724 # Adding this requires a known-good setup of shared libraries for
21725 # Sun compiler versions before 5.6, else PIC objects from an old
21726 # archive will be linked into the output, leading to subtle bugs.
21727 if test "$solaris_use_stlport4" != yes; then
21728 postdeps_CXX
='-library=Cstd -library=Crun'
21736 case " $postdeps_CXX " in
21737 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21739 compiler_lib_search_dirs_CXX
=
21740 if test -n "${compiler_lib_search_path_CXX}"; then
21741 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21774 lt_prog_compiler_wl_CXX
=
21775 lt_prog_compiler_pic_CXX
=
21776 lt_prog_compiler_static_CXX
=
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21779 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21781 # C++ specific cases for pic, static, wl, etc.
21782 if test "$GXX" = yes; then
21783 lt_prog_compiler_wl_CXX
='-Wl,'
21784 lt_prog_compiler_static_CXX
='-static'
21788 # All AIX code is PIC.
21789 if test "$host_cpu" = ia64
; then
21790 # AIX 5 now supports IA64 processor
21791 lt_prog_compiler_static_CXX
='-Bstatic'
21793 lt_prog_compiler_pic_CXX
='-fPIC'
21799 # see comment about AmigaOS4 .so support
21800 lt_prog_compiler_pic_CXX
='-fPIC'
21803 # FIXME: we need at least 68020 code to build shared libraries, but
21804 # adding the `-m68020' flag to GCC prevents building anything better,
21806 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21811 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21812 # PIC is the default for these OSes.
21814 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21815 # This hack is so that the source file can tell whether it is being
21816 # built for inclusion in a dll (and should export symbols for example).
21817 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21818 # (--disable-auto-import) libraries
21819 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21821 darwin
* | rhapsody
*)
21822 # PIC is the default on this platform
21823 # Common symbols not allowed in MH_DYLIB files
21824 lt_prog_compiler_pic_CXX
='-fno-common'
21827 # DJGPP does not support shared libraries at all
21828 lt_prog_compiler_pic_CXX
=
21831 # PIC is the default for Haiku.
21832 # The "-static" flag exists, but is broken.
21833 lt_prog_compiler_static_CXX
=
21836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21837 # Instead, we relocate shared libraries at runtime.
21840 if test -d /usr
/nec
; then
21841 lt_prog_compiler_pic_CXX
=-Kconform_pic
21845 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21846 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21847 # sets the default TLS model and affects inlining.
21852 lt_prog_compiler_pic_CXX
='-fPIC'
21857 # QNX uses GNU C++, but need to define -shared option too, otherwise
21858 # it will coredump.
21859 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21862 lt_prog_compiler_pic_CXX
='-fPIC'
21868 # All AIX code is PIC.
21869 if test "$host_cpu" = ia64
; then
21870 # AIX 5 now supports IA64 processor
21871 lt_prog_compiler_static_CXX
='-Bstatic'
21873 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21877 case $cc_basename in
21879 # Green Hills C++ Compiler
21880 # _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"
21885 case $cc_basename in
21887 lt_prog_compiler_pic_CXX
='-KPIC'
21890 # Green Hills C++ Compiler
21891 lt_prog_compiler_pic_CXX
='-pic'
21897 freebsd
* | dragonfly
*)
21898 # FreeBSD uses GNU C++
21900 hpux9
* | hpux10
* | hpux11
*)
21901 case $cc_basename in
21903 lt_prog_compiler_wl_CXX
='-Wl,'
21904 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21905 if test "$host_cpu" != ia64
; then
21906 lt_prog_compiler_pic_CXX
='+Z'
21910 lt_prog_compiler_wl_CXX
='-Wl,'
21911 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21917 lt_prog_compiler_pic_CXX
='+Z'
21926 # This is c89, which is MS Visual C++ (no shared libs)
21927 # Anyone wants to do a port?
21929 irix5
* | irix6
* | nonstopux
*)
21930 case $cc_basename in
21932 lt_prog_compiler_wl_CXX
='-Wl,'
21933 lt_prog_compiler_static_CXX
='-non_shared'
21934 # CC pic flag -KPIC is the default.
21940 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21941 case $cc_basename in
21944 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21945 lt_prog_compiler_pic_CXX
='-fPIC'
21948 # old Intel C++ for x86_64 which still supported -KPIC.
21949 lt_prog_compiler_wl_CXX
='-Wl,'
21950 lt_prog_compiler_pic_CXX
='-KPIC'
21951 lt_prog_compiler_static_CXX
='-static'
21954 # Intel C++, used to be incompatible with GCC.
21955 # ICC 10 doesn't accept -KPIC any more.
21956 lt_prog_compiler_wl_CXX
='-Wl,'
21957 lt_prog_compiler_pic_CXX
='-fPIC'
21958 lt_prog_compiler_static_CXX
='-static'
21961 # Portland Group C++ compiler
21962 lt_prog_compiler_wl_CXX
='-Wl,'
21963 lt_prog_compiler_pic_CXX
='-fpic'
21964 lt_prog_compiler_static_CXX
='-Bstatic'
21968 # Make sure the PIC flag is empty. It appears that all Alpha
21969 # Linux and Compaq Tru64 Unix objects are PIC.
21970 lt_prog_compiler_pic_CXX
=
21971 lt_prog_compiler_static_CXX
='-non_shared'
21973 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21974 # IBM XL 8.0, 9.0 on PPC and BlueGene
21975 lt_prog_compiler_wl_CXX
='-Wl,'
21976 lt_prog_compiler_pic_CXX
='-qpic'
21977 lt_prog_compiler_static_CXX
='-qstaticlink'
21980 case `$CC -V 2>&1 | sed 5q` in
21983 lt_prog_compiler_pic_CXX
='-KPIC'
21984 lt_prog_compiler_static_CXX
='-Bstatic'
21985 lt_prog_compiler_wl_CXX
='-Qoption ld '
21996 case $cc_basename in
21998 lt_prog_compiler_pic_CXX
='-W c,exportall'
22007 # QNX uses GNU C++, but need to define -shared option too, otherwise
22008 # it will coredump.
22009 lt_prog_compiler_pic_CXX
='-fPIC -shared'
22011 osf3
* | osf4
* | osf5
*)
22012 case $cc_basename in
22014 lt_prog_compiler_wl_CXX
='--backend -Wl,'
22017 # Rational C++ 2.4.1
22018 lt_prog_compiler_pic_CXX
='-pic'
22021 # Digital/Compaq C++
22022 lt_prog_compiler_wl_CXX
='-Wl,'
22023 # Make sure the PIC flag is empty. It appears that all Alpha
22024 # Linux and Compaq Tru64 Unix objects are PIC.
22025 lt_prog_compiler_pic_CXX
=
22026 lt_prog_compiler_static_CXX
='-non_shared'
22035 case $cc_basename in
22037 # Sun C++ 4.2, 5.x and Centerline C++
22038 lt_prog_compiler_pic_CXX
='-KPIC'
22039 lt_prog_compiler_static_CXX
='-Bstatic'
22040 lt_prog_compiler_wl_CXX
='-Qoption ld '
22043 # Green Hills C++ Compiler
22044 lt_prog_compiler_pic_CXX
='-PIC'
22051 case $cc_basename in
22054 lt_prog_compiler_pic_CXX
='-pic'
22055 lt_prog_compiler_static_CXX
='-Bstatic'
22059 lt_prog_compiler_pic_CXX
='-pic'
22065 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
22066 case $cc_basename in
22068 lt_prog_compiler_wl_CXX
='-Wl,'
22069 lt_prog_compiler_pic_CXX
='-KPIC'
22070 lt_prog_compiler_static_CXX
='-Bstatic'
22075 case $cc_basename in
22077 # NonStop-UX NCC 3.20
22078 lt_prog_compiler_pic_CXX
='-KPIC'
22087 lt_prog_compiler_can_build_shared_CXX
=no
22093 # For platforms which do not support PIC, -DPIC is meaningless:
22095 lt_prog_compiler_pic_CXX
=
22098 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
22102 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
22107 # Check to make sure the PIC flag actually works.
22109 if test -n "$lt_prog_compiler_pic_CXX"; then
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22111 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22112 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
22113 $as_echo_n "(cached) " >&6
22115 lt_cv_prog_compiler_pic_works_CXX
=no
22116 ac_outfile
=conftest.
$ac_objext
22117 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22118 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
22119 # Insert the option either (1) after the last *FLAGS variable, or
22120 # (2) before a word containing "conftest.", or (3) at the end.
22121 # Note that $ac_compile itself does not contain backslashes and begins
22122 # with a dollar sign (not a hyphen), so the echo should work correctly.
22123 # The option is referenced via a variable to avoid confusing sed.
22124 lt_compile
=`echo "$ac_compile" | $SED \
22125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22127 -e 's:$: $lt_compiler_flag:'`
22128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22129 (eval "$lt_compile" 2>conftest.err
)
22131 cat conftest.err
>&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 if (exit $ac_status) && test -s "$ac_outfile"; then
22134 # The compiler can only warn and ignore the option if not recognized
22135 # So say no if there are warnings other than the usual output.
22136 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
22137 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22138 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
22139 lt_cv_prog_compiler_pic_works_CXX
=yes
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22146 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22148 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
22149 case $lt_prog_compiler_pic_CXX in
22151 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
22154 lt_prog_compiler_pic_CXX
=
22155 lt_prog_compiler_can_build_shared_CXX
=no
22163 # Check to make sure the static flag actually works.
22165 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22167 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22168 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
22169 $as_echo_n "(cached) " >&6
22171 lt_cv_prog_compiler_static_works_CXX
=no
22172 save_LDFLAGS
="$LDFLAGS"
22173 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
22174 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
22175 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
22176 # The linker can only warn and ignore the option if not recognized
22177 # So say no if there are warnings
22178 if test -s conftest.err
; then
22179 # Append any errors to the config.log.
22180 cat conftest.err
1>&5
22181 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
22182 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
22183 if diff conftest.exp conftest.er2
>/dev
/null
; then
22184 lt_cv_prog_compiler_static_works_CXX
=yes
22187 lt_cv_prog_compiler_static_works_CXX
=yes
22191 LDFLAGS
="$save_LDFLAGS"
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22195 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22197 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
22200 lt_prog_compiler_static_CXX
=
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22208 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22209 $as_echo_n "(cached) " >&6
22211 lt_cv_prog_compiler_c_o_CXX
=no
22212 $RM -r conftest
2>/dev
/null
22216 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22218 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22219 # Insert the option either (1) after the last *FLAGS variable, or
22220 # (2) before a word containing "conftest.", or (3) at the end.
22221 # Note that $ac_compile itself does not contain backslashes and begins
22222 # with a dollar sign (not a hyphen), so the echo should work correctly.
22223 lt_compile
=`echo "$ac_compile" | $SED \
22224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22226 -e 's:$: $lt_compiler_flag:'`
22227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22228 (eval "$lt_compile" 2>out
/conftest.err
)
22230 cat out
/conftest.err
>&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22234 # The compiler can only warn and ignore the option if not recognized
22235 # So say no if there are warnings
22236 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22237 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22238 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22239 lt_cv_prog_compiler_c_o_CXX
=yes
22244 # SGI C++ compiler will create directory out/ii_files/ for
22245 # template instantiation
22246 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22247 $RM out
/* && rmdir out
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22254 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22260 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22261 $as_echo_n "(cached) " >&6
22263 lt_cv_prog_compiler_c_o_CXX
=no
22264 $RM -r conftest
2>/dev
/null
22268 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22270 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22271 # Insert the option either (1) after the last *FLAGS variable, or
22272 # (2) before a word containing "conftest.", or (3) at the end.
22273 # Note that $ac_compile itself does not contain backslashes and begins
22274 # with a dollar sign (not a hyphen), so the echo should work correctly.
22275 lt_compile
=`echo "$ac_compile" | $SED \
22276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22278 -e 's:$: $lt_compiler_flag:'`
22279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22280 (eval "$lt_compile" 2>out
/conftest.err
)
22282 cat out
/conftest.err
>&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22286 # The compiler can only warn and ignore the option if not recognized
22287 # So say no if there are warnings
22288 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22289 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22290 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22291 lt_cv_prog_compiler_c_o_CXX
=yes
22296 # SGI C++ compiler will create directory out/ii_files/ for
22297 # template instantiation
22298 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22299 $RM out
/* && rmdir out
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22306 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22311 hard_links
="nottested"
22312 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22313 # do not overwrite the value of need_locks provided by the user
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22315 $as_echo_n "checking if we can lock with hard links... " >&6; }
22318 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22320 ln conftest.a conftest.b
2>&5 || hard_links
=no
22321 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22323 $as_echo "$hard_links" >&6; }
22324 if test "$hard_links" = no
; then
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22326 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22338 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22341 # If we're using GNU nm, then we don't want the "-C" option.
22342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22343 # Also, AIX nm treats weak defined symbols like other global defined
22344 # symbols, whereas GNU nm marks them as "W".
22345 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22346 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'
22348 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'
22352 export_symbols_cmds_CXX
="$ltdll_cmds"
22354 cygwin
* | mingw
* | cegcc
*)
22355 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'
22358 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22361 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22364 $as_echo "$ld_shlibs_CXX" >&6; }
22365 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22367 with_gnu_ld_CXX
=$with_gnu_ld
22375 # Do we need to explicitly link libc?
22377 case "x$archive_cmds_need_lc_CXX" in
22379 # Assume -lc should be added
22380 archive_cmds_need_lc_CXX
=yes
22382 if test "$enable_shared" = yes && test "$GCC" = yes; then
22383 case $archive_cmds_CXX in
22385 # FIXME: we may have to deal with multi-command sequences.
22388 # Test whether the compiler implicitly links with -lc since on some
22389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22390 # to ld, don't add -lc before -lgcc.
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22392 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22393 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22394 $as_echo_n "(cached) " >&6
22397 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22400 (eval $ac_compile) 2>&5
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; } 2>conftest.err
; then
22406 libobjs
=conftest.
$ac_objext
22408 wl
=$lt_prog_compiler_wl_CXX
22409 pic_flag
=$lt_prog_compiler_pic_CXX
22415 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22416 allow_undefined_flag_CXX
=
22417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22418 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22421 test $ac_status = 0; }
22423 lt_cv_archive_cmds_need_lc_CXX
=no
22425 lt_cv_archive_cmds_need_lc_CXX
=yes
22427 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22429 cat conftest.err
1>&5
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22435 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22436 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22507 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22509 library_names_spec
=
22510 libname_spec
='lib$name'
22514 postuninstall_cmds
=
22518 shlibpath_overrides_runpath
=unknown
22520 dynamic_linker
="$host_os ld.so"
22521 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22522 need_lib_prefix
=unknown
22523 hardcode_into_libs
=no
22525 # when you set need_version to no, make sure it does not cause -set_version
22526 # flags to be left without arguments
22527 need_version
=unknown
22532 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22533 shlibpath_var
=LIBPATH
22535 # AIX 3 has no versioning support, so we append a major version to the name.
22536 soname_spec
='${libname}${release}${shared_ext}$major'
22543 hardcode_into_libs
=yes
22544 if test "$host_cpu" = ia64
; then
22545 # AIX 5 supports IA64
22546 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22547 shlibpath_var
=LD_LIBRARY_PATH
22549 # With GCC up to 2.95.x, collect2 would create an import file
22550 # for dependence libraries. The import file would start with
22551 # the line `#! .'. This would cause the generated library to
22552 # depend on `.', always an invalid library. This was fixed in
22553 # development snapshots of GCC prior to 3.0.
22555 aix4 | aix4.
[01] | aix4.
[01].
*)
22556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22558 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22561 can_build_shared
=no
22565 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22566 # soname into executable. Probably we can add versioning support to
22567 # collect2, so additional links can be useful in future.
22568 if test "$aix_use_runtimelinking" = yes; then
22569 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22570 # instead of lib<name>.a to let people know that these are not
22571 # typical AIX shared libraries.
22572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22574 # We preserve .a as extension for shared libraries through AIX4.2
22575 # and later when we are not doing run time linking.
22576 library_names_spec
='${libname}${release}.a $libname.a'
22577 soname_spec
='${libname}${release}${shared_ext}$major'
22579 shlibpath_var
=LIBPATH
22586 # Since July 2007 AmigaOS4 officially supports .so libraries.
22587 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22591 library_names_spec
='$libname.ixlibrary $libname.a'
22592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22593 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'
22599 library_names_spec
='${libname}${shared_ext}'
22600 dynamic_linker
="$host_os ld.so"
22601 shlibpath_var
=LIBRARY_PATH
22607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22608 soname_spec
='${libname}${release}${shared_ext}$major'
22609 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22610 shlibpath_var
=LD_LIBRARY_PATH
22611 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22612 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22613 # the default ld.so.conf also contains /usr/contrib/lib and
22614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22615 # libtool to hard-code these into programs
22618 cygwin
* | mingw
* | pw32
* | cegcc
*)
22619 version_type
=windows
22624 case $GCC,$host_os in
22625 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22626 library_names_spec
='$libname.dll.a'
22627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22628 postinstall_cmds
='base_file=`basename \${file}`~
22629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22630 dldir=$destdir/`dirname \$dlpath`~
22631 test -d \$dldir || mkdir -p \$dldir~
22632 $install_prog $dir/$dlname \$dldir/$dlname~
22633 chmod a+x \$dldir/$dlname~
22634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22637 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22638 dlpath=$dir/\$dldll~
22640 shlibpath_overrides_runpath
=yes
22644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22645 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22649 # MinGW DLLs use traditional 'lib' prefix
22650 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22653 # pw32 DLLs use 'pw' prefix rather than 'lib'
22654 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22660 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22663 dynamic_linker
='Win32 ld.exe'
22664 # FIXME: first we should search . and the directory the executable is in
22668 darwin
* | rhapsody
*)
22669 dynamic_linker
="$host_os dyld"
22670 version_type
=darwin
22673 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22674 soname_spec
='${libname}${release}${major}$shared_ext'
22675 shlibpath_overrides_runpath
=yes
22676 shlibpath_var
=DYLD_LIBRARY_PATH
22677 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22679 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22686 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22687 soname_spec
='${libname}${release}${shared_ext}$major'
22688 shlibpath_var
=LD_LIBRARY_PATH
22691 freebsd
* | dragonfly
*)
22692 # DragonFly does not have aout. When/if they implement a new
22693 # versioning mechanism, adjust this.
22694 if test -x /usr
/bin
/objformat
; then
22695 objformat
=`/usr/bin/objformat`
22698 freebsd
[23].
*) objformat
=aout
;;
22699 *) objformat
=elf
;;
22702 version_type
=freebsd-
$objformat
22703 case $version_type in
22705 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22710 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22714 shlibpath_var
=LD_LIBRARY_PATH
22717 shlibpath_overrides_runpath
=yes
22719 freebsd3.
[01]* | freebsdelf3.
[01]*)
22720 shlibpath_overrides_runpath
=yes
22721 hardcode_into_libs
=yes
22723 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22724 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22725 shlibpath_overrides_runpath
=no
22726 hardcode_into_libs
=yes
22728 *) # from 4.6 on, and DragonFly
22729 shlibpath_overrides_runpath
=yes
22730 hardcode_into_libs
=yes
22739 dynamic_linker
="$host_os runtime_loader"
22740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22741 soname_spec
='${libname}${release}${shared_ext}$major'
22742 shlibpath_var
=LIBRARY_PATH
22743 shlibpath_overrides_runpath
=yes
22744 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22745 hardcode_into_libs
=yes
22748 hpux9
* | hpux10
* | hpux11
*)
22749 # Give a soname corresponding to the major version so that dld.sl refuses to
22750 # link against other versions.
22757 hardcode_into_libs
=yes
22758 dynamic_linker
="$host_os dld.so"
22759 shlibpath_var
=LD_LIBRARY_PATH
22760 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762 soname_spec
='${libname}${release}${shared_ext}$major'
22763 if test "X$HPUX_IA64_MODE" = X32
; then
22764 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22766 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22768 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22772 hardcode_into_libs
=yes
22773 dynamic_linker
="$host_os dld.sl"
22774 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22775 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22777 soname_spec
='${libname}${release}${shared_ext}$major'
22778 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22779 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22783 dynamic_linker
="$host_os dld.sl"
22784 shlibpath_var
=SHLIB_PATH
22785 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22787 soname_spec
='${libname}${release}${shared_ext}$major'
22790 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22791 postinstall_cmds
='chmod 555 $lib'
22792 # or fails outright, so override atomically:
22793 install_override_mode
=555
22800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22801 soname_spec
='${libname}${release}${shared_ext}$major'
22802 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22803 shlibpath_var
=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath
=no
22805 hardcode_into_libs
=yes
22808 irix5
* | irix6
* | nonstopux
*)
22810 nonstopux
*) version_type
=nonstopux
;;
22812 if test "$lt_cv_prog_gnu_ld" = yes; then
22820 soname_spec
='${libname}${release}${shared_ext}$major'
22821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22823 irix5
* | nonstopux
*)
22824 libsuff
= shlibsuff
=
22827 case $LD in # libtool.m4 will add one of these switches to LD
22828 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22829 libsuff
= shlibsuff
= libmagic
=32-bit;;
22830 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22831 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22832 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22833 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22834 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22838 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22839 shlibpath_overrides_runpath
=no
22840 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22841 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22842 hardcode_into_libs
=yes
22845 # No shared lib support for Linux oldld, aout, or coff.
22846 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22850 # This must be Linux ELF.
22852 # uclinux* changes (here and below) have been submitted to the libtool
22853 # project, but have not yet been accepted: they are GCC-local changes
22854 # for the time being. (See
22855 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22856 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861 soname_spec
='${libname}${release}${shared_ext}$major'
22862 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22863 shlibpath_var
=LD_LIBRARY_PATH
22864 shlibpath_overrides_runpath
=no
22866 # Some binutils ld are patched to set DT_RUNPATH
22867 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22868 $as_echo_n "(cached) " >&6
22870 lt_cv_shlibpath_overrides_runpath
=no
22871 save_LDFLAGS
=$LDFLAGS
22872 save_libdir
=$libdir
22873 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22874 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22876 /* end confdefs.h. */
22886 if ac_fn_cxx_try_link
"$LINENO"; then :
22887 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22888 lt_cv_shlibpath_overrides_runpath
=yes
22891 rm -f core conftest.err conftest.
$ac_objext \
22892 conftest
$ac_exeext conftest.
$ac_ext
22893 LDFLAGS
=$save_LDFLAGS
22894 libdir
=$save_libdir
22898 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22900 # This implies no fast_install, which is unacceptable.
22901 # Some rework will be needed to allow for fast_install
22902 # before this can be enabled.
22903 hardcode_into_libs
=yes
22905 # Append ld.so.conf contents to the search path
22906 if test -f /etc
/ld.so.conf
; then
22907 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' ' '`
22908 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22911 # We used to test for /lib/ld.so.1 and disable shared libraries on
22912 # powerpc, because MkLinux only supported shared libraries with the
22913 # GNU dynamic linker. Since this was broken with cross compilers,
22914 # most powerpc-linux boxes support dynamic linking these days and
22915 # people can always --disable-shared, the test was removed, and we
22916 # assume the GNU/Linux dynamic linker is in use.
22917 dynamic_linker
='GNU/Linux ld.so'
22924 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22926 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22927 dynamic_linker
='NetBSD (a.out) ld.so'
22929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22930 soname_spec
='${libname}${release}${shared_ext}$major'
22931 dynamic_linker
='NetBSD ld.elf_so'
22933 shlibpath_var
=LD_LIBRARY_PATH
22934 shlibpath_overrides_runpath
=yes
22935 hardcode_into_libs
=yes
22940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941 shlibpath_var
=LD_LIBRARY_PATH
22942 shlibpath_overrides_runpath
=yes
22949 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950 soname_spec
='${libname}${release}${shared_ext}$major'
22951 shlibpath_var
=LD_LIBRARY_PATH
22952 shlibpath_overrides_runpath
=no
22953 hardcode_into_libs
=yes
22954 dynamic_linker
='ldqnx.so'
22959 sys_lib_dlsearch_path_spec
="/usr/lib"
22961 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22963 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22964 *) need_version
=no
;;
22966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22967 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22968 shlibpath_var
=LD_LIBRARY_PATH
22969 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22971 openbsd2.
[89] | openbsd2.
[89].
*)
22972 shlibpath_overrides_runpath
=no
22975 shlibpath_overrides_runpath
=yes
22979 shlibpath_overrides_runpath
=yes
22984 libname_spec
='$name'
22987 library_names_spec
='$libname${shared_ext} $libname.a'
22988 dynamic_linker
='OS/2 ld.exe'
22989 shlibpath_var
=LIBPATH
22992 osf3
* | osf4
* | osf5
*)
22996 soname_spec
='${libname}${release}${shared_ext}$major'
22997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22998 shlibpath_var
=LD_LIBRARY_PATH
22999 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23000 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23012 soname_spec
='${libname}${release}${shared_ext}$major'
23013 shlibpath_var
=LD_LIBRARY_PATH
23014 shlibpath_overrides_runpath
=yes
23015 hardcode_into_libs
=yes
23016 # ldd complains unless libraries are executable
23017 postinstall_cmds
='chmod +x $lib'
23022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23023 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23024 shlibpath_var
=LD_LIBRARY_PATH
23025 shlibpath_overrides_runpath
=yes
23026 if test "$with_gnu_ld" = yes; then
23034 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035 soname_spec
='${libname}${release}${shared_ext}$major'
23036 shlibpath_var
=LD_LIBRARY_PATH
23037 case $host_vendor in
23039 shlibpath_overrides_runpath
=no
23041 runpath_var
=LD_RUN_PATH
23049 shlibpath_overrides_runpath
=no
23050 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23056 if test -d /usr
/nec
;then
23058 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23059 soname_spec
='$libname${shared_ext}.$major'
23060 shlibpath_var
=LD_LIBRARY_PATH
23064 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23065 version_type
=freebsd-elf
23068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23069 soname_spec
='${libname}${release}${shared_ext}$major'
23070 shlibpath_var
=LD_LIBRARY_PATH
23071 shlibpath_overrides_runpath
=yes
23072 hardcode_into_libs
=yes
23073 if test "$with_gnu_ld" = yes; then
23074 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23076 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23079 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23083 sys_lib_dlsearch_path_spec
='/usr/lib'
23087 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23092 shlibpath_var
=LD_LIBRARY_PATH
23093 shlibpath_overrides_runpath
=no
23094 hardcode_into_libs
=yes
23099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23100 soname_spec
='${libname}${release}${shared_ext}$major'
23101 shlibpath_var
=LD_LIBRARY_PATH
23104 # Shared libraries for VwWorks, >= 7 only at this stage
23105 # and (fpic) still incompatible with "large" code models
23106 # in a few configurations. Only for RTP mode in any case,
23107 # and upon explicit request at configure time.
23110 case ${with_multisubdir}-${enable_shared} in
23117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23118 soname_spec
='${libname}${release}${shared_ext}$major'
23119 dynamic_linker
="$host_os module_loader"
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23128 $as_echo "$dynamic_linker" >&6; }
23129 test "$dynamic_linker" = no
&& can_build_shared
=no
23131 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23132 if test "$GCC" = yes; then
23133 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23136 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23137 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
23139 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23140 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23181 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23182 hardcode_action_CXX
=
23183 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23184 test -n "$runpath_var_CXX" ||
23185 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23187 # We can hardcode non-existent directories.
23188 if test "$hardcode_direct_CXX" != no
&&
23189 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23190 # have to relink, otherwise we might link with an installed library
23191 # when we should be linking with a yet-to-be-installed one
23192 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23193 test "$hardcode_minus_L_CXX" != no
; then
23194 # Linking always hardcodes the temporary library directory.
23195 hardcode_action_CXX
=relink
23197 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23198 hardcode_action_CXX
=immediate
23201 # We cannot hardcode anything, or else we can only hardcode existing
23203 hardcode_action_CXX
=unsupported
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23206 $as_echo "$hardcode_action_CXX" >&6; }
23208 if test "$hardcode_action_CXX" = relink ||
23209 test "$inherit_rpath_CXX" = yes; then
23210 # Fast installation is not supported
23211 enable_fast_install
=no
23212 elif test "$shlibpath_overrides_runpath" = yes ||
23213 test "$enable_shared" = no
; then
23214 # Fast installation is not necessary
23215 enable_fast_install
=needless
23224 fi # test -n "$compiler"
23230 with_gnu_ld
=$lt_save_with_gnu_ld
23231 lt_cv_path_LDCXX
=$lt_cv_path_LD
23232 lt_cv_path_LD
=$lt_save_path_LD
23233 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23234 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23235 fi # test "$_lt_caught_CXX_error" != yes
23238 ac_cpp
='$CXXCPP $CPPFLAGS'
23239 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23240 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23241 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23258 # Only expand once:
23264 # Identify the assembler which will work hand-in-glove with the newly
23265 # built GCC, so that we can examine its features. This is the assembler
23266 # which will be driven by the driver program.
23268 # If build != host, and we aren't building gas in-tree, we identify a
23269 # build->target assembler and hope that it will have the same features
23270 # as the host->target assembler we'll be using.
23271 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23273 if ${gcc_cv_as+:} false
; then :
23277 if test -x "$DEFAULT_ASSEMBLER"; then
23278 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23279 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23280 && test -f ..
/gas
/Makefile \
23281 && test x
$build = x
$host; then
23282 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23283 elif test -x as
$build_exeext; then
23284 # Build using assembler in the current directory.
23285 gcc_cv_as
=.
/as
$build_exeext
23286 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23287 gcc_cv_as
="$AS_FOR_TARGET"
23289 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23290 set dummy
$AS_FOR_TARGET; ac_word
=$2
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23292 $as_echo_n "checking for $ac_word... " >&6; }
23293 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23294 $as_echo_n "(cached) " >&6
23298 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23302 for as_dir
in $PATH
23305 test -z "$as_dir" && as_dir
=.
23306 for ac_exec_ext
in '' $ac_executable_extensions; do
23307 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23308 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23319 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23320 if test -n "$gcc_cv_as"; then
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23322 $as_echo "$gcc_cv_as" >&6; }
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23325 $as_echo "no" >&6; }
23332 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23334 case "$ORIGINAL_AS_FOR_TARGET" in
23335 .
/as | .
/as
$build_exeext) ;;
23336 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23341 # Check whether --enable-ld was given.
23342 if test "${enable_ld+set}" = set; then :
23343 enableval
=$enable_ld; case "${enableval}" in
23351 install_gold_as_default
=no
23352 # Check whether --enable-gold was given.
23353 if test "${enable_gold+set}" = set; then :
23354 enableval
=$enable_gold; case "${enableval}" in
23356 install_gold_as_default
=yes
23359 if test x
${default_ld} != x
; then
23360 install_gold_as_default
=yes
23366 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23372 # Identify the linker which will work hand-in-glove with the newly
23373 # built GCC, so that we can examine its features. This is the linker
23374 # which will be driven by the driver program.
23376 # If build != host, and we aren't building gas in-tree, we identify a
23377 # build->target linker and hope that it will have the same features
23378 # as the host->target linker we'll be using.
23379 gcc_cv_gld_major_version
=
23380 gcc_cv_gld_minor_version
=
23381 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23382 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23383 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23385 if ${gcc_cv_ld+:} false
; then :
23389 if test -x "$DEFAULT_LINKER"; then
23390 gcc_cv_ld
="$DEFAULT_LINKER"
23391 elif test $install_gold_as_default = yes \
23392 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23393 && test -f ..
/gold
/Makefile \
23394 && test x
$build = x
$host; then
23395 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23396 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23397 && test -f ..
/ld
/Makefile \
23398 && test x
$build = x
$host; then
23399 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23400 elif test -x collect-ld
$build_exeext; then
23401 # Build using linker in the current directory.
23402 gcc_cv_ld
=.
/collect-ld
$build_exeext
23403 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23404 gcc_cv_ld
="$LD_FOR_TARGET"
23406 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23407 set dummy
$LD_FOR_TARGET; ac_word
=$2
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23409 $as_echo_n "checking for $ac_word... " >&6; }
23410 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23411 $as_echo_n "(cached) " >&6
23415 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23419 for as_dir
in $PATH
23422 test -z "$as_dir" && as_dir
=.
23423 for ac_exec_ext
in '' $ac_executable_extensions; do
23424 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23425 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23436 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23437 if test -n "$gcc_cv_ld"; then
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23439 $as_echo "$gcc_cv_ld" >&6; }
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23442 $as_echo "no" >&6; }
23449 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23450 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23451 # if the PLUGIN_LD is set ld-new, just have it as ld
23452 # as that is the installed named.
23453 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23454 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23455 PLUGIN_LD_SUFFIX
=ld
23458 # Check whether --with-plugin-ld was given.
23459 if test "${with_plugin_ld+set}" = set; then :
23460 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23461 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23462 PLUGIN_LD_SUFFIX
="$withval"
23468 cat >>confdefs.h
<<_ACEOF
23469 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23473 # Check to see if we are using gold instead of ld
23474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23475 $as_echo_n "checking whether we are using gold... " >&6; }
23477 if test x
$gcc_cv_ld != x
; then
23478 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23479 |
grep "GNU gold" > /dev
/null
; then
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23484 $as_echo "$ld_is_gold" >&6; }
23486 # Check to see if we are using mold instead of ld
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23488 $as_echo_n "checking whether we are using mold... " >&6; }
23490 if test x
$gcc_cv_ld != x
; then
23491 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23492 |
grep "mold" > /dev
/null
; then
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23497 $as_echo "$ld_is_mold" >&6; }
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23501 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23502 # Check to see if default ld is not gold, but gold is
23503 # available and has support for split stack. If gcc was configured
23504 # with gold then no checking is done.
23506 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23508 # For platforms other than powerpc64*, enable as appropriate.
23510 gold_non_default
=no
23511 ld_gold
=`which ${gcc_cv_ld}.gold`
23512 # Make sure this gold has minimal split stack support
23513 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23514 ld_vers
=`$ld_gold --version | sed 1q`
23515 gold_vers
=`echo $ld_vers | sed -n \
23516 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23518 # check that the gold version contains the complete split stack support
23519 # on powerpc64 big and little endian
23521 case "$gold_vers" in
23522 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23524 *) gold_non_default
=no
23530 if test $gold_non_default = yes; then
23532 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23537 $as_echo "$gold_non_default" >&6; }
23539 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23541 case "$ORIGINAL_LD_FOR_TARGET" in
23542 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23543 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23548 $as_echo_n "checking what linker to use... " >&6; }
23549 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23550 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23551 # Single tree build which includes ld. We want to prefer it
23552 # over whatever linker top-level may have detected, since
23553 # we'll use what we're building after installation anyway.
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23555 $as_echo "newly built ld" >&6; }
23557 in_tree_ld_is_elf
=no
23558 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23559 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23560 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23561 in_tree_ld_is_elf
=yes
23562 elif test "$ld_is_gold" = yes; then
23563 in_tree_ld_is_elf
=yes
23565 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
23567 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23568 if test x
$gcc_cv_gld_version != x
; then
23572 case $gcc_cv_gld_version in
23574 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23576 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23577 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23578 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23579 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23582 $as_echo "$gcc_cv_ld" >&6; }
23584 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23585 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23586 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23592 # Figure out what nm we will be using.
23593 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23594 if ${gcc_cv_nm+:} false
; then :
23598 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23599 && test -f ..
/binutils
/Makefile \
23600 && test x
$build = x
$host; then
23601 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23602 elif test -x nm
$build_exeext; then
23603 gcc_cv_nm
=.
/nm
$build_exeext
23604 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23605 gcc_cv_nm
="$NM_FOR_TARGET"
23607 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23608 set dummy
$NM_FOR_TARGET; ac_word
=$2
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23610 $as_echo_n "checking for $ac_word... " >&6; }
23611 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23612 $as_echo_n "(cached) " >&6
23616 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23620 for as_dir
in $PATH
23623 test -z "$as_dir" && as_dir
=.
23624 for ac_exec_ext
in '' $ac_executable_extensions; do
23625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23626 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23637 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23638 if test -n "$gcc_cv_nm"; then
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23640 $as_echo "$gcc_cv_nm" >&6; }
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23643 $as_echo "no" >&6; }
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23651 $as_echo_n "checking what nm to use... " >&6; }
23652 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23653 # Single tree build which includes binutils.
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23655 $as_echo "newly built nm" >&6; }
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23659 $as_echo "$gcc_cv_nm" >&6; }
23663 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23665 case "$ORIGINAL_NM_FOR_TARGET" in
23666 .
/nm | .
/nm
$build_exeext) ;;
23667 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23672 # Figure out what objdump we will be using.
23673 if ${gcc_cv_objdump+:} false
; then :
23677 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23678 && test -f ..
/binutils
/Makefile \
23679 && test x
$build = x
$host; then
23680 # Single tree build which includes binutils.
23681 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23682 elif test -x objdump
$build_exeext; then
23683 gcc_cv_objdump
=.
/objdump
$build_exeext
23684 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23685 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23687 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23688 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23690 $as_echo_n "checking for $ac_word... " >&6; }
23691 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23692 $as_echo_n "(cached) " >&6
23694 case $gcc_cv_objdump in
23696 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23700 for as_dir
in $PATH
23703 test -z "$as_dir" && as_dir
=.
23704 for ac_exec_ext
in '' $ac_executable_extensions; do
23705 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23706 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23717 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23718 if test -n "$gcc_cv_objdump"; then
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23720 $as_echo "$gcc_cv_objdump" >&6; }
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23723 $as_echo "no" >&6; }
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23731 $as_echo_n "checking what objdump to use... " >&6; }
23732 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23733 # Single tree build which includes binutils.
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23735 $as_echo "newly built objdump" >&6; }
23736 elif test x
$gcc_cv_objdump = x
; then
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23738 $as_echo "not found" >&6; }
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23741 $as_echo "$gcc_cv_objdump" >&6; }
23744 # Figure out what readelf we will be using.
23745 if ${gcc_cv_readelf+:} false
; then :
23749 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23750 && test -f ..
/binutils
/Makefile \
23751 && test x
$build = x
$host; then
23752 # Single tree build which includes binutils.
23753 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23754 elif test -x readelf
$build_exeext; then
23755 gcc_cv_readelf
=.
/readelf
$build_exeext
23756 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23757 gcc_cv_readelf
="$READELF_FOR_TARGET"
23759 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23760 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23762 $as_echo_n "checking for $ac_word... " >&6; }
23763 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23764 $as_echo_n "(cached) " >&6
23766 case $gcc_cv_readelf in
23768 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23772 for as_dir
in $PATH
23775 test -z "$as_dir" && as_dir
=.
23776 for ac_exec_ext
in '' $ac_executable_extensions; do
23777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23778 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23789 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23790 if test -n "$gcc_cv_readelf"; then
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23792 $as_echo "$gcc_cv_readelf" >&6; }
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23795 $as_echo "no" >&6; }
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23803 $as_echo_n "checking what readelf to use... " >&6; }
23804 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23805 # Single tree build which includes binutils.
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23807 $as_echo "newly built readelf" >&6; }
23808 elif test x
$gcc_cv_readelf = x
; then
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23810 $as_echo "not found" >&6; }
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23813 $as_echo "$gcc_cv_readelf" >&6; }
23816 # Figure out what otool we will be using.
23817 if ${gcc_cv_otool+:} false
; then :
23821 if test -x otool
$build_exeext; then
23822 gcc_cv_otool
=.
/otool
$build_exeext
23823 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23824 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23826 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23827 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23829 $as_echo_n "checking for $ac_word... " >&6; }
23830 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23831 $as_echo_n "(cached) " >&6
23833 case $gcc_cv_otool in
23835 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23839 for as_dir
in $PATH
23842 test -z "$as_dir" && as_dir
=.
23843 for ac_exec_ext
in '' $ac_executable_extensions; do
23844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23845 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23856 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23857 if test -n "$gcc_cv_otool"; then
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23859 $as_echo "$gcc_cv_otool" >&6; }
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23862 $as_echo "no" >&6; }
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23870 $as_echo_n "checking what otool to use... " >&6; }
23871 if test x
$gcc_cv_otool = x
; then
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23873 $as_echo "not found" >&6; }
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23876 $as_echo "$gcc_cv_otool" >&6; }
23879 # Figure out the dsymutil we will use.
23880 if ${gcc_cv_dsymutil+:} false
; then :
23884 if test -x "$DEFAULT_DSYMUTIL"; then
23885 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23886 elif test -x dsymutil
$build_exeext; then
23887 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23888 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23889 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23890 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23891 gcc_cv_dsymutil
=$DSYMUTIL
23893 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23894 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23896 $as_echo_n "checking for $ac_word... " >&6; }
23897 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23898 $as_echo_n "(cached) " >&6
23900 case $gcc_cv_dsymutil in
23902 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23906 for as_dir
in $PATH
23909 test -z "$as_dir" && as_dir
=.
23910 for ac_exec_ext
in '' $ac_executable_extensions; do
23911 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23912 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23923 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23924 if test -n "$gcc_cv_dsymutil"; then
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23926 $as_echo "$gcc_cv_dsymutil" >&6; }
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23929 $as_echo "no" >&6; }
23936 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23938 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23939 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23940 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23944 # Figure out what assembler alignment features are present.
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23946 $as_echo_n "checking assembler flags... " >&6; }
23947 if ${gcc_cv_as_flags+:} false
; then :
23948 $as_echo_n "(cached) " >&6
23951 i
[34567]86-*-linux*)
23952 gcc_cv_as_flags
=--32
23954 x86_64-
*-linux-gnux32)
23955 gcc_cv_as_flags
=--x32
23958 gcc_cv_as_flags
=--64
23960 powerpc
*-*-darwin*)
23961 gcc_cv_as_flags
="-arch ppc"
23964 gcc_cv_as_flags
=" "
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23969 $as_echo "$gcc_cv_as_flags" >&6; }
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23972 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23973 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23974 $as_echo_n "(cached) " >&6
23976 gcc_cv_as_balign_and_p2align
=no
23977 if test x
$gcc_cv_as != x
; then
23978 $as_echo '.balign 4
23979 .p2align 2' > conftest.s
23980 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23982 (eval $ac_try) 2>&5
23984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23985 test $ac_status = 0; }; }
23987 gcc_cv_as_balign_and_p2align
=yes
23989 echo "configure: failed program was" >&5
23992 rm -f conftest.o conftest.s
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23996 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23997 if test $gcc_cv_as_balign_and_p2align = yes; then
23999 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
24005 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
24006 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
24007 $as_echo_n "(cached) " >&6
24009 gcc_cv_as_max_skip_p2align
=no
24010 if test x
$gcc_cv_as != x
; then
24011 $as_echo '.p2align 4,,7' > conftest.s
24012 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24019 gcc_cv_as_max_skip_p2align
=yes
24021 echo "configure: failed program was" >&5
24024 rm -f conftest.o conftest.s
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
24028 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
24029 if test $gcc_cv_as_max_skip_p2align = yes; then
24031 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
24037 $as_echo_n "checking assembler for .literal16... " >&6; }
24038 if ${gcc_cv_as_literal16+:} false
; then :
24039 $as_echo_n "(cached) " >&6
24041 gcc_cv_as_literal16
=no
24042 if test x
$gcc_cv_as != x
; then
24043 $as_echo '.literal16' > conftest.s
24044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24046 (eval $ac_try) 2>&5
24048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24049 test $ac_status = 0; }; }
24051 gcc_cv_as_literal16
=yes
24053 echo "configure: failed program was" >&5
24056 rm -f conftest.o conftest.s
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
24060 $as_echo "$gcc_cv_as_literal16" >&6; }
24061 if test $gcc_cv_as_literal16 = yes; then
24063 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
24069 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
24070 if ${gcc_cv_as_subsection_m1+:} false
; then :
24071 $as_echo_n "(cached) " >&6
24073 gcc_cv_as_subsection_m1
=no
24074 if test x
$gcc_cv_as != x
; then
24075 $as_echo 'conftest_label1: .word 0
24077 conftest_label2: .word 0
24078 .previous' > conftest.s
24079 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24081 (eval $ac_try) 2>&5
24083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24084 test $ac_status = 0; }; }
24086 if test x
$gcc_cv_nm != x
; then
24087 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
24088 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
24089 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
24091 else gcc_cv_as_subsection_m1
=yes
24093 rm -f conftest.nm1 conftest.nm2
24096 echo "configure: failed program was" >&5
24099 rm -f conftest.o conftest.s
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
24103 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
24104 if test $gcc_cv_as_subsection_m1 = yes; then
24106 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
24112 $as_echo_n "checking assembler for .weak... " >&6; }
24113 if ${gcc_cv_as_weak+:} false
; then :
24114 $as_echo_n "(cached) " >&6
24117 if test x
$gcc_cv_as != x
; then
24118 $as_echo ' .weak foobar' > conftest.s
24119 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24121 (eval $ac_try) 2>&5
24123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124 test $ac_status = 0; }; }
24128 echo "configure: failed program was" >&5
24131 rm -f conftest.o conftest.s
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
24135 $as_echo "$gcc_cv_as_weak" >&6; }
24136 if test $gcc_cv_as_weak = yes; then
24138 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
24144 $as_echo_n "checking assembler for .weakref... " >&6; }
24145 if ${gcc_cv_as_weakref+:} false
; then :
24146 $as_echo_n "(cached) " >&6
24148 gcc_cv_as_weakref
=no
24149 if test x
$gcc_cv_as != x
; then
24150 $as_echo ' .weakref foobar, barfnot' > conftest.s
24151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24153 (eval $ac_try) 2>&5
24155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24156 test $ac_status = 0; }; }
24158 gcc_cv_as_weakref
=yes
24160 echo "configure: failed program was" >&5
24163 rm -f conftest.o conftest.s
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
24167 $as_echo "$gcc_cv_as_weakref" >&6; }
24168 if test $gcc_cv_as_weakref = yes; then
24170 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24176 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24177 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
24178 $as_echo_n "(cached) " >&6
24180 gcc_cv_as_nsubspa_comdat
=no
24181 if test x
$gcc_cv_as != x
; then
24182 $as_echo ' .SPACE $TEXT$
24183 .NSUBSPA $CODE$,COMDAT' > conftest.s
24184 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24186 (eval $ac_try) 2>&5
24188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24189 test $ac_status = 0; }; }
24191 gcc_cv_as_nsubspa_comdat
=yes
24193 echo "configure: failed program was" >&5
24196 rm -f conftest.o conftest.s
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24200 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24201 if test $gcc_cv_as_nsubspa_comdat = yes; then
24203 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24208 # .hidden needs to be supported in both the assembler and the linker,
24209 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24210 # This is irritatingly difficult to feature test for; we have to check the
24211 # date string after the version number. If we've got an in-tree
24212 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24214 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24215 case "${target}" in
24217 conftest_s
=' .globl foobar,hidden'
24220 conftest_s
=' .hidden foobar
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24225 $as_echo_n "checking assembler for .hidden... " >&6; }
24226 if ${gcc_cv_as_hidden+:} false
; then :
24227 $as_echo_n "(cached) " >&6
24229 gcc_cv_as_hidden
=no
24230 if test x
$gcc_cv_as != x
; then
24231 $as_echo "$conftest_s" > conftest.s
24232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24234 (eval $ac_try) 2>&5
24236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24237 test $ac_status = 0; }; }
24239 gcc_cv_as_hidden
=yes
24241 echo "configure: failed program was" >&5
24244 rm -f conftest.o conftest.s
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24248 $as_echo "$gcc_cv_as_hidden" >&6; }
24251 case "${target}" in
24253 # Darwin as has some visibility support, though with a different syntax.
24254 gcc_cv_as_hidden
=yes
24258 # gnu_indirect_function type is an extension proposed at
24259 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24260 # selection of function implementation
24261 # Check whether --enable-gnu-indirect-function was given.
24262 if test "${enable_gnu_indirect_function+set}" = set; then :
24263 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24265 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24266 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24269 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24273 case "${target}" in
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24276 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24277 cat > conftest.s
<<EOF
24279 .type foo_resolver, @function
24282 .size foo_resolver, .-foo_resolver
24285 .type foo, %gnu_indirect_function
24286 .set foo, foo_resolver
24289 .type bar, @function
24295 if test x
$gcc_cv_as != x \
24296 && test x
$gcc_cv_ld != x \
24297 && test x
$gcc_cv_readelf != x \
24298 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24299 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24300 && $gcc_cv_readelf --relocs --wide conftest \
24301 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
24302 enable_gnu_indirect_function
=yes
24304 rm -f conftest conftest.o conftest.s
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24306 $as_echo "$enable_gnu_indirect_function" >&6; }
24310 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24312 cat >>confdefs.h
<<_ACEOF
24313 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24318 if test $in_tree_ld != yes ; then
24319 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24320 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24321 if test x
"$ld_is_gold" = xyes
; then
24322 # GNU gold --version looks like this:
24324 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24326 # We extract the binutils version which is more familiar and specific
24327 # than the gold version.
24328 ld_vers
=`echo $ld_ver | sed -n \
24329 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24331 # GNU ld --version looks like this:
24333 # GNU ld (GNU Binutils) 2.21.51.20110225
24334 ld_vers
=`echo $ld_ver | sed -n \
24335 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24337 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'`
24338 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24339 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24340 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24342 case "${target}" in
24344 # Solaris 2 ld -V output looks like this for a regular version:
24346 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24348 # but test versions add stuff at the end:
24350 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24352 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24353 # numbers can be used in ld.so.1 feature checks even if a different
24354 # linker is configured.
24355 ld_ver
=`$gcc_cv_ld -V 2>&1`
24356 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24357 ld_vers
=`echo $ld_ver | sed -n \
24358 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24359 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24360 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24368 $as_echo_n "checking linker for .hidden support... " >&6; }
24369 if ${gcc_cv_ld_hidden+:} false
; then :
24370 $as_echo_n "(cached) " >&6
24372 if test $in_tree_ld = yes ; then
24373 gcc_cv_ld_hidden
=no
24374 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 \
24375 && test $in_tree_ld_is_elf = yes; then
24376 gcc_cv_ld_hidden
=yes
24379 gcc_cv_ld_hidden
=yes
24380 if test x
"$ld_is_gold" = xyes
; then
24382 elif test x
"$ld_is_mold" = xyes
; then
24384 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24385 if test 0"$ld_date" -lt 20020404; then
24386 if test -n "$ld_date"; then
24387 # If there was date string, but was earlier than 2002-04-04, fail
24388 gcc_cv_ld_hidden
=no
24389 elif test -z "$ld_vers"; then
24390 # If there was no date string nor ld version number, something is wrong
24391 gcc_cv_ld_hidden
=no
24393 test -z "$ld_vers_patch" && ld_vers_patch
=0
24394 if test "$ld_vers_major" -lt 2; then
24395 gcc_cv_ld_hidden
=no
24396 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24397 gcc_cv_ld_hidden
="no"
24398 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24399 gcc_cv_ld_hidden
=no
24404 case "${target}" in
24406 gcc_cv_ld_hidden
=yes
24409 # Darwin ld has some visibility support.
24410 gcc_cv_ld_hidden
=yes
24412 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24413 gcc_cv_ld_hidden
=yes
24416 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24417 # .symbolic was only added in Solaris 9 12/02.
24418 gcc_cv_ld_hidden
=yes
24421 gcc_cv_ld_hidden
=no
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24428 $as_echo "$gcc_cv_ld_hidden" >&6; }
24429 libgcc_visibility
=no
24432 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24433 libgcc_visibility
=yes
24435 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24440 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24441 gcc_cv_ld_ro_rw_mix
=unknown
24442 if test $in_tree_ld = yes ; then
24443 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 \
24444 && test $in_tree_ld_is_elf = yes; then
24445 gcc_cv_ld_ro_rw_mix
=read-write
24447 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24448 echo '.section myfoosect, "a"' > conftest1.s
24449 echo '.section myfoosect, "aw"' > conftest2.s
24450 echo '.byte 1' >> conftest2.s
24451 echo '.section myfoosect, "a"' > conftest3.s
24452 echo '.byte 0' >> conftest3.s
24453 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24454 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24455 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1; then
24456 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24457 conftest2.o conftest3.o
> /dev
/null
2>&1 \
24458 ||
$gcc_cv_ld -r -o conftest1.so conftest1.o \
24459 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24460 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24461 | sed -e '/myfoosect/!d' -e N`
24462 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24463 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24464 gcc_cv_ld_ro_rw_mix
=read-only
24466 gcc_cv_ld_ro_rw_mix
=read-write
24471 rm -f conftest.
* conftest
[123].
*
24473 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24475 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24479 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24481 # Check whether --enable-initfini-array was given.
24482 if test "${enable_initfini_array+set}" = set; then :
24483 enableval
=$enable_initfini_array;
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24487 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24488 if ${gcc_cv_initfini_array+:} false
; then :
24489 $as_echo_n "(cached) " >&6
24491 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24492 case "${target}" in
24494 if test "$cross_compiling" = yes; then :
24495 gcc_cv_initfini_array
=no
24497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24498 /* end confdefs.h. */
24501 #error Not an ELF OS
24503 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24504 if it can be used. */
24506 int main (void) { return x; }
24507 int foo (void) { x = 0; }
24508 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24511 if ac_fn_cxx_try_run
"$LINENO"; then :
24512 gcc_cv_initfini_array
=yes
24514 gcc_cv_initfini_array
=no
24516 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24517 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24521 gcc_cv_initfini_array
=no
24522 if test $in_tree_ld = yes ; then
24523 if test "$gcc_cv_gld_major_version" -eq 2 \
24524 -a "$gcc_cv_gld_minor_version" -ge 22 \
24525 -o "$gcc_cv_gld_major_version" -gt 2 \
24526 && test $in_tree_ld_is_elf = yes; then
24527 gcc_cv_initfini_array
=yes
24529 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24530 case $target:$gas in
24533 sh_type
='%progbits'
24535 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24537 sh_type
='@progbits'
24539 sparc
*-*-solaris2*:no
)
24541 sh_type
='#progbits'
24545 case "$target:$gnu_ld" in
24547 cat > conftest.s
<<EOF
24548 .section .dtors,$sh_flags,$sh_type
24550 .byte 'A', 'A', 'A', 'A'
24551 .section .ctors,$sh_flags,$sh_type
24553 .byte 'B', 'B', 'B', 'B'
24554 .section .fini_array.65530,$sh_flags,$sh_type
24556 .byte 'C', 'C', 'C', 'C'
24557 .section .init_array.65530,$sh_flags,$sh_type
24559 .byte 'D', 'D', 'D', 'D'
24560 .section .dtors.64528,$sh_flags,$sh_type
24562 .byte 'E', 'E', 'E', 'E'
24563 .section .ctors.64528,$sh_flags,$sh_type
24565 .byte 'F', 'F', 'F', 'F'
24566 .section .fini_array.01005,$sh_flags,$sh_type
24568 .byte 'G', 'G', 'G', 'G'
24569 .section .init_array.01005,$sh_flags,$sh_type
24571 .byte 'H', 'H', 'H', 'H'
24576 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24577 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24578 && $gcc_cv_objdump -s -j .init_array conftest \
24579 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24580 && $gcc_cv_objdump -s -j .fini_array conftest \
24581 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24582 gcc_cv_initfini_array
=yes
24586 # When Solaris ld added constructor priority support, it was
24587 # decided to only handle .init_array.N/.fini_array.N since
24588 # there was no need for backwards compatibility with
24589 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24590 # sections with correct execution order resp. to
24591 # .init_array/.fini_array, while gld merges them into
24592 # .init_array/.fini_array.
24593 cat > conftest.s
<<EOF
24594 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24596 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24597 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24599 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24600 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24602 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24603 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24605 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24610 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24611 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24612 && $gcc_cv_objdump -s -j .init_array conftest \
24613 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24614 && $gcc_cv_objdump -s -j .fini_array conftest \
24615 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24616 gcc_cv_initfini_array
=yes
24620 rm -f conftest conftest.
*
24622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h. */
24626 # error Not an ELF OS
24628 #include <stdlib.h>
24629 #if defined __GLIBC_PREREQ
24630 # if __GLIBC_PREREQ (2, 4)
24632 # error GLIBC 2.4 required
24635 # if defined __sun__ && defined __svr4__
24636 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24638 # error The C library not known to support .init_array/.fini_array
24643 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24646 gcc_cv_initfini_array
=no
24648 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24651 case "${target}" in
24652 aarch64
*-linux-gnu*)
24653 # AArch64 postdates glibc support for .init_array/.fini_array,
24654 # so we don't need the preprocessor test above.
24655 gcc_cv_initfini_array
=yes
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24660 $as_echo_n "checking cross compile... guessing... " >&6; }
24661 gcc_cv_initfini_array
=no
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24667 $as_echo "$gcc_cv_initfini_array" >&6; }
24668 enable_initfini_array
=$gcc_cv_initfini_array
24673 cat >>confdefs.h
<<_ACEOF
24674 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24679 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24680 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24681 # these directives, even when they appear to accept them.
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24683 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24684 if ${gcc_cv_as_leb128+:} false
; then :
24685 $as_echo_n "(cached) " >&6
24687 gcc_cv_as_leb128
=no
24688 if test x
$gcc_cv_as != x
; then
24695 .uleb128 0x8000000000000000
24697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24705 if test "x$gcc_cv_objdump" != x
; then
24706 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24707 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24708 gcc_cv_as_leb128
=yes
24710 elif test "x$gcc_cv_otool" != x
; then
24711 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24712 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24713 gcc_cv_as_leb128
=yes
24716 # play safe, assume the assembler is broken.
24721 echo "configure: failed program was" >&5
24724 rm -f conftest.o conftest.s
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24728 $as_echo "$gcc_cv_as_leb128" >&6; }
24729 if test $gcc_cv_as_leb128 = yes; then
24731 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24734 if test $gcc_cv_as_leb128 != yes; then
24736 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24740 # Determine if an .eh_frame section is read-only.
24741 gcc_fn_eh_frame_ro
() {
24742 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24743 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24744 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24747 # Check if we have assembler support for unwind directives.
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24749 $as_echo_n "checking assembler for cfi directives... " >&6; }
24750 if ${gcc_cv_as_cfi_directive+:} false
; then :
24751 $as_echo_n "(cached) " >&6
24753 gcc_cv_as_cfi_directive
=no
24754 if test x
$gcc_cv_as != x
; then
24760 .cfi_escape 1, 2, 3, 4, 5
24761 .cfi_endproc' > conftest.s
24762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24771 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24772 # read-only and read-write sections, we need to make sure that the
24773 # assembler used emits read-write .eh_frame sections.
24774 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24775 gcc_cv_as_cfi_directive
=yes
24776 elif test "x$gcc_cv_objdump" = x
; then
24777 # No objdump, err on the side of caution.
24778 gcc_cv_as_cfi_directive
=no
24780 if test x
$gas = xyes
; then
24788 sparc
*-*-solaris2.
*)
24789 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24790 if gcc_fn_eh_frame_ro
$as_32_opt \
24791 || gcc_fn_eh_frame_ro
$as_64_opt; then
24792 gcc_cv_as_cfi_directive
=no
24794 gcc_cv_as_cfi_directive
=yes
24797 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24798 # On Solaris/x86, make sure that GCC and assembler agree on using
24799 # read-only .eh_frame sections for 64-bit.
24800 if gcc_fn_eh_frame_ro
$as_32_opt; then
24801 gcc_cv_as_cfi_directive
=no
24802 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24803 gcc_cv_as_cfi_directive
=yes
24805 gcc_cv_as_cfi_directive
=no
24812 gcc_cv_as_cfi_directive
=yes
24816 echo "configure: failed program was" >&5
24819 rm -f conftest.o conftest.s
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24823 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24826 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24828 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24829 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24830 $as_echo_n "(cached) " >&6
24832 gcc_cv_as_cfi_advance_working
=no
24833 if test x
$gcc_cv_as != x
; then
24836 .cfi_adjust_cfa_offset 64
24838 .cfi_adjust_cfa_offset 128
24839 .cfi_endproc' > conftest.s
24840 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24842 (eval $ac_try) 2>&5
24844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24845 test $ac_status = 0; }; }
24848 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24849 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24850 gcc_cv_as_cfi_advance_working
=yes
24854 echo "configure: failed program was" >&5
24857 rm -f conftest.o conftest.s
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24861 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24865 # no objdump, err on the side of caution
24866 gcc_cv_as_cfi_advance_working
=no
24870 cat >>confdefs.h
<<_ACEOF
24871 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24872 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24878 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24879 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24880 $as_echo_n "(cached) " >&6
24882 gcc_cv_as_cfi_personality_directive
=no
24883 if test x
$gcc_cv_as != x
; then
24886 .cfi_personality 0, symbol
24887 .cfi_endproc' > conftest.s
24888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24890 (eval $ac_try) 2>&5
24892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24893 test $ac_status = 0; }; }
24895 gcc_cv_as_cfi_personality_directive
=yes
24897 echo "configure: failed program was" >&5
24900 rm -f conftest.o conftest.s
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24904 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24908 cat >>confdefs.h
<<_ACEOF
24909 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24914 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24915 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24916 $as_echo_n "(cached) " >&6
24918 gcc_cv_as_cfi_sections_directive
=no
24919 if test x
$gcc_cv_as != x
; then
24921 .cfi_sections .debug_frame, .eh_frame
24923 .cfi_endproc' > conftest.s
24924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24926 (eval $ac_try) 2>&5
24928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24929 test $ac_status = 0; }; }
24932 win32 | pe | cygwin
* | mingw32
*)
24933 # Need to check that we generated the correct relocation for the
24934 # .debug_frame section. This was fixed for binutils 2.21.
24935 gcc_cv_as_cfi_sections_directive
=no
24936 if test "x$gcc_cv_objdump" != x
; then
24937 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24938 grep -i secrel
> /dev
/null
; then
24939 gcc_cv_as_cfi_sections_directive
=yes
24944 gcc_cv_as_cfi_sections_directive
=yes
24948 echo "configure: failed program was" >&5
24951 rm -f conftest.o conftest.s
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24955 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24960 cat >>confdefs.h
<<_ACEOF
24961 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24965 # GAS versions up to and including 2.11.0 may mis-optimize
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24968 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24969 if ${gcc_cv_as_eh_frame+:} false
; then :
24970 $as_echo_n "(cached) " >&6
24972 gcc_cv_as_eh_frame
=no
24973 if test x
$gcc_cv_as != x
; then
24980 .section .eh_frame,"aw",@progbits
24982 .4byte .LECIE1-.LSCIE1
24996 .4byte .LEFDE1-.LASFDE1
24998 .4byte .LASFDE1-__FRAME_BEGIN__
25005 .LEFDE1:' > conftest.s
25006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25008 (eval $ac_try) 2>&5
25010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25011 test $ac_status = 0; }; }
25013 cat > conftest.lit
<<EOF
25014 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25015 0010 01000000 12000000 18000000 00000000 ................
25016 0020 08000000 04080000 0044 .........D
25018 cat > conftest.big
<<EOF
25019 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25020 0010 00000001 00000012 00000018 00000000 ................
25021 0020 00000008 04000000 0844 .........D
25023 # If the assembler didn't choke, and we can objdump,
25024 # and we got the correct data, then succeed.
25025 # The text in the here-document typically retains its unix-style line
25026 # endings, while the output of objdump will use host line endings.
25027 # Therefore, use diff -b for the comparisons.
25028 if test x
$gcc_cv_objdump != x \
25029 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
25030 |
tail -3 > conftest.got \
25031 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
25032 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
25034 gcc_cv_as_eh_frame
=yes
25035 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25037 (eval $ac_try) 2>&5
25039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040 test $ac_status = 0; }; }; then
25041 gcc_cv_as_eh_frame
=buggy
25043 # Uh oh, what do we do now?
25044 gcc_cv_as_eh_frame
=no
25047 echo "configure: failed program was" >&5
25050 rm -f conftest.o conftest.s
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
25054 $as_echo "$gcc_cv_as_eh_frame" >&6; }
25058 if test $gcc_cv_as_eh_frame = buggy
; then
25060 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
25064 # Test if the assembler supports the section flag 'e' or #exclude for
25065 # specifying an excluded section.
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25067 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25068 if ${gcc_cv_as_section_exclude_e+:} false
; then :
25069 $as_echo_n "(cached) " >&6
25071 gcc_cv_as_section_exclude_e
=no
25072 if test x
$gcc_cv_as != x
; then
25073 $as_echo '.section foo1,"e"
25074 .byte 0,0,0,0' > conftest.s
25075 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25077 (eval $ac_try) 2>&5
25079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25080 test $ac_status = 0; }; }
25082 gcc_cv_as_section_exclude_e
=yes
25084 echo "configure: failed program was" >&5
25087 rm -f conftest.o conftest.s
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
25091 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
25094 if test $gcc_cv_as_section_exclude_e = no
; then
25095 case "${target}" in
25096 # Solaris as uses #exclude instead.
25098 case "${target}" in
25099 sparc
*-*-solaris2*)
25100 conftest_s
='.section "foo1", #exclude'
25102 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25103 conftest_s
='.section foo1, #exclude'
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
25109 $as_echo_n "checking assembler for section exclude flag... " >&6; }
25110 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
25111 $as_echo_n "(cached) " >&6
25113 gcc_cv_as_section_exclude_hash
=no
25114 if test x
$gcc_cv_as != x
; then
25115 $as_echo "$conftest_s
25116 .byte 0,0,0,0" > conftest.s
25117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; }
25124 gcc_cv_as_section_exclude_hash
=yes
25126 echo "configure: failed program was" >&5
25129 rm -f conftest.o conftest.s
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
25133 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
25138 cat >>confdefs.h
<<_ACEOF
25139 #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`
25143 # Test if the assembler supports the section flag 'R' for specifying
25144 # section with SHF_GNU_RETAIN.
25145 case "${target}" in
25146 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25147 # assembler supports the section flag 'R', it doesn't mean that
25148 # Solairs ld supports it.
25150 gcc_cv_as_shf_gnu_retain
=no
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
25154 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
25155 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
25156 $as_echo_n "(cached) " >&6
25158 gcc_cv_as_shf_gnu_retain
=no
25159 if test x
$gcc_cv_as != x
; then
25160 $as_echo '.section .foo,"awR",%progbits
25161 .byte 0' > conftest.s
25162 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164 (eval $ac_try) 2>&5
25166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167 test $ac_status = 0; }; }
25169 gcc_cv_as_shf_gnu_retain
=yes
25171 echo "configure: failed program was" >&5
25174 rm -f conftest.o conftest.s
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25178 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25184 cat >>confdefs.h
<<_ACEOF
25185 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25189 # Test if the assembler supports the section flag 'o' for specifying
25190 # section with link-order.
25191 case "${target}" in
25192 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25193 # assembler supports the section flag 'o', it doesn't mean that
25194 # Solairs ld supports it.
25196 gcc_cv_as_section_link_order
=no
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25200 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25201 if ${gcc_cv_as_section_link_order+:} false
; then :
25202 $as_echo_n "(cached) " >&6
25204 gcc_cv_as_section_link_order
=no
25205 if test x
$gcc_cv_as != x
; then
25206 $as_echo '.section .foo,"a"
25208 .section __patchable_function_entries,"awo",%progbits,.foo
25209 .byte 0' > conftest.s
25210 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25212 (eval $ac_try) 2>&5
25214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25215 test $ac_status = 0; }; }
25217 gcc_cv_as_section_link_order
=yes
25219 echo "configure: failed program was" >&5
25222 rm -f conftest.o conftest.s
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25226 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25232 cat >>confdefs.h
<<_ACEOF
25233 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25238 $as_echo_n "checking assembler for section merging support... " >&6; }
25239 if ${gcc_cv_as_shf_merge+:} false
; then :
25240 $as_echo_n "(cached) " >&6
25242 gcc_cv_as_shf_merge
=no
25243 if test x
$gcc_cv_as != x
; then
25244 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25252 gcc_cv_as_shf_merge
=yes
25254 echo "configure: failed program was" >&5
25257 rm -f conftest.o conftest.s
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25261 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25264 if test $gcc_cv_as_shf_merge = no
; then
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25266 $as_echo_n "checking assembler for section merging support... " >&6; }
25267 if ${gcc_cv_as_shf_merge+:} false
; then :
25268 $as_echo_n "(cached) " >&6
25270 gcc_cv_as_shf_merge
=no
25271 if test x
$gcc_cv_as != x
; then
25272 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25273 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }
25280 gcc_cv_as_shf_merge
=yes
25282 echo "configure: failed program was" >&5
25285 rm -f conftest.o conftest.s
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25289 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25294 cat >>confdefs.h
<<_ACEOF
25295 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25299 gcc_cv_ld_aligned_shf_merge
=yes
25301 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25303 sparc
*-*-solaris2.11
*)
25304 if test x
"$gnu_ld" = xno \
25305 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25306 gcc_cv_ld_aligned_shf_merge
=no
25311 cat >>confdefs.h
<<_ACEOF
25312 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25317 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25318 if ${gcc_cv_as_comdat_group+:} false
; then :
25319 $as_echo_n "(cached) " >&6
25321 gcc_cv_as_comdat_group
=no
25322 if test x
$gcc_cv_as != x
; then
25323 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25324 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25326 (eval $ac_try) 2>&5
25328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25329 test $ac_status = 0; }; }
25331 gcc_cv_as_comdat_group
=yes
25333 echo "configure: failed program was" >&5
25336 rm -f conftest.o conftest.s
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25340 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25343 if test $gcc_cv_as_comdat_group = yes; then
25344 gcc_cv_as_comdat_group_percent
=no
25345 gcc_cv_as_comdat_group_group
=no
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25348 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25349 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25350 $as_echo_n "(cached) " >&6
25352 gcc_cv_as_comdat_group_percent
=no
25353 if test x
$gcc_cv_as != x
; then
25354 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25355 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25357 (eval $ac_try) 2>&5
25359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25360 test $ac_status = 0; }; }
25362 gcc_cv_as_comdat_group_percent
=yes
25364 echo "configure: failed program was" >&5
25367 rm -f conftest.o conftest.s
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25371 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25374 if test $gcc_cv_as_comdat_group_percent = yes; then
25375 gcc_cv_as_comdat_group_group
=no
25377 case "${target}" in
25378 # Sun as uses a completely different syntax.
25380 case "${target}" in
25381 sparc
*-*-solaris2*)
25383 .group foo,".text%foo",#comdat
25384 .section ".text%foo", #alloc,#execinstr,#progbits
25389 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25391 .group foo,.text%foo,#comdat
25392 .section .text%foo, "ax", @progbits
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25399 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25400 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25401 $as_echo_n "(cached) " >&6
25403 gcc_cv_as_comdat_group_group
=no
25404 if test x
$gcc_cv_as != x
; then
25405 $as_echo "$conftest_s" > conftest.s
25406 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25408 (eval $ac_try) 2>&5
25410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25411 test $ac_status = 0; }; }
25413 gcc_cv_as_comdat_group_group
=yes
25415 echo "configure: failed program was" >&5
25418 rm -f conftest.o conftest.s
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25422 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25427 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25428 gcc_cv_as_comdat_group_group
=no
25432 if test x
"$ld_is_gold" = xyes
; then
25434 elif test x
"$ld_is_mold" = xyes
; then
25436 elif test $in_tree_ld = yes ; then
25438 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 \
25439 && test $in_tree_ld_is_elf = yes; then
25442 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25444 if test 0"$ld_date" -lt 20050308; then
25445 if test -n "$ld_date"; then
25446 # If there was date string, but was earlier than 2005-03-08, fail
25448 elif test "$ld_vers_major" -lt 2; then
25450 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25455 case "${target}" in
25456 *-*-solaris2.1
[1-9]*)
25458 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25459 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25462 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25463 # least ld version 1.2267.
25464 if test "$ld_vers_major" -gt 1; then
25466 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25468 elif test "$ld_vers_minor" -ge 2267; then
25473 # Assume linkers other than GNU ld don't support COMDAT group.
25478 # Allow overriding the automatic COMDAT group tests above.
25479 # Check whether --enable-comdat was given.
25480 if test "${enable_comdat+set}" = set; then :
25481 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25484 if test $comdat_group = no
; then
25485 gcc_cv_as_comdat_group
=no
25486 gcc_cv_as_comdat_group_percent
=no
25487 gcc_cv_as_comdat_group_group
=no
25490 cat >>confdefs.h
<<_ACEOF
25491 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25492 || test $gcc_cv_as_comdat_group_percent = yes \
25493 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25497 # Restrict this test to Solaris/x86: other targets define this statically.
25498 case "${target}" in
25499 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25501 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25502 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25503 hidden_linkonce
=yes
25505 case "${target}" in
25506 # Full support for hidden thunks in linkonce sections only appeared in
25507 # Solaris 11/OpenSolaris.
25508 *-*-solaris2.1
[1-9]*)
25509 hidden_linkonce
=yes
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25517 $as_echo "$hidden_linkonce" >&6; }
25519 cat >>confdefs.h
<<_ACEOF
25520 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25527 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25528 if ${gcc_cv_as_is_stmt+:} false
; then :
25529 $as_echo_n "(cached) " >&6
25531 gcc_cv_as_is_stmt
=no
25532 if test x
$gcc_cv_as != x
; then
25535 .loc 1 1 0 is_stmt 1' > conftest.s
25536 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25538 (eval $ac_try) 2>&5
25540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25541 test $ac_status = 0; }; }
25543 gcc_cv_as_is_stmt
=yes
25545 echo "configure: failed program was" >&5
25548 rm -f conftest.o conftest.s
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25552 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25553 if test $gcc_cv_as_is_stmt = yes; then
25555 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25561 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25562 if ${gcc_cv_as_discriminator+:} false
; then :
25563 $as_echo_n "(cached) " >&6
25565 gcc_cv_as_discriminator
=no
25566 if test x
$gcc_cv_as != x
; then
25569 .loc 1 1 0 discriminator 1' > conftest.s
25570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }
25577 gcc_cv_as_discriminator
=yes
25579 echo "configure: failed program was" >&5
25582 rm -f conftest.o conftest.s
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25586 $as_echo "$gcc_cv_as_discriminator" >&6; }
25587 if test $gcc_cv_as_discriminator = yes; then
25589 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25594 # Catch the newlib flag of the same name so we can gate GCC features on it.
25595 # Check whether --enable-newlib-nano-formatted-io was given.
25596 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25597 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25601 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25607 # Thread-local storage - the check is heavily parameterized.
25613 .section ".tdata","awT",@progbits
25616 ldq $27,__tls_get_addr($29) !literal!1
25617 lda $16,foo($29) !tlsgd!1
25618 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25619 ldq $27,__tls_get_addr($29) !literal!2
25620 lda $16,foo($29) !tlsldm!2
25621 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25622 ldq $1,foo($29) !gotdtprel
25623 ldah $2,foo($29) !dtprelhi
25624 lda $3,foo($2) !dtprello
25625 lda $4,foo($29) !dtprel
25626 ldq $1,foo($29) !gottprel
25627 ldah $2,foo($29) !tprelhi
25628 lda $3,foo($2) !tprello
25629 lda $4,foo($29) !tprel'
25630 tls_as_opt
=--fatal-warnings
25634 add_s r0,r0, @foo@tpoff'
25636 cris-
*-*|crisv32-
*-*)
25638 .section ".tdata","awT",@progbits
25643 tls_as_opt
=--fatal-warnings
25647 .section ".tdata","awT",@progbits
25650 call #gettlsoff(x)'
25657 .section ".tdata","awT",@progbits
25661 addil LT%foo-$tls_gdidx$,gp
25662 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25665 addil LT%foo-$tls_ldidx$,gp
25667 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25668 addil LR%foo-$tls_dtpoff$,%ret0
25669 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25671 addil LT%foo-$tls_ieoff$,gp
25672 ldw RT%foo-$tls_ieoff$(%r1),%t2
25675 addil LR%foo-$tls_leoff$,%t1
25676 ldo RR%foo-$tls_leoff$(%r1),%t2'
25677 tls_as_opt
=--fatal-warnings
25681 .section ".tdata","awT",%progbits
25684 .word foo(gottpoff)
25690 i
[34567]86-*-* | x86_64-
*-*)
25692 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25699 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25701 .section .tdata,"awt",@progbits'
25704 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25708 .section ".tdata","awT",@progbits'
25710 tls_as_opt
="--fatal-warnings"
25714 if test x
$on_solaris = xyes
; then
25716 yes) tls_as_opt
="$tls_as_opt --32" ;;
25719 conftest_s
="$conftest_s
25723 leal foo@tlsgd(,%ebx,1), %eax
25724 leal foo@tlsldm(%ebx), %eax
25725 leal foo@dtpoff(%eax), %edx
25726 movl foo@gottpoff(%ebx), %eax
25727 subl foo@gottpoff(%ebx), %eax
25728 addl foo@gotntpoff(%ebx), %eax
25729 movl foo@indntpoff, %eax
25730 movl \$foo@tpoff, %eax
25731 subl \$foo@tpoff, %eax
25732 leal foo@ntpoff(%ecx), %eax"
25735 if test x
$on_solaris = xyes
; then
25737 yes) tls_as_opt
="$tls_as_opt --64" ;;
25738 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25741 conftest_s
="$conftest_s
25745 leaq foo@tlsgd(%rip), %rdi
25746 leaq foo@tlsld(%rip), %rdi
25747 leaq foo@dtpoff(%rax), %rdx
25748 movq foo@gottpoff(%rip), %rax
25749 movq \$foo@tpoff, %rax"
25755 .section ".tdata","awT",@progbits
25758 addl r16 = @ltoff(@dtpmod(foo#)), gp
25759 addl r17 = @ltoff(@dtprel(foo#)), gp
25760 addl r18 = @ltoff(@tprel(foo#)), gp
25761 addl r19 = @dtprel(foo#), gp
25762 adds r21 = @dtprel(foo#), r13
25763 movl r23 = @dtprel(foo#)
25764 addl r20 = @tprel(foo#), gp
25765 adds r22 = @tprel(foo#), r13
25766 movl r24 = @tprel(foo#)'
25767 tls_as_opt
=--fatal-warnings
25771 .section .tdata,"awT",@progbits
25778 tls_as_opt
='--fatal-warnings'
25782 .section .tdata,"awT",@progbits
25786 addik r5,r20,x@TLSGD
25787 addik r5,r20,x@TLSLDM'
25788 tls_as_opt
='--fatal-warnings'
25792 .section .tdata,"awT",@progbits
25796 addiu $4, $28, %tlsgd(x)
25797 addiu $4, $28, %tlsldm(x)
25798 lui $4, %dtprel_hi(x)
25799 addiu $4, $4, %dtprel_lo(x)
25800 lw $4, %gottprel(x)($28)
25801 lui $4, %tprel_hi(x)
25802 addiu $4, $4, %tprel_lo(x)'
25803 tls_as_opt
='-32 --fatal-warnings'
25807 .section .tdata,"awT",@progbits
25812 move.l x@TLSGD(%a5),%a0
25813 move.l x@TLSLDM(%a5),%a0
25814 move.l x@TLSLDO(%a5),%a0
25815 move.l x@TLSIE(%a5),%a0
25816 move.l x@TLSLE(%a5),%a0'
25817 tls_as_opt
='--fatal-warnings'
25821 .section ".tdata","awT",@progbits'
25822 tls_as_opt
="--fatal-warnings"
25826 .section ".tdata","awT",%progbits
25830 add x0, x0, #:tlsgd_lo12:x
25833 tls_as_opt
='--fatal-warnings'
25837 .section ".tdata","awT",@progbits
25840 l.movhi r3, tpoffha(foo)
25842 l.lwz r4, tpofflo(foo)(r3)'
25843 tls_as_opt
=--fatal-warnings
25847 .extern __get_tpointer
25863 .section ".tdata","awT",@progbits
25871 addi 3,2,ld0@got@tlsgd
25877 addi 3,2,x1@got@tlsld
25883 addis 9,3,x2@dtprel@ha
25884 addi 9,9,x2@dtprel@l
25887 ld 9,x3@got@dtprel(2)
25891 tls_as_opt
="-a64 --fatal-warnings"
25895 .section ".tdata","awT",@progbits
25903 addi 3,31,ld0@got@tlsgd
25905 addi 3,31,x1@got@tlsld
25908 addis 9,3,x2@dtprel@ha
25909 addi 9,9,x2@dtprel@l
25910 lwz 9,x3@got@tprel(31)
25913 addis 9,2,x2@tprel@ha
25914 addi 9,9,x2@tprel@l'
25915 tls_as_opt
="-a32 --fatal-warnings"
25919 .section .tdata,"awT",@progbits
25923 call __tls_get_addr'
25924 tls_as_opt
='--fatal-warnings'
25928 .section ".tdata","awT",@progbits
25935 .long foo@GOTNTPOFF
25936 .long foo@INDNTPOFF
25937 l %r1,foo@GOTNTPOFF(%r12)
25938 l %r1,0(%r1):tls_load:foo
25939 bas %r14,0(%r1,%r13):tls_gdcall:foo
25940 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25941 tls_as_opt
="-m31 --fatal-warnings"
25945 .section ".tdata","awT",@progbits
25952 .quad foo@GOTNTPOFF
25953 lg %r1,foo@GOTNTPOFF(%r12)
25954 larl %r1,foo@INDNTPOFF
25955 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25956 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25957 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25959 sh-
*-* | sh
[123456789lbe
]*-*-*)
25961 .section ".tdata","awT",@progbits
25969 tls_as_opt
=--fatal-warnings
25973 sparc
*-sun-solaris2.
*)
25980 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25982 .section ".tdata",#alloc,#write,#tls'
25985 .section ".tdata","awT",@progbits'
25986 tls_as_opt
="-32 --fatal-warnings"
25988 conftest_s
="$conftest_s
25991 sethi %tgd_hi22(foo), %o0
25992 add %o0, %tgd_lo10(foo), %o1
25993 add %l7, %o1, %o0, %tgd_add(foo)
25994 call __tls_get_addr, %tgd_call(foo)
25995 sethi %tldm_hi22(foo), %l1
25996 add %l1, %tldm_lo10(foo), %l2
25997 add %l7, %l2, %o0, %tldm_add(foo)
25998 call __tls_get_addr, %tldm_call(foo)
25999 sethi %tldo_hix22(foo), %l3
26000 xor %l3, %tldo_lox10(foo), %l4
26001 add %o0, %l4, %l5, %tldo_add(foo)
26002 sethi %tie_hi22(foo), %o3
26003 add %o3, %tie_lo10(foo), %o3
26004 ld [%l7 + %o3], %o2, %tie_ld(foo)
26005 add %g7, %o2, %o4, %tie_add(foo)
26006 sethi %tle_hix22(foo), %l1
26007 xor %l1, %tle_lox10(foo), %o5
26008 ld [%g7 + %o5], %o1"
26012 .section ".tdata","awT",@progbits
26015 movi a8, foo@TLSFUNC
26016 movi a10, foo@TLSARG
26017 callx8.tls a8, foo@TLSCALL'
26021 if test "x$enable_tls" = xno
; then
26022 : # TLS explicitly disabled.
26023 elif test "x$enable_tls" = xyes
; then
26024 set_have_as_tls
=yes # TLS explicitly enabled.
26025 elif test -z "$conftest_s"; then
26026 : # If we don't have a check, assume no support.
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
26029 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
26030 if ${gcc_cv_as_tls+:} false
; then :
26031 $as_echo_n "(cached) " >&6
26034 if test x
$gcc_cv_as != x
; then
26035 $as_echo "$conftest_s" > conftest.s
26036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
26037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26038 (eval $ac_try) 2>&5
26040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26041 test $ac_status = 0; }; }
26045 echo "configure: failed program was" >&5
26048 rm -f conftest.o conftest.s
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
26052 $as_echo "$gcc_cv_as_tls" >&6; }
26053 if test $gcc_cv_as_tls = yes; then
26054 set_have_as_tls
=yes
26058 if test $set_have_as_tls = yes ; then
26060 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
26064 # Target-specific assembler checks.
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
26067 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
26068 gcc_cv_ld_static_dynamic
=no
26069 gcc_cv_ld_static_option
='-Bstatic'
26070 gcc_cv_ld_dynamic_option
='-Bdynamic'
26071 if test $in_tree_ld = yes ; then
26072 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
26073 gcc_cv_ld_static_dynamic
=yes
26075 elif test x
$gcc_cv_ld != x
; then
26076 # Check if linker supports -Bstatic/-Bdynamic option
26077 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
26078 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
26079 gcc_cv_ld_static_dynamic
=yes
26082 # AIX ld uses -b flags
26083 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
26084 gcc_cv_ld_static_dynamic
=yes
26085 gcc_cv_ld_static_option
="-bstatic"
26086 gcc_cv_ld_dynamic_option
="-bdynamic"
26088 # HP-UX ld uses -a flags to select between shared and archive.
26090 if test x
"$gnu_ld" = xno
; then
26091 gcc_cv_ld_static_dynamic
=yes
26092 gcc_cv_ld_static_option
="-aarchive_shared"
26093 gcc_cv_ld_dynamic_option
="-adefault"
26096 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
26098 gcc_cv_ld_static_dynamic
=yes
26103 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
26105 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
26108 cat >>confdefs.h
<<_ACEOF
26109 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
26113 cat >>confdefs.h
<<_ACEOF
26114 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
26119 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
26122 $as_echo_n "checking linker --version-script option... " >&6; }
26123 gcc_cv_ld_version_script
=no
26124 ld_version_script_option
=''
26125 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26126 gcc_cv_ld_version_script
=yes
26127 ld_version_script_option
='--version-script'
26128 elif test x
$gcc_cv_ld != x
; then
26130 # Solaris 2 ld always supports -M. It also supports a subset of
26131 # --version-script since Solaris 11.4, but requires
26132 # -z gnu-version-script-compat to activate.
26134 gcc_cv_ld_version_script
=yes
26135 ld_version_script_option
='-M'
26139 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
26141 $as_echo "$gcc_cv_ld_version_script" >&6; }
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
26145 $as_echo_n "checking linker soname option... " >&6; }
26146 gcc_cv_ld_soname
=no
26147 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
26148 gcc_cv_ld_soname
=yes
26149 ld_soname_option
='-soname'
26150 elif test x
$gcc_cv_ld != x
; then
26153 gcc_cv_ld_soname
=yes
26154 ld_soname_option
='-install_name'
26156 # Solaris 2 ld always supports -h. It also supports --soname for GNU
26157 # ld compatiblity since some Solaris 10 update.
26159 gcc_cv_ld_soname
=yes
26160 ld_soname_option
='-h'
26164 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
26166 $as_echo "$gcc_cv_ld_soname" >&6; }
26169 if test x
"$demangler_in_ld" = xyes
; then
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
26171 $as_echo_n "checking linker --demangle support... " >&6; }
26172 gcc_cv_ld_demangle
=no
26173 if test $in_tree_ld = yes; then
26174 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 \
26175 gcc_cv_ld_demangle
=yes
26177 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
26178 # Check if the GNU linker supports --demangle option
26179 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
26180 gcc_cv_ld_demangle
=yes
26183 if test x
"$gcc_cv_ld_demangle" = xyes
; then
26185 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26189 $as_echo "$gcc_cv_ld_demangle" >&6; }
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26193 $as_echo_n "checking linker plugin support... " >&6; }
26194 gcc_cv_lto_plugin
=0
26195 if test -f liblto_plugin.la
; then
26196 save_ld_ver
="$ld_ver"
26197 save_ld_vers_major
="$ld_vers_major"
26198 save_ld_vers_minor
="$ld_vers_minor"
26199 save_ld_is_gold
="$ld_is_gold"
26203 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
26205 # FIXME: ld_is_gold?
26206 ld_vers_major
="$gcc_cv_gld_major_version"
26207 ld_vers_minor
="$gcc_cv_gld_minor_version"
26209 # Determine plugin linker version.
26210 # FIXME: Partial duplicate from above, generalize.
26211 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26212 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26213 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
26215 ld_vers
=`echo $ld_ver | sed -n \
26216 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26218 ld_vers
=`echo $ld_ver | sed -n \
26219 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26221 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26222 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26226 # Determine plugin support.
26227 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26228 # Require GNU ld or gold 2.21+ for plugin support by default.
26229 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26230 gcc_cv_lto_plugin
=2
26231 elif test "$ld_is_mold" = yes; then
26232 gcc_cv_lto_plugin
=2
26233 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26234 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26235 gcc_cv_lto_plugin
=1
26239 ld_ver
="$save_ld_ver"
26240 ld_vers_major
="$save_ld_vers_major"
26241 ld_vers_minor
="$save_ld_vers_minor"
26242 ld_is_gold
="$save_ld_is_gold"
26245 cat >>confdefs.h
<<_ACEOF
26246 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26250 $as_echo "$gcc_cv_lto_plugin" >&6; }
26252 # Target OS-specific assembler checks.
26254 case "$target_os" in
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26257 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26258 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26259 $as_echo_n "(cached) " >&6
26261 gcc_cv_as_mmacosx_version_min
=no
26262 if test x
$gcc_cv_as != x
; then
26263 $as_echo '.text' > conftest.s
26264 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26266 (eval $ac_try) 2>&5
26268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26269 test $ac_status = 0; }; }
26271 gcc_cv_as_mmacosx_version_min
=yes
26273 echo "configure: failed program was" >&5
26276 rm -f conftest.o conftest.s
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26280 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26281 if test $gcc_cv_as_mmacosx_version_min = yes; then
26283 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26290 # Target CPU-specific assembler checks.
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26295 $as_echo_n "checking assembler for -mabi option... " >&6; }
26296 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26297 $as_echo_n "(cached) " >&6
26299 gcc_cv_as_aarch64_mabi
=no
26300 if test x
$gcc_cv_as != x
; then
26301 $as_echo '.text' > conftest.s
26302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26304 (eval $ac_try) 2>&5
26306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26307 test $ac_status = 0; }; }
26309 gcc_cv_as_aarch64_mabi
=yes
26311 echo "configure: failed program was" >&5
26314 rm -f conftest.o conftest.s
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26318 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26321 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26323 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26326 if test x
$with_abi = xilp32
; then
26327 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26328 Upgrade the Assembler." "$LINENO" 5
26330 if test x
"$with_multilib_list" = xdefault
; then
26331 TM_MULTILIB_CONFIG
=lp64
26333 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26334 for aarch64_multilib
in ${aarch64_multilibs}; do
26335 case ${aarch64_multilib} in
26337 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26338 Upgrade the Assembler." "$LINENO" 5
26346 # Check if we have binutils support for relocations types needed by -fpic
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26348 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26349 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26350 $as_echo_n "(cached) " >&6
26352 gcc_cv_as_aarch64_picreloc
=no
26353 if test x
$gcc_cv_as != x
; then
26356 ldr x0, [x2, #:gotpage_lo15:globalsym]
26358 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26360 (eval $ac_try) 2>&5
26362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26363 test $ac_status = 0; }; }
26365 gcc_cv_as_aarch64_picreloc
=yes
26367 echo "configure: failed program was" >&5
26370 rm -f conftest.o conftest.s
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26374 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26375 if test $gcc_cv_as_aarch64_picreloc = yes; then
26377 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26381 # Enable Branch Target Identification Mechanism and Return Address
26382 # Signing by default.
26383 # Check whether --enable-standard-branch-protection was given.
26384 if test "${enable_standard_branch_protection+set}" = set; then :
26385 enableval
=$enable_standard_branch_protection;
26388 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26393 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26394 Valid choices are 'yes' and 'no'." "$LINENO" 5
26400 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26401 # Check whether --enable-fix-cortex-a53-835769 was given.
26402 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26403 enableval
=$enable_fix_cortex_a53_835769;
26406 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26411 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26412 Valid choices are 'yes' and 'no'." "$LINENO" 5
26419 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26420 # Check whether --enable-fix-cortex-a53-843419 was given.
26421 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26422 enableval
=$enable_fix_cortex_a53_843419;
26425 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26430 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26431 Valid choices are 'yes' and 'no'." "$LINENO" 5
26440 # All TARGET_ABI_OSF targets.
26441 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26443 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26444 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26445 $as_echo_n "(cached) " >&6
26447 gcc_cv_as_alpha_explicit_relocs
=no
26448 if test x
$gcc_cv_as != x
; then
26449 $as_echo ' .set nomacro
26451 extbl $3, $2, $3 !lituse_bytoff!1
26452 ldq $2, a($29) !literal!1
26453 ldq $4, b($29) !literal!2
26454 ldq_u $3, 0($2) !lituse_base!1
26455 ldq $27, f($29) !literal!5
26456 jsr $26, ($27), f !lituse_jsr!5
26457 ldah $29, 0($26) !gpdisp!3
26458 lda $0, c($29) !gprel
26459 ldah $1, d($29) !gprelhigh
26460 lda $1, d($1) !gprellow
26461 lda $29, 0($29) !gpdisp!3' > conftest.s
26462 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26464 (eval $ac_try) 2>&5
26466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467 test $ac_status = 0; }; }
26469 gcc_cv_as_alpha_explicit_relocs
=yes
26471 echo "configure: failed program was" >&5
26474 rm -f conftest.o conftest.s
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26478 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26479 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26481 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26486 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26487 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26488 $as_echo_n "(cached) " >&6
26490 gcc_cv_as_alpha_jsrdirect_relocs
=no
26491 if test x
$gcc_cv_as != x
; then
26492 $as_echo ' .set nomacro
26494 ldq $27, a($29) !literal!1
26495 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26496 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26498 (eval $ac_try) 2>&5
26500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501 test $ac_status = 0; }; }
26503 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26505 echo "configure: failed program was" >&5
26508 rm -f conftest.o conftest.s
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26512 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26513 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26515 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26523 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26524 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26525 $as_echo_n "(cached) " >&6
26527 gcc_cv_as_avr_mlink_relax
=no
26528 if test x
$gcc_cv_as != x
; then
26529 $as_echo '.text' > conftest.s
26530 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26532 (eval $ac_try) 2>&5
26534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26535 test $ac_status = 0; }; }
26537 gcc_cv_as_avr_mlink_relax
=yes
26539 echo "configure: failed program was" >&5
26542 rm -f conftest.o conftest.s
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26546 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26547 if test $gcc_cv_as_avr_mlink_relax = yes; then
26549 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26555 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26556 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26557 $as_echo_n "(cached) " >&6
26559 gcc_cv_as_avr_mrmw
=no
26560 if test x
$gcc_cv_as != x
; then
26561 $as_echo '.text' > conftest.s
26562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26569 gcc_cv_as_avr_mrmw
=yes
26571 echo "configure: failed program was" >&5
26574 rm -f conftest.o conftest.s
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26578 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26579 if test $gcc_cv_as_avr_mrmw = yes; then
26581 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26587 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26588 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26589 $as_echo_n "(cached) " >&6
26591 gcc_cv_as_avr_mgccisr
=no
26592 if test x
$gcc_cv_as != x
; then
26598 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26600 (eval $ac_try) 2>&5
26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26603 test $ac_status = 0; }; }
26605 gcc_cv_as_avr_mgccisr
=yes
26607 echo "configure: failed program was" >&5
26610 rm -f conftest.o conftest.s
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26614 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26615 if test $gcc_cv_as_avr_mgccisr = yes; then
26617 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26622 # Check how default linker description file implements .rodata for
26623 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26624 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26626 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26627 cat > conftest.s
<<EOF
26628 .section .rodata,"a",@progbits
26630 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26635 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26637 (eval $ac_try) 2>&5
26639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640 test $ac_status = 0; }; }
26641 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26643 (eval $ac_try) 2>&5
26645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26646 test $ac_status = 0; }; }
26647 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26649 (eval $ac_try) 2>&5
26651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26652 test $ac_status = 0; }; }
26653 if test -s conftest.nm
26655 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26657 $as_echo "yes" >&6; }
26659 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26663 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26664 echo "$as_me: nm output was" >&5
26665 cat conftest.nm
>&5
26666 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26667 { $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
26668 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26672 $as_echo "test failed" >&6; }
26673 echo "$as_me: failed program was" >&5
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26676 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26678 rm -f conftest.s conftest.o conftest.elf conftest.nm
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26683 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26684 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26685 $as_echo_n "(cached) " >&6
26687 gcc_cv_as_cris_no_mul_bug
=no
26688 if test x
$gcc_cv_as != x
; then
26689 $as_echo '.text' > conftest.s
26690 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26692 (eval $ac_try) 2>&5
26694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26695 test $ac_status = 0; }; }
26697 gcc_cv_as_cris_no_mul_bug
=yes
26699 echo "configure: failed program was" >&5
26702 rm -f conftest.o conftest.s
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26706 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26707 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26709 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26717 $as_echo_n "checking assembler for -relax option... " >&6; }
26718 if ${gcc_cv_as_sparc_relax+:} false
; then :
26719 $as_echo_n "(cached) " >&6
26721 gcc_cv_as_sparc_relax
=no
26722 if test x
$gcc_cv_as != x
; then
26723 $as_echo '.text' > conftest.s
26724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26731 gcc_cv_as_sparc_relax
=yes
26733 echo "configure: failed program was" >&5
26736 rm -f conftest.o conftest.s
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26740 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26741 if test $gcc_cv_as_sparc_relax = yes; then
26743 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26749 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26750 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26751 $as_echo_n "(cached) " >&6
26753 gcc_cv_as_sparc_gotdata_op
=no
26754 if test x
$gcc_cv_as != x
; then
26760 sethi %gdop_hix22(foo), %g1
26761 xor %g1, %gdop_lox10(foo), %g1
26762 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26765 (eval $ac_try) 2>&5
26767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26768 test $ac_status = 0; }; }
26770 if test x
$gcc_cv_ld != x \
26771 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26772 if test x
$gcc_cv_objdump != x
; then
26773 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26774 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26775 gcc_cv_as_sparc_gotdata_op
=no
26777 gcc_cv_as_sparc_gotdata_op
=yes
26783 echo "configure: failed program was" >&5
26786 rm -f conftest.o conftest.s
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26790 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26791 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26793 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26799 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26800 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26801 $as_echo_n "(cached) " >&6
26803 gcc_cv_as_sparc_ua_pcrel
=no
26804 if test x
$gcc_cv_as != x
; then
26811 .uaword %r_disp32(foo)' > conftest.s
26812 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26814 (eval $ac_try) 2>&5
26816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26817 test $ac_status = 0; }; }
26819 if test x
$gcc_cv_ld != x \
26820 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26821 gcc_cv_as_sparc_ua_pcrel
=yes
26825 echo "configure: failed program was" >&5
26828 rm -f conftest.o conftest.s
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26832 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26833 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26835 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26839 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26840 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26841 $as_echo_n "(cached) " >&6
26843 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26844 if test x
$gcc_cv_as != x
; then
26848 .uaword %r_disp32(foo)
26849 .byte 0x32, 0x33, 0x34
26853 .skip 4' > conftest.s
26854 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26856 (eval $ac_try) 2>&5
26858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26859 test $ac_status = 0; }; }
26861 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26862 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26863 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26864 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26865 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26866 |
grep 'DISP32' > /dev
/null
2>&1; then
26869 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26874 echo "configure: failed program was" >&5
26877 rm -f conftest.o conftest.s
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26881 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26882 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26884 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26890 # unaligned pcrel relocs
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26893 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26894 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26895 $as_echo_n "(cached) " >&6
26897 gcc_cv_as_sparc_offsetable_lo10
=no
26898 if test x
$gcc_cv_as != x
; then
26900 or %g1, %lo(ab) + 12, %g1
26901 or %g1, %lo(ab + 12), %g1' > conftest.s
26902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26904 (eval $ac_try) 2>&5
26906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26907 test $ac_status = 0; }; }
26909 if test x
$gcc_cv_objdump != x \
26910 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26911 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26912 gcc_cv_as_sparc_offsetable_lo10
=yes
26915 echo "configure: failed program was" >&5
26918 rm -f conftest.o conftest.s
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26922 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26923 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26925 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26931 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26932 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26933 $as_echo_n "(cached) " >&6
26935 gcc_cv_as_sparc_fmaf
=no
26936 if test x
$gcc_cv_as != x
; then
26938 .register %g2, #scratch
26939 .register %g3, #scratch
26941 fmaddd %f0, %f2, %f4, %f6
26942 addxccc %g1, %g2, %g3
26943 fsrl32 %f2, %f4, %f8
26944 fnaddd %f10, %f12, %f14' > conftest.s
26945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26947 (eval $ac_try) 2>&5
26949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26950 test $ac_status = 0; }; }
26952 gcc_cv_as_sparc_fmaf
=yes
26954 echo "configure: failed program was" >&5
26957 rm -f conftest.o conftest.s
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26961 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26962 if test $gcc_cv_as_sparc_fmaf = yes; then
26964 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26970 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26971 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26972 $as_echo_n "(cached) " >&6
26974 gcc_cv_as_sparc_sparc4
=no
26975 if test x
$gcc_cv_as != x
; then
26977 .register %g2, #scratch
26978 .register %g3, #scratch
26981 1: cwbneg %g2, %g3, 1f
26984 aes_kexpand0 %f4, %f6, %f8
26985 des_round %f38, %f40, %f42, %f44
26986 camellia_f %f54, %f56, %f58, %f60
26987 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26990 (eval $ac_try) 2>&5
26992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26993 test $ac_status = 0; }; }
26995 gcc_cv_as_sparc_sparc4
=yes
26997 echo "configure: failed program was" >&5
27000 rm -f conftest.o conftest.s
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
27004 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
27005 if test $gcc_cv_as_sparc_sparc4 = yes; then
27007 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
27013 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
27014 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
27015 $as_echo_n "(cached) " >&6
27017 gcc_cv_as_sparc_sparc5
=no
27018 if test x
$gcc_cv_as != x
; then
27020 .register %g2, #scratch
27021 .register %g3, #scratch
27023 subxc %g1, %g2, %g3
27024 fpadd8 %f0, %f2, %f4' > conftest.s
27025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
27026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27027 (eval $ac_try) 2>&5
27029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27030 test $ac_status = 0; }; }
27032 gcc_cv_as_sparc_sparc5
=yes
27034 echo "configure: failed program was" >&5
27037 rm -f conftest.o conftest.s
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
27041 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
27042 if test $gcc_cv_as_sparc_sparc5 = yes; then
27044 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
27050 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
27051 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
27052 $as_echo_n "(cached) " >&6
27054 gcc_cv_as_sparc_sparc6
=no
27055 if test x
$gcc_cv_as != x
; then
27057 .register %g2, #scratch
27058 .register %g3, #scratch
27061 fpsll64x %f0, %f2, %f4' > conftest.s
27062 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
27063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27064 (eval $ac_try) 2>&5
27066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27067 test $ac_status = 0; }; }
27069 gcc_cv_as_sparc_sparc6
=yes
27071 echo "configure: failed program was" >&5
27074 rm -f conftest.o conftest.s
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
27078 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
27079 if test $gcc_cv_as_sparc_sparc6 = yes; then
27081 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
27087 $as_echo_n "checking assembler for LEON instructions... " >&6; }
27088 if ${gcc_cv_as_sparc_leon+:} false
; then :
27089 $as_echo_n "(cached) " >&6
27091 gcc_cv_as_sparc_leon
=no
27092 if test x
$gcc_cv_as != x
; then
27094 .register %g2, #scratch
27095 .register %g3, #scratch
27099 casa [%g2] 0xb, %g3, %g1' > conftest.s
27100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
27101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27102 (eval $ac_try) 2>&5
27104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27105 test $ac_status = 0; }; }
27107 gcc_cv_as_sparc_leon
=yes
27109 echo "configure: failed program was" >&5
27112 rm -f conftest.o conftest.s
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
27116 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
27117 if test $gcc_cv_as_sparc_leon = yes; then
27119 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
27125 i
[34567]86-*-* | x86_64-
*-*)
27128 # Full C++ conformance when using a shared libstdc++-v3 requires some
27129 # support from the Cygwin DLL, which in more recent versions exports
27130 # wrappers to aid in interposing and redirecting operators new, delete,
27131 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
27132 # are configuring for a version of Cygwin that exports the wrappers.
27133 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
27134 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
27135 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
27136 gcc_ac_cygwin_dll_wrappers
=yes
27138 gcc_ac_cygwin_dll_wrappers
=no
27142 # Can't check presence of libc functions during cross-compile, so
27143 # we just have to assume we're building for an up-to-date target.
27144 gcc_ac_cygwin_dll_wrappers
=yes
27147 cat >>confdefs.h
<<_ACEOF
27148 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
27153 cygwin
* | pe | mingw32
*)
27154 # Recent binutils allows the three-operand form of ".comm" on PE. This
27155 # definition is used unconditionally to initialise the default state of
27156 # the target option variable that governs usage of the feature.
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
27158 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
27159 if ${gcc_cv_as_comm_has_align+:} false
; then :
27160 $as_echo_n "(cached) " >&6
27162 gcc_cv_as_comm_has_align
=no
27163 if test x
$gcc_cv_as != x
; then
27164 $as_echo '.comm foo,1,32' > conftest.s
27165 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27167 (eval $ac_try) 2>&5
27169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27170 test $ac_status = 0; }; }
27172 gcc_cv_as_comm_has_align
=yes
27174 echo "configure: failed program was" >&5
27177 rm -f conftest.o conftest.s
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27181 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27185 cat >>confdefs.h
<<_ACEOF
27186 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27189 # Used for DWARF 2 in PE
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27191 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27192 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
27193 $as_echo_n "(cached) " >&6
27195 gcc_cv_as_ix86_pe_secrel32
=no
27196 if test x
$gcc_cv_as != x
; then
27200 .secrel32 foo' > conftest.s
27201 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27203 (eval $ac_try) 2>&5
27205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27206 test $ac_status = 0; }; }
27208 if test x
$gcc_cv_ld != x \
27209 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
27210 gcc_cv_as_ix86_pe_secrel32
=yes
27214 echo "configure: failed program was" >&5
27217 rm -f conftest.o conftest.s
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27221 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27222 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27224 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27228 # Test if the assembler supports the extended form of the .section
27229 # directive that specifies section alignment. LTO support uses this,
27230 # but normally only after installation, so we warn but don't fail the
27231 # configure if LTO is enabled but the assembler does not support it.
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27233 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27234 if ${gcc_cv_as_section_has_align+:} false
; then :
27235 $as_echo_n "(cached) " >&6
27237 gcc_cv_as_section_has_align
=no
27238 if test x
$gcc_cv_as != x
; then
27239 $as_echo '.section lto_test,"dr0"' > conftest.s
27240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27242 (eval $ac_try) 2>&5
27244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27245 test $ac_status = 0; }; }
27247 gcc_cv_as_section_has_align
=yes
27249 echo "configure: failed program was" >&5
27252 rm -f conftest.o conftest.s
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27256 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27259 if test x
$gcc_cv_as_section_has_align != xyes
; then
27260 case ",$enable_languages," in
27262 { $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
27263 $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;}
27270 darwin2
* | darwin19
*)
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27272 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27273 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
27274 $as_echo_n "(cached) " >&6
27276 gcc_cv_as_mllvm_x86_pad_for_align
=no
27277 if test x
$gcc_cv_as != x
; then
27278 $as_echo '.text' > conftest.s
27279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27281 (eval $ac_try) 2>&5
27283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27284 test $ac_status = 0; }; }
27286 gcc_cv_as_mllvm_x86_pad_for_align
=yes
27288 echo "configure: failed program was" >&5
27291 rm -f conftest.o conftest.s
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27295 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27296 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27298 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27306 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27307 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27308 $as_echo_n "(cached) " >&6
27310 gcc_cv_as_ix86_xbrace_comment
=no
27311 if test x
$gcc_cv_as != x
; then
27312 $as_echo '.text' > conftest.s
27313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27315 (eval $ac_try) 2>&5
27317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27318 test $ac_status = 0; }; }
27320 gcc_cv_as_ix86_xbrace_comment
=yes
27322 echo "configure: failed program was" >&5
27325 rm -f conftest.o conftest.s
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27329 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27330 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27332 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27338 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27339 if ${gcc_cv_as_ix86_filds+:} false
; then :
27340 $as_echo_n "(cached) " >&6
27342 gcc_cv_as_ix86_filds
=no
27343 if test x
$gcc_cv_as != x
; then
27344 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27347 (eval $ac_try) 2>&5
27349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350 test $ac_status = 0; }; }
27352 gcc_cv_as_ix86_filds
=yes
27354 echo "configure: failed program was" >&5
27357 rm -f conftest.o conftest.s
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27361 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27362 if test $gcc_cv_as_ix86_filds = yes; then
27364 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27370 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27371 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27372 $as_echo_n "(cached) " >&6
27374 gcc_cv_as_ix86_fildq
=no
27375 if test x
$gcc_cv_as != x
; then
27376 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27377 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27379 (eval $ac_try) 2>&5
27381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382 test $ac_status = 0; }; }
27384 gcc_cv_as_ix86_fildq
=yes
27386 echo "configure: failed program was" >&5
27389 rm -f conftest.o conftest.s
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27393 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27394 if test $gcc_cv_as_ix86_fildq = yes; then
27396 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27402 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27403 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27404 $as_echo_n "(cached) " >&6
27406 gcc_cv_as_ix86_cmov_sun_syntax
=no
27407 if test x
$gcc_cv_as != x
; then
27408 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27409 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27411 (eval $ac_try) 2>&5
27413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27414 test $ac_status = 0; }; }
27416 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27418 echo "configure: failed program was" >&5
27421 rm -f conftest.o conftest.s
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27425 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27426 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27428 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27434 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27435 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27436 $as_echo_n "(cached) " >&6
27438 gcc_cv_as_ix86_ffreep
=no
27439 if test x
$gcc_cv_as != x
; then
27440 $as_echo 'ffreep %st(1)' > conftest.s
27441 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27443 (eval $ac_try) 2>&5
27445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27446 test $ac_status = 0; }; }
27448 gcc_cv_as_ix86_ffreep
=yes
27450 echo "configure: failed program was" >&5
27453 rm -f conftest.o conftest.s
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27457 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27458 if test $gcc_cv_as_ix86_ffreep = yes; then
27460 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27466 $as_echo_n "checking assembler for .quad directive... " >&6; }
27467 if ${gcc_cv_as_ix86_quad+:} false
; then :
27468 $as_echo_n "(cached) " >&6
27470 gcc_cv_as_ix86_quad
=no
27471 if test x
$gcc_cv_as != x
; then
27472 $as_echo '.quad 0' > conftest.s
27473 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27475 (eval $ac_try) 2>&5
27477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27478 test $ac_status = 0; }; }
27480 gcc_cv_as_ix86_quad
=yes
27482 echo "configure: failed program was" >&5
27485 rm -f conftest.o conftest.s
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27489 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27490 if test $gcc_cv_as_ix86_quad = yes; then
27492 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27498 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27499 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27500 $as_echo_n "(cached) " >&6
27502 gcc_cv_as_ix86_sahf
=no
27503 if test x
$gcc_cv_as != x
; then
27506 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27508 (eval $ac_try) 2>&5
27510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27511 test $ac_status = 0; }; }
27513 gcc_cv_as_ix86_sahf
=yes
27515 echo "configure: failed program was" >&5
27518 rm -f conftest.o conftest.s
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27522 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27523 if test $gcc_cv_as_ix86_sahf = yes; then
27525 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27531 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27532 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27533 $as_echo_n "(cached) " >&6
27535 gcc_cv_as_ix86_interunit_movq
=no
27536 if test x
$gcc_cv_as != x
; then
27539 movq %rax, %xmm0' > conftest.s
27540 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27542 (eval $ac_try) 2>&5
27544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27545 test $ac_status = 0; }; }
27547 gcc_cv_as_ix86_interunit_movq
=yes
27549 echo "configure: failed program was" >&5
27552 rm -f conftest.o conftest.s
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27556 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27560 cat >>confdefs.h
<<_ACEOF
27561 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27566 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27567 if ${gcc_cv_as_ix86_hle+:} false
; then :
27568 $as_echo_n "(cached) " >&6
27570 gcc_cv_as_ix86_hle
=no
27571 if test x
$gcc_cv_as != x
; then
27572 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27573 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27575 (eval $ac_try) 2>&5
27577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27578 test $ac_status = 0; }; }
27580 gcc_cv_as_ix86_hle
=yes
27582 echo "configure: failed program was" >&5
27585 rm -f conftest.o conftest.s
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27589 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27590 if test $gcc_cv_as_ix86_hle = yes; then
27592 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27598 $as_echo_n "checking assembler for swap suffix... " >&6; }
27599 if ${gcc_cv_as_ix86_swap+:} false
; then :
27600 $as_echo_n "(cached) " >&6
27602 gcc_cv_as_ix86_swap
=no
27603 if test x
$gcc_cv_as != x
; then
27604 $as_echo 'movl.s %esp, %ebp' > conftest.s
27605 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27607 (eval $ac_try) 2>&5
27609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27610 test $ac_status = 0; }; }
27612 gcc_cv_as_ix86_swap
=yes
27614 echo "configure: failed program was" >&5
27617 rm -f conftest.o conftest.s
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27621 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27622 if test $gcc_cv_as_ix86_swap = yes; then
27624 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27630 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27631 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27632 $as_echo_n "(cached) " >&6
27634 gcc_cv_as_ix86_diff_sect_delta
=no
27635 if test x
$gcc_cv_as != x
; then
27636 $as_echo '.section .rodata
27642 .L2: nop' > conftest.s
27643 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27645 (eval $ac_try) 2>&5
27647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27648 test $ac_status = 0; }; }
27650 gcc_cv_as_ix86_diff_sect_delta
=yes
27652 echo "configure: failed program was" >&5
27655 rm -f conftest.o conftest.s
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27659 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27660 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27662 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27668 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27669 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27670 $as_echo_n "(cached) " >&6
27672 gcc_cv_as_ix86_rep_lock_prefix
=no
27673 if test x
$gcc_cv_as != x
; then
27674 $as_echo 'rep movsl
27679 lock addl %edi, (%eax,%esi)
27680 lock orl $0, (%esp)' > conftest.s
27681 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27683 (eval $ac_try) 2>&5
27685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27686 test $ac_status = 0; }; }
27688 gcc_cv_as_ix86_rep_lock_prefix
=yes
27690 echo "configure: failed program was" >&5
27693 rm -f conftest.o conftest.s
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27697 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27698 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27700 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27706 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27707 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27708 $as_echo_n "(cached) " >&6
27710 gcc_cv_as_ix86_ud2
=no
27711 if test x
$gcc_cv_as != x
; then
27712 $as_echo 'ud2' > conftest.s
27713 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27715 (eval $ac_try) 2>&5
27717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27718 test $ac_status = 0; }; }
27720 gcc_cv_as_ix86_ud2
=yes
27722 echo "configure: failed program was" >&5
27725 rm -f conftest.o conftest.s
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27729 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27730 if test $gcc_cv_as_ix86_ud2 = yes; then
27732 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27737 # Enforce 32-bit output with gas and gld.
27738 if test x
$gas = xyes
; then
27739 as_ix86_gas_32_opt
="--32"
27741 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27742 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27743 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27745 ld_ix86_gld_32_opt
="-melf_i386"
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27750 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27751 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27752 $as_echo_n "(cached) " >&6
27754 gcc_cv_as_ix86_tlsgdplt
=no
27755 if test x
$gcc_cv_as != x
; then
27756 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27757 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27759 (eval $ac_try) 2>&5
27761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27762 test $ac_status = 0; }; }
27764 if test x
$gcc_cv_ld != x \
27765 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27766 gcc_cv_as_ix86_tlsgdplt
=yes
27770 echo "configure: failed program was" >&5
27773 rm -f conftest.o conftest.s
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27777 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27778 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27780 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27786 .section .tdata,"aw'$tls_section_flag'",@progbits
27788 .section .text,"ax",@progbits
27789 call tls_ld@tlsldmplt'
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27792 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27793 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27794 $as_echo_n "(cached) " >&6
27796 gcc_cv_as_ix86_tlsldmplt
=no
27797 if test x
$gcc_cv_as != x
; then
27798 $as_echo "$conftest_s" > conftest.s
27799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27801 (eval $ac_try) 2>&5
27803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27804 test $ac_status = 0; }; }
27806 if test x
$gcc_cv_ld != x \
27807 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27808 gcc_cv_as_ix86_tlsldmplt
=yes
27812 echo "configure: failed program was" >&5
27815 rm -f conftest.o conftest.s
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27819 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27823 cat >>confdefs.h
<<_ACEOF
27824 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27829 .section .text,"ax",@progbits
27831 .type _start, @function
27833 leal value@tlsldm(%ebx), %eax
27834 call ___tls_get_addr@plt
27836 .section .tdata,"aw'$tls_section_flag'",@progbits
27837 .type value, @object
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27840 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27841 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27842 $as_echo_n "(cached) " >&6
27844 gcc_cv_as_ix86_tlsldm
=no
27845 if test x
$gcc_cv_as != x
; then
27846 $as_echo "$conftest_s" > conftest.s
27847 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27849 (eval $ac_try) 2>&5
27851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27852 test $ac_status = 0; }; }
27854 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27855 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27856 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27857 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27858 gcc_cv_as_ix86_tlsldm
=yes
27863 echo "configure: failed program was" >&5
27866 rm -f conftest.o conftest.s
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27870 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27874 cat >>confdefs.h
<<_ACEOF
27875 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27889 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27890 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27891 $as_echo_n "(cached) " >&6
27893 gcc_cv_as_ix86_got32x
=no
27894 if test x
$gcc_cv_as != x
; then
27895 $as_echo "$conftest_s" > conftest.s
27896 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27898 (eval $ac_try) 2>&5
27900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27901 test $ac_status = 0; }; }
27903 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27904 && test x
$gcc_cv_readelf != x \
27905 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27906 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27907 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27908 if $gcc_cv_objdump -dw conftest
2>&1 \
27909 |
grep 0xffffff > /dev
/null
2>&1; then
27910 gcc_cv_as_ix86_got32x
=no
27912 gcc_cv_as_ix86_got32x
=yes
27917 echo "configure: failed program was" >&5
27920 rm -f conftest.o conftest.s
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27924 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27928 cat >>confdefs.h
<<_ACEOF
27929 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27934 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27935 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27936 $as_echo_n "(cached) " >&6
27938 gcc_cv_as_ix86_gotoff_in_data
=no
27939 if test x
$gcc_cv_as != x
; then
27944 .long .L0@GOTOFF' > conftest.s
27945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27947 (eval $ac_try) 2>&5
27949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27950 test $ac_status = 0; }; }
27952 gcc_cv_as_ix86_gotoff_in_data
=yes
27954 echo "configure: failed program was" >&5
27957 rm -f conftest.o conftest.s
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27961 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27965 cat >>confdefs.h
<<_ACEOF
27966 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27971 .section .text,"ax",@progbits
27973 .type _start, @function
27975 leal ld@tlsldm(%ecx), %eax
27976 call *___tls_get_addr@GOT(%ecx)
27977 leal gd@tlsgd(%ecx), %eax
27978 call *___tls_get_addr@GOT(%ecx)
27980 .section .tdata,"aw'$tls_section_flag'",@progbits
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27989 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27990 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27991 $as_echo_n "(cached) " >&6
27993 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27994 if test x
$gcc_cv_as != x
; then
27995 $as_echo "$conftest_s" > conftest.s
27996 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27998 (eval $ac_try) 2>&5
28000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28001 test $ac_status = 0; }; }
28003 if test x
$gcc_cv_ld != x \
28004 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
28005 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
28009 echo "configure: failed program was" >&5
28012 rm -f conftest.o conftest.s
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
28016 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
28020 cat >>confdefs.h
<<_ACEOF
28021 #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`
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
28028 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
28029 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
28030 $as_echo_n "(cached) " >&6
28032 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
28033 if test x
$gcc_cv_as != x
; then
28035 addl r15 = @ltoffx(x#), gp
28037 ld8.mov r16 = [r15], x#
28039 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28041 (eval $ac_try) 2>&5
28043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28044 test $ac_status = 0; }; }
28046 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
28048 echo "configure: failed program was" >&5
28051 rm -f conftest.o conftest.s
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
28055 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
28056 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
28058 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
28070 $as_echo_n "checking assembler for .machine directive support... " >&6; }
28071 if ${gcc_cv_as_machine_directive+:} false
; then :
28072 $as_echo_n "(cached) " >&6
28074 gcc_cv_as_machine_directive
=no
28075 if test x
$gcc_cv_as != x
; then
28076 $as_echo ' .machine ppc7400' > conftest.s
28077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28079 (eval $ac_try) 2>&5
28081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28082 test $ac_status = 0; }; }
28084 gcc_cv_as_machine_directive
=yes
28086 echo "configure: failed program was" >&5
28089 rm -f conftest.o conftest.s
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
28093 $as_echo "$gcc_cv_as_machine_directive" >&6; }
28096 if test x
$gcc_cv_as_machine_directive != xyes
; then
28097 echo "*** This target requires an assembler supporting \".machine\"" >&2
28098 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
28099 test x
$build = x
$target && exit 1
28105 *-*-aix*) conftest_s
=' .machine "pwr5"
28108 *-*-darwin*) conftest_s
=' .text
28110 *) conftest_s
=' .machine power4
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
28116 $as_echo_n "checking assembler for mfcr field support... " >&6; }
28117 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
28118 $as_echo_n "(cached) " >&6
28120 gcc_cv_as_powerpc_mfcrf
=no
28121 if test x
$gcc_cv_as != x
; then
28122 $as_echo "$conftest_s" > conftest.s
28123 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; }
28130 gcc_cv_as_powerpc_mfcrf
=yes
28132 echo "configure: failed program was" >&5
28135 rm -f conftest.o conftest.s
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
28139 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
28140 if test $gcc_cv_as_powerpc_mfcrf = yes; then
28142 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
28148 *-*-aix*) conftest_s
=' .csect .text[PR]
28150 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
28154 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
28155 *) conftest_s
=' .text
28157 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
28161 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
28162 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
28163 $as_echo_n "(cached) " >&6
28165 gcc_cv_as_powerpc_rel16
=no
28166 if test x
$gcc_cv_as != x
; then
28167 $as_echo "$conftest_s" > conftest.s
28168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28170 (eval $ac_try) 2>&5
28172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28173 test $ac_status = 0; }; }
28175 gcc_cv_as_powerpc_rel16
=yes
28177 echo "configure: failed program was" >&5
28180 rm -f conftest.o conftest.s
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28184 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28185 if test $gcc_cv_as_powerpc_rel16 = yes; then
28187 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28193 *-*-aix*) conftest_s
=' .machine "pwr7"
28196 *) conftest_s
=' .machine power7
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28202 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28203 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
28204 $as_echo_n "(cached) " >&6
28206 gcc_cv_as_powerpc_vsx
=no
28207 if test x
$gcc_cv_as != x
; then
28208 $as_echo "$conftest_s" > conftest.s
28209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28211 (eval $ac_try) 2>&5
28213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28214 test $ac_status = 0; }; }
28216 gcc_cv_as_powerpc_vsx
=yes
28218 echo "configure: failed program was" >&5
28221 rm -f conftest.o conftest.s
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28225 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28226 if test $gcc_cv_as_powerpc_vsx = yes; then
28228 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28234 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28235 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28236 $as_echo_n "(cached) " >&6
28238 gcc_cv_as_powerpc_gnu_attribute
=no
28239 if test x
$gcc_cv_as != x
; then
28240 $as_echo '.gnu_attribute 4,1' > conftest.s
28241 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28243 (eval $ac_try) 2>&5
28245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28246 test $ac_status = 0; }; }
28248 gcc_cv_as_powerpc_gnu_attribute
=yes
28250 echo "configure: failed program was" >&5
28253 rm -f conftest.o conftest.s
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28257 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28258 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28260 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28266 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28267 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28268 $as_echo_n "(cached) " >&6
28270 gcc_cv_as_powerpc_entry_markers
=no
28271 if test x
$gcc_cv_as != x
; then
28272 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28273 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28275 (eval $ac_try) 2>&5
28277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28278 test $ac_status = 0; }; }
28280 gcc_cv_as_powerpc_entry_markers
=yes
28282 echo "configure: failed program was" >&5
28285 rm -f conftest.o conftest.s
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28289 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28290 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28292 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28298 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28299 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28300 $as_echo_n "(cached) " >&6
28302 gcc_cv_as_powerpc_pltseq_markers
=no
28303 if test x
$gcc_cv_as != x
; then
28304 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28307 (eval $ac_try) 2>&5
28309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28310 test $ac_status = 0; }; }
28312 gcc_cv_as_powerpc_pltseq_markers
=yes
28314 echo "configure: failed program was" >&5
28317 rm -f conftest.o conftest.s
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28321 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28322 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28324 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28332 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28333 if ${gcc_cv_as_aix_ref+:} false
; then :
28334 $as_echo_n "(cached) " >&6
28336 gcc_cv_as_aix_ref
=no
28337 if test x
$gcc_cv_as != x
; then
28338 $as_echo ' .csect stuff[rw]
28344 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28346 (eval $ac_try) 2>&5
28348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28349 test $ac_status = 0; }; }
28351 gcc_cv_as_aix_ref
=yes
28353 echo "configure: failed program was" >&5
28356 rm -f conftest.o conftest.s
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28360 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28361 if test $gcc_cv_as_aix_ref = yes; then
28363 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28369 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28370 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28371 $as_echo_n "(cached) " >&6
28373 gcc_cv_as_aix_dwloc
=no
28374 if test x
$gcc_cv_as != x
; then
28375 $as_echo ' .dwsect 0xA0000
28379 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28381 (eval $ac_try) 2>&5
28383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28384 test $ac_status = 0; }; }
28386 gcc_cv_as_aix_dwloc
=yes
28388 echo "configure: failed program was" >&5
28391 rm -f conftest.o conftest.s
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28395 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28396 if test $gcc_cv_as_aix_dwloc = yes; then
28398 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28408 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28409 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28410 $as_echo_n "(cached) " >&6
28412 gcc_cv_as_mips_explicit_relocs
=no
28413 if test x
$gcc_cv_as != x
; then
28414 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }
28422 gcc_cv_as_mips_explicit_relocs
=yes
28424 echo "configure: failed program was" >&5
28427 rm -f conftest.o conftest.s
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28431 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28432 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28433 if test x
$target_cpu_default = x
28434 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28435 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28441 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28442 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28443 $as_echo_n "(cached) " >&6
28445 gcc_cv_as_mips_no_shared
=no
28446 if test x
$gcc_cv_as != x
; then
28447 $as_echo 'nop' > conftest.s
28448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28450 (eval $ac_try) 2>&5
28452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28453 test $ac_status = 0; }; }
28455 gcc_cv_as_mips_no_shared
=yes
28457 echo "configure: failed program was" >&5
28460 rm -f conftest.o conftest.s
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28464 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28465 if test $gcc_cv_as_mips_no_shared = yes; then
28467 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28473 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28474 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28475 $as_echo_n "(cached) " >&6
28477 gcc_cv_as_mips_gnu_attribute
=no
28478 if test x
$gcc_cv_as != x
; then
28479 $as_echo '.gnu_attribute 4,1' > conftest.s
28480 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28482 (eval $ac_try) 2>&5
28484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28485 test $ac_status = 0; }; }
28487 gcc_cv_as_mips_gnu_attribute
=yes
28489 echo "configure: failed program was" >&5
28492 rm -f conftest.o conftest.s
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28496 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28497 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28499 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28505 $as_echo_n "checking assembler for .module support... " >&6; }
28506 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28507 $as_echo_n "(cached) " >&6
28509 gcc_cv_as_mips_dot_module
=no
28510 if test x
$gcc_cv_as != x
; then
28511 $as_echo '.module mips2
28512 .module fp=xx' > conftest.s
28513 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28515 (eval $ac_try) 2>&5
28517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28518 test $ac_status = 0; }; }
28520 gcc_cv_as_mips_dot_module
=yes
28522 echo "configure: failed program was" >&5
28525 rm -f conftest.o conftest.s
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28529 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28530 if test $gcc_cv_as_mips_dot_module = yes; then
28532 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28536 if test x
$gcc_cv_as_mips_dot_module = xno \
28537 && test x
$with_fp_32 != x
; then
28538 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28542 $as_echo_n "checking assembler for .micromips support... " >&6; }
28543 if ${gcc_cv_as_micromips_support+:} false
; then :
28544 $as_echo_n "(cached) " >&6
28546 gcc_cv_as_micromips_support
=no
28547 if test x
$gcc_cv_as != x
; then
28548 $as_echo '.set micromips' > conftest.s
28549 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28551 (eval $ac_try) 2>&5
28553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28554 test $ac_status = 0; }; }
28556 gcc_cv_as_micromips_support
=yes
28558 echo "configure: failed program was" >&5
28561 rm -f conftest.o conftest.s
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28565 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28566 if test $gcc_cv_as_micromips_support = yes; then
28568 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28574 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28575 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28576 $as_echo_n "(cached) " >&6
28578 gcc_cv_as_mips_dtprelword
=no
28579 if test x
$gcc_cv_as != x
; then
28580 $as_echo '.section .tdata,"awT",@progbits
28584 .dtprelword x+0x8000' > conftest.s
28585 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28587 (eval $ac_try) 2>&5
28589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28590 test $ac_status = 0; }; }
28592 gcc_cv_as_mips_dtprelword
=yes
28594 echo "configure: failed program was" >&5
28597 rm -f conftest.o conftest.s
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28601 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28602 if test $gcc_cv_as_mips_dtprelword = yes; then
28604 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28610 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28611 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28612 $as_echo_n "(cached) " >&6
28614 gcc_cv_as_mips_dspr1_mult
=no
28615 if test x
$gcc_cv_as != x
; then
28616 $as_echo ' .set mips32r2
28624 multu $ac3,$4,$5' > conftest.s
28625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28627 (eval $ac_try) 2>&5
28629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28630 test $ac_status = 0; }; }
28632 gcc_cv_as_mips_dspr1_mult
=yes
28634 echo "configure: failed program was" >&5
28637 rm -f conftest.o conftest.s
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28641 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28642 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28644 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28650 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28651 gcc_cv_as_ld_jalr_reloc
=no
28652 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28653 if test $in_tree_ld = yes ; then
28654 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 \
28655 && test $in_tree_ld_is_elf = yes; then
28656 gcc_cv_as_ld_jalr_reloc
=yes
28658 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28659 echo ' .ent x' > conftest.s
28660 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28661 echo ' lw $25,%call16(y)($28)' >> conftest.s
28662 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28663 echo '1: jalr $25' >> conftest.s
28664 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28665 echo '1: jalr $25' >> conftest.s
28666 echo ' .end x' >> conftest.s
28667 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28668 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28669 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28670 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28671 gcc_cv_as_ld_jalr_reloc
=yes
28677 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28678 if test x
$target_cpu_default = x
; then
28679 target_cpu_default
=MASK_RELAX_PIC_CALLS
28681 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28685 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28688 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28689 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28690 $as_echo_n "(cached) " >&6
28692 gcc_cv_ld_mips_personality_relaxation
=no
28693 if test $in_tree_ld = yes ; then
28694 if test "$gcc_cv_gld_major_version" -eq 2 \
28695 -a "$gcc_cv_gld_minor_version" -ge 21 \
28696 -o "$gcc_cv_gld_major_version" -gt 2; then
28697 gcc_cv_ld_mips_personality_relaxation
=yes
28699 elif test x
$gcc_cv_as != x \
28700 -a x
$gcc_cv_ld != x \
28701 -a x
$gcc_cv_readelf != x
; then
28702 cat > conftest.s
<<EOF
28704 .cfi_personality 0x80,indirect_ptr
28711 .section .data,"aw",@progbits
28715 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28716 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28717 if $gcc_cv_readelf -d conftest
2>&1 \
28718 |
grep TEXTREL
> /dev
/null
2>&1; then
28720 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28721 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28724 gcc_cv_ld_mips_personality_relaxation
=yes
28728 rm -f conftest.s conftest.o conftest
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28731 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28732 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28734 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28739 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28740 if ${gcc_cv_as_mips_nan+:} false
; then :
28741 $as_echo_n "(cached) " >&6
28743 gcc_cv_as_mips_nan
=no
28744 if test x
$gcc_cv_as != x
; then
28745 $as_echo '' > conftest.s
28746 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; }
28753 gcc_cv_as_mips_nan
=yes
28755 echo "configure: failed program was" >&5
28758 rm -f conftest.o conftest.s
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28762 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28763 if test $gcc_cv_as_mips_nan = yes; then
28765 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28769 if test x
$gcc_cv_as_mips_nan = xno \
28770 && test x
$with_nan != x
; then
28771 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28775 # Earlier GAS versions generically support .gnu_attribute, but the
28776 # msp430 assembler will not do anything with it.
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28778 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28779 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28780 $as_echo_n "(cached) " >&6
28782 gcc_cv_as_msp430_gnu_attribute
=no
28783 if test x
$gcc_cv_as != x
; then
28784 $as_echo '.gnu_attribute 4,1' > conftest.s
28785 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28787 (eval $ac_try) 2>&5
28789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28790 test $ac_status = 0; }; }
28792 gcc_cv_as_msp430_gnu_attribute
=yes
28794 echo "configure: failed program was" >&5
28797 rm -f conftest.o conftest.s
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28801 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28802 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28804 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28809 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28810 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28811 $as_echo_n "(cached) " >&6
28813 gcc_cv_as_msp430_mspabi_attribute
=no
28814 if test x
$gcc_cv_as != x
; then
28815 $as_echo '.mspabi_attribute 4,2' > conftest.s
28816 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28818 (eval $ac_try) 2>&5
28820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28821 test $ac_status = 0; }; }
28823 gcc_cv_as_msp430_mspabi_attribute
=yes
28825 echo "configure: failed program was" >&5
28828 rm -f conftest.o conftest.s
28831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28832 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28833 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28835 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28839 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28841 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28846 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28847 # syntax that is documented in the ABI specification.
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28849 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28850 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28851 $as_echo_n "(cached) " >&6
28853 gcc_cv_as_nios2_gotoff_relocation
=no
28854 if test x
$gcc_cv_as != x
; then
28855 $as_echo ' .extern foo
28857 .long %gotoff(foo)' > conftest.s
28858 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28860 (eval $ac_try) 2>&5
28862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28863 test $ac_status = 0; }; }
28865 gcc_cv_as_nios2_gotoff_relocation
=yes
28867 echo "configure: failed program was" >&5
28870 rm -f conftest.o conftest.s
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28874 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28875 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28877 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28884 $as_echo_n "checking assembler for .attribute support... " >&6; }
28885 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28886 $as_echo_n "(cached) " >&6
28888 gcc_cv_as_riscv_attribute
=no
28889 if test x
$gcc_cv_as != x
; then
28890 $as_echo '.attribute stack_align,4' > conftest.s
28891 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28893 (eval $ac_try) 2>&5
28895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28896 test $ac_status = 0; }; }
28898 gcc_cv_as_riscv_attribute
=yes
28900 echo "configure: failed program was" >&5
28903 rm -f conftest.o conftest.s
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28907 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28908 if test $gcc_cv_as_riscv_attribute = yes; then
28910 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28915 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28916 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28917 $as_echo_n "(cached) " >&6
28919 gcc_cv_as_riscv_isa_spec
=no
28920 if test x
$gcc_cv_as != x
; then
28921 $as_echo '' > conftest.s
28922 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28924 (eval $ac_try) 2>&5
28926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28927 test $ac_status = 0; }; }
28929 gcc_cv_as_riscv_isa_spec
=yes
28931 echo "configure: failed program was" >&5
28934 rm -f conftest.o conftest.s
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28938 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28939 if test $gcc_cv_as_riscv_isa_spec = yes; then
28941 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28946 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28947 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
28948 $as_echo_n "(cached) " >&6
28950 gcc_cv_as_riscv_march_zifencei
=no
28951 if test x
$gcc_cv_as != x
; then
28952 $as_echo '' > conftest.s
28953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28955 (eval $ac_try) 2>&5
28957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28958 test $ac_status = 0; }; }
28960 gcc_cv_as_riscv_march_zifencei
=yes
28962 echo "configure: failed program was" >&5
28965 rm -f conftest.o conftest.s
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28969 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28970 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28972 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28979 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28980 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
28981 $as_echo_n "(cached) " >&6
28983 gcc_cv_as_loongarch_dtprelword
=no
28984 if test x
$gcc_cv_as != x
; then
28985 $as_echo '' > conftest.s
28986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28988 (eval $ac_try) 2>&5
28990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28991 test $ac_status = 0; }; }
28993 .section .tdata
,"awT",@progbits
28997 .dtprelword x
+0x8000
28999 echo "configure: failed program was" >&5
29002 rm -f conftest.o conftest.s
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
29006 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
29008 if test $gcc_cv_as_loongarch_dtprelword != yes; then
29010 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
29014 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
29015 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
29016 $as_echo_n "(cached) " >&6
29018 gcc_cv_as_loongarch_explicit_relocs
=no
29019 if test x
$gcc_cv_as != x
; then
29020 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
29021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29023 (eval $ac_try) 2>&5
29025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29026 test $ac_status = 0; }; }
29028 gcc_cv_as_loongarch_explicit_relocs
=yes
29030 echo "configure: failed program was" >&5
29033 rm -f conftest.o conftest.s
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
29037 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
29038 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
29040 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
29045 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
29046 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
29047 $as_echo_n "(cached) " >&6
29049 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
29050 if test x
$gcc_cv_as != x
; then
29051 $as_echo '.cfi_startproc
29052 .cfi_personality 0x9b,a
29054 .cfi_endproc' > conftest.s
29055 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29057 (eval $ac_try) 2>&5
29059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29060 test $ac_status = 0; }; }
29062 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
29064 echo "configure: failed program was" >&5
29067 rm -f conftest.o conftest.s
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
29071 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
29072 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
29074 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
29081 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
29082 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
29083 $as_echo_n "(cached) " >&6
29085 gcc_cv_as_s390_gnu_attribute
=no
29086 if test x
$gcc_cv_as != x
; then
29087 $as_echo '.gnu_attribute 8,1' > conftest.s
29088 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29090 (eval $ac_try) 2>&5
29092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29093 test $ac_status = 0; }; }
29095 gcc_cv_as_s390_gnu_attribute
=yes
29097 echo "configure: failed program was" >&5
29100 rm -f conftest.o conftest.s
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
29104 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
29105 if test $gcc_cv_as_s390_gnu_attribute = yes; then
29107 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
29112 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
29113 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
29114 $as_echo_n "(cached) " >&6
29116 gcc_cv_as_s390_machine_machinemode
=no
29117 if test x
$gcc_cv_as != x
; then
29118 $as_echo ' .machinemode push
29121 .machine pop' > conftest.s
29122 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29124 (eval $ac_try) 2>&5
29126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29127 test $ac_status = 0; }; }
29129 gcc_cv_as_s390_machine_machinemode
=yes
29131 echo "configure: failed program was" >&5
29134 rm -f conftest.o conftest.s
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
29138 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
29139 if test $gcc_cv_as_s390_machine_machinemode = yes; then
29141 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
29146 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
29147 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
29148 $as_echo_n "(cached) " >&6
29150 gcc_cv_as_s390_architecture_modifiers
=no
29151 if test x
$gcc_cv_as != x
; then
29152 $as_echo ' .machine z13+vx ' > conftest.s
29153 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29155 (eval $ac_try) 2>&5
29157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29158 test $ac_status = 0; }; }
29160 gcc_cv_as_s390_architecture_modifiers
=yes
29162 echo "configure: failed program was" >&5
29165 rm -f conftest.o conftest.s
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
29169 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
29170 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
29172 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29177 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29178 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
29179 $as_echo_n "(cached) " >&6
29181 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
29182 if test x
$gcc_cv_as != x
; then
29183 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29184 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29186 (eval $ac_try) 2>&5
29188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29189 test $ac_status = 0; }; }
29191 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
29193 echo "configure: failed program was" >&5
29196 rm -f conftest.o conftest.s
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29200 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29201 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29203 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29208 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29209 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
29210 $as_echo_n "(cached) " >&6
29212 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
29213 if test x
$gcc_cv_as != x
; then
29214 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29215 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -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 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
29224 echo "configure: failed program was" >&5
29227 rm -f conftest.o conftest.s
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29231 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29232 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29234 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29242 # Mips, LoongArch and HP-UX need the GNU assembler.
29243 # Linux on IA64 might be able to use the Intel assembler.
29246 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
29247 if test x
$gas_flag = xyes \
29248 ||
test x
"$host" != x
"$build" \
29249 ||
test ! -x "$gcc_cv_as" \
29250 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29253 echo "*** This configuration requires the GNU assembler" >&2
29259 # AMD GCN needs the LLVM assembler and linker.
29260 # Test that LLVM is at least 13.0.1.
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29264 $as_echo_n "checking llvm assembler version... " >&6; }
29265 gcc_cv_as_version
="unknown"
29266 if test x
$gcc_cv_as != x
; then
29267 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29268 case "$gcc_cv_as_version" in
29269 13.0.
[1-9]*) ;; # 13.0.1+
29270 13.
[1-9]*) ;; # 13.1+
29271 1[4-9]*) ;; # 14..19
29272 [2-9][0-9]*) ;; # 20..99
29273 [1-9][0-9][0-9]*) ;; # 100+
29274 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
29275 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29279 $as_echo "$gcc_cv_as_version, ok" >&6; }
29285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29286 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29287 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29288 $as_echo_n "(cached) " >&6
29290 gcc_cv_as_arm_option_extensions
=no
29291 if test x
$gcc_cv_as != x
; then
29295 vmov.f32 s0, s1' > conftest.s
29296 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29298 (eval $ac_try) 2>&5
29300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29301 test $ac_status = 0; }; }
29303 gcc_cv_as_arm_option_extensions
=yes
29305 echo "configure: failed program was" >&5
29308 rm -f conftest.o conftest.s
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29312 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29313 if test $gcc_cv_as_arm_option_extensions = yes; then
29315 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29321 # ??? Not all targets support dwarf2 debug_line, even within a version
29322 # of gas. Moreover, we need to emit a valid instruction to trigger any
29323 # info to the output file. So, as supported targets are added to gas 2.11,
29324 # add some instruction here to (also) show we expect this might work.
29325 # ??? Once 2.11 is released, probably need to add first known working
29326 # version to the per-target configury.
29327 case "$cpu_type" in
29328 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29329 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29330 | visium | xstormy16 | xtensa
)
29340 if test x
"$insn" != x
; then
29342 .file 1 \"conftest.s\"
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29346 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29347 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29348 $as_echo_n "(cached) " >&6
29350 gcc_cv_as_dwarf2_debug_line
=no
29351 if test x
$gcc_cv_as != x
; then
29352 $as_echo "$conftest_s" > conftest.s
29353 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29355 (eval $ac_try) 2>&5
29357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29358 test $ac_status = 0; }; }
29360 if test x
$gcc_cv_objdump != x \
29361 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29362 |
grep debug_line
> /dev
/null
2>&1; then
29363 gcc_cv_as_dwarf2_debug_line
=yes
29364 elif test x
$gcc_cv_otool != x \
29365 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29366 |
grep debug_line
> /dev
/null
2>&1; then
29367 gcc_cv_as_dwarf2_debug_line
=yes
29370 echo "configure: failed program was" >&5
29373 rm -f conftest.o conftest.s
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29377 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29381 # The .debug_line file table must be in the exact order that
29382 # we specified the files, since these indices are also used
29383 # by DW_AT_decl_file. Approximate this test by testing if
29384 # the assembler bitches if the same index is assigned twice.
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29386 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29387 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29388 $as_echo_n "(cached) " >&6
29390 gcc_cv_as_dwarf2_file_buggy
=no
29391 if test x
$gcc_cv_as != x
; then
29392 $as_echo ' .file 1 "foo.s"
29393 .file 1 "bar.s"' > conftest.s
29394 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29396 (eval $ac_try) 2>&5
29398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29399 test $ac_status = 0; }; }
29401 gcc_cv_as_dwarf2_file_buggy
=yes
29403 echo "configure: failed program was" >&5
29406 rm -f conftest.o conftest.s
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29410 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29414 if test $gcc_cv_as_dwarf2_debug_line = yes \
29415 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29417 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29420 if test $gcc_cv_as_leb128 = yes; then
29422 .file 1 \"conftest.s\"
29423 .loc 1 3 0 view .LVU1
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29430 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29431 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29432 $as_echo_n "(cached) " >&6
29434 gcc_cv_as_dwarf2_debug_view
=no
29435 if test x
$gcc_cv_as != x
; then
29436 $as_echo "$conftest_s" > conftest.s
29437 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29439 (eval $ac_try) 2>&5
29441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29442 test $ac_status = 0; }; }
29444 gcc_cv_as_dwarf2_debug_view
=yes
29446 echo "configure: failed program was" >&5
29449 rm -f conftest.o conftest.s
29452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29453 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29454 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29456 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29464 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29465 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29466 $as_echo_n "(cached) " >&6
29468 gcc_cv_as_gdwarf2_flag
=no
29469 if test x
$gcc_cv_as != x
; then
29470 $as_echo "$insn" > conftest.s
29471 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29473 (eval $ac_try) 2>&5
29475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29476 test $ac_status = 0; }; }
29478 gcc_cv_as_gdwarf2_flag
=yes
29480 echo "configure: failed program was" >&5
29483 rm -f conftest.o conftest.s
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29487 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29488 if test $gcc_cv_as_gdwarf2_flag = yes; then
29490 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29496 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29497 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29498 $as_echo_n "(cached) " >&6
29500 gcc_cv_as_gdwarf_5_flag
=no
29501 if test x
$gcc_cv_as != x
; then
29502 $as_echo "$insn" > conftest.s
29503 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29505 (eval $ac_try) 2>&5
29507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29508 test $ac_status = 0; }; }
29510 if test x
$gcc_cv_objdump != x \
29511 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29512 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29513 gcc_cv_as_gdwarf_5_flag
=yes;
29516 echo "configure: failed program was" >&5
29519 rm -f conftest.o conftest.s
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29523 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29524 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29526 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29532 win32 | pe | cygwin
* | mingw32
*)
29533 section_flags
=\"dr
\"
29534 function_type
=".def foo; .scl 2; .type 32; .endef"
29537 section_flags
=\"\",%progbits
29538 function_type
=".type foo, %function"
29539 function_size
=".size foo, .-foo";;
29541 dwarf4_debug_info_size
=0x46
29542 dwarf4_high_pc_form
=7
29543 dwarf4_debug_aranges_size
=0x2c
29545 for dwarf4_addr_size
in 8 4; do
29561 .section .debug_info,$section_flags
29563 .4byte $dwarf4_debug_info_size
29565 .4byte .Ldebug_abbrev0
29566 .byte 0x$dwarf4_addr_size
29568 .ascii \"GNU C17\\0\"
29572 .${dwarf4_addr_size}byte .Ltext0
29573 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29574 .4byte .Ldebug_line0
29580 .${dwarf4_addr_size}byte .LFB0
29581 .${dwarf4_addr_size}byte .LFE0-.LFB0
29585 .section .debug_abbrev,$section_flags
29601 .byte 0x$dwarf4_high_pc_form
29622 .byte 0x$dwarf4_high_pc_form
29628 .section .debug_aranges,$section_flags
29629 .4byte $dwarf4_debug_aranges_size
29631 .4byte .Ldebug_info0
29636 .${dwarf4_addr_size}byte .Ltext0
29637 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29638 .${dwarf4_addr_size}byte 0
29639 .${dwarf4_addr_size}byte 0
29640 .section .debug_line,$section_flags
29642 .4byte .LELT0-.LSLT0
29645 .4byte .LELTP0-.LASLTP0
29673 .byte 0x$dwarf4_line_sz
29675 .${dwarf4_addr_size}byte .LM1
29680 .byte 0x$dwarf4_line_sz
29682 .${dwarf4_addr_size}byte .LM2
29687 .byte 0x$dwarf4_line_sz
29689 .${dwarf4_addr_size}byte .Letext0
29694 .section .debug_str,$section_flags
29698 if test $dwarf4_addr_size = 4; then
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29700 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29701 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29702 $as_echo_n "(cached) " >&6
29704 gcc_cv_as_debug_line_32_flag
=no
29705 if test x
$gcc_cv_as != x
; then
29706 $as_echo "$conftest_s" > conftest.s
29707 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29709 (eval $ac_try) 2>&5
29711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29712 test $ac_status = 0; }; }
29714 gcc_cv_as_debug_line_32_flag
=yes
29716 echo "configure: failed program was" >&5
29719 rm -f conftest.o conftest.s
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29723 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29724 if test $gcc_cv_as_debug_line_32_flag = yes; then
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29730 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29731 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29732 $as_echo_n "(cached) " >&6
29734 gcc_cv_as_debug_line_64_flag
=no
29735 if test x
$gcc_cv_as != x
; then
29736 $as_echo "$conftest_s" > conftest.s
29737 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29739 (eval $ac_try) 2>&5
29741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29742 test $ac_status = 0; }; }
29744 gcc_cv_as_debug_line_64_flag
=yes
29746 echo "configure: failed program was" >&5
29749 rm -f conftest.o conftest.s
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29753 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29754 if test $gcc_cv_as_debug_line_64_flag = yes; then
29759 if test $dwarf4_success = yes; then
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29762 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29763 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29764 $as_echo_n "(cached) " >&6
29766 gcc_cv_as_dwarf_4_debug_line_flag
=no
29767 if test x
$gcc_cv_as != x
; then
29768 $as_echo "$conftest_s" > conftest.s
29769 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29771 (eval $ac_try) 2>&5
29773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29774 test $ac_status = 0; }; }
29776 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29778 echo "configure: failed program was" >&5
29781 rm -f conftest.o conftest.s
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29785 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29786 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29792 dwarf4_debug_info_size
=0x36
29793 dwarf4_high_pc_form
=6
29794 dwarf4_debug_aranges_size
=0x1c
29798 if test $dwarf4_success = yes; then
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29817 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29818 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29819 $as_echo_n "(cached) " >&6
29821 gcc_cv_as_dwarf_4_app_flag
=no
29822 if test x
$gcc_cv_as != x
; then
29823 $as_echo "$conftest_s" > conftest.s
29824 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29826 (eval $ac_try) 2>&5
29828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29829 test $ac_status = 0; }; }
29831 gcc_cv_as_dwarf_4_app_flag
=yes
29833 echo "configure: failed program was" >&5
29836 rm -f conftest.o conftest.s
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29840 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29841 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29847 if test $dwarf4_success = yes; then
29857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29858 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29859 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29860 $as_echo_n "(cached) " >&6
29862 gcc_cv_as_working_gdwarf_n_flag
=no
29863 if test x
$gcc_cv_as != x
; then
29864 $as_echo "$conftest_s" > conftest.s
29865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29867 (eval $ac_try) 2>&5
29869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29870 test $ac_status = 0; }; }
29872 if test x
$gcc_cv_objdump != x \
29873 && $gcc_cv_objdump -W conftest.o
2>&1 \
29874 |
grep conftest.s
> /dev
/null
2>&1; then
29875 gcc_cv_as_working_gdwarf_n_flag
=no
29877 gcc_cv_as_working_gdwarf_n_flag
=yes
29880 echo "configure: failed program was" >&5
29883 rm -f conftest.o conftest.s
29886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29887 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29890 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29892 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29898 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29899 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
29900 $as_echo_n "(cached) " >&6
29902 gcc_cv_as_debug_prefix_map_flag
=no
29903 if test x
$gcc_cv_as != x
; then
29904 $as_echo "$insn" > conftest.s
29905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29907 (eval $ac_try) 2>&5
29909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29910 test $ac_status = 0; }; }
29912 gcc_cv_as_debug_prefix_map_flag
=yes
29914 echo "configure: failed program was" >&5
29917 rm -f conftest.o conftest.s
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29921 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29922 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29924 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29931 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29932 if ${gcc_cv_as_compress_debug+:} false
; then :
29933 $as_echo_n "(cached) " >&6
29935 gcc_cv_as_compress_debug
=no
29936 if test x
$gcc_cv_as != x
; then
29937 $as_echo '' > conftest.s
29938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29940 (eval $ac_try) 2>&5
29942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29943 test $ac_status = 0; }; }
29945 # gas compiled without zlib cannot compress debug sections and warns
29946 # about it, but still exits successfully. So check for this, too.
29947 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
29949 gcc_cv_as_compress_debug
=0
29950 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
29952 gcc_cv_as_compress_debug
=1
29953 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29954 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29955 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29956 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
29958 gcc_cv_as_compress_debug
=2
29961 gcc_cv_as_compress_debug
=0
29964 echo "configure: failed program was" >&5
29967 rm -f conftest.o conftest.s
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29971 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29975 cat >>confdefs.h
<<_ACEOF
29976 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29980 cat >>confdefs.h
<<_ACEOF
29981 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29985 cat >>confdefs.h
<<_ACEOF
29986 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29991 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29992 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29993 $as_echo_n "(cached) " >&6
29995 gcc_cv_as_lcomm_with_alignment
=no
29996 if test x
$gcc_cv_as != x
; then
29997 $as_echo '.lcomm bar,4,16' > conftest.s
29998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30000 (eval $ac_try) 2>&5
30002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30003 test $ac_status = 0; }; }
30005 gcc_cv_as_lcomm_with_alignment
=yes
30007 echo "configure: failed program was" >&5
30010 rm -f conftest.o conftest.s
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
30014 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
30015 if test $gcc_cv_as_lcomm_with_alignment = yes; then
30017 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
30022 if test x
$with_sysroot = x
&& test x
$host = x
$target \
30023 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
30024 && test "$prefix" != "NONE"; then
30026 cat >>confdefs.h
<<_ACEOF
30027 #define PREFIX_INCLUDE_DIR "$prefix/include"
30032 # Determine the version of glibc, if any, used on the target.
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
30034 $as_echo_n "checking for target glibc version... " >&6; }
30036 # Check whether --with-glibc-version was given.
30037 if test "${with_glibc_version+set}" = set; then :
30038 withval
=$with_glibc_version;
30039 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
30040 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
30041 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
30043 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
30047 glibc_version_major
=0
30048 glibc_version_minor
=0
30049 if test -f $target_header_dir/features.h \
30050 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
30051 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
30052 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
30053 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
30058 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
30060 cat >>confdefs.h
<<_ACEOF
30061 #define TARGET_GLIBC_MAJOR $glibc_version_major
30065 cat >>confdefs.h
<<_ACEOF
30066 #define TARGET_GLIBC_MINOR $glibc_version_minor
30070 # Check whether --enable-gnu-unique-object was given.
30071 if test "${enable_gnu_unique_object+set}" = set; then :
30072 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
30074 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
30075 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
30079 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
30080 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
30081 $as_echo_n "(cached) " >&6
30083 gcc_cv_as_gnu_unique_object
=no
30084 if test x
$gcc_cv_as != x
; then
30085 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
30086 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30088 (eval $ac_try) 2>&5
30090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30091 test $ac_status = 0; }; }
30093 gcc_cv_as_gnu_unique_object
=yes
30095 echo "configure: failed program was" >&5
30098 rm -f conftest.o conftest.s
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
30102 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
30103 if test $gcc_cv_as_gnu_unique_object = yes; then
30104 # We need to unquote above to to use the definition from config.gcc.
30105 # Also check for ld.so support, i.e. glibc 2.11 or higher.
30107 if test $glibc_version_major -gt 2 \
30108 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
30109 enable_gnu_unique_object
=yes
30116 if test x
$enable_gnu_unique_object = xyes
; then
30118 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
30122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
30123 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
30124 if ${gcc_cv_as_line_zero+:} false
; then :
30125 $as_echo_n "(cached) " >&6
30127 gcc_cv_as_line_zero
=no
30128 if test "x$gcc_cv_as" != x
; then
30129 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
30130 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
30131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30132 (eval $ac_try) 2>&5
30134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30135 test $ac_status = 0; }; } &&
30136 test "x`cat conftest.out`" = x
30138 gcc_cv_as_line_zero
=yes
30140 echo "configure: failed program was" >&5
30142 echo "configure: error output was" >&5
30143 cat conftest.out
>&5
30145 rm -f conftest.o conftest.s conftest.out
30148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
30149 $as_echo "$gcc_cv_as_line_zero" >&6; }
30150 if test "x$gcc_cv_as_line_zero" = xyes
; then
30152 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
30157 $as_echo_n "checking support for thin archives... " >&6; }
30158 thin_archive_support
=no
30159 echo 'int main (void) { return 0; }' > conftest.c
30160 if ($AR --version |
sed 1q |
grep "GNU ar" \
30161 && $CC $CFLAGS -c conftest.c \
30162 && $AR rcT conftest.a conftest.o \
30163 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
30164 thin_archive_support
=yes
30166 rm -f conftest.c conftest.o conftest.a conftest
30167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
30168 $as_echo "$thin_archive_support" >&6; }
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
30172 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
30173 gcc_cv_ld_eh_frame_hdr
=no
30174 if test $in_tree_ld = yes ; then
30175 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 \
30176 && test $in_tree_ld_is_elf = yes; then
30177 gcc_cv_ld_eh_frame_hdr
=yes
30179 elif test x
$gcc_cv_ld != x
; then
30180 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30181 # Check if linker supports --eh-frame-hdr option
30182 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
30183 gcc_cv_ld_eh_frame_hdr
=yes
30188 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30189 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
30190 gcc_cv_ld_eh_frame_hdr
=yes
30197 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
30199 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30203 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30206 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30207 gcc_cv_ld_eh_frame_ciev3
=no
30208 if test $in_tree_ld = yes ; then
30209 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 \
30210 && test $in_tree_ld_is_elf = yes; then
30211 gcc_cv_ld_eh_frame_ciev3
=yes
30213 elif test x
$gcc_cv_ld != x
; then
30214 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30215 gcc_cv_ld_eh_frame_ciev3
=yes
30216 if test 0"$ld_date" -lt 20040513; then
30217 if test -n "$ld_date"; then
30218 # If there was date string, but was earlier than 2004-05-13, fail
30219 gcc_cv_ld_eh_frame_ciev3
=no
30220 elif test "$ld_vers_major" -lt 2; then
30221 gcc_cv_ld_eh_frame_ciev3
=no
30222 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30223 gcc_cv_ld_eh_frame_ciev3
=no
30229 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30230 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30231 gcc_cv_ld_eh_frame_ciev3
=yes
30238 cat >>confdefs.h
<<_ACEOF
30239 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30243 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30246 $as_echo_n "checking linker position independent executable support... " >&6; }
30248 if test $in_tree_ld = yes ; then
30250 # Full PIE support on Solaris was only introduced in gld 2.26.
30251 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30252 *) gcc_gld_pie_min_version
=15 ;;
30254 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 \
30255 && test $in_tree_ld_is_elf = yes; then
30258 elif test x
$gcc_cv_ld != x
; then
30259 # Check if linker supports -pie option
30260 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30264 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30265 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30272 *-*-solaris2.1
[1-9]*)
30273 # Solaris 11.3 added PIE support.
30274 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30281 if test x
"$gcc_cv_ld_pie" = xyes
; then
30283 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30287 $as_echo "$gcc_cv_ld_pie" >&6; }
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30290 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30291 gcc_cv_ld_pie_copyreloc
=no
30292 if test $gcc_cv_ld_pie = yes ; then
30293 if test $in_tree_ld = yes ; then
30294 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
30295 gcc_cv_ld_pie_copyreloc
=yes
30297 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30298 # Check if linker supports -pie option with copy reloc
30300 i?
86-*-linux* | x86_64-
*-linux*)
30301 cat > conftest1.s
<<EOF
30304 .type a_glob, @object
30309 cat > conftest2.s
<<EOF
30312 .type main, @function
30314 movl %eax, a_glob(%rip)
30317 .section .data.rel,"aw",@progbits
30322 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30323 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30324 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30325 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30326 gcc_cv_ld_pie_copyreloc
=yes
30328 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30334 cat >>confdefs.h
<<_ACEOF
30335 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30339 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30342 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30343 gcc_cv_ld_eh_gc_sections
=no
30344 if test $in_tree_ld = yes ; then
30345 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 \
30346 && test $in_tree_ld_is_elf = yes; then
30347 gcc_cv_ld_eh_gc_sections
=yes
30349 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30350 cat > conftest.s
<<EOF
30353 .type _start, @function
30356 .size _start, .-_start
30357 .section .text.foo,"ax",@progbits
30358 .type foo, @function
30362 .section .gcc_except_table.foo,"a",@progbits
30365 .section .eh_frame,"a",@progbits
30368 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30369 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30370 |
grep "gc-sections option ignored" > /dev
/null
; then
30371 gcc_cv_ld_eh_gc_sections
=no
30372 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30373 |
grep gcc_except_table
> /dev
/null
; then
30374 gcc_cv_ld_eh_gc_sections
=yes
30375 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30376 if test x
$gcc_cv_as_comdat_group != xyes
; then
30377 gcc_cv_ld_eh_gc_sections
=no
30378 cat > conftest.s
<<EOF
30381 .type _start, @function
30384 .size _start, .-_start
30385 .section .gnu.linkonce.t.foo,"ax",@progbits
30386 .type foo, @function
30390 .section .gcc_except_table.foo,"a",@progbits
30393 .section .eh_frame,"a",@progbits
30396 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30397 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30398 |
grep "gc-sections option ignored" > /dev
/null
; then
30399 gcc_cv_ld_eh_gc_sections
=no
30400 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30401 |
grep gcc_except_table
> /dev
/null
; then
30402 gcc_cv_ld_eh_gc_sections
=yes
30408 rm -f conftest.s conftest.o conftest
30412 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30413 gcc_cv_ld_eh_gc_sections
=no
30416 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30418 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30422 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30425 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30426 gcc_cv_ld_eh_gc_sections_bug
=no
30427 if test $in_tree_ld = yes ; then
30428 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 \
30429 && test $in_tree_ld_is_elf = yes; then
30430 gcc_cv_ld_eh_gc_sections_bug
=yes
30432 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
30433 gcc_cv_ld_eh_gc_sections_bug
=yes
30434 cat > conftest.s
<<EOF
30437 .type _start, @function
30440 .size _start, .-_start
30441 .section .text.startup.foo,"ax",@progbits
30442 .type foo, @function
30446 .section .gcc_except_table.foo,"a",@progbits
30449 .section .eh_frame,"a",@progbits
30452 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30453 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30454 |
grep "gc-sections option ignored" > /dev
/null
; then
30456 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30457 |
grep gcc_except_table
> /dev
/null
; then
30458 gcc_cv_ld_eh_gc_sections_bug
=no
30461 rm -f conftest.s conftest.o conftest
30463 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30465 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30469 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30472 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30473 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30474 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
30475 gcc_cv_ld_compress_debug
=1
30476 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30477 # Detect zstd debug section compression support
30478 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
30479 gcc_cv_ld_compress_debug
=2
30482 case "${target}" in
30484 # Introduced in Solaris 11.2.
30485 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30486 gcc_cv_ld_compress_debug
=1
30487 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30489 gcc_cv_ld_compress_debug
=0
30493 # Assume linkers other than GNU ld don't support compessed debug
30495 gcc_cv_ld_compress_debug
=0
30500 cat >>confdefs.h
<<_ACEOF
30501 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30505 cat >>confdefs.h
<<_ACEOF
30506 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30510 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30512 if test x
"$ld64_flag" = x
"yes"; then
30514 # Set defaults for possibly untestable items.
30515 gcc_cv_ld64_export_dynamic
=0
30516 gcc_cv_ld64_platform_version
=0
30517 gcc_cv_ld64_demangle
=0
30519 if test "$build" = "$host"; then
30525 # On Darwin, because of FAT library support, it is often possible to execute
30526 # exes from compatible archs even when the host differs from the build system.
30527 case "$build","$host" in
30528 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30529 darwin_try_test
=1;;
30533 # If the configurer specified a minimum ld64 version to be supported, then use
30534 # that to determine feature support.
30535 if test x
"${gcc_cv_ld64_version}" != x
; then
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30537 $as_echo_n "checking ld64 specified version... " >&6; }
30538 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30540 $as_echo "$gcc_cv_ld64_major" >&6; }
30541 if test "$gcc_cv_ld64_major" -ge 97; then
30542 gcc_cv_ld64_demangle
=1
30544 if test "$gcc_cv_ld64_major" -ge 236; then
30545 gcc_cv_ld64_export_dynamic
=1
30547 if test "$gcc_cv_ld64_major" -ge 512; then
30548 gcc_cv_ld64_platform_version
=1
30550 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30551 # If the version was not specified, try to find it.
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30553 $as_echo_n "checking linker version... " >&6; }
30554 if test x
"${gcc_cv_ld64_version}" = x
; then
30555 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30558 $as_echo "$gcc_cv_ld64_version" >&6; }
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
30561 $as_echo_n "checking linker for -demangle support... " >&6; }
30562 gcc_cv_ld64_demangle
=1
30563 if $gcc_cv_ld -demangle < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30564 gcc_cv_ld64_demangle
=0
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
30567 $as_echo "$gcc_cv_ld64_demangle" >&6; }
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30570 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30571 gcc_cv_ld64_export_dynamic
=1
30572 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30573 gcc_cv_ld64_export_dynamic
=0
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30576 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30579 $as_echo_n "checking linker for -platform_version support... " >&6; }
30580 gcc_cv_ld64_platform_version
=1
30581 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30582 gcc_cv_ld64_platform_version
=0
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30585 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30588 if test x
"${gcc_cv_ld64_version}" != x
; then
30590 cat >>confdefs.h
<<_ACEOF
30591 #define LD64_VERSION "${gcc_cv_ld64_version}"
30597 cat >>confdefs.h
<<_ACEOF
30598 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
30603 cat >>confdefs.h
<<_ACEOF
30604 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30609 cat >>confdefs.h
<<_ACEOF
30610 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30615 if test x
"$dsymutil_flag" = x
"yes"; then
30617 # If the user specified a dsymutil path, then we will already have the
30618 # version string, otherwise, pick it up.
30619 if test x
"$gcc_cv_dsymutil" = x
; then
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30621 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30622 dsymutil_vers
="tool unspecified"
30623 elif test x
"$dsymutil_vers" = x
; then
30624 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30627 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30629 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30630 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30631 dsymutil_kind
=DWARFUTILS
30632 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30633 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30634 dsymutil_kind
=CLANG
30635 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30636 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30638 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30640 dsymutil_kind
=UNKNOWN
30641 dsymutil_vers
="0.0"
30643 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30644 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30645 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30646 if test x
"${dsymutil_minor}" = x
; then
30649 if test x
"${dsymutil_tiny}" = x
; then
30653 cat >>confdefs.h
<<_ACEOF
30654 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30658 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30662 win32 | pe | cygwin* | mingw32*)
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30664 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30665 gcc_cv_ld_broken_pe_dwarf5=yes
30666 if test $in_tree_ld = yes ; then
30667 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30668 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30669 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30670 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30671 gcc_cv_ld_broken_pe_dwarf5=no
30674 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30675 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30676 gcc_cv_ld_broken_pe_dwarf5=no
30679 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30681 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30685 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30688 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30689 gcc_cv_ld_disable_dynamicbase
=no
30690 if test $in_tree_ld = yes; then
30691 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 \
30692 gcc_cv_ld_disable_dynamicbase
=yes
30695 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30696 gcc_cv_ld_disable_dynamicbase
=yes
30699 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30701 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30705 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30714 $as_echo_n "checking linker --as-needed support... " >&6; }
30715 if ${gcc_cv_ld_as_needed+:} false
; then :
30716 $as_echo_n "(cached) " >&6
30718 gcc_cv_ld_as_needed
=no
30719 gcc_cv_ld_as_needed_option
='--as-needed'
30720 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30721 if test $in_tree_ld = yes ; then
30722 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 \
30723 && test $in_tree_ld_is_elf = yes; then
30724 gcc_cv_ld_as_needed
=yes
30725 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30726 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30727 gcc_cv_ld_no_as_needed_option
='--pop-state'
30730 elif test x
$gcc_cv_ld != x
; then
30731 # Check if linker supports --as-needed and --no-as-needed options
30732 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30733 gcc_cv_ld_as_needed
=yes
30734 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30735 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30736 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30737 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30738 # Use these options only when both ld.bfd and ld.gold support
30739 # --push-state/--pop-state, which unfortunately wasn't added
30740 # at the same time.
30741 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30742 gcc_cv_ld_no_as_needed_option
='--pop-state'
30745 case "$target:$gnu_ld" in
30747 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30749 gcc_cv_ld_as_needed
=yes
30750 gcc_cv_ld_as_needed_option
="-z ignore"
30751 gcc_cv_ld_no_as_needed_option
="-z record"
30755 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30756 # dl_iterate_phdr, i.e. since Solaris 11.
30758 *-*-solaris2.1
[1-9]*)
30760 i?
86-*-* | x86_64-
*-*)
30761 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30762 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30763 gcc_cv_ld_as_needed
=no
30769 gcc_cv_ld_as_needed
=no
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30775 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30776 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30778 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30781 cat >>confdefs.h
<<_ACEOF
30782 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30786 cat >>confdefs.h
<<_ACEOF
30787 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30793 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30794 saved_LDFLAGS
="$LDFLAGS"
30795 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30796 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30798 /* end confdefs.h. */
30799 int main(void) {return 0;}
30801 if ac_fn_cxx_try_link
"$LINENO"; then :
30802 gcc_cv_ld_clearcap
=yes; break
30804 gcc_cv_ld_clearcap
=no
30806 rm -f core conftest.err conftest.
$ac_objext \
30807 conftest
$ac_exeext conftest.
$ac_ext
30809 LDFLAGS
="$saved_LDFLAGS"
30810 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30812 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30814 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30818 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30824 emul_name
="-melf32lppc"
30827 emul_name
="-melf32ppc"
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30831 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30832 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30833 $as_echo_n "(cached) " >&6
30835 gcc_cv_ld_ppc_attr
=no
30836 if test x
"$ld_is_gold" = xyes
; then
30837 gcc_cv_ld_ppc_attr
=yes
30838 elif test $in_tree_ld = yes ; then
30839 if test "$gcc_cv_gld_major_version" -eq 2 \
30840 -a "$gcc_cv_gld_minor_version" -ge 28 \
30841 -o "$gcc_cv_gld_major_version" -gt 2; then
30842 gcc_cv_ld_ppc_attr
=yes
30844 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30845 # check that merging the long double .gnu_attribute doesn't warn
30846 cat > conftest1.s
<<EOF
30849 cat > conftest2.s
<<EOF
30852 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30853 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30854 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30855 && test ! -s conftest.err
; then
30856 gcc_cv_ld_ppc_attr
=yes
30858 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30863 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30864 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30866 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30872 case "$target:$tm_file" in
30873 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30876 emul_name
="-melf64lppc"
30879 emul_name
="-melf64ppc"
30882 emul_name
="-melf64lppc_fbsd"
30885 emul_name
="-melf64ppc_fbsd"
30888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30889 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30890 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
30891 $as_echo_n "(cached) " >&6
30893 gcc_cv_ld_no_dot_syms
=no
30894 if test x
"$ld_is_gold" = xyes
; then
30895 gcc_cv_ld_no_dot_syms
=yes
30896 elif test $in_tree_ld = yes ; then
30897 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
30898 gcc_cv_ld_no_dot_syms
=yes
30900 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30901 cat > conftest1.s
<<EOF
30905 cat > conftest2.s
<<EOF
30906 .section ".opd","aw"
30909 .type foo,@function
30911 .quad .LEfoo,.TOC.@tocbase,0
30917 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30918 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30919 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
30920 gcc_cv_ld_no_dot_syms
=yes
30922 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30927 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30928 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
30930 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30935 $as_echo_n "checking linker large toc support... " >&6; }
30936 if ${gcc_cv_ld_large_toc+:} false
; then :
30937 $as_echo_n "(cached) " >&6
30939 gcc_cv_ld_large_toc
=no
30940 if test x
"$ld_is_gold" = xyes
; then
30941 gcc_cv_ld_large_toc
=yes
30942 elif test $in_tree_ld = yes ; then
30943 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
30944 gcc_cv_ld_large_toc
=yes
30946 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30947 cat > conftest.s
<<EOF
30948 .section ".tbss","awT",@nobits
30954 addis 9,13,ie0@got@tprel@ha
30955 ld 9,ie0@got@tprel@l(9)
30957 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30958 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /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
30973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30974 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30975 if ${gcc_cv_ld_toc_align+:} false
; then :
30976 $as_echo_n "(cached) " >&6
30978 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
30979 cat > conftest.s
<<EOF
30984 .section .data.rel.ro,"aw",@progbits
30989 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30990 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
30991 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)) }'`
30993 rm -f conftest conftest.o conftest.s
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30998 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30999 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
31001 cat >>confdefs.h
<<_ACEOF
31002 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
31012 $as_echo_n "checking linker large toc support... " >&6; }
31013 if ${gcc_cv_ld_large_toc+:} false
; then :
31014 $as_echo_n "(cached) " >&6
31016 gcc_cv_ld_large_toc
=no
31017 if test x
$gcc_cv_as != x
; then
31018 cat > conftest.s
<<EOF
31028 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
31029 gcc_cv_ld_large_toc
=yes
31031 rm -f conftest conftest.o conftest.s
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
31036 $as_echo "$gcc_cv_ld_large_toc" >&6; }
31037 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
31039 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
31046 $as_echo_n "checking linker --build-id support... " >&6; }
31047 if ${gcc_cv_ld_buildid+:} false
; then :
31048 $as_echo_n "(cached) " >&6
31050 gcc_cv_ld_buildid
=no
31051 if test $in_tree_ld = yes ; then
31052 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31053 "$gcc_cv_gld_minor_version" -ge 18 -o \
31054 "$gcc_cv_gld_major_version" -gt 2 \
31055 && test $in_tree_ld_is_elf = yes; then
31056 gcc_cv_ld_buildid
=yes
31058 elif test x
$gcc_cv_ld != x
; then
31059 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
31060 gcc_cv_ld_buildid
=yes
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
31065 $as_echo "$gcc_cv_ld_buildid" >&6; }
31066 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31068 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
31072 # Check whether --enable-linker-build-id was given.
31073 if test "${enable_linker_build_id+set}" = set; then :
31074 enableval
=$enable_linker_build_id;
31076 enable_linker_build_id
=no
31080 if test x
"$enable_linker_build_id" = xyes
; then
31081 if test x
"$gcc_cv_ld_buildid" = xyes
; then
31083 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
31086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
31087 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
31091 # In binutils 2.21, GNU ld gained support for new emulations fully
31092 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
31094 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
31095 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
31096 $as_echo_n "(cached) " >&6
31098 gcc_cv_ld_sol2_emulation
=no
31099 if test $in_tree_ld = yes ; then
31100 if test "$gcc_cv_gld_major_version" -eq 2 -a \
31101 "$gcc_cv_gld_minor_version" -ge 21 -o \
31102 "$gcc_cv_gld_major_version" -gt 2 \
31103 && test $in_tree_ld_is_elf = yes; then
31104 gcc_cv_ld_sol2_emulation
=yes
31106 elif test x
$gcc_cv_ld != x
; then
31107 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
31108 grep _sol2
> /dev
/null
; then
31109 gcc_cv_ld_sol2_emulation
=yes
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
31114 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
31115 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
31117 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
31121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
31122 $as_echo_n "checking linker --sysroot support... " >&6; }
31123 if ${gcc_cv_ld_sysroot+:} false
; then :
31124 $as_echo_n "(cached) " >&6
31126 gcc_cv_ld_sysroot
=no
31127 if test $in_tree_ld = yes ; then
31128 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
31129 gcc_cv_ld_sysroot
=yes
31131 elif test x
$gcc_cv_ld != x
; then
31132 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
31133 gcc_cv_ld_sysroot
=yes
31137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
31138 $as_echo "$gcc_cv_ld_sysroot" >&6; }
31139 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
31141 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
31147 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
31149 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
31150 if ${gcc_cv_solaris_crts+:} false
; then :
31151 $as_echo_n "(cached) " >&6
31153 gcc_cv_solaris_crts
=no
31154 if test x
$host != x
$target; then
31155 if test "x$with_sysroot" = xyes
; then
31156 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
31158 target_sysroot
="${with_sysroot}"
31161 target_libdir
="$target_sysroot/usr/lib"
31162 # At the time they were added, gcrt1.o became a symlink for backwards
31163 # compatibility on x86, while crt1.o was added on sparc, so check for that.
31165 i?
86-*-solaris2* | x86_64-
*-solaris2*)
31166 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
31168 sparc
*-*-solaris2*)
31169 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
31174 $as_echo "$gcc_cv_solaris_crts" >&6; }
31177 if test x
$gcc_cv_solaris_crts = xyes
; then
31179 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
31183 # Check whether --enable-libssp was given.
31184 if test "${enable_libssp+set}" = set; then :
31185 enableval
=$enable_libssp; case "${enableval}" in
31189 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
31195 # Test for stack protector support in target C library.
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31197 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31198 if ${gcc_cv_libc_provides_ssp+:} false
; then :
31199 $as_echo_n "(cached) " >&6
31201 gcc_cv_libc_provides_ssp
=no
31202 if test "x$enable_libssp" = "xno"; then
31203 gcc_cv_libc_provides_ssp
=yes
31204 elif test "x$enable_libssp" = "xyes"; then
31205 gcc_cv_libc_provides_ssp
=no
31209 # All versions of musl provide stack protector
31210 gcc_cv_libc_provides_ssp
=yes;;
31211 *-*-linux* |
*-*-kfreebsd*-gnu)
31212 # glibc 2.4 and later provides __stack_chk_fail and
31213 # either __stack_chk_guard, or TLS access to stack guard canary.
31215 if test $glibc_version_major -gt 2 \
31216 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31217 gcc_cv_libc_provides_ssp
=yes
31220 if test -f $target_header_dir/features.h \
31221 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31222 $target_header_dir/features.h
> /dev
/null
; then
31223 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31224 $target_header_dir/features.h
> /dev
/null
&& \
31225 test -f $target_header_dir/bits
/uClibc_config.h
&& \
31226 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31227 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
31228 gcc_cv_libc_provides_ssp
=yes
31230 # all versions of Bionic support stack protector
31231 elif test -f $target_header_dir/sys
/cdefs.h \
31232 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31233 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
31234 gcc_cv_libc_provides_ssp
=yes
31239 # Avoid complicated tests (see
31240 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31241 # simply assert that glibc does provide this, which is true for all
31242 # realistically usable GNU/Hurd configurations.
31243 # All supported versions of musl provide it as well
31244 gcc_cv_libc_provides_ssp
=yes;;
31245 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31246 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31247 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31248 gcc_cv_libc_provides_ssp
=yes
31250 echo "no __stack_chk_fail on this target"
31254 *) gcc_cv_libc_provides_ssp
=no
;;
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31259 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31261 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31263 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31267 # Check whether --enable-default-ssp was given.
31268 # Check whether --enable-default-ssp was given.
31269 if test "${enable_default_ssp+set}" = set; then :
31270 enableval
=$enable_default_ssp;
31271 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31273 ia64
*-*-*) enable_default_ssp
=no
;;
31274 *) enable_default_ssp
=$enableval ;;
31277 enable_default_ssp
=no
31280 enable_default_ssp
=no
31283 if test x
$enable_default_ssp = xyes
; then
31285 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31290 # Test for <sys/sdt.h> on the target.
31292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31293 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31294 if ${gcc_cv_sys_sdt_h+:} false
; then :
31295 $as_echo_n "(cached) " >&6
31298 gcc_cv_sys_sdt_h
=no
31299 if test -f $target_header_dir/sys
/sdt.h
; then
31300 gcc_cv_sys_sdt_h
=yes
31304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31305 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31306 if test x
$gcc_cv_sys_sdt_h = xyes
; then :
31309 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31314 # Check if TFmode long double should be used by default or not.
31315 # Some glibc targets used DFmode long double, but with glibc 2.4
31316 # and later they can use TFmode.
31318 powerpc
*-*-linux* | \
31319 sparc
*-*-linux* | \
31323 # Check whether --with-long-double-128 was given.
31324 if test "${with_long_double_128+set}" = set; then :
31325 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31329 s390
*-*-linux-musl*)
31330 gcc_cv_target_ldbl128
=yes
31332 powerpc
*-*-linux-musl*)
31333 gcc_cv_target_ldbl128
=no
31337 if test $glibc_version_major -gt 2 \
31338 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31339 gcc_cv_target_ldbl128
=yes
31342 gcc_cv_target_ldbl128
=no
31343 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31344 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31345 && gcc_cv_target_ldbl128
=yes
31356 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31358 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31362 # Check if TFmode long double target should use the IBM extended double or IEEE
31363 # 128-bit floating point formats if long doubles are 128-bits long. The long
31364 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31365 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31368 # Check whether --with-long-double-format was given.
31369 if test "${with_long_double_format+set}" = set; then :
31370 withval
=$with_long_double_format;
31371 case "$target:$with_long_double_format" in
31372 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31375 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31376 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31377 case "$with_cpu" in
31378 power7 | power8 | power9 | power1
*)
31382 as_fn_error $?
"Configuration option --with-long-double-format is only \
31383 supported if the default cpu is power7 or newer" "$LINENO" 5
31384 with_long_double_format
=""
31388 powerpc64
*-*-linux*:*)
31389 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31390 with_long_double_format
=""
31393 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31394 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31395 with_long_double_format
=""
31401 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31402 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31403 gcc_cv_libc_provides_hwcap_in_tcb
=no
31407 if test $glibc_version_major -gt 2 \
31408 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31409 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31413 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31415 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31419 # Check if the target LIBC handles PT_GNU_STACK.
31420 gcc_cv_libc_gnustack
=unknown
31422 mips
*-*-linux-musl*)
31423 gcc_cv_libc_gnustack
=yes
31427 if test $glibc_version_major -gt 2 \
31428 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31429 gcc_cv_libc_gnustack
=yes
31433 if test x
$gcc_cv_libc_gnustack = xyes
; then
31435 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31440 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31441 gcc_cv_target_dl_iterate_phdr
=unknown
31444 # <link.h> needs both a dl_iterate_phdr declaration and support for
31445 # compilation with largefile support.
31446 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31447 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31448 gcc_cv_target_dl_iterate_phdr
=yes
31450 gcc_cv_target_dl_iterate_phdr
=no
31453 *-*-dragonfly* |
*-*-freebsd*)
31454 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31455 gcc_cv_target_dl_iterate_phdr
=yes
31457 gcc_cv_target_dl_iterate_phdr
=no
31461 gcc_cv_target_dl_iterate_phdr
=yes
31465 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31467 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31471 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31473 # We no longer support different GC mechanisms. Emit an error if
31474 # the user configures with --with-gc.
31476 # Check whether --with-gc was given.
31477 if test "${with_gc+set}" = set; then :
31478 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31482 # Libraries to use on the host. This will normally be set by the top
31483 # level Makefile. Here we simply capture the value for our Makefile.
31484 if test -z "${HOST_LIBS+set}"; then
31489 # Use the system's zlib library.
31491 # Use the system's zlib library.
31492 zlibdir
="-L\$(top_builddir)/../zlib"
31493 zlibinc
="-I\$(top_srcdir)/../zlib"
31495 # Check whether --with-system-zlib was given.
31496 if test "${with_system_zlib+set}" = set; then :
31497 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31510 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31511 # Check whether --enable-maintainer-mode was given.
31512 if test "${enable_maintainer_mode+set}" = set; then :
31513 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31520 $as_echo "$maintainer_mode" >&6; }
31522 if test "$maintainer_mode" = "yes"; then
31528 if test -z "$CTAGS"; then
31532 if test -z "$ETAGS"; then
31536 if test -z "$CSCOPE"; then
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31543 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31544 # Check whether --enable-link-mutex was given.
31545 if test "${enable_link_mutex+set}" = set; then :
31546 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31552 $as_echo "$do_link_mutex" >&6; }
31554 if test "$do_link_mutex" = "yes"; then
31556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&5
31557 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
31559 DO_LINK_MUTEX
=false
31564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31565 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31566 # Check whether --enable-link-serialization was given.
31567 if test "${enable_link_serialization+set}" = set; then :
31568 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31570 do_link_serialization
=no
31573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31574 $as_echo "$do_link_serialization" >&6; }
31576 case "$do_link_serialization" in
31578 DO_LINK_SERIALIZATION
=1;;
31579 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31580 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31582 DO_LINK_SERIALIZATION
=;;
31584 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31592 # Make empty files to contain the specs and options for each language.
31593 # Then add #include lines to for a compiler that has specs and/or options.
31599 # These (without "all_") are set in each config-lang.in.
31600 # `language' must be a single word so is spelled singularly.
31603 all_outputs
='Makefile'
31604 # List of language configure and makefile fragments.
31605 all_lang_configurefrags
=
31606 all_lang_makefrags
=
31607 # Additional files for gengtype
31608 all_gtfiles
="$target_gtfiles"
31610 # These are the languages that are set in --enable-languages,
31611 # and are available in the GCC tree.
31612 all_selected_languages
=
31614 # Add the language fragments.
31615 # Languages are added via two mechanisms. Some information must be
31616 # recorded in makefile variables, these are defined in config-lang.in.
31617 # We accumulate them and plug them into the main Makefile.
31618 # The other mechanism is a set of hooks for each of the main targets
31619 # like `clean', `install', etc.
31621 language_hooks
="Make-hooks"
31623 for lang
in ${srcdir}/*/config-lang.
in
31625 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31627 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31628 if test "x$lang_alias" = x
31630 echo "$lang doesn't set \$language." 1>&2
31633 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31634 subdirs
="$subdirs $subdir"
31636 # $gcc_subdir is where the gcc integration files are to be found
31637 # for a language, both for internal compiler purposes (compiler
31638 # sources implementing front-end to GCC tree converters), and for
31639 # build infrastructure purposes (Make-lang.in, etc.)
31641 # This will be <subdir> (relative to $srcdir) if a line like
31642 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31643 # is found in <langdir>/config-lang.in, and will remain <langdir>
31646 # Except for the language alias (fetched above), the regular
31647 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31648 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31649 # only this and the language alias.
31651 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31652 if [ "$gcc_subdir" = "" ]; then
31653 gcc_subdir
="$subdir"
31656 case ",$enable_languages," in
31658 all_selected_languages
="$all_selected_languages $lang_alias"
31659 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31660 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31671 .
${srcdir}/$gcc_subdir/config-lang.
in
31672 if test "x$language" = x
31674 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31679 case ",$enable_languages," in
31680 *,$lang_alias,*) ;;
31682 for i
in $subdir_requires; do
31683 test -f "${srcdir}/$i/config-lang.in" && continue
31691 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31692 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31693 # Put c/Make-lang.in fragment first to match serialization languages order.
31694 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31696 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31698 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31699 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31700 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31702 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31703 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31705 all_languages
="$all_languages $language"
31706 all_compilers
="$all_compilers $compilers"
31707 all_outputs
="$all_outputs $outputs"
31708 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31709 case ",$enable_languages," in
31712 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31722 for language
in $all_selected_languages
31724 check_languages
="$check_languages check-$language"
31727 selftest_languages
=
31728 for language
in $all_selected_languages
31730 selftest_languages
="$selftest_languages selftest-$language"
31733 # We link each language in with a set of hooks, reached indirectly via
31734 # lang.${target}. Only do so for selected languages.
31738 target_list
="all.cross start.encap rest.encap tags \
31739 install-common install-man install-info install-dvi install-pdf \
31740 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31741 mostlyclean clean distclean maintainer-clean install-plugin"
31743 for t
in $target_list
31746 for lang
in $all_selected_languages
31750 echo "lang.$t: $x" >> Make-hooks
31753 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31754 echo "SERIAL_LIST =" >> Make-hooks
31755 echo else >> Make-hooks
31759 serialization_languages
=c
31760 for lang
in $all_selected_languages
31762 test $lang = c
&& continue
31763 if test $lang = lto
; then
31764 serialization_languages
="$serialization_languages lto1 lto2"
31766 serialization_languages
="$serialization_languages $lang"
31769 for lang
in $serialization_languages
31771 test $lang = c
&& continue
31772 lang_cnt
=`expr $lang_cnt + 1`
31773 lang_list
=" $prev$lang_list"
31776 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31777 echo endif
>> Make-hooks
31778 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31779 echo "INDEX.c = 0" >> Make-hooks
31781 for lang
in $serialization_languages
31783 test $lang = c
&& continue
31784 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31785 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31786 lang_cnt
=`expr $lang_cnt - 1`
31787 lang_idx
=`expr $lang_idx + 1`
31791 # Option include files
31794 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31795 option_includes
="option-includes.mk"
31804 echo "dir ." > .gdbinit
31805 echo "dir ${srcdir}" >> .gdbinit
31806 if test x
$gdb_needs_out_file_path = xyes
31808 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31810 if test "x$subdirs" != x
; then
31813 echo "dir ${srcdir}/$s" >> .gdbinit
31816 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31817 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31819 # Put a breakpoint on __asan_report_error to help with debugging buffer
31822 *-fsanitize=address
*)
31823 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31827 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31831 # Find a directory in which to install a shared libgcc.
31833 # Check whether --enable-version-specific-runtime-libs was given.
31834 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31835 enableval
=$enable_version_specific_runtime_libs;
31839 # Substitute configuration variables
31910 if test x
${build} = x
${host} ; then
31911 if test x
${host} = x
${target} ; then
31912 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31914 echo "Links are now set up to build a cross-compiler" 1>&2
31915 echo " from ${host} to ${target}." 1>&2
31918 if test x
${host} = x
${target} ; then
31919 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31920 echo " for ${target}." 1>&2
31922 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31923 echo " from ${host} to ${target}." 1>&2
31932 if test "x${ISLLIBS}" != "x" ; then
31934 $as_echo "#define HAVE_isl 1" >>confdefs.h
31938 # Check for plugin support
31939 # Check whether --enable-plugin was given.
31940 if test "${enable_plugin+set}" = set; then :
31941 enableval
=$enable_plugin; enable_plugin
=$enableval
31943 enable_plugin
=yes; default_plugin
=yes
31952 # Since plugin support under MinGW is not as straightforward as on
31953 # other platforms (e.g., we have to link import library, etc), we
31954 # only enable it if explicitly requested.
31955 if test x
"$default_plugin" = x
"yes"; then
31957 elif test x
"$enable_plugin" = x
"yes"; then
31958 # Use make's target variable to derive import library name.
31959 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31964 if test x
$build = x
$host; then
31965 export_sym_check
="nm${exeext} -g"
31966 elif test x
$host = x
$target; then
31967 export_sym_check
="$gcc_cv_nm -g"
31973 if test x
$build = x
$host; then
31974 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
31975 elif test x
$host = x
$target; then
31976 export_sym_check
="$gcc_cv_objdump -T"
31978 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
31983 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
31985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31986 $as_echo_n "checking for exported symbols... " >&6; }
31987 if test "x$export_sym_check" != x
; then
31988 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31989 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31990 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31991 : # No need to use a flag
31992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31993 $as_echo "yes" >&6; }
31995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31996 $as_echo "yes" >&6; }
31997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31998 $as_echo_n "checking for -rdynamic... " >&6; }
31999 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
32000 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
32001 plugin_rdynamic
=yes
32002 pluginlibs
="-rdynamic"
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
32008 $as_echo "$plugin_rdynamic" >&6; }
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
32012 $as_echo "unable to check" >&6; }
32017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
32018 $as_echo_n "checking for library containing dlopen... " >&6; }
32019 if ${ac_cv_search_dlopen+:} false
; then :
32020 $as_echo_n "(cached) " >&6
32022 ac_func_search_save_LIBS
=$LIBS
32023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32024 /* end confdefs.h. */
32026 /* Override any GCC internal prototype to avoid an error.
32027 Use char because int might match the return type of a GCC
32028 builtin and then its argument prototype would still apply. */
32041 for ac_lib
in '' dl
; do
32042 if test -z "$ac_lib"; then
32043 ac_res
="none required"
32046 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
32048 if ac_fn_cxx_try_link
"$LINENO"; then :
32049 ac_cv_search_dlopen
=$ac_res
32051 rm -f core conftest.err conftest.
$ac_objext \
32053 if ${ac_cv_search_dlopen+:} false
; then :
32057 if ${ac_cv_search_dlopen+:} false
; then :
32060 ac_cv_search_dlopen
=no
32062 rm conftest.
$ac_ext
32063 LIBS
=$ac_func_search_save_LIBS
32065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
32066 $as_echo "$ac_cv_search_dlopen" >&6; }
32067 ac_res
=$ac_cv_search_dlopen
32068 if test "$ac_res" != no
; then :
32069 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
32073 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
32074 pluginlibs
="$pluginlibs -ldl"
32078 # Check that we can build shared objects with -fPIC -shared
32079 saved_LDFLAGS
="$LDFLAGS"
32080 saved_CFLAGS
="$CFLAGS"
32081 saved_CXXFLAGS
="$CXXFLAGS"
32084 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
32085 CFLAGS
="$CFLAGS -fPIC"
32086 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
32087 CXXFLAGS
="$CXXFLAGS -fPIC"
32088 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
32091 CFLAGS
="$CFLAGS -fPIC"
32092 CXXFLAGS
="$CXXFLAGS -fPIC"
32093 LDFLAGS
="$LDFLAGS -fPIC -shared"
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
32097 $as_echo_n "checking for -fPIC -shared... " >&6; }
32098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32099 /* end confdefs.h. */
32109 if ac_fn_cxx_try_link
"$LINENO"; then :
32110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32111 $as_echo "yes" >&6; }; have_pic_shared
=yes
32113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32114 $as_echo "no" >&6; }; have_pic_shared
=no
32116 rm -f core conftest.err conftest.
$ac_objext \
32117 conftest
$ac_exeext conftest.
$ac_ext
32118 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
32122 LDFLAGS
="$saved_LDFLAGS"
32123 CFLAGS
="$saved_CFLAGS"
32124 CXXFLAGS
="$saved_CXXFLAGS"
32126 # If plugin support had been requested but not available, fail.
32127 if test x
"$enable_plugin" = x
"no" ; then
32128 if test x
"$default_plugin" != x
"yes"; then
32130 Building GCC with plugin support requires a host that supports
32131 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
32138 if test x
"$enable_plugin" = x
"yes"; then
32140 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
32145 # Enable --enable-host-shared
32146 # Check whether --enable-host-shared was given.
32147 if test "${enable_host_shared+set}" = set; then :
32148 enableval
=$enable_host_shared;
32153 # Enable --enable-host-pie
32154 # Check whether --enable-host-pie was given.
32155 if test "${enable_host_pie+set}" = set; then :
32156 enableval
=$enable_host_pie;
32161 # Enable --enable-host-bind-now
32162 # Check whether --enable-host-bind-now was given.
32163 if test "${enable_host_bind_now+set}" = set; then :
32164 enableval
=$enable_host_bind_now;
32169 # Check whether --enable-libquadmath-support was given.
32170 if test "${enable_libquadmath_support+set}" = set; then :
32171 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
32173 ENABLE_LIBQUADMATH_SUPPORT
=yes
32176 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
32178 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
32183 # Specify what hash style to use by default.
32185 # Check whether --with-linker-hash-style was given.
32186 if test "${with_linker_hash_style+set}" = set; then :
32187 withval
=$with_linker_hash_style; case x
"$withval" in
32189 LINKER_HASH_STYLE
=sysv
32192 LINKER_HASH_STYLE
=gnu
32195 LINKER_HASH_STYLE
=both
32198 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
32202 LINKER_HASH_STYLE
=''
32205 if test x
"${LINKER_HASH_STYLE}" != x
; then
32207 cat >>confdefs.h
<<_ACEOF
32208 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
32213 # Specify what should be the default of -fdiagnostics-color option.
32215 # Check whether --with-diagnostics-color was given.
32216 if test "${with_diagnostics_color+set}" = set; then :
32217 withval
=$with_diagnostics_color; case x
"$withval" in
32219 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
32222 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32225 DIAGNOSTICS_COLOR_DEFAULT
=-1
32228 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
32231 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32235 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
32239 cat >>confdefs.h
<<_ACEOF
32240 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32244 # Specify what should be the default of -fdiagnostics-urls option.
32246 # Check whether --with-diagnostics-urls was given.
32247 if test "${with_diagnostics_urls+set}" = set; then :
32248 withval
=$with_diagnostics_urls; case x
"$withval" in
32250 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
32253 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32256 DIAGNOSTICS_URLS_DEFAULT
=-1
32259 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
32262 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32266 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32270 cat >>confdefs.h
<<_ACEOF
32271 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32275 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32276 # of jit/jit-playback.cc.
32277 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32278 echo "gcc_driver_version: ${gcc_driver_version}"
32279 cat > gcc-driver-name.h
<<EOF
32280 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32283 # Check whether --enable-default-pie was given.
32284 # Check whether --enable-default-pie was given.
32285 if test "${enable_default_pie+set}" = set; then :
32286 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32288 enable_default_pie
=no
32291 if test x
$enable_default_pie = xyes
; then
32293 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32298 # Check if -fno-PIE works.
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32300 $as_echo_n "checking for -fno-PIE option... " >&6; }
32301 if ${gcc_cv_c_no_fpie+:} false
; then :
32302 $as_echo_n "(cached) " >&6
32304 saved_CXXFLAGS
="$CXXFLAGS"
32305 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32307 /* end confdefs.h. */
32308 int main(void) {return 0;}
32310 if ac_fn_cxx_try_compile
"$LINENO"; then :
32311 gcc_cv_c_no_fpie
=yes
32313 gcc_cv_c_no_fpie
=no
32315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32316 CXXFLAGS
="$saved_CXXFLAGS"
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32319 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32321 # Check if -no-pie works.
32322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32323 $as_echo_n "checking for -no-pie option... " >&6; }
32324 if ${gcc_cv_no_pie+:} false
; then :
32325 $as_echo_n "(cached) " >&6
32327 saved_LDFLAGS
="$LDFLAGS"
32328 LDFLAGS
="$LDFLAGS -no-pie"
32329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32330 /* end confdefs.h. */
32331 int main(void) {return 0;}
32333 if ac_fn_cxx_try_link
"$LINENO"; then :
32338 rm -f core conftest.err conftest.
$ac_objext \
32339 conftest
$ac_exeext conftest.
$ac_ext
32340 LDFLAGS
="$saved_LDFLAGS"
32342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32343 $as_echo "$gcc_cv_no_pie" >&6; }
32345 if test x
$enable_host_shared = xyes
; then
32347 elif test x
$enable_host_pie = xyes
; then
32349 elif test x
$gcc_cv_c_no_fpie = xyes
; then
32357 if test x
$enable_host_pie = xyes
; then
32359 elif test x
$gcc_cv_no_pie = xyes
; then
32365 if test x
$enable_host_bind_now = xyes
; then
32366 LD_PICFLAG
="$LD_PICFLAG -Wl,-z,now"
32371 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32372 # Check whether --enable-cet was given.
32373 if test "${enable_cet+set}" = set; then :
32374 enableval
=$enable_cet;
32375 case "$enableval" in
32377 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32386 $as_echo_n "checking for CET support... " >&6; }
32389 i
[34567]86-*-linux* | x86_64-
*-linux*)
32391 cet_save_CFLAGS
="$CFLAGS"
32392 CFLAGS
="$CFLAGS -fcf-protection"
32393 case "$enable_cet" in
32395 # Check if target supports multi-byte NOPs
32396 # and if compiler and assembler support CET.
32397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32398 /* end confdefs.h. */
32404 #if !defined(__SSE2__)
32405 #error target does not support multi-byte NOPs
32414 if ac_fn_cxx_try_compile
"$LINENO"; then :
32419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32422 # Check if compiler and assembler support CET.
32423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32424 /* end confdefs.h. */
32434 if ac_fn_cxx_try_compile
"$LINENO"; then :
32439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32440 if test $support_cet = "no"; then
32441 if test x
$enable_bootstrap != xno \
32442 && test -z "${with_build_subdir}" \
32443 && (test ! -f ..
/stage_current \
32444 ||
test `cat ../stage_current` != "stage1"); then
32445 # Require CET support only for the final GCC build.
32446 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32448 # Don't enable CET without CET support for non-bootstrap
32449 # build, in stage1 nor for build support.
32455 CFLAGS
="$cet_save_CFLAGS"
32463 cet_save_CFLAGS
="$CFLAGS"
32464 CFLAGS
="$CFLAGS -fcf-protection=none"
32465 cet_save_LDFLAGS
="$LDFLAGS"
32466 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32467 if test x
$may_have_cet = xyes
; then
32468 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32470 /* end confdefs.h. */
32480 if ac_fn_cxx_try_link
"$LINENO"; then :
32485 rm -f core conftest.err conftest.
$ac_objext \
32486 conftest
$ac_exeext conftest.
$ac_ext
32489 if test x
$may_have_cet = xyes
; then
32490 if test x
$cross_compiling = xno
; then
32491 if test "$cross_compiling" = yes; then :
32492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32494 as_fn_error $?
"cannot run test program while cross compiling
32495 See \`config.log' for more details" "$LINENO" 5; }
32497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32498 /* end confdefs.h. */
32508 if ac_fn_cxx_try_run
"$LINENO"; then :
32509 have_multi_byte_nop
=yes
32511 have_multi_byte_nop
=no
32513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32518 if test x
$have_multi_byte_nop = xyes
; then
32519 if test "$cross_compiling" = yes; then :
32520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32522 as_fn_error $?
"cannot run test program while cross compiling
32523 See \`config.log' for more details" "$LINENO" 5; }
32525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32526 /* end confdefs.h. */
32534 __attribute__ ((noinline, noclone))
32535 xxx (void (*f) (void))
32541 __attribute__ ((noinline, noclone))
32555 if ac_fn_cxx_try_run
"$LINENO"; then :
32560 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32561 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32565 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32566 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32570 # Enable CET in cross compiler if possible so that it will run on both
32571 # CET and non-CET hosts.
32574 if test x
$enable_cet = xyes
; then
32575 CET_HOST_FLAGS
="-fcf-protection"
32576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32577 $as_echo "yes" >&6; }
32579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32580 $as_echo "no" >&6; }
32582 CFLAGS
="$cet_save_CFLAGS"
32583 LDFLAGS
="$cet_save_LDFLAGS"
32585 case x
$enable_languages in
32594 # Check linker supports '-z bndplt'
32595 ld_bndplt_support
=no
32596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32597 $as_echo_n "checking linker -z bndplt option... " >&6; }
32598 if test x
"$ld_is_gold" = xno
; then
32599 if test $in_tree_ld = yes ; then
32600 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
32601 ld_bndplt_support
=yes
32603 elif test x
$gcc_cv_ld != x
; then
32604 # Check if linker supports -a bndplt option
32605 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32606 ld_bndplt_support
=yes
32610 if test x
"$ld_bndplt_support" = xyes
; then
32612 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32616 $as_echo "$ld_bndplt_support" >&6; }
32618 # Check linker supports '--push-state'/'--pop-state'
32619 ld_pushpopstate_support
=no
32620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32621 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32622 if test x
"$ld_is_gold" = xno
; then
32623 if test $in_tree_ld = yes ; then
32624 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
32625 ld_pushpopstate_support
=yes
32627 elif test x
$gcc_cv_ld != x
; then
32628 # Check if linker supports --push-state/--pop-state options
32629 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32630 ld_pushpopstate_support
=yes
32634 if test x
"$ld_pushpopstate_support" = xyes
; then
32636 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32640 $as_echo "$ld_pushpopstate_support" >&6; }
32642 # On s390, float_t has historically been statically defined as double for no
32643 # good reason. To comply with the C standard in the light of this definition,
32644 # gcc has evaluated float expressions in double precision when in
32645 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32646 # a smooth transition towards the new model used by most architectures, where
32647 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32648 # float_t from that, this behavior can be configured with
32649 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32650 # the old model. When omitted, native builds and cross compiles that have target
32651 # libc headers will detect whether libc clamps float_t to double and in that
32652 # case maintain the old model. Otherwise, they will default to the new model.
32653 # Check whether --enable-s390-excess-float-precision was given.
32654 if test "${enable_s390_excess_float_precision+set}" = set; then :
32655 enableval
=$enable_s390_excess_float_precision;
32657 enable_s390_excess_float_precision
=auto
32663 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32664 # Can we autodetect the behavior of the target libc?
32665 if test "$target" = "$host" -a "$host" = "$build"; then
32666 enable_s390_excess_float_precision
=autodetect
32667 elif test "x$with_headers" != xno
; then
32668 # cross build. are target headers available?
32669 # carefully coerce the build-system compiler to use target headers
32670 saved_CXXFLAGS
="$CXXFLAGS"
32671 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32672 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32673 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32675 /* end confdefs.h. */
32680 if ac_fn_cxx_try_compile
"$LINENO"; then :
32681 enable_s390_excess_float_precision
=autodetect
32683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32684 CXXFLAGS
="$saved_CXXFLAGS"
32687 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32688 saved_CXXFLAGS
="$CXXFLAGS"
32689 if ! test "$target" = "$host" -a "$host" = "$build"; then
32690 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32691 unset CROSS_TEST_CXXFLAGS
32693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32694 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32695 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32696 $as_echo_n "(cached) " >&6
32699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32700 /* end confdefs.h. */
32702 #define __FLT_EVAL_METHOD__ 0
32704 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32707 if ac_fn_cxx_try_compile
"$LINENO"; then :
32708 gcc_cv_float_t_clamped_to_double
=yes
32710 gcc_cv_float_t_clamped_to_double
=no
32712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32715 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32716 CXXFLAGS
="$saved_CXXFLAGS"
32717 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32719 # no way to detect behavior of target libc, default to new model
32720 enable_s390_excess_float_precision
=no
32725 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32727 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32733 # Configure the subdirectories
32734 # AC_CONFIG_SUBDIRS($subdirs)
32736 # Create the Makefile
32737 # and configure language subdirectories
32738 ac_config_files
="$ac_config_files $all_outputs"
32741 ac_config_commands
="$ac_config_commands default"
32743 cat >confcache
<<\_ACEOF
32744 # This file is a shell script that caches the results of configure
32745 # tests run on this system so they can be shared between configure
32746 # scripts and configure runs, see configure's option --config-cache.
32747 # It is not useful on other systems. If it contains results you don't
32748 # want to keep, you may remove or edit it.
32750 # config.status only pays attention to the cache file if you give it
32751 # the --recheck option to rerun configure.
32753 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32754 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32755 # following values.
32759 # The following way of writing the cache mishandles newlines in values,
32760 # but we know of no workaround that is simple, portable, and efficient.
32761 # So, we kill variables containing newlines.
32762 # Ultrix sh set writes to stderr and can't be redirected directly,
32763 # and sets the high bit in the cache file unless we assign to the vars.
32765 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32766 eval ac_val
=\$
$ac_var
32770 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32774 _ | IFS | as_nl
) ;; #(
32775 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32776 *) { eval $ac_var=; unset $ac_var;} ;;
32782 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32783 *${as_nl}ac_space
=\
*)
32784 # `set' does not quote correctly, so add quotes: double-quote
32785 # substitution turns \\\\ into \\, and sed turns \\ into \.
32788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32791 # `set' quotes correctly as required by POSIX, so do not add quotes.
32792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32801 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32803 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32805 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32806 if test -w "$cache_file"; then
32807 if test "x$cache_file" != "x/dev/null"; then
32808 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32809 $as_echo "$as_me: updating cache $cache_file" >&6;}
32810 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32811 cat confcache
>"$cache_file"
32813 case $cache_file in #(
32815 mv -f confcache
"$cache_file"$$
&&
32816 mv -f "$cache_file"$$
"$cache_file" ;; #(
32818 mv -f confcache
"$cache_file" ;;
32823 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32824 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32829 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32830 # Let make expand exec_prefix.
32831 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32833 DEFS
=-DHAVE_CONFIG_H
32838 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32839 # 1. Remove the extension, and $U if already installed.
32840 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32841 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32842 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32843 # will be set to the directory where LIBOBJS objects are built.
32844 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32845 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32847 LIBOBJS
=$ac_libobjs
32849 LTLIBOBJS
=$ac_ltlibobjs
32854 : "${CONFIG_STATUS=./config.status}"
32856 ac_clean_files_save
=$ac_clean_files
32857 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32859 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32861 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32863 # Generated by $as_me.
32864 # Run this file to recreate the current configuration.
32865 # Compiler output produced by configure, useful for debugging
32866 # configure, is in config.log if it exists.
32869 ac_cs_recheck=false
32872 SHELL=\${CONFIG_SHELL-$SHELL}
32875 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32876 ## -------------------- ##
32877 ## M4sh Initialization. ##
32878 ## -------------------- ##
32880 # Be more Bourne compatible
32881 DUALCASE
=1; export DUALCASE
# for MKS sh
32882 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32885 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32886 # is contrary to our usage. Disable this feature.
32887 alias -g '${1+"$@"}'='"$@"'
32888 setopt NO_GLOB_SUBST
32890 case `(set -o) 2>/dev/null` in #(
32902 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32903 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32906 # Prefer a ksh shell builtin over an external printf program on Solaris,
32907 # but without wasting forks for bash or zsh.
32908 if test -z "$BASH_VERSION$ZSH_VERSION" \
32909 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32910 as_echo='print
-r --'
32911 as_echo_n='print
-rn --'
32912 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32913 as_echo='printf %s
\n'
32914 as_echo_n='printf %s
'
32916 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32917 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32918 as_echo_n='/usr
/ucb
/echo -n'
32920 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32921 as_echo_n_body='eval
32925 expr "X$arg" : "X\\(.*\\)$as_nl";
32926 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32928 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32930 export as_echo_n_body
32931 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32933 export as_echo_body
32934 as_echo='sh
-c $as_echo_body as_echo
'
32937 # The user is always right.
32938 if test "${PATH_SEPARATOR+set}" != set; then
32940 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32941 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32948 # We need space, tab and new line, in precisely that order. Quoting is
32949 # there to prevent editors from complaining about space-tab.
32950 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32951 # splitting by setting IFS to empty value.)
32954 # Find who we are. Look in the path if we contain no directory separator.
32957 *[\\/]* ) as_myself=$0 ;;
32958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32959 for as_dir in $PATH
32962 test -z "$as_dir" && as_dir=.
32963 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32969 # We did not find ourselves, most probably we were run as `sh COMMAND'
32970 # in which case we are not to be found in the path.
32971 if test "x$as_myself" = x
; then
32974 if test ! -f "$as_myself"; then
32975 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32979 # Unset variables that we do not need and which cause bugs (e.g. in
32980 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32981 # suppresses any "Segmentation fault" message there. '((' could
32982 # trigger a bug in pdksh 5.2.14.
32983 for as_var
in BASH_ENV ENV MAIL MAILPATH
32984 do eval test x\
${$as_var+set} = xset \
32985 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32998 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
33001 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33002 # ----------------------------------------
33003 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33004 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33005 # script with STATUS, using 1 if that was 0.
33008 as_status
=$1; test $as_status -eq 0 && as_status
=1
33010 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
33011 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33013 $as_echo "$as_me: error: $2" >&2
33014 as_fn_exit
$as_status
33018 # as_fn_set_status STATUS
33019 # -----------------------
33020 # Set $? to STATUS, without forking.
33021 as_fn_set_status
()
33024 } # as_fn_set_status
33026 # as_fn_exit STATUS
33027 # -----------------
33028 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33032 as_fn_set_status
$1
33038 # Portably unset VAR.
33041 { eval $1=; unset $1;}
33043 as_unset
=as_fn_unset
33044 # as_fn_append VAR VALUE
33045 # ----------------------
33046 # Append the text in VALUE to the end of the definition contained in VAR. Take
33047 # advantage of any shell optimizations that allow amortized linear growth over
33048 # repeated appends, instead of the typical quadratic growth present in naive
33050 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
33051 eval 'as_fn_append ()
33062 # as_fn_arith ARG...
33063 # ------------------
33064 # Perform arithmetic evaluation on the ARGs, and store the result in the
33065 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33066 # must be portable across $(()) and expr.
33067 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
33068 eval 'as_fn_arith ()
33075 as_val
=`expr "$@" || test $? -eq 1`
33080 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33081 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33087 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33088 as_basename
=basename
33093 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33099 as_me
=`$as_basename -- "$0" ||
33100 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33101 X"$0" : 'X\(//\)$' \| \
33102 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33104 sed '/^.*\/\([^/][^/]*\)\/*$/{
33118 # Avoid depending upon Character Ranges.
33119 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33120 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33121 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33122 as_cr_digits
='0123456789'
33123 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33125 ECHO_C
= ECHO_N
= ECHO_T
=
33126 case `echo -n x` in #(((((
33128 case `echo 'xy\c'` in
33129 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33131 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33138 rm -f conf$$ conf$$.exe conf$$.
file
33139 if test -d conf$$.dir
; then
33140 rm -f conf$$.dir
/conf$$.
file
33143 mkdir conf$$.dir
2>/dev
/null
33145 if (echo >conf$$.
file) 2>/dev
/null
; then
33146 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33148 # ... but there are two gotchas:
33149 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33150 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33151 # In both cases, we have to default to `cp -pR'.
33152 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33154 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33162 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33163 rmdir conf$$.dir
2>/dev
/null
33168 # Create "$as_dir" as a directory, including parents if necessary.
33173 -*) as_dir
=.
/$as_dir;;
33175 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33179 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33180 *) as_qdir
=$as_dir;;
33182 as_dirs
="'$as_qdir' $as_dirs"
33183 as_dir
=`$as_dirname -- "$as_dir" ||
33184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33185 X"$as_dir" : 'X\(//\)[^/]' \| \
33186 X"$as_dir" : 'X\(//\)$' \| \
33187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33188 $as_echo X"$as_dir" |
33189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33193 /^X\(\/\/\)[^/].*/{
33206 test -d "$as_dir" && break
33208 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33209 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33213 if mkdir
-p .
2>/dev
/null
; then
33214 as_mkdir_p
='mkdir -p "$as_dir"'
33216 test -d .
/-p && rmdir .
/-p
33221 # as_fn_executable_p FILE
33222 # -----------------------
33223 # Test if FILE is an executable regular file.
33224 as_fn_executable_p
()
33226 test -f "$1" && test -x "$1"
33227 } # as_fn_executable_p
33228 as_test_x
='test -x'
33229 as_executable_p
=as_fn_executable_p
33231 # Sed expression to map a string onto a valid CPP name.
33232 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33234 # Sed expression to map a string onto a valid variable name.
33235 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33239 ## ----------------------------------- ##
33240 ## Main body of $CONFIG_STATUS script. ##
33241 ## ----------------------------------- ##
33243 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33246 # Save the log message, to keep $0 and so on meaningful, and to
33247 # report actual input values of CONFIG_FILES etc. instead of their
33248 # values after options handling.
33250 This file was extended by $as_me, which was
33251 generated by GNU Autoconf 2.69. Invocation command line was
33253 CONFIG_FILES = $CONFIG_FILES
33254 CONFIG_HEADERS = $CONFIG_HEADERS
33255 CONFIG_LINKS = $CONFIG_LINKS
33256 CONFIG_COMMANDS = $CONFIG_COMMANDS
33259 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33264 case $ac_config_files in *"
33265 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33268 case $ac_config_headers in *"
33269 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33274 # Files that config.status was made for.
33275 config_files="$ac_config_files"
33276 config_headers="$ac_config_headers"
33277 config_links="$ac_config_links"
33278 config_commands="$ac_config_commands"
33282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33284 \`$as_me' instantiates files and other configuration actions
33285 from templates according to the current configuration. Unless the files
33286 and actions are specified as TAGs, all are instantiated by default.
33288 Usage: $0 [OPTION]... [TAG]...
33290 -h, --help print this help, then exit
33291 -V, --version print version number and configuration settings, then exit
33292 --config print configuration, then exit
33293 -q, --quiet, --silent
33294 do not print progress messages
33295 -d, --debug don't remove temporary files
33296 --recheck update $as_me by reconfiguring in the same conditions
33297 --file=FILE[:TEMPLATE]
33298 instantiate the configuration file FILE
33299 --header=FILE[:TEMPLATE]
33300 instantiate the configuration header FILE
33302 Configuration files:
33305 Configuration headers:
33308 Configuration links:
33311 Configuration commands:
33314 Report bugs to the package provider."
33317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33318 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33321 configured by $0, generated by GNU Autoconf 2.69,
33322 with options \\"\$ac_cs_config\\"
33324 Copyright (C) 2012 Free Software Foundation, Inc.
33325 This config.status script is free software; the Free Software Foundation
33326 gives unlimited permission to copy, distribute and modify it."
33331 test -n "\$AWK" || AWK=awk
33334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33335 # The default lists apply if the user does not specify any file.
33341 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33342 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33346 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33358 # Handling of the options.
33359 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33361 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33362 $as_echo "$ac_cs_version"; exit ;;
33363 --config |
--confi |
--conf |
--con |
--co |
--c )
33364 $as_echo "$ac_cs_config"; exit ;;
33365 --debug |
--debu |
--deb |
--de |
--d |
-d )
33367 --file |
--fil |
--fi |
--f )
33370 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33371 '') as_fn_error $?
"missing file argument" ;;
33373 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33374 ac_need_defaults
=false
;;
33375 --header |
--heade |
--head |
--hea )
33378 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33380 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33381 ac_need_defaults
=false
;;
33383 # Conflict between --help and --header
33384 as_fn_error $?
"ambiguous option: \`$1'
33385 Try \`$0 --help' for more information.";;
33386 --help |
--hel |
-h )
33387 $as_echo "$ac_cs_usage"; exit ;;
33388 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33389 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33392 # This is an error.
33393 -*) as_fn_error $?
"unrecognized option: \`$1'
33394 Try \`$0 --help' for more information." ;;
33396 *) as_fn_append ac_config_targets
" $1"
33397 ac_need_defaults
=false
;;
33403 ac_configure_extra_args
=
33405 if $ac_cs_silent; then
33407 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33412 if \$ac_cs_recheck; then
33413 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33415 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33416 CONFIG_SHELL='$SHELL'
33417 export CONFIG_SHELL
33422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33427 ## Running $as_me. ##
33433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33437 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33438 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33445 # Handling of arguments.
33446 for ac_config_target
in $ac_config_targets
33448 case $ac_config_target in
33449 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33450 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33451 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33452 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33453 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33454 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33455 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33456 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33457 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33458 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33460 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33465 # If the user did not use the arguments to specify the items to instantiate,
33466 # then the envvar interface is used. Set only those that are not.
33467 # We use the long form for the default assignment because of an extremely
33468 # bizarre bug on SunOS 4.1.3.
33469 if $ac_need_defaults; then
33470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33472 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33473 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33476 # Have a temporary directory for convenience. Make it in the build tree
33477 # simply because there is no reason against having it here, and in addition,
33478 # creating and moving files from /tmp can sometimes cause problems.
33479 # Hook for its removal unless debugging.
33480 # Note that there is a small window in which the directory will not be cleaned:
33481 # after its creation but before its name has been assigned to `$tmp'.
33485 trap 'exit_status=$?
33486 : "${ac_tmp:=$tmp}"
33487 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33489 trap 'as_fn_exit 1' 1 2 13 15
33491 # Create a (secure) tmp directory for tmp files.
33494 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33498 tmp
=.
/conf$$
-$RANDOM
33499 (umask 077 && mkdir
"$tmp")
33500 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33503 # Set up the scripts for CONFIG_FILES section.
33504 # No need to generate them if there are no CONFIG_FILES.
33505 # This happens for instance with `./config.status config.h'.
33506 if test -n "$CONFIG_FILES"; then
33508 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33509 ac_cs_awk_getline
=:
33510 ac_cs_awk_pipe_init
=
33511 ac_cs_awk_read_file
='
33512 while ((getline aline < (F[key])) > 0)
33515 ac_cs_awk_pipe_fini
=
33517 ac_cs_awk_getline
=false
33518 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33519 ac_cs_awk_read_file
='
33521 print "cat " F[key] " &&"
33522 '$ac_cs_awk_pipe_init
33523 # The final `:' finishes the AND list.
33524 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33526 ac_cr
=`echo X | tr X '\015'`
33527 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33528 # But we know of no other shell where ac_cr would be empty at this
33529 # point, so we can use a bashism as a fallback.
33530 if test "x$ac_cr" = x
; then
33531 eval ac_cr
=\$
\'\\r
\'
33533 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33534 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33537 ac_cs_awk_cr
=$ac_cr
33540 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33543 # Create commands to substitute file output variables.
33545 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33546 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33547 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33550 } >conf$
$files.sh
&&
33551 . .
/conf$
$files.sh ||
33552 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33553 rm -f conf$
$files.sh
33556 echo "cat >conf$$subs.awk <<_ACEOF" &&
33557 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33559 } >conf$$subs.sh ||
33560 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33561 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33563 for ac_last_try in false false false false false :; do
33564 . ./conf$$subs.sh ||
33565 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33567 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33568 if test $ac_delim_n = $ac_delim_num; then
33570 elif $ac_last_try; then
33571 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33573 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33576 rm -f conf$$subs.sh
33578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33579 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33583 s/^/S["/; s
/!.
*/"]=/
33593 s/\(.\{148\}\)..*/\1/
33595 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33600 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33607 s/\(.\{148\}\)..*/\1/
33609 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33613 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33618 ' <conf$$subs.awk | sed '
33623 ' >>$CONFIG_STATUS || ac_write_fail=1
33624 rm -f conf$$subs.awk
33625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33627 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33628 for (key in S) S_is_set[key] = 1
33630 \$ac_cs_awk_pipe_init
33634 nfields = split(line, field, "@
")
33636 len = length(field[1])
33637 for (i = 2; i < nfields; i++) {
33639 keylen = length(key)
33640 if (S_is_set[key]) {
33642 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33643 len += length(value) + length(field[++i])
33648 if (nfields == 3 && !substed) {
33650 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33651 \$ac_cs_awk_read_file
33657 \$ac_cs_awk_pipe_fini
33660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33661 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33662 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33665 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33666 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33669 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33670 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33671 # trailing colons and then remove the whole line if VPATH becomes empty
33672 # (actually we leave an empty line to preserve line numbers).
33673 if test "x
$srcdir" = x.; then
33674 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33693 fi # test -n "$CONFIG_FILES"
33695 # Set up the scripts for CONFIG_HEADERS section.
33696 # No need to generate them if there are no CONFIG_HEADERS.
33697 # This happens for instance with `./config.status Makefile'.
33698 if test -n "$CONFIG_HEADERS"; then
33699 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33703 # Transform confdefs.h into an awk script `defines.awk', embedded as
33704 # here-document in config.status, that substitutes the proper values into
33705 # config.h.in to produce config.h.
33707 # Create a delimiter string that does not exist in confdefs.h, to ease
33708 # handling of long lines.
33710 for ac_last_try in false false :; do
33711 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33712 if test -z "$ac_tt"; then
33714 elif $ac_last_try; then
33715 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33717 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33721 # For the awk script, D is an array of macro values keyed by name,
33722 # likewise P contains macro parameters if any. Preserve backslash
33723 # newline sequences.
33725 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33727 s/.\{148\}/&'"$ac_delim"'/g
33730 s/^[ ]*#[ ]*define[ ][ ]*/ /
33737 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33739 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33743 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33744 D["\
1"]=" \
3\\\\\\n
"\\/p
33746 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33751 s/.\{148\}/&'"$ac_delim"'/g
33756 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33759 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33761 ' <confdefs.h | sed '
33762 s/'"$ac_delim"'/"\\\
33763 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33766 for (key in D) D_is_set[key] = 1
33769 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33771 split(line, arg, " ")
33772 if (arg[1] == "#") {
33776 defundef
= substr
(arg
[1], 2)
33779 split(mac1
, mac2
, "(") #)
33781 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33782 if (D_is_set
[macro
]) {
33783 # Preserve the white space surrounding the "#".
33784 print prefix
"define", macro P
[macro
] D
[macro
]
33787 # Replace #undef with comments. This is necessary, for example,
33788 # in the case of _POSIX_SOURCE, which is predefined and required
33789 # on some systems where configure will not decide to define it.
33790 if (defundef
== "undef") {
33791 print
"/*", prefix defundef
, macro
, "*/"
33799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33800 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33801 fi # test -n "$CONFIG_HEADERS"
33804 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33809 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33811 case $ac_mode$ac_tag in
33813 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33814 :[FH
]-) ac_tag
=-:-;;
33815 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33832 -) ac_f
="$ac_tmp/stdin";;
33833 *) # Look for the file first in the build tree, then in the source tree
33834 # (if the path is not absolute). The absolute path cannot be DOS-style,
33835 # because $ac_f cannot contain `:'.
33839 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33841 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33843 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33844 as_fn_append ac_file_inputs
" '$ac_f'"
33847 # Let's still pretend it is `configure' which instantiates (i.e., don't
33848 # use $as_me), people would be surprised to read:
33849 # /* config.h. Generated by config.status. */
33850 configure_input
='Generated from '`
33851 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33853 if test x
"$ac_file" != x-
; then
33854 configure_input
="$ac_file. $configure_input"
33855 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33856 $as_echo "$as_me: creating $ac_file" >&6;}
33858 # Neutralize special characters interpreted by sed in replacement strings.
33859 case $configure_input in #(
33860 *\
&* |
*\|
* |
*\\* )
33861 ac_sed_conf_input
=`$as_echo "$configure_input" |
33862 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33863 *) ac_sed_conf_input
=$configure_input;;
33867 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33868 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33873 ac_dir
=`$as_dirname -- "$ac_file" ||
33874 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33875 X"$ac_file" : 'X\(//\)[^/]' \| \
33876 X"$ac_file" : 'X\(//\)$' \| \
33877 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33878 $as_echo X"$ac_file" |
33879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33883 /^X\(\/\/\)[^/].*/{
33896 as_dir
="$ac_dir"; as_fn_mkdir_p
33900 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33902 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33903 # A ".." for each directory in $ac_dir_suffix.
33904 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33905 case $ac_top_builddir_sub in
33906 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33907 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33910 ac_abs_top_builddir
=$ac_pwd
33911 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33912 # for backward compatibility:
33913 ac_top_builddir
=$ac_top_build_prefix
33916 .
) # We are building in place.
33918 ac_top_srcdir
=$ac_top_builddir_sub
33919 ac_abs_top_srcdir
=$ac_pwd ;;
33920 [\\/]* | ?
:[\\/]* ) # Absolute name.
33921 ac_srcdir
=$srcdir$ac_dir_suffix;
33922 ac_top_srcdir
=$srcdir
33923 ac_abs_top_srcdir
=$srcdir ;;
33924 *) # Relative name.
33925 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33926 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33927 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33929 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33941 # If the template does not know about datarootdir, expand it.
33942 # FIXME: This hack should be removed a few years after 2.60.
33943 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33954 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33955 *datarootdir
*) ac_datarootdir_seen
=yes;;
33956 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33958 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33961 ac_datarootdir_hack='
33962 s&@datadir@&$datadir&g
33963 s&@docdir@&$docdir&g
33964 s&@infodir@&$infodir&g
33965 s&@localedir@&$localedir&g
33966 s&@mandir@&$mandir&g
33967 s&\\\${datarootdir}&$datarootdir&g' ;;
33971 # Neutralize VPATH when `$srcdir' = `.'.
33972 # Shell code in configure.ac might set extrasub.
33973 # FIXME: do we really want to maintain this feature?
33974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33975 ac_sed_extra="$ac_vpsub
33978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33980 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33981 s|@configure_input@|
$ac_sed_conf_input|
;t t
33982 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33983 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33984 s
&@srcdir@
&$ac_srcdir&;t t
33985 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33986 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33987 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33988 s
&@builddir@
&$ac_builddir&;t t
33989 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33990 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33991 $ac_datarootdir_hack
33993 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33994 if $ac_cs_awk_getline; then
33995 $AWK -f "$ac_tmp/subs.
awk"
33997 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33999 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
34001 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34002 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
34003 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34004 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
34005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34006 which seems to be undefined. Please make sure it is defined" >&5
34007 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34008 which seems to be undefined. Please make sure it is defined" >&2;}
34010 rm -f "$ac_tmp/stdin"
34012 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34013 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34021 if test x"$ac_file" != x-; then
34023 $as_echo "/* $configure_input */" \
34024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34025 } >"$ac_tmp/config.h" \
34026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34027 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34028 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34029 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34032 mv "$ac_tmp/config.h" "$ac_file" \
34033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34036 $as_echo "/* $configure_input */" \
34037 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34038 || as_fn_error $? "could not create -" "$LINENO" 5
34046 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
34049 # Prefer the file from the source tree if names are identical.
34050 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
34051 ac_source=$srcdir/$ac_source
34054 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
34055 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
34057 if test ! -r "$ac_source"; then
34058 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
34062 # Try a relative symlink, then a hard link, then a copy.
34064 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
34065 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
34067 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
34068 ln "$ac_source" "$ac_file" 2>/dev/null ||
34069 cp -p "$ac_source" "$ac_file" ||
34070 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
34073 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34074 $as_echo "$as_me: executing $ac_file commands" >&6;}
34079 case $ac_file$ac_mode in
34080 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
34082 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
34083 for lang in $subdirs c-family common analyzer text-art rtl-ssa
34085 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
34087 "as":F) chmod +x as ;;
34088 "collect-ld":F) chmod +x collect-ld ;;
34089 "nm":F) chmod +x nm ;;
34090 "dsymutil":F) chmod +x dsymutil ;;
34092 case ${CONFIG_HEADERS} in
34093 *auto-host.h:config.in*)
34096 # Make sure all the subdirs exist.
34097 for d in $subdirs doc build common c-family
34099 test -d $d || mkdir $d
34109 ac_clean_files=$ac_clean_files_save
34111 test $ac_write_fail = 0 ||
34112 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
34115 # configure is writing to config.log, and then calls config.status.
34116 # config.status does its own redirection, appending to config.log.
34117 # Unfortunately, on DOS this fails, as config.log is still kept open
34118 # by configure, so config.status won't be able to
write to it
; its
34119 # output is simply discarded. So we exec the FD to /dev/null,
34120 # effectively closing config.log, so it can be properly (re)opened and
34121 # appended to by config.status. When coming back to configure, we
34122 # need to make the FD available again.
34123 if test "$no_create" != yes; then
34125 ac_config_status_args
=
34126 test "$silent" = yes &&
34127 ac_config_status_args
="$ac_config_status_args --quiet"
34129 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34131 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34132 # would make configure fail if this is the last instruction.
34133 $ac_cs_success || as_fn_exit
1
34135 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34137 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}