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
662 common_out_object_file
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
690 TM_MULTILIB_EXCEPTIONS_CONFIG
700 build_xm_include_list
702 build_install_headers_dir
704 all_selected_languages
707 all_lang_configurefrags
715 DO_LINK_SERIALIZATION
727 ld_version_script_option
729 ORIGINAL_DSYMUTIL_FOR_TARGET
734 ORIGINAL_NM_FOR_TARGET
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
741 ORIGINAL_AS_FOR_TARGET
766 BUILD_SYSTEM_HEADER_DIR
786 NATIVE_SYSTEM_HEADER_DIR
824 omp_device_property_deps
825 omp_device_properties
827 real_target_noncanonical
828 enable_as_accelerator
844 valgrind_path_defines
876 CROSS_SYSTEM_HEADER_DIR
877 TARGET_SYSTEM_ROOT_DEFINE
879 SYSROOT_CFLAGS_FOR_TARGET
925 program_transform_name
936 ac_subst_files
='option_includes
939 enable_option_checking
942 with_native_system_header_dir
946 with_gxx_libcxx_include_dir
948 enable_generated_files_in_srcdir
956 enable_build_format_warnings
960 enable_gather_detailed_mem_stats
961 enable_valgrind_annotations
964 with_stack_clash_protection_guard_size
979 with_documentation_root_url
980 with_changes_root_url
983 with_multilib_generator
990 enable_sjlj_exceptions
991 with_gcc_major_version_only
993 enable_mingw_wildcard
994 enable_large_address_aware
995 enable_leading_mingw64_underscores
998 enable_win32_registry
1006 enable_gnu_indirect_function
1007 enable_initfini_array
1009 enable_newlib_nano_formatted_io
1010 enable_standard_branch_protection
1011 enable_fix_cortex_a53_835769
1012 enable_fix_cortex_a53_843419
1014 enable_gnu_unique_object
1015 enable_linker_build_id
1018 with_long_double_128
1019 with_long_double_format
1022 enable_maintainer_mode
1024 enable_link_serialization
1025 enable_version_specific_runtime_libs
1028 enable_libquadmath_support
1029 with_linker_hash_style
1030 with_diagnostics_color
1031 with_diagnostics_urls
1034 enable_s390_excess_float_precision
1036 ac_precious_vars
='build_alias
1055 # Initialize some variables set by options.
1057 ac_init_version
=false
1058 ac_unrecognized_opts
=
1059 ac_unrecognized_sep
=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file
=/dev
/null
1069 program_transform_name
=s
,x
,x
,
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir
='${exec_prefix}/bin'
1084 sbindir
='${exec_prefix}/sbin'
1085 libexecdir
='${exec_prefix}/libexec'
1086 datarootdir
='${prefix}/share'
1087 datadir
='${datarootdir}'
1088 sysconfdir
='${prefix}/etc'
1089 sharedstatedir
='${prefix}/com'
1090 localstatedir
='${prefix}/var'
1091 includedir
='${prefix}/include'
1092 oldincludedir
='/usr/include'
1093 docdir
='${datarootdir}/doc/${PACKAGE}'
1094 infodir
='${datarootdir}/info'
1099 libdir
='${exec_prefix}/lib'
1100 localedir
='${datarootdir}/locale'
1101 mandir
='${datarootdir}/man'
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\
$ac_option
1115 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1122 case $ac_dashdash$ac_option in
1126 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1128 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1129 bindir
=$ac_optarg ;;
1131 -build |
--build |
--buil |
--bui |
--bu)
1132 ac_prev
=build_alias
;;
1133 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1134 build_alias
=$ac_optarg ;;
1136 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1137 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1138 ac_prev
=cache_file
;;
1139 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1140 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1141 cache_file
=$ac_optarg ;;
1143 --config-cache |
-C)
1144 cache_file
=config.cache
;;
1146 -datadir |
--datadir |
--datadi |
--datad)
1148 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1149 datadir
=$ac_optarg ;;
1151 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1152 |
--dataroo |
--dataro |
--datar)
1153 ac_prev
=datarootdir
;;
1154 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1155 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1156 datarootdir
=$ac_optarg ;;
1158 -disable-* |
--disable-*)
1159 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1162 as_fn_error $?
"invalid feature name: $ac_useropt"
1163 ac_useropt_orig
=$ac_useropt
1164 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_
$ac_useropt"
1169 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep
=', ';;
1172 eval enable_
$ac_useropt=no
;;
1174 -docdir |
--docdir |
--docdi |
--doc |
--do)
1176 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1177 docdir
=$ac_optarg ;;
1179 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1181 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1182 dvidir
=$ac_optarg ;;
1184 -enable-* |
--enable-*)
1185 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1188 as_fn_error $?
"invalid feature name: $ac_useropt"
1189 ac_useropt_orig
=$ac_useropt
1190 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_
$ac_useropt"
1195 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep
=', ';;
1198 eval enable_
$ac_useropt=\
$ac_optarg ;;
1200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1202 |
--exec |
--exe |
--ex)
1203 ac_prev
=exec_prefix
;;
1204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1206 |
--exec=* |
--exe=* |
--ex=*)
1207 exec_prefix
=$ac_optarg ;;
1209 -gas |
--gas |
--ga |
--g)
1210 # Obsolete; use --with-gas.
1213 -help |
--help |
--hel |
--he |
-h)
1214 ac_init_help
=long
;;
1215 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1216 ac_init_help
=recursive
;;
1217 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1218 ac_init_help
=short
;;
1220 -host |
--host |
--hos |
--ho)
1221 ac_prev
=host_alias
;;
1222 -host=* |
--host=* |
--hos=* |
--ho=*)
1223 host_alias
=$ac_optarg ;;
1225 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1227 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1229 htmldir
=$ac_optarg ;;
1231 -includedir |
--includedir |
--includedi |
--included |
--include \
1232 |
--includ |
--inclu |
--incl |
--inc)
1233 ac_prev
=includedir
;;
1234 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1235 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1236 includedir
=$ac_optarg ;;
1238 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1240 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1241 infodir
=$ac_optarg ;;
1243 -libdir |
--libdir |
--libdi |
--libd)
1245 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1246 libdir
=$ac_optarg ;;
1248 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1249 |
--libexe |
--libex |
--libe)
1250 ac_prev
=libexecdir
;;
1251 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1252 |
--libexe=* |
--libex=* |
--libe=*)
1253 libexecdir
=$ac_optarg ;;
1255 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1256 ac_prev
=localedir
;;
1257 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1258 localedir
=$ac_optarg ;;
1260 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1261 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1262 ac_prev
=localstatedir
;;
1263 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1264 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1265 localstatedir
=$ac_optarg ;;
1267 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1269 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1270 mandir
=$ac_optarg ;;
1272 -nfp |
--nfp |
--nf)
1273 # Obsolete; use --without-fp.
1276 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1277 |
--no-cr |
--no-c |
-n)
1280 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1281 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1284 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1285 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1286 |
--oldin |
--oldi |
--old |
--ol |
--o)
1287 ac_prev
=oldincludedir
;;
1288 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1289 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1290 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1291 oldincludedir
=$ac_optarg ;;
1293 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1295 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1296 prefix
=$ac_optarg ;;
1298 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1299 |
--program-pre |
--program-pr |
--program-p)
1300 ac_prev
=program_prefix
;;
1301 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1302 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1303 program_prefix
=$ac_optarg ;;
1305 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1306 |
--program-suf |
--program-su |
--program-s)
1307 ac_prev
=program_suffix
;;
1308 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1309 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1310 program_suffix
=$ac_optarg ;;
1312 -program-transform-name |
--program-transform-name \
1313 |
--program-transform-nam |
--program-transform-na \
1314 |
--program-transform-n |
--program-transform- \
1315 |
--program-transform |
--program-transfor \
1316 |
--program-transfo |
--program-transf \
1317 |
--program-trans |
--program-tran \
1318 |
--progr-tra |
--program-tr |
--program-t)
1319 ac_prev
=program_transform_name
;;
1320 -program-transform-name=* |
--program-transform-name=* \
1321 |
--program-transform-nam=* |
--program-transform-na=* \
1322 |
--program-transform-n=* |
--program-transform-=* \
1323 |
--program-transform=* |
--program-transfor=* \
1324 |
--program-transfo=* |
--program-transf=* \
1325 |
--program-trans=* |
--program-tran=* \
1326 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1327 program_transform_name
=$ac_optarg ;;
1329 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1331 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1332 pdfdir
=$ac_optarg ;;
1334 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1336 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1339 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1340 |
-silent |
--silent |
--silen |
--sile |
--sil)
1343 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1345 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1347 sbindir
=$ac_optarg ;;
1349 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1350 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1351 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1353 ac_prev
=sharedstatedir
;;
1354 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1355 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1356 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1358 sharedstatedir
=$ac_optarg ;;
1360 -site |
--site |
--sit)
1362 -site=* |
--site=* |
--sit=*)
1365 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1367 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1368 srcdir
=$ac_optarg ;;
1370 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1371 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1372 ac_prev
=sysconfdir
;;
1373 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1374 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1375 sysconfdir
=$ac_optarg ;;
1377 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1378 ac_prev
=target_alias
;;
1379 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1380 target_alias
=$ac_optarg ;;
1382 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1385 -version |
--version |
--versio |
--versi |
--vers |
-V)
1386 ac_init_version
=: ;;
1389 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1392 as_fn_error $?
"invalid package name: $ac_useropt"
1393 ac_useropt_orig
=$ac_useropt
1394 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1399 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400 ac_unrecognized_sep
=', ';;
1402 eval with_
$ac_useropt=\
$ac_optarg ;;
1404 -without-* |
--without-*)
1405 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1408 as_fn_error $?
"invalid package name: $ac_useropt"
1409 ac_useropt_orig
=$ac_useropt
1410 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1415 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep
=', ';;
1418 eval with_
$ac_useropt=no
;;
1421 # Obsolete; use --with-x.
1424 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1425 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1426 ac_prev
=x_includes
;;
1427 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1428 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1429 x_includes
=$ac_optarg ;;
1431 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1432 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1433 ac_prev
=x_libraries
;;
1434 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1435 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1436 x_libraries
=$ac_optarg ;;
1438 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1443 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1447 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1449 eval $ac_envvar=\
$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1463 if test -n "$ac_prev"; then
1464 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $?
"missing argument to $ac_option"
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1471 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1476 # Check all directory arguments for consistency.
1477 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1482 eval ac_val
=\$
$ac_var
1483 # Remove trailing slashes.
1486 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\
$ac_val;;
1489 # Be sure to have absolute directory names.
1491 [\\/$
]* | ?
:[\\/]* ) continue;;
1492 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1494 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1502 target
=$target_alias
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x
; then
1506 if test "x$build_alias" = x
; then
1507 cross_compiling
=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1514 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1516 test "$silent" = yes && exec 6>/dev
/null
1519 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di
=`ls -di .` &&
1521 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $?
"working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $?
"pwd does not report name of working directory"
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted
=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir
=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1559 ac_srcdir_defaulted
=no
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1563 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1565 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1577 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1579 for ac_var
in $ac_precious_vars; do
1580 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1582 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1587 # Report the --help message.
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1593 \`configure' configures this package to adapt to many kinds of systems.
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1600 Defaults for the options are specified in brackets.
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1624 For better control, use the options below.
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1656 --build=BUILD configure
for building on BUILD
[guessed
]
1657 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1658 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1662 if test -n "$ac_init_help"; then
1667 --disable-option-checking ignore unrecognized
--enable/--with options
1668 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1669 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1670 --enable-generated-files-in-srcdir
1671 put copies of generated files
in source dir intended
1672 for creating
source tarballs
for users without
1673 texinfo bison or flex
1674 --disable-largefile omit support
for large files
1675 --disable-build-format-warnings
1676 don
't use -Wformat while building GCC
1677 --enable-werror-always enable -Werror despite compiler version
1678 --enable-checking[=LIST]
1679 enable expensive run-time checks. With LIST, enable
1680 only specific categories of checks. Categories are:
1681 yes,no,all,none,release. Flags are:
1682 assert,df,extra,fold,gc,gcac,gimple,misc,
1683 rtlflag,rtl,runtime,tree,valgrind,types
1684 --enable-coverage[=LEVEL]
1685 enable compiler's code coverage collection. Use to
1686 measure compiler performance and
locate unused parts
1687 of the compiler. With LEVEL
, specify optimization.
1688 Values are opt
, noopt
, default is noopt
1689 --enable-gather-detailed-mem-stats
1690 enable detailed memory allocation stats gathering
1691 --enable-valgrind-annotations
1692 enable valgrind runtime interaction
1693 --enable-multilib enable library support
for multiple ABIs
1694 --enable-multiarch enable support
for multiarch paths
1695 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1696 --enable-decimal-float={no
,yes,bid
,dpd
}
1697 enable decimal float extension to C. Selecting
'bid'
1698 or
'dpd' choses
which decimal floating point format
1700 --enable-fixed-point enable fixed-point arithmetic extension to C
1701 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1703 --enable-tls enable or disable generation of tls code overriding
1704 the assembler check
for tls support
1705 --enable-vtable-verify enable vtable verification feature
1706 --disable-analyzer disable
-fanalyzer static analyzer
1707 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1708 GNU Objective-C runtime
1709 --disable-shared don't provide a shared libgcc
1710 --disable-gcov don
't provide libgcov and related host tools
1711 --enable-languages=LIST specify which front-ends to build
1712 --disable-rpath do not hardcode runtime library paths
1713 --enable-sjlj-exceptions
1714 arrange to use setjmp/longjmp exception handling
1715 --enable-secureplt enable -msecure-plt by default for PowerPC
1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717 Default to platform configuration
1718 --enable-large-address-aware
1719 Link mingw executables with --large-address-aware
1720 --enable-leading-mingw64-underscores
1721 enable leading underscores on 64 bit mingw targets
1722 --enable-cld enable -mcld by default for 32bit x86
1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the Registry
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1738 --enable-gnu-indirect-function
1739 enable the use of the @gnu_indirect_function to
1741 --enable-initfini-array use .init_array/.fini_array sections
1742 --enable-comdat enable COMDAT group support
1743 --enable-newlib-nano-formatted-io
1744 Use nano version formatted IO
1746 --enable-standard-branch-protection
1747 enable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749 --disable-standard-branch-protection
1750 disable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1754 --enable-fix-cortex-a53-835769
1755 enable workaround for AArch64 Cortex-A53 erratum
1757 --disable-fix-cortex-a53-835769
1758 disable workaround for AArch64 Cortex-A53 erratum
1762 --enable-fix-cortex-a53-843419
1763 enable workaround for AArch64 Cortex-A53 erratum
1765 --disable-fix-cortex-a53-843419
1766 disable workaround for AArch64 Cortex-A53 erratum
1769 --enable-gnu-unique-object
1770 enable the use of the @gnu_unique_object ELF
1771 extension on glibc systems
1772 --enable-linker-build-id
1773 compiler will always pass --build-id to linker
1774 --enable-libssp enable linking against libssp
1775 --enable-default-ssp enable Stack Smashing Protection as default
1776 --enable-maintainer-mode
1777 enable make rules and dependencies not useful (and
1778 sometimes confusing) to the casual installer
1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1780 thrashing on the build machine
1781 --enable-link-serialization
1782 avoid linking multiple GCC front-ends at once using
1783 make dependencies to avoid thrashing on the build
1785 --enable-version-specific-runtime-libs
1786 specify that runtime libraries should be installed
1787 in a compiler-specific directory
1788 --enable-plugin enable plugin support
1789 --enable-host-shared build host code as shared libraries
1790 --disable-libquadmath-support
1791 disable libquadmath support for Fortran
1792 --enable-default-pie enable Position Independent Executable as default
1793 --enable-cet enable Intel CET in host libraries [default=auto]
1794 --enable-s390-excess-float-precision
1795 on s390 targets, evaluate float with double
1796 precision when in standards-conforming mode
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-build-libsubdir=DIR Directory where to find libraries for build system
1802 --with-local-prefix=DIR specifies directory to put local include
1803 --with-native-system-header-dir=dir
1804 use dir as the directory to look for standard
1805 system header files in. Defaults to /usr/include.
1806 --with-build-sysroot=sysroot
1807 use sysroot as the system root during the build
1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1809 --with-gxx-include-dir=DIR
1810 specifies directory to put g++ header files
1811 --with-gxx-libcxx-include-dir=DIR
1812 specifies directory to find libc++ header files
1813 --with-cpp-install-dir=DIR
1814 install the user visible C preprocessor in DIR
1815 (relative to PREFIX) as well as PREFIX/bin
1816 --with-gnu-ld arrange to work with GNU ld
1817 --with-ld arrange to use the specified ld (full pathname)
1818 --with-demangler-in-ld try to use demangler in GNU ld
1819 --with-dsymutil arrange to use the specified dsymutil (full
1821 --with-gnu-as arrange to work with GNU as
1822 --with-as arrange to use the specified as (full pathname)
1823 --with-stack-clash-protection-guard-size=size
1824 Set the default stack clash protection guard size
1825 for specific targets as a power of two in bytes.
1826 --with-dwarf2 force the default debug format to be DWARF 2
1827 --with-specs=SPECS add SPECS to driver command-line processing
1828 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1829 --with-bugurl=URL Direct users to URL to report a bug
1830 --with-documentation-root-url=URL
1831 Root for documentation URLs
1832 --with-changes-root-url=URL
1833 Root for GCC changes URLs
1834 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1836 --with-multilib-generator
1837 Multi-libs configuration string (RISC-V only)
1838 --with-zstd=PATH specify prefix directory for installed zstd library.
1839 Equivalent to --with-zstd-include=PATH/include plus
1840 --with-zstd-lib=PATH/lib
1841 --with-zstd-include=PATH
1842 specify directory for installed zstd include files
1843 --with-zstd-lib=PATH specify directory for the installed zstd library
1844 --with-gnu-ld assume the C compiler uses GNU ld default=no
1845 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1846 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1847 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1848 --with-gcc-major-version-only
1849 use only GCC major number
in filesystem paths
1850 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1852 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1853 --with-plugin-ld=[ARG
] specify the plugin linker
1854 --with-glibc-version=M.N
1855 assume GCC used with glibc version M.N or later
1856 --with-long-double-128 use
128-bit long double by default
1857 --with-long-double-format={ieee
,ibm
}
1858 Specify whether PowerPC long double uses IEEE or IBM format
1860 --with-gc={page
,zone
} this option is not supported anymore. It used to
1861 choose the garbage collection mechanism to use with
1863 --with-system-zlib use installed libz
1864 --with-linker-hash-style={sysv
,gnu
,both
}
1865 specify the linker
hash style
1866 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1867 specify the default of
-fdiagnostics-color option
1868 auto-if-env stands
for -fdiagnostics-color=auto
if
1869 GCC_COLOR environment variable is present and
1870 -fdiagnostics-color=never otherwise
1871 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1872 specify the default of
-fdiagnostics-urls option
1873 auto-if-env stands
for -fdiagnostics-urls=auto
if
1874 GCC_URLS or TERM_URLS environment variable is
1875 present and
-fdiagnostics-urls=never otherwise
1877 Some influential environment variables
:
1878 CC C compiler
command
1879 CFLAGS C compiler flags
1880 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1881 nonstandard directory
<lib dir
>
1882 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1883 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1884 you have headers
in a nonstandard directory
<include dir
>
1885 CXX C
++ compiler
command
1886 CXXFLAGS C
++ compiler flags
1887 CXXCPP C
++ preprocessor
1889 GMPLIBS How to link GMP
1890 GMPINC How to
find GMP include files
1891 ISLLIBS How to link isl
1892 ISLINC How to
find isl include files
1894 Use these variables to override the choices made by
`configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1897 Report bugs to the package provider.
1902 if test "$ac_init_help" = "recursive"; then
1903 # If there are subdirs, report their specific --help.
1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905 test -d "$ac_dir" ||
1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1914 # A ".." for each directory in $ac_dir_suffix.
1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1916 case $ac_top_builddir_sub in
1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1921 ac_abs_top_builddir=$ac_pwd
1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923 # for backward compatibility:
1924 ac_top_builddir=$ac_top_build_prefix
1927 .) # We are building in place.
1929 ac_top_srcdir=$ac_top_builddir_sub
1930 ac_abs_top_srcdir=$ac_pwd ;;
1931 [\\/]* | ?:[\\/]* ) # Absolute name.
1932 ac_srcdir=$srcdir$ac_dir_suffix;
1933 ac_top_srcdir=$srcdir
1934 ac_abs_top_srcdir=$srcdir ;;
1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937 ac_top_srcdir=$ac_top_build_prefix$srcdir
1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1942 cd "$ac_dir" || { ac_status=$?; continue; }
1943 # Check for guested configure.
1944 if test -f "$ac_srcdir/configure.gnu"; then
1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947 elif test -f "$ac_srcdir/configure"; then
1949 $SHELL "$ac_srcdir/configure" --help=recursive
1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1953 cd "$ac_pwd" || { ac_status=$?; break; }
1957 test -n "$ac_init_help" && exit $ac_status
1958 if $ac_init_version; then
1961 generated by GNU Autoconf 2.69
1963 Copyright (C) 2012 Free Software Foundation, Inc.
1964 This configure script is free software; the Free Software Foundation
1965 gives unlimited permission to copy, distribute and modify it.
1970 ## ------------------------ ##
1971 ## Autoconf initialization. ##
1972 ## ------------------------ ##
1974 # ac_fn_c_try_compile LINENO
1975 # --------------------------
1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext
1981 if { { ac_try="$ac_compile"
1983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1984 *) ac_try_echo
=$ac_try;;
1986 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_compile") 2>conftest.err
1990 if test -s conftest.err
; then
1991 grep -v '^ *+' conftest.err
>conftest.er1
1992 cat conftest.er1
>&5
1993 mv -f conftest.er1 conftest.err
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest.
$ac_objext; then :
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.
$ac_ext >&5
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status
$ac_retval
2010 } # ac_fn_c_try_compile
2012 # ac_fn_cxx_try_compile LINENO
2013 # ----------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_compile
()
2017 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2018 rm -f conftest.
$ac_objext
2019 if { { ac_try
="$ac_compile"
2021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_cxx_try_compile
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2059 *) ac_try_echo
=$ac_try;;
2061 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2065 if test -s conftest.err
; then
2066 grep -v '^ *+' conftest.err
>conftest.er1
2067 cat conftest.er1
>&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i
&& {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.
$ac_ext >&5
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status
$ac_retval
2085 } # ac_fn_cxx_try_cpp
2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2092 ac_fn_cxx_check_header_mongrel
()
2094 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2095 if eval \
${$3+:} false
; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \
${$3+:} false
; then :
2099 $as_echo_n "(cached) " >&6
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2113 if ac_fn_cxx_try_compile
"$LINENO"; then :
2114 ac_header_compiler
=yes
2116 ac_header_compiler
=no
2118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2129 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2130 ac_header_preproc
=yes
2132 ac_header_preproc
=no
2134 rm -f conftest.err conftest.i conftest.
$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \
${$3+:} false
; then :
2162 $as_echo_n "(cached) " >&6
2164 eval "$3=\$ac_header_compiler"
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_cxx_check_header_mongrel
2174 # ac_fn_cxx_try_run LINENO
2175 # ------------------------
2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2177 # that executables *can* be run.
2178 ac_fn_cxx_try_run
()
2180 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2181 if { { ac_try
="$ac_link"
2183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_link") 2>&5
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2192 { { case "(($ac_try" in
2193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2194 *) ac_try_echo
=$ac_try;;
2196 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_try") 2>&5
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; }; }; then :
2204 $as_echo "$as_me: program exited with status $ac_status" >&5
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.
$ac_ext >&5
2208 ac_retval
=$ac_status
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status
$ac_retval
2214 } # ac_fn_cxx_try_run
2216 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists and can be compiled using the include files in
2219 # INCLUDES, setting the cache variable VAR accordingly.
2220 ac_fn_cxx_check_header_compile
()
2222 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \
${$3+:} false
; then :
2226 $as_echo_n "(cached) " >&6
2228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2233 if ac_fn_cxx_try_compile
"$LINENO"; then :
2238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_cxx_check_header_compile
2247 # ac_fn_c_try_cpp LINENO
2248 # ----------------------
2249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2252 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2253 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } > conftest.i && {
2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2284 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2285 # ----------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2289 ac_fn_cxx_compute_int ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2302 return test_array [0];
2308 if ac_fn_cxx_try_compile "$LINENO"; then :
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2319 return test_array [0];
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2344 static int test_array [1 - 2 * !(($2) < 0)];
2346 return test_array [0];
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2363 return test_array [0];
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2398 return test_array [0];
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2427 FILE *f = fopen ("conftest.val", "w");
2432 long int i = longval ();
2435 fprintf (f, "%ld", i);
2439 unsigned long int i = ulongval ();
2442 fprintf (f, "%lu", i);
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2452 if ac_fn_cxx_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_cxx_compute_int
2467 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2468 # ---------------------------------------------
2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
2470 # variable VAR accordingly.
2471 ac_fn_cxx_check_type ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2492 if ac_fn_cxx_try_compile "$LINENO"; then :
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2505 if ac_fn_cxx_try_compile "$LINENO"; then :
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_cxx_check_type
2521 # ac_fn_c_find_intX_t LINENO BITS VAR
2522 # -----------------------------------
2523 # Finds a signed integer type with width BITS, setting cache variable VAR
2525 ac_fn_c_find_intX_t ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2529 $as_echo_n "checking for int$2_t... " >&6; }
2530 if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2534 # Order is important - never check a type that is potentially smaller
2535 # than half of the expected target width.
2536 for ac_type in int$2_t 'int' 'long int' \
2537 'long long int' 'short int' 'signed char'; do
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $ac_includes_default
2541 enum { N = $2 / 2 - 1 };
2545 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2547 return test_array [0];
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $ac_includes_default
2557 enum { N = $2 / 2 - 1 };
2561 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2562 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2564 return test_array [0];
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2577 eval "$3=\$ac_type" ;;
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 if eval test \"x\$"$3"\" = x"no"; then :
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 } # ac_fn_c_find_intX_t
2597 # ac_fn_cxx_try_link LINENO
2598 # -------------------------
2599 # Try to link conftest.$ac_ext, and return whether this succeeded.
2600 ac_fn_cxx_try_link ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { { ac_try="$ac_link"
2606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2607 *) ac_try_echo
=$ac_try;;
2609 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 $as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_link") 2>conftest.err
2613 if test -s conftest.err
; then
2614 grep -v '^ *+' conftest.err
>conftest.er1
2615 cat conftest.er1
>&5
2616 mv -f conftest.er1 conftest.err
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; } && {
2620 test -z "$ac_cxx_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest
$ac_exeext && {
2623 test "$cross_compiling" = yes ||
2624 test -x conftest
$ac_exeext
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.
$ac_ext >&5
2633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2635 # interfere with the next link command; also delete a directory that is
2636 # left behind by Apple's compiler. We do this before executing the actions.
2637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 as_fn_set_status
$ac_retval
2641 } # ac_fn_cxx_try_link
2643 # ac_fn_c_find_uintX_t LINENO BITS VAR
2644 # ------------------------------------
2645 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2647 ac_fn_c_find_uintX_t
()
2649 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2651 $as_echo_n "checking for uint$2_t... " >&6; }
2652 if eval \
${$3+:} false
; then :
2653 $as_echo_n "(cached) " >&6
2656 # Order is important - never check a type that is potentially smaller
2657 # than half of the expected target width.
2658 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2659 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $ac_includes_default
2666 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2668 return test_array [0];
2674 if ac_fn_cxx_try_compile
"$LINENO"; then :
2679 eval "$3=\$ac_type" ;;
2682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 if eval test \"x\$
"$3"\" = x
"no"; then :
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_find_uintX_t
2697 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2698 # ------------------------------------------------
2699 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2700 ac_fn_cxx_check_header_preproc
()
2702 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704 $as_echo_n "checking for $2... " >&6; }
2705 if eval \
${$3+:} false
; then :
2706 $as_echo_n "(cached) " >&6
2708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2712 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2717 rm -f conftest.err conftest.i conftest.
$ac_ext
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724 } # ac_fn_cxx_check_header_preproc
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func
()
2731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \
${$3+:} false
; then :
2735 $as_echo_n "(cached) " >&6
2737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2741 #define $2 innocuous_$2
2743 /* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char $2 (); below.
2745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 <limits.h> exists even on freestanding compilers. */
2749 # include <limits.h>
2751 # include <assert.h>
2756 /* Override any GCC internal prototype to avoid an error.
2757 Use char because int might match the return type of a GCC
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined __stub_$2 || defined __stub___$2
2778 if ac_fn_cxx_try_link
"$LINENO"; then :
2783 rm -f core conftest.err conftest.
$ac_objext \
2784 conftest
$ac_exeext conftest.
$ac_ext
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 } # ac_fn_cxx_check_func
2793 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2794 # -----------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2797 ac_fn_cxx_check_decl
()
2799 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2800 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2801 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \
${$3+:} false
; then :
2805 $as_echo_n "(cached) " >&6
2807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2813 #ifndef $as_decl_name
2815 (void) $as_decl_use;
2817 (void) $as_decl_name;
2825 if ac_fn_cxx_try_compile
"$LINENO"; then :
2830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837 } # ac_fn_cxx_check_decl
2839 # ac_fn_c_try_link LINENO
2840 # -----------------------
2841 # Try to link conftest.$ac_ext, and return whether this succeeded.
2844 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2845 rm -f conftest.
$ac_objext conftest
$ac_exeext
2846 if { { ac_try
="$ac_link"
2848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_link") 2>conftest.err
2855 if test -s conftest.err; then
2856 grep -v '^ *+' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
2858 mv -f conftest.er1 conftest.err
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest$ac_exeext && {
2865 test "$cross_compiling" = yes ||
2866 test -x conftest$ac_exeext
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2877 # interfere with the next link command; also delete a directory that is
2878 # left behind by Apple's compiler. We do this before executing the actions.
2879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881 as_fn_set_status $ac_retval
2883 } # ac_fn_c_try_link
2885 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2886 # ----------------------------------------------
2887 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2888 ac_fn_c_check_header_preproc ()
2890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892 $as_echo_n "checking for $2... " >&6; }
2893 if eval \${$3+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2900 if ac_fn_c_try_cpp "$LINENO"; then :
2905 rm -f conftest.err conftest.i conftest.$ac_ext
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 } # ac_fn_c_check_header_preproc
2914 # ac_fn_c_check_func LINENO FUNC VAR
2915 # ----------------------------------
2916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2917 ac_fn_c_check_func ()
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2921 $as_echo_n "checking for $2... " >&6; }
2922 if eval \${$3+:} false; then :
2923 $as_echo_n "(cached) " >&6
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2929 #define $2 innocuous_$2
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char $2 (); below.
2933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 <limits.h> exists even on freestanding compilers. */
2937 # include <limits.h>
2939 # include <assert.h>
2944 /* Override any GCC internal prototype to avoid an error.
2945 Use char because int might match the return type of a GCC
2946 builtin and then its argument prototype would still apply. */
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined __stub_$2 || defined __stub___$2
2966 if ac_fn_c_try_link "$LINENO"; then :
2971 rm -f core conftest.err conftest.$ac_objext \
2972 conftest$ac_exeext conftest.$ac_ext
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979 } # ac_fn_c_check_func
2980 cat >config.log <<_ACEOF
2981 This file contains any messages produced by compilers while
2982 running configure, to aid debugging if configure makes a mistake.
2984 It was created by $as_me, which was
2985 generated by GNU Autoconf 2.69. Invocation command line was
2997 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2998 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2999 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3000 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3001 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3003 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3004 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3006 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3007 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3008 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3009 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3010 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3011 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3012 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 $as_echo "PATH: $as_dir"
3037 # Keep a trace of the command line.
3038 # Strip out --no-create and --no-recursion so they do not pile up.
3039 # Strip out --silent because we don't want to record it for future runs.
3040 # Also quote any args containing shell meta-characters.
3041 # Make two passes to allow for proper duplicate-argument suppression.
3045 ac_must_keep_next=false
3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053 | -silent | --silent | --silen | --sile | --sil)
3056 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3061 as_fn_append ac_configure_args1 " '$ac_arg'"
3062 if test $ac_must_keep_next = true; then
3063 ac_must_keep_next=false # Got value, back to normal.
3066 *=* | --config-cache | -C | -disable-* | --disable-* \
3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069 | -with-* | --with-* | -without-* | --without-* | --x)
3070 case "$ac_configure_args0 " in
3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3074 -* ) ac_must_keep_next=true ;;
3077 as_fn_append ac_configure_args " '$ac_arg'"
3082 { ac_configure_args0=; unset ac_configure_args0;}
3083 { ac_configure_args1=; unset ac_configure_args1;}
3085 # When interrupted or exit'd, cleanup temporary files, and complete
3086 # config.log. We remove comments because anyway the quotes in there
3087 # would cause problems or look ugly.
3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090 trap 'exit_status=$?
3091 # Save into config.log some information that might help in debugging.
3095 $as_echo "## ---------------- ##
3096 ## Cache variables. ##
3097 ## ---------------- ##"
3099 # The following way of writing the cache mishandles newlines in values,
3101 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3102 eval ac_val=\$$ac_var
3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3110 _ | IFS | as_nl) ;; #(
3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112 *) { eval $ac_var=; unset $ac_var;} ;;
3117 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3118 *${as_nl}ac_space=\ *)
3120 "s/'\''/'\''\\\\'\'''\''/g;
3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3131 $as_echo "## ----------------- ##
3132 ## Output variables. ##
3133 ## ----------------- ##"
3135 for ac_var in $ac_subst_vars
3137 eval ac_val=\$$ac_var
3139 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3141 $as_echo "$ac_var='\''$ac_val'\''"
3145 if test -n "$ac_subst_files"; then
3146 $as_echo "## ------------------- ##
3147 ## File substitutions. ##
3148 ## ------------------- ##"
3150 for ac_var in $ac_subst_files
3152 eval ac_val=\$$ac_var
3154 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3156 $as_echo "$ac_var='\''$ac_val'\''"
3161 if test -s confdefs.h; then
3162 $as_echo "## ----------- ##
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3185 $as_echo "/* confdefs.h */" > confdefs.h
3187 # Predefined preprocessor variables.
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3218 if test -n "$CONFIG_SITE"; then
3219 # We do not want a PATH search for config.site.
3220 case $CONFIG_SITE in #((
3221 -*) ac_site_file1=./$CONFIG_SITE;;
3222 */*) ac_site_file1=$CONFIG_SITE;;
3223 *) ac_site_file1=./$CONFIG_SITE;;
3225 elif test "x$prefix" != xNONE; then
3226 ac_site_file1=$prefix/share/config.site
3227 ac_site_file2=$prefix/etc/config.site
3229 ac_site_file1=$ac_default_prefix/share/config.site
3230 ac_site_file2=$ac_default_prefix/etc/config.site
3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3234 test "x$ac_site_file" = xNONE && continue
3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238 sed 's/^/| /' "$ac_site_file" >&5
3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "failed to load site
script $ac_site_file
3243 See \
`config.log' for more details" "$LINENO" 5; }
3247 if test -r "$cache_file"; then
3248 # Some versions of bash will fail to source /dev/null (special files
3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
3254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255 *) . "./$cache_file";;
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
3264 # Check that the precious variables saved in the cache have kept the same
3266 ac_cache_corrupted=false
3267 for ac_var in $ac_precious_vars; do
3268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3269 eval ac_new_set=\$ac_env_${ac_var}_set
3270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3271 eval ac_new_val=\$ac_env_${ac_var}_value
3272 case $ac_old_set,$ac_new_set in
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3275 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3276 ac_cache_corrupted=: ;;
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3279 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3283 if test "x$ac_old_val" != "x$ac_new_val"; then
3284 # differences in whitespace do not lead to failure.
3285 ac_old_val_w=`echo x
$ac_old_val`
3286 ac_new_val_w=`echo x
$ac_new_val`
3287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3290 ac_cache_corrupted=:
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3294 eval $ac_var=\$ac_old_val
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3297 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3302 # Pass precious variables to config.status.
3303 if test "$ac_new_set" = set; then
3305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3306 *) ac_arg=$ac_var=$ac_new_val ;;
3308 case " $ac_configure_args " in
3309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3314 if $ac_cache_corrupted; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3319 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3321 ## -------------------- ##
3322 ## Main body of script. ##
3323 ## -------------------- ##
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3339 gcc_version=`cat $srcdir/BASE-VER
`
3341 # Determine the host, build, and target systems
3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344 if test -f "$ac_dir/install-sh"; then
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3348 elif test -f "$ac_dir/install.sh"; then
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3352 elif test -f "$ac_dir/shtool"; then
3354 ac_install_sh="$ac_aux_dir/shtool install -c"
3358 if test -z "$ac_aux_dir"; then
3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3362 # These three variables are undocumented and unsupported,
3363 # and are intended to be withdrawn in a future Autoconf release.
3364 # They can cause serious problems if a builder's source tree is in a directory
3365 # whose full name contains unusual characters.
3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3371 # Make sure we can run config.sub.
3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if ${ac_cv_build+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390 $as_echo "$ac_cv_build" >&6; }
3391 case $ac_cv_build in
3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3396 ac_save_IFS=$IFS; IFS='-'
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3406 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410 $as_echo_n "checking host system type... " >&6; }
3411 if ${ac_cv_host+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 if test "x$host_alias" = x; then
3415 ac_cv_host=$ac_cv_build
3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423 $as_echo "$ac_cv_host" >&6; }
3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3429 ac_save_IFS=$IFS; IFS='-'
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3439 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3443 $as_echo_n "checking target system type... " >&6; }
3444 if ${ac_cv_target+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 if test "x$target_alias" = x; then
3448 ac_cv_target=$ac_cv_host
3450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3456 $as_echo "$ac_cv_target" >&6; }
3457 case $ac_cv_target in
3459 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3461 target=$ac_cv_target
3462 ac_save_IFS=$IFS; IFS='-'
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3472 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3475 # The aliases save the names the user supplied, while $host etc.
3476 # will get canonicalized.
3477 test -n "$target_alias" &&
3478 test "$program_prefix$program_suffix$program_transform_name" = \
3480 program_prefix=${target_alias}-
3482 # Determine the noncanonical host name, for Ada.
3483 case ${build_alias} in
3484 "") build_noncanonical=${build} ;;
3485 *) build_noncanonical=${build_alias} ;;
3488 case ${host_alias} in
3489 "") host_noncanonical=${build_noncanonical} ;;
3490 *) host_noncanonical=${host_alias} ;;
3496 # Determine the noncanonical target name, for directory use.
3497 case ${target_alias} in
3498 "") target_noncanonical=${host_noncanonical} ;;
3499 *) target_noncanonical=${target_alias} ;;
3505 # Used for constructing correct paths for offload compilers.
3506 real_target_noncanonical=${target_noncanonical}
3509 # Determine the target- and build-specific subdirectories
3511 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3512 # have matching libraries, they should use host libraries: Makefile.tpl
3513 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3514 # However, they still use the build modules, because the corresponding
3515 # host modules (e.g. bison) are only built for the host when bootstrap
3517 # - build_subdir is where we find build modules, and never changes.
3518 # - build_libsubdir is where we find build libraries, and can be overridden.
3520 # Prefix 'build-' so this never conflicts with target_subdir.
3521 build_subdir="build-${build_noncanonical}"
3523 # Check whether --with-build-libsubdir was given.
3524 if test "${with_build_libsubdir+set}" = set; then :
3525 withval=$with_build_libsubdir; build_libsubdir="$withval"
3527 build_libsubdir="$build_subdir"
3530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3531 if ( test $srcdir = . && test -d gcc ) \
3532 || test -d $srcdir/../host-${host_noncanonical}; then
3533 host_subdir="host-${host_noncanonical}"
3538 target_subdir=${target_noncanonical}
3541 # Set program_transform_name
3542 test "$program_prefix" != NONE &&
3543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3544 # Use a double $ so make ignores it.
3545 test "$program_suffix" != NONE &&
3546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3547 # Double any \ or $.
3548 # By default was `s
,x
,x
', remove it if useless.
3549 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3553 # Check for bogus environment variables.
3554 # Test if LIBRARY_PATH contains the notation for the current directory
3555 # since this would lead to problems installing/building glibc.
3556 # LIBRARY_PATH contains the current directory if one of the following
3558 # - one of the terminals (":" and ";") is the first or last sign
3559 # - two terminals occur directly after each other
3560 # - the path contains an element with a dot in it
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3562 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3563 case ${LIBRARY_PATH} in
3564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3565 library_path_setting="contains current directory"
3568 library_path_setting="ok"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3572 $as_echo "$library_path_setting" >&6; }
3573 if test "$library_path_setting" != "ok"; then
3575 *** LIBRARY_PATH shouldn't contain the current directory when
3576 *** building gcc. Please change the environment variable
3577 *** and run configure again.
" "$LINENO" 5
3580 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3581 # since this would lead to problems installing/building glibc.
3582 # GCC_EXEC_PREFIX contains the current directory if one of the following
3584 # - one of the terminals (":" and ";") is the first or last sign
3585 # - two terminals occur directly after each other
3586 # - the path contains an element with a dot in it
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3588 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3589 case ${GCC_EXEC_PREFIX} in
3590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3591 gcc_exec_prefix_setting="contains current directory
"
3594 gcc_exec_prefix_setting="ok
"
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3598 $as_echo "$gcc_exec_prefix_setting" >&6; }
3599 if test "$gcc_exec_prefix_setting" != "ok
"; then
3601 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3602 *** building gcc. Please change the environment variable
3603 *** and run configure again." "$LINENO" 5
3610 # Specify the local prefix
3613 # Check whether --with-local-prefix was given.
3614 if test "${with_local_prefix+set}" = set; then :
3615 withval=$with_local_prefix; case "${withval}" in
3616 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3618 *) local_prefix=$with_local_prefix ;;
3623 # Default local prefix if it is empty
3624 if test x$local_prefix = x; then
3625 local_prefix=/usr/local
3629 # Check whether --with-native-system-header-dir was given.
3630 if test "${with_native_system_header_dir+set}" = set; then :
3631 withval=$with_native_system_header_dir;
3632 case ${with_native_system_header_dir} in
3633 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3634 /* | [A-Za-z]:[\\/]*) ;;
3635 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3637 configured_native_system_header_dir="${withval}"
3640 configured_native_system_header_dir=
3645 # Check whether --with-build-sysroot was given.
3646 if test "${with_build_sysroot+set}" = set; then :
3647 withval=$with_build_sysroot; if test x"$withval" != x ; then
3648 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3651 SYSROOT_CFLAGS_FOR_TARGET=
3656 if test "x$prefix" = xNONE; then
3657 test_prefix=/usr/local
3661 if test "x$exec_prefix" = xNONE; then
3662 test_exec_prefix=$test_prefix
3664 test_exec_prefix=$exec_prefix
3668 # Check whether --with-sysroot was given.
3669 if test "${with_sysroot+set}" = set; then :
3670 withval=$with_sysroot;
3671 case ${with_sysroot} in
3673 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3675 case ${with_sysroot} in
3676 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3677 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3680 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3681 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3683 case ${TARGET_SYSTEM_ROOT} in
3684 "${test_prefix}"|"${test_prefix}/"*|\
3685 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3686 '${prefix}'|'${prefix}/'*|\
3687 '${exec_prefix}'|'${exec_prefix}/'*)
3688 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3689 TARGET_SYSTEM_ROOT_DEFINE="$t"
3696 TARGET_SYSTEM_ROOT_DEFINE=
3697 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3705 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3706 # passed in by the toplevel make and thus we'd get different behavior
3707 # depending on where we built the sources.
3708 gcc_gxx_include_dir
=
3709 # Specify the g++ header file directory
3711 # Check whether --with-gxx-include-dir was given.
3712 if test "${with_gxx_include_dir+set}" = set; then :
3713 withval
=$with_gxx_include_dir; case "${withval}" in
3714 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3716 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3721 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3722 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3723 # relative to the sysroot.
3724 gcc_gxx_include_dir_add_sysroot
=0
3726 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3727 if test x
${gcc_gxx_include_dir} = x
; then
3728 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3729 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3731 libstdcxx_incdir
='include/c++/$(version)'
3732 if test x
$host != x
$target; then
3733 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3735 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3737 elif test "${with_sysroot+set}" = set; then
3738 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3739 if test "${gcc_gxx_without_sysroot}"; then
3740 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3741 gcc_gxx_include_dir_add_sysroot
=1
3745 # Configuration for an alternate set of C++ headers.
3746 gcc_gxx_libcxx_include_dir
=
3747 # Specify the alternate g++ header file directory
3749 # Check whether --with-gxx-libcxx-include-dir was given.
3750 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3751 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3752 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3754 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3759 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3760 # check to see if the latter starts with the former and, upon success, compute
3761 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3762 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3764 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3766 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3769 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3772 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3773 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3774 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3775 gcc_gxx_libcxx_include_dir
='${libsubdir}/libc++_include/c++/v1'
3777 libcxx_incdir
='libc++_include/c++/$(version)/v1'
3778 if test x
$host != x
$target; then
3779 libcxx_incdir
="$target_alias/$libcxx_incdir"
3781 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3783 elif test "${with_sysroot+set}" = set; then
3784 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3785 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3786 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3787 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3792 # Check whether --with-cpp_install_dir was given.
3793 if test "${with_cpp_install_dir+set}" = set; then :
3794 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3795 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3796 elif test x
$withval != xno
; then
3797 cpp_install_dir
=$withval
3802 # We would like to our source tree to be readonly. However when releases or
3803 # pre-releases are generated, the flex/bison generated files as well as the
3804 # various formats of manuals need to be included along with the rest of the
3805 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3809 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3810 # Check whether --enable-generated-files-in-srcdir was given.
3811 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3812 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3814 generated_files_in_srcdir
=no
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3819 $as_echo "$generated_files_in_srcdir" >&6; }
3821 if test "$generated_files_in_srcdir" = "yes"; then
3828 # -------------------
3829 # Find default linker
3830 # -------------------
3834 # Check whether --with-gnu-ld was given.
3835 if test "${with_gnu_ld+set}" = set; then :
3836 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3844 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3845 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3853 # With pre-defined ld
3855 # Check whether --with-ld was given.
3856 if test "${with_ld+set}" = set; then :
3857 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3860 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3861 if test ! -x "$DEFAULT_LINKER"; then
3862 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3863 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3865 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3869 cat >>confdefs.h
<<_ACEOF
3870 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3876 $as_echo_n "checking whether a default linker was specified... " >&6; }
3877 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3878 if test x
"$gnu_ld_flag" = x
"no"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3880 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3883 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3890 # With demangler in GNU ld
3892 # Check whether --with-demangler-in-ld was given.
3893 if test "${with_demangler_in_ld+set}" = set; then :
3894 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3900 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3902 # Check whether --with-dsymutil was given.
3903 if test "${with_dsymutil+set}" = set; then :
3904 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3909 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3910 if test ! -x "$DEFAULT_DSYMUTIL"; then
3911 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3913 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3918 cat >>confdefs.h
<<_ACEOF
3919 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3925 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3926 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3928 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3934 # ----------------------
3935 # Find default assembler
3936 # ----------------------
3940 # Check whether --with-gnu-as was given.
3941 if test "${with_gnu_as+set}" = set; then :
3942 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3949 # Check whether --with-as was given.
3950 if test "${with_as+set}" = set; then :
3951 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3954 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3955 if test ! -x "$DEFAULT_ASSEMBLER"; then
3956 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3957 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3961 cat >>confdefs.h
<<_ACEOF
3962 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3968 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3969 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3970 if test x
"$gas_flag" = x
"no"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3972 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3975 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3986 # If a non-executable a.out is present (e.g. created by GNU as above even if
3987 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3988 # file, even when creating an executable, so an execution test fails.
3989 # Remove possible default executable files to avoid this.
3991 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3992 # Autoconf includes it.
3993 rm -f a.out a.exe b.out
3995 # Find the native compiler
3997 ac_cpp
='$CPP $CPPFLAGS'
3998 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4003 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_CC+:} false
; then :
4007 $as_echo_n "(cached) " >&6
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC
="$CC" # Let the user override the test.
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir
=.
4017 for ac_exec_ext
in '' $ac_executable_extensions; do
4018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test -z "$ac_cv_prog_CC"; then
4042 # Extract the first word of "gcc", so it can be a program name with args.
4043 set dummy gcc
; ac_word
=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4047 $as_echo_n "(cached) " >&6
4049 if test -n "$ac_ct_CC"; then
4050 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir
=.
4057 for ac_exec_ext
in '' $ac_executable_extensions; do
4058 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_CC
="gcc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4070 if test -n "$ac_ct_CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4072 $as_echo "$ac_ct_CC" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4078 if test "x$ac_ct_CC" = x
; then
4081 case $cross_compiling:$ac_tool_warned in
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned
=yes ;;
4093 if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4096 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CC+:} false
; then :
4100 $as_echo_n "(cached) " >&6
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC
="$CC" # Let the user override the test.
4105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir
=.
4110 for ac_exec_ext
in '' $ac_executable_extensions; do
4111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 if test -n "$CC"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4125 $as_echo "$CC" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4134 if test -z "$CC"; then
4135 # Extract the first word of "cc", so it can be a program name with args.
4136 set dummy cc
; ac_word
=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_CC+:} false
; then :
4140 $as_echo_n "(cached) " >&6
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC
="$CC" # Let the user override the test.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4154 ac_prog_rejected
=yes
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 if test $ac_prog_rejected = yes; then
4166 # We found a bogon in the path, so make sure we never use it.
4167 set dummy
$ac_cv_prog_CC
4169 if test $# != 0; then
4170 # We chose a different compiler from the bogus one.
4171 # However, it has the same basename, so the bogon will be chosen
4172 # first if we set CC to just the basename; use the full file name.
4174 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4190 if test -z "$CC"; then
4191 if test -n "$ac_tool_prefix"; then
4192 for ac_prog
in cl.exe
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false
; then :
4199 $as_echo_n "(cached) " >&6
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC
="$CC" # Let the user override the test.
4204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir
=.
4209 for ac_exec_ext
in '' $ac_executable_extensions; do
4210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4231 test -n "$CC" && break
4234 if test -z "$CC"; then
4236 for ac_prog
in cl.exe
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy
$ac_prog; ac_word
=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4243 $as_echo_n "(cached) " >&6
4245 if test -n "$ac_ct_CC"; then
4246 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_CC
="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4268 $as_echo "$ac_ct_CC" >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$ac_ct_CC" && break
4278 if test "x$ac_ct_CC" = x
; then
4281 case $cross_compiling:$ac_tool_warned in
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned
=yes ;;
4294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 as_fn_error $?
"no acceptable C compiler found in \$PATH
4297 See \`config.log' for more details" "$LINENO" 5; }
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4303 for ac_option
in --version -v -V -qversion; do
4304 { { ac_try
="$ac_compiler $ac_option >&5"
4306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4313 if test -s conftest.err; then
4315 ... rest of stderr output deleted ...
4316 10q' conftest.err >conftest.er1
4317 cat conftest.er1 >&5
4319 rm -f conftest.er1 conftest.err
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; }
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4341 $as_echo_n "checking whether the C compiler works... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4348 for ac_file in $ac_files
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4357 if { { ac_try="$ac_link_default"
4359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4360 *) ac_try_echo
=$ac_try;;
4362 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363 $as_echo "$ac_try_echo"; } >&5
4364 (eval "$ac_link_default") 2>&5
4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; then :
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4373 for ac_file
in $ac_files ''
4375 test -f "$ac_file" ||
continue
4377 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4380 # We found the default executable, but exeext='' is most
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4386 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4398 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4403 if test -z "$ac_file"; then :
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.
$ac_ext >&5
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error
77 "C compiler cannot create executables
4412 See \`config.log' for more details" "$LINENO" 5; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4418 $as_echo_n "checking for C compiler default output file name... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420 $as_echo "$ac_file" >&6; }
4421 ac_exeext
=$ac_cv_exeext
4423 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4424 ac_clean_files
=$ac_clean_files_save
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4426 $as_echo_n "checking for suffix of executables... " >&6; }
4427 if { { ac_try
="$ac_link"
4429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_link") 2>&5
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; then :
4438 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4439 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4440 # work properly (i.e., refer to `conftest.exe'), while it won't with
4442 for ac_file
in conftest.exe conftest conftest.
*; do
4443 test -f "$ac_file" ||
continue
4445 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4446 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4455 See \`config.log' for more details" "$LINENO" 5; }
4457 rm -f conftest conftest
$ac_cv_exeext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4459 $as_echo "$ac_cv_exeext" >&6; }
4461 rm -f conftest.
$ac_ext
4462 EXEEXT
=$ac_cv_exeext
4464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4470 FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4477 ac_clean_files
="$ac_clean_files conftest.out"
4478 # Check that the compiler produces executables we can run. If not, either
4479 # the compiler is broken, or we cross compile.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481 $as_echo_n "checking whether we are cross compiling... " >&6; }
4482 if test "$cross_compiling" != yes; then
4483 { { ac_try
="$ac_link"
4485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494 if { ac_try='./conftest$ac_cv_exeext'
4495 { { case "(($ac_try" in
4496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4497 *) ac_try_echo
=$ac_try;;
4499 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; }; then
4507 if test "$cross_compiling" = maybe
; then
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error $?
"cannot run C compiled programs.
4513 If you meant to cross compile, use \`--host'.
4514 See \`config.log' for more details" "$LINENO" 5; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519 $as_echo "$cross_compiling" >&6; }
4521 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4522 ac_clean_files
=$ac_clean_files_save
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524 $as_echo_n "checking for suffix of object files... " >&6; }
4525 if ${ac_cv_objext+:} false
; then :
4526 $as_echo_n "(cached) " >&6
4528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 rm -f conftest.o conftest.obj
4540 if { { ac_try
="$ac_compile"
4542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 $as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_compile") 2>&5
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }; then :
4551 for ac_file in conftest.o conftest.obj conftest.*; do
4552 test -f "$ac_file" || continue;
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4560 $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4566 See \
`config.log' for more details" "$LINENO" 5; }
4568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4571 $as_echo "$ac_cv_objext" >&6; }
4572 OBJEXT=$ac_cv_objext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4576 if ${ac_cv_c_compiler_gnu+:} false; then :
4577 $as_echo_n "(cached) " >&6
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4593 if ac_fn_c_try_compile "$LINENO"; then :
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4604 if test $ac_compiler_gnu = yes; then
4609 ac_test_CFLAGS=${CFLAGS+set}
4610 ac_save_CFLAGS=$CFLAGS
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4613 if ${ac_cv_prog_cc_g+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 ac_save_c_werror_flag=$ac_c_werror_flag
4617 ac_c_werror_flag=yes
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4631 if ac_fn_c_try_compile "$LINENO"; then :
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4646 if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_c_werror_flag=$ac_save_c_werror_flag
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4662 if ac_fn_c_try_compile "$LINENO"; then :
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4673 $as_echo "$ac_cv_prog_cc_g" >&6; }
4674 if test "$ac_test_CFLAGS" = set; then
4675 CFLAGS=$ac_save_CFLAGS
4676 elif test $ac_cv_prog_cc_g = yes; then
4677 if test "$GCC" = yes; then
4683 if test "$GCC" = yes; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691 if ${ac_cv_prog_cc_c89+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 ac_cv_prog_cc_c89=no
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702 struct buf { int x; };
4703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704 static char *e (p, i)
4710 static char *f (char * (*g) (char **, int), char **p, ...)
4715 s = g (p, va_arg (v,int));
4720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
4723 as 'x'. The following induces an error, until -std is added to get
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
4726 that's true only with -std. */
4727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734 int test (int i, double x);
4735 struct s1 {int (*f) (int a);};
4736 struct s2 {int (*f) (double a);};
4737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 CC="$ac_save_CC $ac_arg"
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
4755 rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
4758 rm -f conftest.$ac_ext
4763 case "x$ac_cv_prog_cc_c89" in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 $as_echo "none needed" >&6; } ;;
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769 $as_echo "unsupported" >&6; } ;;
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4775 if test "x$ac_cv_prog_cc_c89" != xno; then :
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_CXX+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CXX" && break
4837 if test -z "$CXX"; then
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869 if test -n "$ac_ct_CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871 $as_echo "$ac_ct_CXX" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CXX" && break
4881 if test "x$ac_ct_CXX" = x; then
4884 case $cross_compiling:$ac_tool_warned in
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4896 # Provide some information about the compiler.
4897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4900 for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4904 *) ac_try_echo
=$ac_try;;
4906 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907 $as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4910 if test -s conftest.err
; then
4912 ... rest of stderr output deleted ...
4913 10q' conftest.err
>conftest.er1
4914 cat conftest.er1
>&5
4916 rm -f conftest.er1 conftest.err
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4924 $as_echo_n "(cached) " >&6
4926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4940 if ac_fn_cxx_try_compile
"$LINENO"; then :
4945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4946 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4956 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4957 ac_save_CXXFLAGS
=$CXXFLAGS
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960 if ${ac_cv_prog_cxx_g+:} false
; then :
4961 $as_echo_n "(cached) " >&6
4963 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag
=yes
4967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4978 if ac_fn_cxx_try_compile
"$LINENO"; then :
4979 ac_cv_prog_cxx_g
=yes
4982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4993 if ac_fn_cxx_try_compile
"$LINENO"; then :
4996 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5009 if ac_fn_cxx_try_compile
"$LINENO"; then :
5010 ac_cv_prog_cxx_g
=yes
5012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5017 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5021 if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS
=$ac_save_CXXFLAGS
5023 elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5030 if test "$GXX" = yes; then
5037 ac_cpp
='$CPP $CPPFLAGS'
5038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5047 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_GNATBIND+:} false
; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$GNATBIND"; then
5054 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 GNATBIND
=$ac_cv_prog_GNATBIND
5074 if test -n "$GNATBIND"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076 $as_echo "$GNATBIND" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5084 if test -z "$ac_cv_prog_GNATBIND"; then
5085 ac_ct_GNATBIND
=$GNATBIND
5086 # Extract the first word of "gnatbind", so it can be a program name with args.
5087 set dummy gnatbind
; ac_word
=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5091 $as_echo_n "(cached) " >&6
5093 if test -n "$ac_ct_GNATBIND"; then
5094 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir
=.
5101 for ac_exec_ext
in '' $ac_executable_extensions; do
5102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5114 if test -n "$ac_ct_GNATBIND"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116 $as_echo "$ac_ct_GNATBIND" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5122 if test "x$ac_ct_GNATBIND" = x
; then
5125 case $cross_compiling:$ac_tool_warned in
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned
=yes ;;
5131 GNATBIND
=$ac_ct_GNATBIND
5134 GNATBIND
="$ac_cv_prog_GNATBIND"
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5139 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$GNATMAKE"; then
5146 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 GNATMAKE
=$ac_cv_prog_GNATMAKE
5166 if test -n "$GNATMAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168 $as_echo "$GNATMAKE" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 if test -z "$ac_cv_prog_GNATMAKE"; then
5177 ac_ct_GNATMAKE
=$GNATMAKE
5178 # Extract the first word of "gnatmake", so it can be a program name with args.
5179 set dummy gnatmake
; ac_word
=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5183 $as_echo_n "(cached) " >&6
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir
=.
5193 for ac_exec_ext
in '' $ac_executable_extensions; do
5194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5206 if test -n "$ac_ct_GNATMAKE"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208 $as_echo "$ac_ct_GNATMAKE" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5214 if test "x$ac_ct_GNATMAKE" = x
; then
5217 case $cross_compiling:$ac_tool_warned in
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned
=yes ;;
5223 GNATMAKE
=$ac_ct_GNATMAKE
5226 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5230 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5231 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5232 $as_echo_n "(cached) " >&6
5234 cat >conftest.adb
<<EOF
5235 pragma Warnings (Off);
5237 pragma Warnings (On);
5238 use type System.CRTL.int64;
5239 procedure conftest is begin null; end conftest;
5241 acx_cv_cc_gcc_supports_ada
=no
5242 # There is a bug in old released versions of GCC which causes the
5243 # driver to exit successfully when the appropriate language module
5244 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5245 # Therefore we must check for the error message as well as an
5246 # unsuccessful exit.
5247 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5248 # given a .adb file, but produce no object file. So we must check
5249 # if an object file was really produced to guard against this.
5250 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5251 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5252 acx_cv_cc_gcc_supports_ada
=yes
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5257 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5259 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5267 if test -n "$ac_tool_prefix"; then
5268 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5269 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_GDC+:} false
; then :
5273 $as_echo_n "(cached) " >&6
5275 if test -n "$GDC"; then
5276 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir
=.
5283 for ac_exec_ext
in '' $ac_executable_extensions; do
5284 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 if test -n "$GDC"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5298 $as_echo "$GDC" >&6; }
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5306 if test -z "$ac_cv_prog_GDC"; then
5308 # Extract the first word of "gdc", so it can be a program name with args.
5309 set dummy gdc
; ac_word
=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5313 $as_echo_n "(cached) " >&6
5315 if test -n "$ac_ct_GDC"; then
5316 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir
=.
5323 for ac_exec_ext
in '' $ac_executable_extensions; do
5324 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_GDC
="gdc"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5336 if test -n "$ac_ct_GDC"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5338 $as_echo "$ac_ct_GDC" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5344 if test "x$ac_ct_GDC" = x
; then
5347 case $cross_compiling:$ac_tool_warned in
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned
=yes ;;
5356 GDC
="$ac_cv_prog_GDC"
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5360 $as_echo_n "checking whether the D compiler works... " >&6; }
5361 if ${acx_cv_d_compiler_works+:} false
; then :
5362 $as_echo_n "(cached) " >&6
5364 cat >conftest.d
<<EOF
5365 module conftest; int main() { return 0; }
5367 acx_cv_d_compiler_works
=no
5368 if test "x$GDC" != xno
; then
5369 errors
=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5370 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5371 acx_cv_d_compiler_works
=yes
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5377 $as_echo "$acx_cv_d_compiler_works" >&6; }
5378 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5385 # Do configure tests with the C++ compiler, since that's what we build with.
5387 ac_cpp
='$CXXCPP $CPPFLAGS'
5388 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5393 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5394 # optimizations to be activated explicitly by the toplevel.
5396 */prev-gcc
/xgcc
*) ;;
5397 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5398 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5404 # Determine PICFLAG for target gnatlib.
5410 # PIC is the default on some targets or must not be used.
5412 # For darwin, common symbols are not allowed in MH_DYLIB files
5414 # If we are using a compiler supporting mdynamic-no-pic
5415 # and the option has been tested as safe to add, then cancel
5416 # it here, since the code generated is incompatible with shared
5418 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5419 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5423 # PIC is the default.
5426 # PIC is the default for 64-bit PA HP-UX.
5428 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5430 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5432 i
[34567]86-*-interix[3-9]*)
5433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5434 # Instead, we relocate shared libraries at runtime.
5436 i
[34567]86-*-nto-qnx*)
5437 # QNX uses GNU C++, but need to define -shared option too, otherwise
5439 PICFLAG_FOR_TARGET
='-fPIC -shared'
5441 i
[34567]86-pc-msdosdjgpp*)
5442 # DJGPP does not support shared libraries at all.
5445 # On IA64 HP-UX, PIC is the default but the pic flag
5446 # sets the default TLS model and affects inlining.
5447 PICFLAG_FOR_TARGET
=-fPIC
5450 PICFLAG_FOR_TARGET
=-fpic
5453 # PIC is the default.
5455 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5456 # All AIX code is PIC.
5459 # Some targets support both -fPIC and -fpic, but prefer the latter.
5461 i
[34567]86-*-* | x86_64-
*-*)
5462 PICFLAG_FOR_TARGET
=-fpic
5464 # FIXME: Override -fPIC default in libgcc only?
5465 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5466 PICFLAG_FOR_TARGET
=-fpic
5468 # FIXME: Simplify to sh*-*-netbsd*?
5469 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5470 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5471 PICFLAG_FOR_TARGET
=-fpic
5473 # Default to -fPIC unless specified otherwise.
5475 PICFLAG_FOR_TARGET
=-fPIC
5479 # If the user explicitly uses -fpic/-fPIC, keep that.
5480 case "${CFLAGS_FOR_TARGET}" in
5482 PICFLAG_FOR_TARGET
=-fpic
5485 PICFLAG_FOR_TARGET
=-fPIC
5491 # -------------------------
5492 # Check C compiler features
5493 # -------------------------
5497 ac_cpp
='$CXXCPP $CPPFLAGS'
5498 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5502 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5503 if test -z "$CXXCPP"; then
5504 if ${ac_cv_prog_CXXCPP+:} false
; then :
5505 $as_echo_n "(cached) " >&6
5507 # Double quotes because CXXCPP needs to be expanded
5508 for CXXCPP
in "$CXX -E" "/lib/cpp"
5511 for ac_cxx_preproc_warn_flag
in '' yes
5513 # Use a header file that comes with gcc, so configuring glibc
5514 # with a fresh cross-compiler works.
5515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 # <limits.h> exists even on freestanding compilers.
5517 # On the NeXT, cc -E runs the code through the compiler's parser,
5518 # not just through cpp. "Syntax error" is here to catch this case.
5519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5522 # include <limits.h>
5524 # include <assert.h>
5528 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5531 # Broken: fails on valid input.
5534 rm -f conftest.err conftest.i conftest.
$ac_ext
5536 # OK, works on sane cases. Now check whether nonexistent headers
5537 # can be detected and how.
5538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <ac_nonexistent.h>
5542 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5543 # Broken: success on invalid input.
5546 # Passes both tests.
5550 rm -f conftest.err conftest.i conftest.
$ac_ext
5553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5554 rm -f conftest.i conftest.err conftest.
$ac_ext
5555 if $ac_preproc_ok; then :
5560 ac_cv_prog_CXXCPP
=$CXXCPP
5563 CXXCPP
=$ac_cv_prog_CXXCPP
5565 ac_cv_prog_CXXCPP
=$CXXCPP
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5568 $as_echo "$CXXCPP" >&6; }
5570 for ac_cxx_preproc_warn_flag
in '' yes
5572 # Use a header file that comes with gcc, so configuring glibc
5573 # with a fresh cross-compiler works.
5574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5575 # <limits.h> exists even on freestanding compilers.
5576 # On the NeXT, cc -E runs the code through the compiler's parser,
5577 # not just through cpp. "Syntax error" is here to catch this case.
5578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5581 # include <limits.h>
5583 # include <assert.h>
5587 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5590 # Broken: fails on valid input.
5593 rm -f conftest.err conftest.i conftest.
$ac_ext
5595 # OK, works on sane cases. Now check whether nonexistent headers
5596 # can be detected and how.
5597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <ac_nonexistent.h>
5601 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5602 # Broken: success on invalid input.
5605 # Passes both tests.
5609 rm -f conftest.err conftest.i conftest.
$ac_ext
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.i conftest.err conftest.
$ac_ext
5614 if $ac_preproc_ok; then :
5617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5619 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5620 See \`config.log' for more details" "$LINENO" 5; }
5624 ac_cpp
='$CXXCPP $CPPFLAGS'
5625 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5631 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5632 if ${ac_cv_path_GREP+:} false
; then :
5633 $as_echo_n "(cached) " >&6
5635 if test -z "$GREP"; then
5636 ac_path_GREP_found
=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5639 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5642 test -z "$as_dir" && as_dir
=.
5643 for ac_prog
in grep ggrep
; do
5644 for ac_exec_ext
in '' $ac_executable_extensions; do
5645 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5646 as_fn_executable_p
"$ac_path_GREP" ||
continue
5647 # Check for GNU ac_path_GREP and select it if it is found.
5648 # Check for GNU $ac_path_GREP
5649 case `"$ac_path_GREP" --version 2>&1` in
5651 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5654 $as_echo_n 0123456789 >"conftest.in"
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 $as_echo 'GREP' >> "conftest.nl"
5661 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5662 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5663 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5664 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_GREP
="$ac_path_GREP"
5667 ac_path_GREP_max
=$ac_count
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5672 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5675 $ac_path_GREP_found && break 3
5680 if test -z "$ac_cv_path_GREP"; then
5681 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5684 ac_cv_path_GREP
=$GREP
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5689 $as_echo "$ac_cv_path_GREP" >&6; }
5690 GREP
="$ac_cv_path_GREP"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5694 $as_echo_n "checking for egrep... " >&6; }
5695 if ${ac_cv_path_EGREP+:} false
; then :
5696 $as_echo_n "(cached) " >&6
5698 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5699 then ac_cv_path_EGREP
="$GREP -E"
5701 if test -z "$EGREP"; then
5702 ac_path_EGREP_found
=false
5703 # Loop through the user's path and test for each of PROGNAME-LIST
5704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5705 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5708 test -z "$as_dir" && as_dir
=.
5709 for ac_prog
in egrep; do
5710 for ac_exec_ext
in '' $ac_executable_extensions; do
5711 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5712 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5713 # Check for GNU ac_path_EGREP and select it if it is found.
5714 # Check for GNU $ac_path_EGREP
5715 case `"$ac_path_EGREP" --version 2>&1` in
5717 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5720 $as_echo_n 0123456789 >"conftest.in"
5723 cat "conftest.in" "conftest.in" >"conftest.tmp"
5724 mv "conftest.tmp" "conftest.in"
5725 cp "conftest.in" "conftest.nl"
5726 $as_echo 'EGREP' >> "conftest.nl"
5727 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5728 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5729 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5730 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5731 # Best one so far, save it but keep looking for a better one
5732 ac_cv_path_EGREP
="$ac_path_EGREP"
5733 ac_path_EGREP_max
=$ac_count
5735 # 10*(2^10) chars as input seems more than enough
5736 test $ac_count -gt 10 && break
5738 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5741 $ac_path_EGREP_found && break 3
5746 if test -z "$ac_cv_path_EGREP"; then
5747 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5750 ac_cv_path_EGREP
=$EGREP
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5756 $as_echo "$ac_cv_path_EGREP" >&6; }
5757 EGREP
="$ac_cv_path_EGREP"
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5761 $as_echo_n "checking for ANSI C header files... " >&6; }
5762 if ${ac_cv_header_stdc+:} false
; then :
5763 $as_echo_n "(cached) " >&6
5765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5780 if ac_fn_cxx_try_compile
"$LINENO"; then :
5781 ac_cv_header_stdc
=yes
5783 ac_cv_header_stdc
=no
5785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5787 if test $ac_cv_header_stdc = yes; then
5788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5795 $EGREP "memchr" >/dev
/null
2>&1; then :
5798 ac_cv_header_stdc
=no
5804 if test $ac_cv_header_stdc = yes; then
5805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5812 $EGREP "free" >/dev
/null
2>&1; then :
5815 ac_cv_header_stdc
=no
5821 if test $ac_cv_header_stdc = yes; then
5822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5823 if test "$cross_compiling" = yes; then :
5826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5830 #if ((' ' & 0x0FF) == 0x020)
5831 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5832 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5834 # define ISLOWER(c) \
5835 (('a' <= (c) && (c) <= 'i') \
5836 || ('j' <= (c) && (c) <= 'r') \
5837 || ('s' <= (c) && (c) <= 'z'))
5838 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5846 for (i = 0; i < 256; i++)
5847 if (XOR (islower (i), ISLOWER (i))
5848 || toupper (i) != TOUPPER (i))
5853 if ac_fn_cxx_try_run
"$LINENO"; then :
5856 ac_cv_header_stdc
=no
5858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5865 $as_echo "$ac_cv_header_stdc" >&6; }
5866 if test $ac_cv_header_stdc = yes; then
5868 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5872 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5873 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5874 inttypes.h stdint.h unistd.h
5876 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5877 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5879 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5880 cat >>confdefs.h
<<_ACEOF
5881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5890 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5891 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5898 if test "$MINIX" = yes; then
5900 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5903 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5906 $as_echo "#define _MINIX 1" >>confdefs.h
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5912 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5913 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5914 $as_echo_n "(cached) " >&6
5916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5919 # define __EXTENSIONS__ 1
5920 $ac_includes_default
5929 if ac_fn_cxx_try_compile
"$LINENO"; then :
5930 ac_cv_safe_to_define___extensions__
=yes
5932 ac_cv_safe_to_define___extensions__
=no
5934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5937 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5938 test $ac_cv_safe_to_define___extensions__ = yes &&
5939 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5941 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5943 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5945 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5947 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5952 ac_cpp
='$CPP $CPPFLAGS'
5953 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5957 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5958 # On Suns, sometimes $CPP names a directory.
5959 if test -n "$CPP" && test -d "$CPP"; then
5962 if test -z "$CPP"; then
5963 if ${ac_cv_prog_CPP+:} false
; then :
5964 $as_echo_n "(cached) " >&6
5966 # Double quotes because CPP needs to be expanded
5967 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5970 for ac_c_preproc_warn_flag
in '' yes
5972 # Use a header file that comes with gcc, so configuring glibc
5973 # with a fresh cross-compiler works.
5974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5975 # <limits.h> exists even on freestanding compilers.
5976 # On the NeXT, cc -E runs the code through the compiler's parser,
5977 # not just through cpp. "Syntax error" is here to catch this case.
5978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5981 # include <limits.h>
5983 # include <assert.h>
5987 if ac_fn_c_try_cpp
"$LINENO"; then :
5990 # Broken: fails on valid input.
5993 rm -f conftest.err conftest.i conftest.
$ac_ext
5995 # OK, works on sane cases. Now check whether nonexistent headers
5996 # can be detected and how.
5997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 #include <ac_nonexistent.h>
6001 if ac_fn_c_try_cpp
"$LINENO"; then :
6002 # Broken: success on invalid input.
6005 # Passes both tests.
6009 rm -f conftest.err conftest.i conftest.
$ac_ext
6012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6013 rm -f conftest.i conftest.err conftest.
$ac_ext
6014 if $ac_preproc_ok; then :
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6027 $as_echo "$CPP" >&6; }
6029 for ac_c_preproc_warn_flag
in '' yes
6031 # Use a header file that comes with gcc, so configuring glibc
6032 # with a fresh cross-compiler works.
6033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6034 # <limits.h> exists even on freestanding compilers.
6035 # On the NeXT, cc -E runs the code through the compiler's parser,
6036 # not just through cpp. "Syntax error" is here to catch this case.
6037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6040 # include <limits.h>
6042 # include <assert.h>
6046 if ac_fn_c_try_cpp
"$LINENO"; then :
6049 # Broken: fails on valid input.
6052 rm -f conftest.err conftest.i conftest.
$ac_ext
6054 # OK, works on sane cases. Now check whether nonexistent headers
6055 # can be detected and how.
6056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <ac_nonexistent.h>
6060 if ac_fn_c_try_cpp
"$LINENO"; then :
6061 # Broken: success on invalid input.
6064 # Passes both tests.
6068 rm -f conftest.err conftest.i conftest.
$ac_ext
6071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6072 rm -f conftest.i conftest.err conftest.
$ac_ext
6073 if $ac_preproc_ok; then :
6076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6078 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6079 See \`config.log' for more details" "$LINENO" 5; }
6083 ac_cpp
='$CXXCPP $CPPFLAGS'
6084 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6089 $as_echo_n "checking for inline... " >&6; }
6090 if ${ac_cv_c_inline+:} false
; then :
6091 $as_echo_n "(cached) " >&6
6094 for ac_kw
in inline __inline__ __inline
; do
6095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6099 static $ac_kw foo_t static_foo () {return 0; }
6100 $ac_kw foo_t foo () {return 0; }
6104 if ac_fn_cxx_try_compile
"$LINENO"; then :
6105 ac_cv_c_inline
=$ac_kw
6107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6108 test "$ac_cv_c_inline" != no
&& break
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6113 $as_echo "$ac_cv_c_inline" >&6; }
6115 case $ac_cv_c_inline in
6118 case $ac_cv_c_inline in
6120 *) ac_val
=$ac_cv_c_inline;;
6122 cat >>confdefs.h
<<_ACEOF
6124 #define inline $ac_val
6131 # Check whether --enable-largefile was given.
6132 if test "${enable_largefile+set}" = set; then :
6133 enableval
=$enable_largefile;
6136 if test "$enable_largefile" != no
; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6139 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6140 if ${ac_cv_sys_largefile_CC+:} false
; then :
6141 $as_echo_n "(cached) " >&6
6143 ac_cv_sys_largefile_CC
=no
6144 if test "$GCC" != yes; then
6147 # IRIX 6.2 and later do not support large files by default,
6148 # so use the C compiler's -n32 option if that helps.
6149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 #include <sys/types.h>
6152 /* Check that off_t can represent 2**63 - 1 correctly.
6153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6154 since some C++ compilers masquerading as C compilers
6155 incorrectly reject 9223372036854775807. */
6156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6158 && LARGE_OFF_T % 2147483647 == 1)
6168 if ac_fn_cxx_try_compile
"$LINENO"; then :
6171 rm -f core conftest.err conftest.
$ac_objext
6173 if ac_fn_cxx_try_compile
"$LINENO"; then :
6174 ac_cv_sys_largefile_CC
=' -n32'; break
6176 rm -f core conftest.err conftest.
$ac_objext
6180 rm -f conftest.
$ac_ext
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6184 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6185 if test "$ac_cv_sys_largefile_CC" != no
; then
6186 CC
=$CC$ac_cv_sys_largefile_CC
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6190 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6191 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6192 $as_echo_n "(cached) " >&6
6195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6198 /* Check that off_t can represent 2**63 - 1 correctly.
6199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6200 since some C++ compilers masquerading as C compilers
6201 incorrectly reject 9223372036854775807. */
6202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6204 && LARGE_OFF_T % 2147483647 == 1)
6214 if ac_fn_cxx_try_compile
"$LINENO"; then :
6215 ac_cv_sys_file_offset_bits
=no
; break
6217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 #define _FILE_OFFSET_BITS 64
6221 #include <sys/types.h>
6222 /* Check that off_t can represent 2**63 - 1 correctly.
6223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6224 since some C++ compilers masquerading as C compilers
6225 incorrectly reject 9223372036854775807. */
6226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6228 && LARGE_OFF_T % 2147483647 == 1)
6238 if ac_fn_cxx_try_compile
"$LINENO"; then :
6239 ac_cv_sys_file_offset_bits
=64; break
6241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6242 ac_cv_sys_file_offset_bits
=unknown
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6247 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6248 case $ac_cv_sys_file_offset_bits in #(
6251 cat >>confdefs.h
<<_ACEOF
6252 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6257 if test $ac_cv_sys_file_offset_bits = unknown
; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6259 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6260 if ${ac_cv_sys_large_files+:} false
; then :
6261 $as_echo_n "(cached) " >&6
6264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 #include <sys/types.h>
6267 /* Check that off_t can represent 2**63 - 1 correctly.
6268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6269 since some C++ compilers masquerading as C compilers
6270 incorrectly reject 9223372036854775807. */
6271 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6273 && LARGE_OFF_T % 2147483647 == 1)
6283 if ac_fn_cxx_try_compile
"$LINENO"; then :
6284 ac_cv_sys_large_files
=no
; break
6286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 #define _LARGE_FILES 1
6290 #include <sys/types.h>
6291 /* Check that off_t can represent 2**63 - 1 correctly.
6292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6293 since some C++ compilers masquerading as C compilers
6294 incorrectly reject 9223372036854775807. */
6295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6297 && LARGE_OFF_T % 2147483647 == 1)
6307 if ac_fn_cxx_try_compile
"$LINENO"; then :
6308 ac_cv_sys_large_files
=1; break
6310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6311 ac_cv_sys_large_files
=unknown
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6316 $as_echo "$ac_cv_sys_large_files" >&6; }
6317 case $ac_cv_sys_large_files in #(
6320 cat >>confdefs.h
<<_ACEOF
6321 #define _LARGE_FILES $ac_cv_sys_large_files
6331 # The cast to long int works around a bug in the HP C Compiler
6332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6334 # This bug is HP SR number 8606223364.
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6336 $as_echo_n "checking size of ino_t... " >&6; }
6337 if ${ac_cv_sizeof_ino_t+:} false
; then :
6338 $as_echo_n "(cached) " >&6
6340 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6343 if test "$ac_cv_type_ino_t" = yes; then
6344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6346 as_fn_error
77 "cannot compute sizeof (ino_t)
6347 See \`config.log' for more details" "$LINENO" 5; }
6349 ac_cv_sizeof_ino_t
=0
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6355 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6359 cat >>confdefs.h
<<_ACEOF
6360 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6364 # The cast to long int works around a bug in the HP C Compiler
6365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6367 # This bug is HP SR number 8606223364.
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6369 $as_echo_n "checking size of dev_t... " >&6; }
6370 if ${ac_cv_sizeof_dev_t+:} false
; then :
6371 $as_echo_n "(cached) " >&6
6373 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6376 if test "$ac_cv_type_dev_t" = yes; then
6377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6379 as_fn_error
77 "cannot compute sizeof (dev_t)
6380 See \`config.log' for more details" "$LINENO" 5; }
6382 ac_cv_sizeof_dev_t
=0
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6388 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6392 cat >>confdefs.h
<<_ACEOF
6393 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6398 # Select the right stat being able to handle 64bit inodes, if needed.
6399 if test "$enable_largefile" != no
; then
6400 case "$host, $build" in
6401 *-*-aix*,*|
*,*-*-aix*)
6402 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6404 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6411 # sizeof(char) is 1 by definition.
6412 # The cast to long int works around a bug in the HP C Compiler
6413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6415 # This bug is HP SR number 8606223364.
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6417 $as_echo_n "checking size of void *... " >&6; }
6418 if ${ac_cv_sizeof_void_p+:} false
; then :
6419 $as_echo_n "(cached) " >&6
6421 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6424 if test "$ac_cv_type_void_p" = yes; then
6425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6427 as_fn_error
77 "cannot compute sizeof (void *)
6428 See \`config.log' for more details" "$LINENO" 5; }
6430 ac_cv_sizeof_void_p
=0
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6436 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6440 cat >>confdefs.h
<<_ACEOF
6441 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6445 # The cast to long int works around a bug in the HP C Compiler
6446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6448 # This bug is HP SR number 8606223364.
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6450 $as_echo_n "checking size of short... " >&6; }
6451 if ${ac_cv_sizeof_short+:} false
; then :
6452 $as_echo_n "(cached) " >&6
6454 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6457 if test "$ac_cv_type_short" = yes; then
6458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6460 as_fn_error
77 "cannot compute sizeof (short)
6461 See \`config.log' for more details" "$LINENO" 5; }
6463 ac_cv_sizeof_short
=0
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6469 $as_echo "$ac_cv_sizeof_short" >&6; }
6473 cat >>confdefs.h
<<_ACEOF
6474 #define SIZEOF_SHORT $ac_cv_sizeof_short
6478 # The cast to long int works around a bug in the HP C Compiler
6479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6481 # This bug is HP SR number 8606223364.
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6483 $as_echo_n "checking size of int... " >&6; }
6484 if ${ac_cv_sizeof_int+:} false
; then :
6485 $as_echo_n "(cached) " >&6
6487 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6490 if test "$ac_cv_type_int" = yes; then
6491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6493 as_fn_error
77 "cannot compute sizeof (int)
6494 See \`config.log' for more details" "$LINENO" 5; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6502 $as_echo "$ac_cv_sizeof_int" >&6; }
6506 cat >>confdefs.h
<<_ACEOF
6507 #define SIZEOF_INT $ac_cv_sizeof_int
6511 # The cast to long int works around a bug in the HP C Compiler
6512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6514 # This bug is HP SR number 8606223364.
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6516 $as_echo_n "checking size of long... " >&6; }
6517 if ${ac_cv_sizeof_long+:} false
; then :
6518 $as_echo_n "(cached) " >&6
6520 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6523 if test "$ac_cv_type_long" = yes; then
6524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6526 as_fn_error
77 "cannot compute sizeof (long)
6527 See \`config.log' for more details" "$LINENO" 5; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6535 $as_echo "$ac_cv_sizeof_long" >&6; }
6539 cat >>confdefs.h
<<_ACEOF
6540 #define SIZEOF_LONG $ac_cv_sizeof_long
6544 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6545 if test "x$ac_cv_type_long_long" = xyes
; then :
6547 cat >>confdefs.h
<<_ACEOF
6548 #define HAVE_LONG_LONG 1
6551 # The cast to long int works around a bug in the HP C Compiler
6552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6554 # This bug is HP SR number 8606223364.
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6556 $as_echo_n "checking size of long long... " >&6; }
6557 if ${ac_cv_sizeof_long_long+:} false
; then :
6558 $as_echo_n "(cached) " >&6
6560 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6563 if test "$ac_cv_type_long_long" = yes; then
6564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6566 as_fn_error
77 "cannot compute sizeof (long long)
6567 See \`config.log' for more details" "$LINENO" 5; }
6569 ac_cv_sizeof_long_long
=0
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6575 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6579 cat >>confdefs.h
<<_ACEOF
6580 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6586 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6587 case $ac_cv_c_int8_t in #(
6591 cat >>confdefs.h
<<_ACEOF
6592 #define int8_t $ac_cv_c_int8_t
6597 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6598 case $ac_cv_c_int16_t in #(
6602 cat >>confdefs.h
<<_ACEOF
6603 #define int16_t $ac_cv_c_int16_t
6608 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6609 case $ac_cv_c_int32_t in #(
6613 cat >>confdefs.h
<<_ACEOF
6614 #define int32_t $ac_cv_c_int32_t
6619 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6620 case $ac_cv_c_int64_t in #(
6624 cat >>confdefs.h
<<_ACEOF
6625 #define int64_t $ac_cv_c_int64_t
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6632 $as_echo_n "checking for unsigned long long int... " >&6; }
6633 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6634 $as_echo_n "(cached) " >&6
6636 ac_cv_type_unsigned_long_long_int
=yes
6637 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6641 /* For now, do not test the preprocessor; as of 2007 there are too many
6642 implementations with broken preprocessors. Perhaps this can
6643 be revisited in 2012. In the meantime, code should not expect
6644 #if to work with literals wider than 32 bits. */
6645 /* Test literals. */
6646 long long int ll = 9223372036854775807ll;
6647 long long int nll = -9223372036854775807LL;
6648 unsigned long long int ull = 18446744073709551615ULL;
6649 /* Test constant expressions. */
6650 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6652 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6658 /* Test availability of runtime routines for shift and division. */
6659 long long int llmax = 9223372036854775807ll;
6660 unsigned long long int ullmax = 18446744073709551615ull;
6661 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6662 | (llmax / ll) | (llmax % ll)
6663 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6664 | (ullmax / ull) | (ullmax % ull));
6670 if ac_fn_cxx_try_link
"$LINENO"; then :
6673 ac_cv_type_unsigned_long_long_int
=no
6675 rm -f core conftest.err conftest.
$ac_objext \
6676 conftest
$ac_exeext conftest.
$ac_ext
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6680 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6681 if test $ac_cv_type_unsigned_long_long_int = yes; then
6683 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6690 $as_echo_n "checking for long long int... " >&6; }
6691 if ${ac_cv_type_long_long_int+:} false
; then :
6692 $as_echo_n "(cached) " >&6
6694 ac_cv_type_long_long_int
=yes
6695 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6696 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6697 if test $ac_cv_type_long_long_int = yes; then
6698 if test "$cross_compiling" = yes; then :
6701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6706 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6707 # define LLONG_MAX (HALF - 1 + HALF)
6712 long long int n = 1;
6716 long long int m = n << i;
6719 if (LLONG_MAX / 2 < m)
6727 if ac_fn_cxx_try_run
"$LINENO"; then :
6730 ac_cv_type_long_long_int
=no
6732 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6733 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6740 $as_echo "$ac_cv_type_long_long_int" >&6; }
6741 if test $ac_cv_type_long_long_int = yes; then
6743 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6749 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6750 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6752 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6755 test $ac_cv_type_long_long_int = yes \
6756 && ac_type
='long long int' \
6757 || ac_type
='long int'
6759 cat >>confdefs.h
<<_ACEOF
6760 #define intmax_t $ac_type
6767 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6768 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6770 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6773 for ac_type
in 'int' 'long int' 'long long int'; do
6774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776 $ac_includes_default
6780 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6782 return test_array [0];
6788 if ac_fn_cxx_try_compile
"$LINENO"; then :
6790 cat >>confdefs.h
<<_ACEOF
6791 #define intptr_t $ac_type
6796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6797 test -z "$ac_type" && break
6802 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6803 case $ac_cv_c_uint8_t in #(
6807 $as_echo "#define _UINT8_T 1" >>confdefs.h
6810 cat >>confdefs.h
<<_ACEOF
6811 #define uint8_t $ac_cv_c_uint8_t
6816 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6817 case $ac_cv_c_uint16_t in #(
6822 cat >>confdefs.h
<<_ACEOF
6823 #define uint16_t $ac_cv_c_uint16_t
6828 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6829 case $ac_cv_c_uint32_t in #(
6833 $as_echo "#define _UINT32_T 1" >>confdefs.h
6836 cat >>confdefs.h
<<_ACEOF
6837 #define uint32_t $ac_cv_c_uint32_t
6842 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6843 case $ac_cv_c_uint64_t in #(
6847 $as_echo "#define _UINT64_T 1" >>confdefs.h
6850 cat >>confdefs.h
<<_ACEOF
6851 #define uint64_t $ac_cv_c_uint64_t
6858 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6859 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6861 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6864 test $ac_cv_type_unsigned_long_long_int = yes \
6865 && ac_type
='unsigned long long int' \
6866 || ac_type
='unsigned long int'
6868 cat >>confdefs.h
<<_ACEOF
6869 #define uintmax_t $ac_type
6876 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6877 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6879 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6882 for ac_type
in 'unsigned int' 'unsigned long int' \
6883 'unsigned long long int'; do
6884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 $ac_includes_default
6890 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6892 return test_array [0];
6898 if ac_fn_cxx_try_compile
"$LINENO"; then :
6900 cat >>confdefs.h
<<_ACEOF
6901 #define uintptr_t $ac_type
6906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6907 test -z "$ac_type" && break
6924 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6925 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6928 # check what underlying integer type int64_t uses
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6930 $as_echo_n "checking for int64_t underlying type... " >&6; }
6931 if ${ac_cv_int64_t_type+:} false
; then :
6932 $as_echo_n "(cached) " >&6
6935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6938 #ifdef HAVE_STDINT_H
6941 template <typename T> struct X { };
6943 struct X<long> { typedef long t; };
6953 if ac_fn_cxx_try_compile
"$LINENO"; then :
6954 ac_cv_int64_t_type
=long
6956 ac_cv_int64_t_type
="long long"
6958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6961 $as_echo "$ac_cv_int64_t_type" >&6; }
6962 if test "$ac_cv_int64_t_type" = "long"; then
6964 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6970 #ifdef HAVE_STDINT_H
6973 template <typename T> struct X { };
6975 struct X<long long> { typedef long long t; };
6985 if ac_fn_cxx_try_compile
"$LINENO"; then :
6988 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6994 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6995 if ${ac_cv_std_swap_in_utility+:} false
; then :
6996 $as_echo_n "(cached) " >&6
6999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7007 int a, b; std::swap(a,b);
7012 if ac_fn_cxx_try_compile
"$LINENO"; then :
7013 ac_cv_std_swap_in_utility
=yes
7015 ac_cv_std_swap_in_utility
=no
7017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7020 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7021 if test $ac_cv_std_swap_in_utility = yes; then
7023 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7027 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7028 # If the host compiler is affected by the bug, and we build with optimization
7029 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7030 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7031 # Since there is no reliable feature check for the presence of this bug,
7032 # we simply use a GCC version number check. (This should never trigger for
7033 # stages 2 or 3 of a native bootstrap.)
7035 if test "$GCC" = yes; then
7036 saved_CXXFLAGS
="$CXXFLAGS"
7038 # The following test compilation will succeed if and only if $CXX accepts
7039 # -fno-strict-aliasing *and* is older than GCC 4.3.
7040 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7042 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7046 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7047 #error compiler not affected by placement new aliasing bug
7051 if ac_fn_cxx_try_compile
"$LINENO"; then :
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7053 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7060 CXXFLAGS
="$saved_CXXFLAGS"
7066 # ---------------------
7067 # Warnings and checking
7068 # ---------------------
7070 # Check $CC warning features (if it's GCC).
7071 # We want to use -pedantic, but we don't want warnings about
7074 # * overlong strings
7075 # * C++11 narrowing conversions in { }
7076 # So, we only use -pedantic if we can disable those warnings.
7078 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7079 # Check whether --enable-build-format-warnings was given.
7080 if test "${enable_build_format_warnings+set}" = set; then :
7081 enableval
=$enable_build_format_warnings;
7083 enable_build_format_warnings
=yes
7086 if test $enable_build_format_warnings = no
; then :
7092 ac_cpp
='$CXXCPP $CPPFLAGS'
7093 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7098 save_CXXFLAGS
="$CXXFLAGS"
7099 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7100 # Do the check with the no- prefix removed since gcc silently
7101 # accepts any -Wno-* option on purpose
7102 case $real_option in
7103 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7104 *) option
=$real_option ;;
7106 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7109 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7110 if eval \
${$as_acx_Woption+:} false
; then :
7111 $as_echo_n "(cached) " >&6
7114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7125 if ac_fn_cxx_try_compile
"$LINENO"; then :
7126 eval "$as_acx_Woption=yes"
7128 eval "$as_acx_Woption=no"
7130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7133 eval ac_res
=\$
$as_acx_Woption
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7135 $as_echo "$ac_res" >&6; }
7136 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7137 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
7140 CXXFLAGS
="$save_CXXFLAGS"
7142 ac_cpp
='$CXXCPP $CPPFLAGS'
7143 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7150 ac_cpp
='$CPP $CPPFLAGS'
7151 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7156 save_CFLAGS
="$CFLAGS"
7157 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
7158 # Do the check with the no- prefix removed since gcc silently
7159 # accepts any -Wno-* option on purpose
7160 case $real_option in
7161 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7162 *) option
=$real_option ;;
7164 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7167 $as_echo_n "checking whether $CC supports $option... " >&6; }
7168 if eval \
${$as_acx_Woption+:} false
; then :
7169 $as_echo_n "(cached) " >&6
7172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7183 if ac_fn_c_try_compile
"$LINENO"; then :
7184 eval "$as_acx_Woption=yes"
7186 eval "$as_acx_Woption=no"
7188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7191 eval ac_res
=\$
$as_acx_Woption
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7193 $as_echo "$ac_res" >&6; }
7194 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7195 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
7198 CFLAGS
="$save_CFLAGS"
7200 ac_cpp
='$CXXCPP $CPPFLAGS'
7201 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7207 ac_cpp
='$CXXCPP $CPPFLAGS'
7208 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7213 save_CXXFLAGS
="$CXXFLAGS"
7214 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
7215 # Do the check with the no- prefix removed since gcc silently
7216 # accepts any -Wno-* option on purpose
7217 case $real_option in
7218 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7219 *) option
=$real_option ;;
7221 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7224 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7225 if eval \
${$as_acx_Woption+:} false
; then :
7226 $as_echo_n "(cached) " >&6
7229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7240 if ac_fn_cxx_try_compile
"$LINENO"; then :
7241 eval "$as_acx_Woption=yes"
7243 eval "$as_acx_Woption=no"
7245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7248 eval ac_res
=\$
$as_acx_Woption
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7250 $as_echo "$ac_res" >&6; }
7251 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7252 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
7255 CXXFLAGS
="$save_CXXFLAGS"
7257 ac_cpp
='$CXXCPP $CPPFLAGS'
7258 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7264 ac_cpp
='$CPP $CPPFLAGS'
7265 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7270 save_CFLAGS
="$CFLAGS"
7271 for real_option
in -Wold-style-definition -Wc++-compat; do
7272 # Do the check with the no- prefix removed since gcc silently
7273 # accepts any -Wno-* option on purpose
7274 case $real_option in
7275 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7276 *) option
=$real_option ;;
7278 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7281 $as_echo_n "checking whether $CC supports $option... " >&6; }
7282 if eval \
${$as_acx_Woption+:} false
; then :
7283 $as_echo_n "(cached) " >&6
7286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7297 if ac_fn_c_try_compile
"$LINENO"; then :
7298 eval "$as_acx_Woption=yes"
7300 eval "$as_acx_Woption=no"
7302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7305 eval ac_res
=\$
$as_acx_Woption
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7307 $as_echo "$ac_res" >&6; }
7308 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7309 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
7312 CFLAGS
="$save_CFLAGS"
7314 ac_cpp
='$CXXCPP $CPPFLAGS'
7315 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7321 ac_cpp
='$CXXCPP $CPPFLAGS'
7322 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7326 # Do the check with the no- prefix removed from the warning options
7327 # since gcc silently accepts any -Wno-* option on purpose
7328 if test "$GXX" = yes; then :
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7330 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7331 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7332 $as_echo_n "(cached) " >&6
7334 save_CXXFLAGS
="$CXXFLAGS"
7335 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7347 if ac_fn_cxx_try_compile
"$LINENO"; then :
7348 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7350 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7353 CXXFLAGS
="$save_CXXFLAGS"
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7356 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7357 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7358 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7363 ac_cpp
='$CXXCPP $CPPFLAGS'
7364 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7370 ac_cpp
='$CXXCPP $CPPFLAGS'
7371 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7372 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7373 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7375 # Check whether --enable-werror-always was given.
7376 if test "${enable_werror_always+set}" = set; then :
7377 enableval
=$enable_werror_always;
7379 enable_werror_always
=no
7382 if test $enable_werror_always = yes; then :
7383 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7387 ac_cpp
='$CXXCPP $CPPFLAGS'
7388 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7389 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7390 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7394 # The above macros do nothing if the compiler is not GCC. However, the
7395 # Makefile has more goo to add other flags, so these variables are used
7396 # to enable warnings only for GCC.
7399 if test "x$GCC" = "xyes"; then
7400 warn_cflags
='$(GCC_WARN_CFLAGS)'
7401 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7406 # Disable exceptions and RTTI if building with g++
7408 ac_cpp
='$CPP $CPPFLAGS'
7409 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7414 save_CFLAGS
="$CFLAGS"
7415 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7416 # Do the check with the no- prefix removed since gcc silently
7417 # accepts any -Wno-* option on purpose
7418 case $real_option in
7419 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7420 *) option
=$real_option ;;
7422 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7425 $as_echo_n "checking whether $CC supports $option... " >&6; }
7426 if eval \
${$as_acx_Woption+:} false
; then :
7427 $as_echo_n "(cached) " >&6
7430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7441 if ac_fn_c_try_compile
"$LINENO"; then :
7442 eval "$as_acx_Woption=yes"
7444 eval "$as_acx_Woption=no"
7446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7449 eval ac_res
=\$
$as_acx_Woption
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7451 $as_echo "$ac_res" >&6; }
7452 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7453 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7456 CFLAGS
="$save_CFLAGS"
7458 ac_cpp
='$CXXCPP $CPPFLAGS'
7459 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7465 # Enable expensive internal checks
7467 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7471 # Check whether --enable-checking was given.
7472 if test "${enable_checking+set}" = set; then :
7473 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7476 # Determine the default checks.
7477 if test x
$is_release = x
; then
7478 ac_checking_flags
=yes,extra
7480 ac_checking_flags
=release
7484 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7485 for check
in release
$ac_checking_flags
7488 # these set all the flags to specific states
7489 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7490 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7491 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7492 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7493 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7494 ac_types_checking
=1 ;;
7495 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7496 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7497 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7498 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7499 ac_tree_checking
= ; ac_valgrind_checking
= ;
7500 ac_types_checking
= ;;
7501 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7502 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7503 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7504 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7505 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7506 ac_types_checking
=1 ;;
7507 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7508 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7509 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7510 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7511 ac_tree_checking
= ; ac_valgrind_checking
= ;
7512 ac_types_checking
= ;;
7513 # these enable particular checks
7514 assert
) ac_assert_checking
=1 ;;
7515 df
) ac_df_checking
=1 ;;
7516 extra
) ac_extra_checking
=1 ;;
7517 fold) ac_fold_checking
=1 ;;
7518 gc
) ac_gc_checking
=1 ;;
7519 gcac
) ac_gc_always_collect
=1 ;;
7520 gimple
) ac_gimple_checking
=1 ;;
7521 misc
) ac_checking
=1 ;;
7522 rtl
) ac_rtl_checking
=1 ;;
7523 rtlflag
) ac_rtlflag_checking
=1 ;;
7524 runtime
) ac_runtime_checking
=1 ;;
7525 tree
) ac_tree_checking
=1 ;;
7526 types
) ac_types_checking
=1 ;;
7527 valgrind
) ac_valgrind_checking
=1 ;;
7528 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7534 if test x
$ac_checking != x
; then
7536 $as_echo "#define CHECKING_P 1" >>confdefs.h
7538 nocommon_flag
=-fno-common
7540 $as_echo "#define CHECKING_P 0" >>confdefs.h
7544 if test x
$ac_extra_checking != x
; then
7546 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7549 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7552 if test x
$ac_df_checking != x
; then
7554 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7557 if test x
$ac_assert_checking != x
; then
7559 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7562 if test x
$ac_gimple_checking != x
; then
7564 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7568 if test x
$ac_runtime_checking != x
; then
7570 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7573 if test x
$ac_tree_checking != x
; then
7575 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7579 if test x
$ac_types_checking != x
; then
7581 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7585 if test x
$ac_rtl_checking != x
; then
7587 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7590 if test x
$ac_rtlflag_checking != x
; then
7592 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7595 if test x
$ac_gc_checking != x
; then
7597 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7600 if test x
$ac_gc_always_collect != x
; then
7602 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7605 if test x
$ac_fold_checking != x
; then
7607 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7610 valgrind_path_defines
=
7613 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7614 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7622 # It is certainly possible that there's valgrind but no valgrind.h.
7623 # GCC relies on making annotations so we must have both.
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7625 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 #include <valgrind/memcheck.h>
7629 #ifndef VALGRIND_DISCARD
7630 #error VALGRIND_DISCARD not defined
7633 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7634 gcc_cv_header_valgrind_memcheck_h
=yes
7636 gcc_cv_header_valgrind_memcheck_h
=no
7638 rm -f conftest.err conftest.i conftest.
$ac_ext
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7640 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7642 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <memcheck.h>
7646 #ifndef VALGRIND_DISCARD
7647 #error VALGRIND_DISCARD not defined
7650 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7651 gcc_cv_header_memcheck_h
=yes
7653 gcc_cv_header_memcheck_h
=no
7655 rm -f conftest.err conftest.i conftest.
$ac_ext
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7657 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7658 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7660 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7663 if test $gcc_cv_header_memcheck_h = yes; then
7665 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7669 if test x
$ac_valgrind_checking != x
; then
7671 # Prepare PATH_SEPARATOR.
7672 # The user is always right.
7673 if test "${PATH_SEPARATOR+set}" != set; then
7674 echo "#! /bin/sh" >conf$$.sh
7675 echo "exit 0" >>conf$$.sh
7677 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7685 # Find out how to test for executable files. Don't use a zero-byte file,
7686 # as systems may use methods other than mode bits to determine executability.
7687 cat >conf$$.
file <<_ASEOF
7691 chmod +x conf$$.
file
7692 if test -x conf$$.
file >/dev
/null
2>&1; then
7693 ac_executable_p
="test -x"
7695 ac_executable_p
="test -f"
7699 # Extract the first word of "valgrind", so it can be a program name with args.
7700 set dummy valgrind
; ac_word
=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if ${ac_cv_path_valgrind_path+:} false
; then :
7704 $as_echo_n "(cached) " >&6
7706 case "$valgrind_path" in
7708 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7711 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7712 for ac_dir
in $PATH; do
7714 test -z "$ac_dir" && ac_dir
=.
7715 for ac_exec_ext
in '' $ac_executable_extensions; do
7716 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7717 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7718 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7728 valgrind_path
="$ac_cv_path_valgrind_path"
7729 if test -n "$valgrind_path"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7731 $as_echo "$valgrind_path" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7737 if test "x$valgrind_path" = "x" \
7738 ||
(test $have_valgrind_h = no \
7739 && test $gcc_cv_header_memcheck_h = no \
7740 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7741 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7743 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7744 valgrind_command
="$valgrind_path -q"
7746 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7752 # Enable code coverage collection
7753 # Check whether --enable-coverage was given.
7754 if test "${enable_coverage+set}" = set; then :
7755 enableval
=$enable_coverage; case "${enableval}" in
7757 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7760 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7763 # a.k.a. --disable-coverage
7767 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7776 # Check whether --enable-gather-detailed-mem-stats was given.
7777 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7778 enableval
=$enable_gather_detailed_mem_stats;
7780 enable_gather_detailed_mem_stats
=no
7783 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7785 cat >>confdefs.h
<<_ACEOF
7786 #define GATHER_STATISTICS $gather_stats
7790 # Check whether --enable-valgrind-annotations was given.
7791 if test "${enable_valgrind_annotations+set}" = set; then :
7792 enableval
=$enable_valgrind_annotations;
7794 enable_valgrind_annotations
=no
7797 if test x
$enable_valgrind_annotations != xno \
7798 ||
test x
$ac_valgrind_checking != x
; then
7799 if (test $have_valgrind_h = no \
7800 && test $gcc_cv_header_memcheck_h = no \
7801 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7802 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7805 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7809 # -------------------------------
7810 # Miscenalleous configure options
7811 # -------------------------------
7813 # Determine whether or not multilibs are enabled.
7814 # Check whether --enable-multilib was given.
7815 if test "${enable_multilib+set}" = set; then :
7816 enableval
=$enable_multilib;
7823 # Determine whether or not multiarch is enabled.
7824 # Check whether --enable-multiarch was given.
7825 if test "${enable_multiarch+set}" = set; then :
7826 enableval
=$enable_multiarch; case "${enableval}" in
7827 yes|no|auto
) enable_multiarch
=$enableval;;
7828 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7831 enable_multiarch
=auto
7834 if test x
${enable_multiarch} = xauto
; then
7835 if test x
${with_native_system_header_dir} != x
; then
7836 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7839 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7840 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7845 $as_echo_n "checking for multiarch configuration... " >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7848 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7850 # needed for setting the multiarch name for soft-float/hard-float ABIs
7854 # default stack clash protection guard size as power of twos in bytes.
7855 # Please keep these in sync with params.def.
7859 # Keep the default value when the option is not used to 0, this allows us to
7860 # distinguish between the cases where the user specifially set a value via
7861 # configure and when the normal default value is used.
7863 # Check whether --with-stack-clash-protection-guard-size was given.
7864 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7865 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7867 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7870 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7871 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7872 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7873 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
7877 cat >>confdefs.h
<<_ACEOF
7878 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7882 # Enable __cxa_atexit for C++.
7883 # Check whether --enable-__cxa_atexit was given.
7884 if test "${enable___cxa_atexit+set}" = set; then :
7885 enableval
=$enable___cxa_atexit;
7889 # Enable C extension for decimal float if target supports it.
7891 # Check whether --enable-decimal-float was given.
7892 if test "${enable_decimal_float+set}" = set; then :
7893 enableval
=$enable_decimal_float;
7894 case $enable_decimal_float in
7895 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7896 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7897 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7904 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7905 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7906 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7907 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7908 enable_decimal_float
=yes
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7912 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7913 enable_decimal_float
=no
7920 # x86's use BID format instead of DPD
7921 case x
$enable_decimal_float in
7924 aarch64
* | i?
86*-*-* | x86_64
*-*-*)
7925 enable_decimal_float
=bid
7928 enable_decimal_float
=dpd
7931 default_decimal_float
=$enable_decimal_float
7934 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7935 # dependency on libdecnumber.
7936 default_decimal_float
=dpd
7943 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7945 cat >>confdefs.h
<<_ACEOF
7946 #define ENABLE_DECIMAL_FLOAT $dfp
7950 # Use default_decimal_float for dependency.
7951 enable_decimal_float
=$default_decimal_float
7953 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7955 cat >>confdefs.h
<<_ACEOF
7956 #define ENABLE_DECIMAL_BID_FORMAT $bid
7960 # Enable C extension for fixed-point arithmetic.
7961 # Check whether --enable-fixed-point was given.
7962 if test "${enable_fixed_point+set}" = set; then :
7963 enableval
=$enable_fixed_point;
7968 enable_fixed_point
=yes
7972 enable_fixed_point
=yes
7975 enable_fixed_point
=yes
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7979 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7980 enable_fixed_point
=no
7988 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7990 cat >>confdefs.h
<<_ACEOF
7991 #define ENABLE_FIXED_POINT $fixedpoint
7996 # Pass with no value to take the default
7997 # Pass with a value to specify a thread package
7998 # Check whether --enable-threads was given.
7999 if test "${enable_threads+set}" = set; then :
8000 enableval
=$enable_threads;
8006 # Check whether --enable-tls was given.
8007 if test "${enable_tls+set}" = set; then :
8008 enableval
=$enable_tls;
8011 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
8012 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8020 # Check whether --enable-vtable-verify was given.
8021 if test "${enable_vtable_verify+set}" = set; then :
8022 enableval
=$enable_vtable_verify;
8024 enable_vtable_verify
=no
8027 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8029 cat >>confdefs.h
<<_ACEOF
8030 #define ENABLE_VTABLE_VERIFY $vtable_verify
8034 # Check whether --enable-analyzer was given.
8035 if test "${enable_analyzer+set}" = set; then :
8036 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
8046 cat >>confdefs.h
<<_ACEOF
8047 #define ENABLE_ANALYZER $analyzer
8051 # Check whether --enable-objc-gc was given.
8052 if test "${enable_objc_gc+set}" = set; then :
8053 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
8064 # Check whether --with-dwarf2 was given.
8065 if test "${with_dwarf2+set}" = set; then :
8066 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
8072 # Check whether --enable-shared was given.
8073 if test "${enable_shared+set}" = set; then :
8074 enableval
=$enable_shared;
8075 case $enable_shared in
8079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
8080 for pkg
in $enableval; do
8081 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
8095 # Check whether --enable-gcov was given.
8096 if test "${enable_gcov+set}" = set; then :
8097 enableval
=$enable_gcov;
8113 # Check whether --with-specs was given.
8114 if test "${with_specs+set}" = set; then :
8115 withval
=$with_specs; CONFIGURE_SPECS
=$withval
8125 # Check whether --with-pkgversion was given.
8126 if test "${with_pkgversion+set}" = set; then :
8127 withval
=$with_pkgversion; case "$withval" in
8128 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
8130 *) PKGVERSION
="($withval) " ;;
8141 # Check whether --with-bugurl was given.
8142 if test "${with_bugurl+set}" = set; then :
8143 withval
=$with_bugurl; case "$withval" in
8144 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
8147 *) BUGURL
="$withval"
8151 BUGURL
="https://gcc.gnu.org/bugs/"
8161 REPORT_BUGS_TO
="<$BUGURL>"
8162 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8169 # Allow overriding the default URL for documentation
8171 # Check whether --with-documentation-root-url was given.
8172 if test "${with_documentation_root_url+set}" = set; then :
8173 withval
=$with_documentation_root_url; case "$withval" in
8174 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8175 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
8176 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
8177 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
8180 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
8185 cat >>confdefs.h
<<_ACEOF
8186 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8190 # Allow overriding the default URL for GCC changes
8192 # Check whether --with-changes-root-url was given.
8193 if test "${with_changes_root_url+set}" = set; then :
8194 withval
=$with_changes_root_url; case "$withval" in
8195 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8196 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
8197 */) CHANGES_ROOT_URL
="$withval" ;;
8198 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
8201 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
8206 cat >>confdefs.h
<<_ACEOF
8207 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8211 # Sanity check enable_languages in case someone does not run the toplevel
8212 # configure # script.
8213 # Check whether --enable-languages was given.
8214 if test "${enable_languages+set}" = set; then :
8215 enableval
=$enable_languages; case ,${enable_languages}, in
8217 # go safe -- we cannot be much sure without the toplevel
8219 # analysis of which target libs are present and usable
8223 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
8228 enable_languages
=c
,${enable_languages}
8236 # If top-level libada has been disabled, then wire in install-gnatlib
8237 # invocation with `make install', so that one can build and install
8238 # the library manually with `make -C gcc all gnatlib gnattools install'.
8239 if test x
"$enable_libada" = xno
; then
8240 gnat_install_lib
=gnat-install-lib
8246 if test x
"$enable_as_accelerator_for" != x
; then
8248 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8250 enable_as_accelerator
=yes
8253 # In this case we expect offload compiler to be built as native, so we
8254 # need to rename the driver to avoid clashes with host's drivers.
8255 program_transform_name
="s&^&${target}-&" ;;
8257 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8258 program_transform_name
=`echo $program_transform_name | sed $sedscript`
8259 accel_dir_suffix
=/accel
/${target_noncanonical}
8260 real_target_noncanonical
=${enable_as_accelerator_for}
8266 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8267 tgt
=`echo $tgt | sed 's/=.*//'`
8271 *-intelmic-* |
*-intelmicemul-*)
8272 omp_device_property
=omp-device-properties-i386
8273 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8276 omp_device_property
=omp-device-properties-gcn
8277 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8280 omp_device_property
=omp-device-properties-nvptx
8281 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8284 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
8287 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
8288 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
8290 if test x
"$offload_targets" = x
; then
8291 offload_targets
=$tgt
8293 offload_targets
="$offload_targets,$tgt"
8300 cat >>confdefs.h
<<_ACEOF
8301 #define OFFLOAD_TARGETS "$offload_targets"
8304 if test x
"$enable_offloading" != x
; then
8306 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8310 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8314 if test "x$enable_offload_defaulted" = xyes
; then
8316 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8321 # Check whether --with-multilib-list was given.
8322 if test "${with_multilib_list+set}" = set; then :
8323 withval
=$with_multilib_list; :
8325 with_multilib_list
=default
8330 # Check whether --with-multilib-generator was given.
8331 if test "${with_multilib_generator+set}" = set; then :
8332 withval
=$with_multilib_generator; :
8334 with_multilib_generator
=default
8338 # -------------------------
8339 # Checks for other programs
8340 # -------------------------
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8343 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8345 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8346 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8347 $as_echo_n "(cached) " >&6
8349 cat >conftest.
make <<\_ACEOF
8352 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8354 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8355 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8357 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8359 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8363 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8365 $as_echo "yes" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 SET_MAKE
="MAKE=${MAKE-make}"
8374 # Find some useful tools
8375 for ac_prog
in gawk mawk nawk
awk
8377 # Extract the first word of "$ac_prog", so it can be a program name with args.
8378 set dummy
$ac_prog; ac_word
=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_AWK+:} false
; then :
8382 $as_echo_n "(cached) " >&6
8384 if test -n "$AWK"; then
8385 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir
=.
8392 for ac_exec_ext
in '' $ac_executable_extensions; do
8393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_AWK
="$ac_prog"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 if test -n "$AWK"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8407 $as_echo "$AWK" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8414 test -n "$AWK" && break
8417 # We need awk to create options.cc and options.h.
8418 # Bail out if it's missing.
8420 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8424 $as_echo_n "checking whether ln -s works... " >&6; }
8425 if ${gcc_cv_prog_LN_S+:} false
; then :
8426 $as_echo_n "(cached) " >&6
8428 rm -f conftestdata_t
8429 echo >conftestdata_f
8430 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8432 gcc_cv_prog_LN_S
="ln -s"
8434 if ln conftestdata_f conftestdata_t
2>/dev
/null
8438 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8440 gcc_cv_prog_LN_S
="cp -p"
8446 rm -f conftestdata_f conftestdata_t
8449 LN_S
="$gcc_cv_prog_LN_S"
8450 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8454 if test "$gcc_cv_prog_LN_S" = "ln"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8456 $as_echo "no, using ln" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8459 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8464 $as_echo_n "checking whether ln works... " >&6; }
8465 if ${acx_cv_prog_LN+:} false
; then :
8466 $as_echo_n "(cached) " >&6
8468 rm -f conftestdata_t
8469 echo >conftestdata_f
8470 if ln conftestdata_f conftestdata_t
2>/dev
/null
8476 rm -f conftestdata_f conftestdata_t
8479 if test $acx_cv_prog_LN = no
; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8482 $as_echo "no, using $LN" >&6; }
8484 LN
="$acx_cv_prog_LN"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8486 $as_echo "yes" >&6; }
8489 if test -n "$ac_tool_prefix"; then
8490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8491 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if ${ac_cv_prog_RANLIB+:} false
; then :
8495 $as_echo_n "(cached) " >&6
8497 if test -n "$RANLIB"; then
8498 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8504 test -z "$as_dir" && as_dir
=.
8505 for ac_exec_ext
in '' $ac_executable_extensions; do
8506 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 RANLIB
=$ac_cv_prog_RANLIB
8518 if test -n "$RANLIB"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8520 $as_echo "$RANLIB" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8528 if test -z "$ac_cv_prog_RANLIB"; then
8529 ac_ct_RANLIB
=$RANLIB
8530 # Extract the first word of "ranlib", so it can be a program name with args.
8531 set dummy ranlib
; ac_word
=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8535 $as_echo_n "(cached) " >&6
8537 if test -n "$ac_ct_RANLIB"; then
8538 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8544 test -z "$as_dir" && as_dir
=.
8545 for ac_exec_ext
in '' $ac_executable_extensions; do
8546 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8558 if test -n "$ac_ct_RANLIB"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8560 $as_echo "$ac_ct_RANLIB" >&6; }
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8566 if test "x$ac_ct_RANLIB" = x
; then
8569 case $cross_compiling:$ac_tool_warned in
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned
=yes ;;
8575 RANLIB
=$ac_ct_RANLIB
8578 RANLIB
="$ac_cv_prog_RANLIB"
8584 # Find a good install program. We prefer a C program (faster),
8585 # so one script is as good as another. But avoid the broken or
8586 # incompatible versions:
8587 # SysV /etc/install, /usr/sbin/install
8588 # SunOS /usr/etc/install
8589 # IRIX /sbin/install
8591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8593 # ./install, which can be erroneously created by make from ./install.sh.
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8595 $as_echo_n "checking for a BSD compatible install... " >&6; }
8596 if test -z "$INSTALL"; then
8597 if ${ac_cv_path_install+:} false
; then :
8598 $as_echo_n "(cached) " >&6
8600 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8601 for ac_dir
in $PATH; do
8602 # Account for people who put trailing slashes in PATH elements.
8604 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8606 # OSF1 and SCO ODT 3.0 have their own names for install.
8607 for ac_prog
in ginstall scoinst
install; do
8608 if test -f $ac_dir/$ac_prog; then
8609 if test $ac_prog = install &&
8610 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8611 # AIX install. It has an incompatible calling convention.
8612 # OSF/1 installbsd also uses dspmsg, but is usable.
8615 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8626 if test "${ac_cv_path_install+set}" = set; then
8627 INSTALL
="$ac_cv_path_install"
8629 # As a last resort, use the slow shell script. We don't cache a
8630 # path for INSTALL within a source directory, because that will
8631 # break other packages using the cache if that directory is
8632 # removed, or if the path is relative.
8633 INSTALL
="$ac_install_sh"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8637 $as_echo "$INSTALL" >&6; }
8639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8640 # It thinks the first close brace ends the variable substitution.
8641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8643 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8646 # See if cmp has --ignore-initial.
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8648 $as_echo_n "checking for cmp's capabilities... " >&6; }
8649 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8650 $as_echo_n "(cached) " >&6
8654 gcc_cv_prog_cmp_skip
=slowcompare
8655 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8656 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8659 gcc_cv_prog_cmp_skip
=gnucompare
8662 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8663 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8664 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8667 gcc_cv_prog_cmp_skip
=fastcompare
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8675 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8676 make_compare_target
=$gcc_cv_prog_cmp_skip
8680 # See if we have the mktemp command.
8681 # Extract the first word of "mktemp", so it can be a program name with args.
8682 set dummy mktemp
; ac_word
=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8686 $as_echo_n "(cached) " >&6
8688 if test -n "$have_mktemp_command"; then
8689 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8695 test -z "$as_dir" && as_dir
=.
8696 for ac_exec_ext
in '' $ac_executable_extensions; do
8697 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_have_mktemp_command
="yes"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8709 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8710 if test -n "$have_mktemp_command"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8712 $as_echo "$have_mktemp_command" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8720 # See if makeinfo has been installed and is modern enough
8721 # that we can use it.
8723 # Extract the first word of "makeinfo", so it can be a program name with args.
8724 set dummy makeinfo
; ac_word
=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8728 $as_echo_n "(cached) " >&6
8730 if test -n "$MAKEINFO"; then
8731 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8737 test -z "$as_dir" && as_dir
=.
8738 for ac_exec_ext
in '' $ac_executable_extensions; do
8739 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8740 ac_cv_prog_MAKEINFO
="makeinfo"
8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 MAKEINFO
=$ac_cv_prog_MAKEINFO
8751 if test -n "$MAKEINFO"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8753 $as_echo "$MAKEINFO" >&6; }
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8760 if test -n "$MAKEINFO"; then
8761 # Found it, now check the version.
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8763 $as_echo_n "checking for modern makeinfo... " >&6; }
8764 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8765 $as_echo_n "(cached) " >&6
8767 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8768 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8770 case $ac_prog_version in
8771 '') gcc_cv_prog_makeinfo_modern
=no
;;
8772 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8773 *) gcc_cv_prog_makeinfo_modern
=no
;;
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8778 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8780 gcc_cv_prog_makeinfo_modern
=no
8782 if test $gcc_cv_prog_makeinfo_modern = no
; then
8783 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8786 if test $gcc_cv_prog_makeinfo_modern = no
; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8788 *** Makeinfo is missing or too old.
8789 *** Info documentation will not be built." >&5
8790 $as_echo "$as_me: WARNING:
8791 *** Makeinfo is missing or too old.
8792 *** Info documentation will not be built." >&2;}
8799 # Is pod2man recent enough to regenerate manpages?
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8801 $as_echo_n "checking for recent Pod::Man... " >&6; }
8802 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8804 $as_echo "yes" >&6; }
8805 GENERATED_MANPAGES
=generated-manpages
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8813 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8818 # Extract the first word of "$ac_prog", so it can be a program name with args.
8819 set dummy
$ac_prog; ac_word
=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_FLEX+:} false
; then :
8823 $as_echo_n "(cached) " >&6
8825 if test -n "$FLEX"; then
8826 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir
=.
8833 for ac_exec_ext
in '' $ac_executable_extensions; do
8834 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_FLEX
="$ac_prog"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 FLEX
=$ac_cv_prog_FLEX
8846 if test -n "$FLEX"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8848 $as_echo "$FLEX" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8855 test -n "$FLEX" && break
8857 test -n "$FLEX" || FLEX
="$MISSING flex"
8861 for ac_prog
in bison
8863 # Extract the first word of "$ac_prog", so it can be a program name with args.
8864 set dummy
$ac_prog; ac_word
=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if ${ac_cv_prog_BISON+:} false
; then :
8868 $as_echo_n "(cached) " >&6
8870 if test -n "$BISON"; then
8871 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8877 test -z "$as_dir" && as_dir
=.
8878 for ac_exec_ext
in '' $ac_executable_extensions; do
8879 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8880 ac_cv_prog_BISON
="$ac_prog"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 BISON
=$ac_cv_prog_BISON
8891 if test -n "$BISON"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8893 $as_echo "$BISON" >&6; }
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8900 test -n "$BISON" && break
8902 test -n "$BISON" || BISON
="$MISSING bison"
8905 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8906 # check for build == host before using them.
8909 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8910 && test -d ..
/binutils
; then
8911 NM
='${objdir}/../binutils/nm-new'
8913 # Extract the first word of "nm", so it can be a program name with args.
8914 set dummy nm
; ac_word
=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if ${ac_cv_prog_NM+:} false
; then :
8918 $as_echo_n "(cached) " >&6
8920 if test -n "$NM"; then
8921 ac_cv_prog_NM
="$NM" # Let the user override the test.
8923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8927 test -z "$as_dir" && as_dir
=.
8928 for ac_exec_ext
in '' $ac_executable_extensions; do
8929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8942 if test -n "$NM"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8944 $as_echo "$NM" >&6; }
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8954 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8955 && test -d ..
/binutils
; then
8956 AR
='${objdir}/../binutils/ar'
8958 # Extract the first word of "ar", so it can be a program name with args.
8959 set dummy
ar; ac_word
=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if ${ac_cv_prog_AR+:} false
; then :
8963 $as_echo_n "(cached) " >&6
8965 if test -n "$AR"; then
8966 ac_cv_prog_AR
="$AR" # Let the user override the test.
8968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8972 test -z "$as_dir" && as_dir
=.
8973 for ac_exec_ext
in '' $ac_executable_extensions; do
8974 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8987 if test -n "$AR"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8989 $as_echo "$AR" >&6; }
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8998 # The jit documentation looks better if built with sphinx, but can be
8999 # built with texinfo if sphinx is not available.
9000 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9001 # Extract the first word of "sphinx-build", so it can be a program name with args.
9002 set dummy sphinx-build
; ac_word
=$2
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004 $as_echo_n "checking for $ac_word... " >&6; }
9005 if ${ac_cv_prog_doc_build_sys+:} false
; then :
9006 $as_echo_n "(cached) " >&6
9008 if test -n "$doc_build_sys"; then
9009 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
9011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9015 test -z "$as_dir" && as_dir
=.
9016 for ac_exec_ext
in '' $ac_executable_extensions; do
9017 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9018 ac_cv_prog_doc_build_sys
="sphinx"
9019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
9029 doc_build_sys
=$ac_cv_prog_doc_build_sys
9030 if test -n "$doc_build_sys"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9032 $as_echo "$doc_build_sys" >&6; }
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9040 # --------------------
9041 # Checks for C headers
9042 # --------------------
9044 # Need to reject headers which give warnings, so that the -Werror bootstrap
9045 # works later. *sigh* This needs to come before all header checks.
9047 ac_c_preproc_warn_flag
=yes
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9050 $as_echo_n "checking for ANSI C header files... " >&6; }
9051 if ${ac_cv_header_stdc+:} false
; then :
9052 $as_echo_n "(cached) " >&6
9054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9069 if ac_fn_cxx_try_compile
"$LINENO"; then :
9070 ac_cv_header_stdc
=yes
9072 ac_cv_header_stdc
=no
9074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9076 if test $ac_cv_header_stdc = yes; then
9077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9084 $EGREP "memchr" >/dev
/null
2>&1; then :
9087 ac_cv_header_stdc
=no
9093 if test $ac_cv_header_stdc = yes; then
9094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9101 $EGREP "free" >/dev
/null
2>&1; then :
9104 ac_cv_header_stdc
=no
9110 if test $ac_cv_header_stdc = yes; then
9111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9112 if test "$cross_compiling" = yes; then :
9115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9119 #if ((' ' & 0x0FF) == 0x020)
9120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9123 # define ISLOWER(c) \
9124 (('a' <= (c) && (c) <= 'i') \
9125 || ('j' <= (c) && (c) <= 'r') \
9126 || ('s' <= (c) && (c) <= 'z'))
9127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9135 for (i = 0; i < 256; i++)
9136 if (XOR (islower (i), ISLOWER (i))
9137 || toupper (i) != TOUPPER (i))
9142 if ac_fn_cxx_try_run
"$LINENO"; then :
9145 ac_cv_header_stdc
=no
9147 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9148 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9154 $as_echo "$ac_cv_header_stdc" >&6; }
9155 if test $ac_cv_header_stdc = yes; then
9157 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9162 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9163 if ${ac_cv_header_time+:} false
; then :
9164 $as_echo_n "(cached) " >&6
9166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #include <sys/types.h>
9169 #include <sys/time.h>
9175 if ((struct tm *) 0)
9181 if ac_fn_cxx_try_compile
"$LINENO"; then :
9182 ac_cv_header_time
=yes
9184 ac_cv_header_time
=no
9186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9189 $as_echo "$ac_cv_header_time" >&6; }
9190 if test $ac_cv_header_time = yes; then
9192 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9197 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9198 if ${gcc_cv_header_string+:} false
; then :
9199 $as_echo_n "(cached) " >&6
9201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9204 #include <strings.h>
9213 if ac_fn_cxx_try_compile
"$LINENO"; then :
9214 gcc_cv_header_string
=yes
9216 gcc_cv_header_string
=no
9218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9221 $as_echo "$gcc_cv_header_string" >&6; }
9222 if test $gcc_cv_header_string = yes; then
9224 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9229 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9230 if ${ac_cv_header_sys_wait_h+:} false
; then :
9231 $as_echo_n "(cached) " >&6
9233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 #include <sys/types.h>
9236 #include <sys/wait.h>
9238 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9241 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9249 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9254 if ac_fn_cxx_try_compile
"$LINENO"; then :
9255 ac_cv_header_sys_wait_h
=yes
9257 ac_cv_header_sys_wait_h
=no
9259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9262 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9263 if test $ac_cv_header_sys_wait_h = yes; then
9265 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9270 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9271 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
9272 $as_echo_n "(cached) " >&6
9274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 #include <sys/types.h>
9277 #include <termios.h>
9283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9284 $EGREP "yes" >/dev
/null
2>&1; then :
9285 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
9287 ac_cv_sys_tiocgwinsz_in_termios_h
=no
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9293 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9295 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9297 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9298 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
9299 $as_echo_n "(cached) " >&6
9301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #include <sys/types.h>
9304 #include <sys/ioctl.h>
9310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9311 $EGREP "yes" >/dev
/null
2>&1; then :
9312 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
9314 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9320 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9322 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9324 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9329 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
9330 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
9331 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
9332 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9334 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9335 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
9336 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9337 cat >>confdefs.h
<<_ACEOF
9338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9345 # Check for thread headers.
9346 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
9347 if test "x$ac_cv_header_thread_h" = xyes
; then :
9353 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9354 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9361 # These tests can't be done till we know if we have limits.h.
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9363 $as_echo_n "checking for CHAR_BIT... " >&6; }
9364 if ${gcc_cv_decl_char_bit+:} false
; then :
9365 $as_echo_n "(cached) " >&6
9367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #ifdef HAVE_LIMITS_H
9376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9377 $EGREP "found" >/dev
/null
2>&1; then :
9378 gcc_cv_decl_char_bit
=yes
9380 gcc_cv_decl_char_bit
=no
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9387 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9388 if test $gcc_cv_decl_char_bit = no
; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9390 $as_echo_n "checking number of bits in a byte... " >&6; }
9391 if ${gcc_cv_c_nbby+:} false
; then :
9392 $as_echo_n "(cached) " >&6
9396 while test $i -lt 65; do
9397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9404 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9405 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9411 if ac_fn_cxx_try_compile
"$LINENO"; then :
9412 gcc_cv_c_nbby
=$i; break
9414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9417 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9421 $as_echo "$gcc_cv_c_nbby" >&6; }
9422 if test $gcc_cv_c_nbby = failed
; then
9423 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9426 cat >>confdefs.h
<<_ACEOF
9427 #define CHAR_BIT $gcc_cv_c_nbby
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9433 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9434 if ${ac_cv_c_bigendian+:} false
; then :
9435 $as_echo_n "(cached) " >&6
9437 ac_cv_c_bigendian
=unknown
9438 # See if we're dealing with a universal compiler.
9439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 #ifndef __APPLE_CC__
9442 not a universal capable compiler
9447 if ac_fn_cxx_try_compile
"$LINENO"; then :
9449 # Check for potential -arch flags. It is not universal unless
9450 # there are at least two -arch flags with different values.
9453 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9454 if test -n "$ac_prev"; then
9456 i?
86 | x86_64 | ppc | ppc64
)
9457 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9460 ac_cv_c_bigendian
=universal
9466 elif test "x$ac_word" = "x-arch"; then
9471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9472 if test $ac_cv_c_bigendian = unknown
; then
9473 # See if sys/param.h defines the BYTE_ORDER macro.
9474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 #include <sys/types.h>
9477 #include <sys/param.h>
9482 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9483 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9492 if ac_fn_cxx_try_compile
"$LINENO"; then :
9493 # It does; now see whether it defined to BIG_ENDIAN or not.
9494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496 #include <sys/types.h>
9497 #include <sys/param.h>
9502 #if BYTE_ORDER != BIG_ENDIAN
9510 if ac_fn_cxx_try_compile
"$LINENO"; then :
9511 ac_cv_c_bigendian
=yes
9513 ac_cv_c_bigendian
=no
9515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9519 if test $ac_cv_c_bigendian = unknown
; then
9520 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9528 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9536 if ac_fn_cxx_try_compile
"$LINENO"; then :
9537 # It does; now see whether it defined to _BIG_ENDIAN or not.
9538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9553 if ac_fn_cxx_try_compile
"$LINENO"; then :
9554 ac_cv_c_bigendian
=yes
9556 ac_cv_c_bigendian
=no
9558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9562 if test $ac_cv_c_bigendian = unknown
; then
9563 # Compile a test program.
9564 if test "$cross_compiling" = yes; then :
9565 # Try to guess by grepping values from an object file.
9566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 short int ascii_mm[] =
9569 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9570 short int ascii_ii[] =
9571 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9572 int use_ascii (int i) {
9573 return ascii_mm[i] + ascii_ii[i];
9575 short int ebcdic_ii[] =
9576 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9577 short int ebcdic_mm[] =
9578 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9579 int use_ebcdic (int i) {
9580 return ebcdic_mm[i] + ebcdic_ii[i];
9587 return use_ascii (foo) == use_ebcdic (foo);
9592 if ac_fn_cxx_try_compile
"$LINENO"; then :
9593 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9594 ac_cv_c_bigendian
=yes
9596 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9597 if test "$ac_cv_c_bigendian" = unknown
; then
9598 ac_cv_c_bigendian
=no
9600 # finding both strings is unlikely to happen, but who knows?
9601 ac_cv_c_bigendian
=unknown
9605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 $ac_includes_default
9614 /* Are we little or big endian? From Harbison&Steele. */
9618 char c[sizeof (long int)];
9621 return u.c[sizeof (long int) - 1] == 1;
9627 if ac_fn_cxx_try_run
"$LINENO"; then :
9628 ac_cv_c_bigendian
=no
9630 ac_cv_c_bigendian
=yes
9632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9639 $as_echo "$ac_cv_c_bigendian" >&6; }
9640 case $ac_cv_c_bigendian in #(
9642 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9648 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9652 as_fn_error $?
"unknown endianness
9653 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9657 # ----------------------
9658 # Checks for C++ headers
9659 # ----------------------
9662 ac_cpp
='$CXXCPP $CPPFLAGS'
9663 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9664 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9665 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9667 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9668 if test -z "$CXXCPP"; then
9669 if ${ac_cv_prog_CXXCPP+:} false
; then :
9670 $as_echo_n "(cached) " >&6
9672 # Double quotes because CXXCPP needs to be expanded
9673 for CXXCPP
in "$CXX -E" "/lib/cpp"
9676 for ac_cxx_preproc_warn_flag
in '' yes
9678 # Use a header file that comes with gcc, so configuring glibc
9679 # with a fresh cross-compiler works.
9680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9681 # <limits.h> exists even on freestanding compilers.
9682 # On the NeXT, cc -E runs the code through the compiler's parser,
9683 # not just through cpp. "Syntax error" is here to catch this case.
9684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9687 # include <limits.h>
9689 # include <assert.h>
9693 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9696 # Broken: fails on valid input.
9699 rm -f conftest.err conftest.i conftest.
$ac_ext
9701 # OK, works on sane cases. Now check whether nonexistent headers
9702 # can be detected and how.
9703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 #include <ac_nonexistent.h>
9707 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9708 # Broken: success on invalid input.
9711 # Passes both tests.
9715 rm -f conftest.err conftest.i conftest.
$ac_ext
9718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9719 rm -f conftest.i conftest.err conftest.
$ac_ext
9720 if $ac_preproc_ok; then :
9725 ac_cv_prog_CXXCPP
=$CXXCPP
9728 CXXCPP
=$ac_cv_prog_CXXCPP
9730 ac_cv_prog_CXXCPP
=$CXXCPP
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9733 $as_echo "$CXXCPP" >&6; }
9735 for ac_cxx_preproc_warn_flag
in '' yes
9737 # Use a header file that comes with gcc, so configuring glibc
9738 # with a fresh cross-compiler works.
9739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740 # <limits.h> exists even on freestanding compilers.
9741 # On the NeXT, cc -E runs the code through the compiler's parser,
9742 # not just through cpp. "Syntax error" is here to catch this case.
9743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9746 # include <limits.h>
9748 # include <assert.h>
9752 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9755 # Broken: fails on valid input.
9758 rm -f conftest.err conftest.i conftest.
$ac_ext
9760 # OK, works on sane cases. Now check whether nonexistent headers
9761 # can be detected and how.
9762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 #include <ac_nonexistent.h>
9766 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9767 # Broken: success on invalid input.
9770 # Passes both tests.
9774 rm -f conftest.err conftest.i conftest.
$ac_ext
9777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9778 rm -f conftest.i conftest.err conftest.
$ac_ext
9779 if $ac_preproc_ok; then :
9782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9785 See \`config.log' for more details" >&5
9786 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9787 See \`config.log' for more details" >&2;}; }
9791 ac_cpp
='$CXXCPP $CPPFLAGS'
9792 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9793 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9794 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9797 for ac_header
in unordered_map
9799 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9800 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9801 cat >>confdefs.h
<<_ACEOF
9802 #define HAVE_UNORDERED_MAP 1
9808 for ac_header
in tr1/unordered_map
9810 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9811 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9812 cat >>confdefs.h
<<_ACEOF
9813 #define HAVE_TR1_UNORDERED_MAP 1
9819 for ac_header
in ext
/hash_map
9821 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9822 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9823 cat >>confdefs.h
<<_ACEOF
9824 #define HAVE_EXT_HASH_MAP 1
9832 # Dependency checking.
9835 rm -rf .tst
2>/dev
/null
9836 mkdir .tst
2>/dev
/null
9837 if test -d .tst
; then
9842 rmdir .tst
2>/dev
/null
9844 DEPDIR
="${am__leading_dot}deps"
9846 ac_config_commands
="$ac_config_commands depdir"
9849 ac_config_commands
="$ac_config_commands gccdepdir"
9852 depcc
="$CXX" am_compiler_list
=
9854 am_depcomp
=$ac_aux_dir/depcomp
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9856 $as_echo_n "checking dependency style of $depcc... " >&6; }
9857 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9858 $as_echo_n "(cached) " >&6
9860 if test -f "$am_depcomp"; then
9861 # We make a subdir and do the tests there. Otherwise we can end up
9862 # making bogus files that we don't know about and never remove. For
9863 # instance it was reported that on HP-UX the gcc test will end up
9864 # making a dummy file named `D' -- because `-MD' means `put the output
9867 # Copy depcomp to subdir because otherwise we won't find it if we're
9868 # using a relative directory.
9869 cp "$am_depcomp" conftest.dir
9871 # We will build objects and dependencies in a subdirectory because
9872 # it helps to detect inapplicable dependency modes. For instance
9873 # both Tru64's cc and ICC support -MD to output dependencies as a
9874 # side effect of compilation, but ICC will put the dependencies in
9875 # the current directory while Tru64 will put them in the object
9879 am_cv_CXX_dependencies_compiler_type
=none
9880 if test "$am_compiler_list" = ""; then
9881 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9883 for depmode
in $am_compiler_list; do
9884 if test $depmode = none
; then break; fi
9886 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9887 # Setup a source with many dependencies, because some compilers
9888 # like to wrap large dependency lists on column 80 (with \), and
9889 # we should not choose a depcomp mode which is confused by this.
9891 # We need to recreate these files for each test, as the compiler may
9892 # overwrite some of them when testing with obscure command lines.
9893 # This happens at least with the AIX C compiler.
9895 for i
in 1 2 3 4 5 6; do
9896 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9897 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9898 # Solaris 8's {/usr,}/bin/sh.
9899 touch sub
/conftst
$i.h
9901 echo "include sub/conftest.Po" > confmf
9903 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9904 # mode. It turns out that the SunPro C++ compiler does not properly
9905 # handle `-M -o', and we need to detect this.
9906 depcmd
="depmode=$depmode \
9907 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9909 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9910 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9911 if env
$depcmd > conftest.err
2>&1 &&
9912 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9913 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9914 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9915 # icc doesn't choke on unknown options, it will just issue warnings
9916 # or remarks (even with -Werror). So we grep stderr for any message
9917 # that says an option was ignored or not supported.
9918 # When given -MP, icc 7.0 and 7.1 complain thusly:
9919 # icc: Command line warning: ignoring option '-M'; no argument required
9920 # The diagnosis changed in icc 8.0:
9921 # icc: Command line remark: option '-MP' not supported
9922 if (grep 'ignoring option' conftest.err ||
9923 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9924 am_cv_CXX_dependencies_compiler_type
=$depmode
9925 $as_echo "$as_me:$LINENO: success" >&5
9929 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9930 sed -e 's/^/| /' < conftest.err
>&5
9936 am_cv_CXX_dependencies_compiler_type
=none
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9941 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9942 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9943 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9944 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9954 # These libraries may be used by collect2.
9955 # We may need a special search path to get them linked.
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9957 $as_echo_n "checking for collect2 libraries... " >&6; }
9958 if ${gcc_cv_collect2_libs+:} false
; then :
9959 $as_echo_n "(cached) " >&6
9962 for libs
in '' -lld -lmld \
9963 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9964 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9970 /* Override any GCC internal prototype to avoid an error.
9971 Use char because int might match the return type of a GCC
9972 builtin and then its argument prototype would still apply. */
9985 if ac_fn_cxx_try_link
"$LINENO"; then :
9986 gcc_cv_collect2_libs
="$libs"; break
9988 rm -f core conftest.err conftest.
$ac_objext \
9989 conftest
$ac_exeext conftest.
$ac_ext
9992 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9995 $as_echo "$gcc_cv_collect2_libs" >&6; }
9996 case $gcc_cv_collect2_libs in
9998 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
10002 # When building Ada code on Alpha, we need exc_resume which is usually in
10003 # -lexc. So test for it.
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10007 $as_echo_n "checking for library containing exc_resume... " >&6; }
10008 if ${ac_cv_search_exc_resume+:} false
; then :
10009 $as_echo_n "(cached) " >&6
10011 ac_func_search_save_LIBS
=$LIBS
10012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10021 char exc_resume ();
10025 return exc_resume ();
10030 for ac_lib
in '' exc
; do
10031 if test -z "$ac_lib"; then
10032 ac_res
="none required"
10035 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10037 if ac_fn_cxx_try_link
"$LINENO"; then :
10038 ac_cv_search_exc_resume
=$ac_res
10040 rm -f core conftest.err conftest.
$ac_objext \
10042 if ${ac_cv_search_exc_resume+:} false
; then :
10046 if ${ac_cv_search_exc_resume+:} false
; then :
10049 ac_cv_search_exc_resume
=no
10051 rm conftest.
$ac_ext
10052 LIBS
=$ac_func_search_save_LIBS
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10055 $as_echo "$ac_cv_search_exc_resume" >&6; }
10056 ac_res
=$ac_cv_search_exc_resume
10057 if test "$ac_res" != no
; then :
10058 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10062 GNAT_LIBEXC
="$LIBS"
10066 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10070 $as_echo_n "checking for library containing kstat_open... " >&6; }
10071 if ${ac_cv_search_kstat_open+:} false
; then :
10072 $as_echo_n "(cached) " >&6
10074 ac_func_search_save_LIBS
=$LIBS
10075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10084 char kstat_open ();
10088 return kstat_open ();
10093 for ac_lib
in '' kstat
; do
10094 if test -z "$ac_lib"; then
10095 ac_res
="none required"
10098 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10100 if ac_fn_cxx_try_link
"$LINENO"; then :
10101 ac_cv_search_kstat_open
=$ac_res
10103 rm -f core conftest.err conftest.
$ac_objext \
10105 if ${ac_cv_search_kstat_open+:} false
; then :
10109 if ${ac_cv_search_kstat_open+:} false
; then :
10112 ac_cv_search_kstat_open
=no
10114 rm conftest.
$ac_ext
10115 LIBS
=$ac_func_search_save_LIBS
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10118 $as_echo "$ac_cv_search_kstat_open" >&6; }
10119 ac_res
=$ac_cv_search_kstat_open
10120 if test "$ac_res" != no
; then :
10121 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10125 EXTRA_GCC_LIBS
="$LIBS"
10129 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10130 # C++ needs those for libcody.
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10135 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10136 if ${ac_cv_search_gethostbyname+:} false
; then :
10137 $as_echo_n "(cached) " >&6
10139 ac_func_search_save_LIBS
=$LIBS
10140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10143 /* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
10149 char gethostbyname ();
10153 return gethostbyname ();
10158 for ac_lib
in '' nsl
; do
10159 if test -z "$ac_lib"; then
10160 ac_res
="none required"
10163 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10165 if ac_fn_cxx_try_link
"$LINENO"; then :
10166 ac_cv_search_gethostbyname
=$ac_res
10168 rm -f core conftest.err conftest.
$ac_objext \
10170 if ${ac_cv_search_gethostbyname+:} false
; then :
10174 if ${ac_cv_search_gethostbyname+:} false
; then :
10177 ac_cv_search_gethostbyname
=no
10179 rm conftest.
$ac_ext
10180 LIBS
=$ac_func_search_save_LIBS
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10183 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10184 ac_res
=$ac_cv_search_gethostbyname
10185 if test "$ac_res" != no
; then :
10186 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10191 $as_echo_n "checking for library containing socket... " >&6; }
10192 if ${ac_cv_search_socket+:} false
; then :
10193 $as_echo_n "(cached) " >&6
10195 ac_func_search_save_LIBS
=$LIBS
10196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10199 /* Override any GCC internal prototype to avoid an error.
10200 Use char because int might match the return type of a GCC
10201 builtin and then its argument prototype would still apply. */
10214 for ac_lib
in '' socket
; do
10215 if test -z "$ac_lib"; then
10216 ac_res
="none required"
10219 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10221 if ac_fn_cxx_try_link
"$LINENO"; then :
10222 ac_cv_search_socket
=$ac_res
10224 rm -f core conftest.err conftest.
$ac_objext \
10226 if ${ac_cv_search_socket+:} false
; then :
10230 if ${ac_cv_search_socket+:} false
; then :
10233 ac_cv_search_socket
=no
10235 rm conftest.
$ac_ext
10236 LIBS
=$ac_func_search_save_LIBS
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10239 $as_echo "$ac_cv_search_socket" >&6; }
10240 ac_res
=$ac_cv_search_socket
10241 if test "$ac_res" != no
; then :
10242 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10247 $as_echo_n "checking for socket in -lsocket... " >&6; }
10248 if ${ac_cv_lib_socket_socket+:} false
; then :
10249 $as_echo_n "(cached) " >&6
10251 ac_check_lib_save_LIBS
=$LIBS
10252 LIBS
="-lsocket -lnsl $LIBS"
10253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10271 if ac_fn_cxx_try_link
"$LINENO"; then :
10272 ac_cv_lib_socket_socket
=yes
10274 ac_cv_lib_socket_socket
=no
10276 rm -f core conftest.err conftest.
$ac_objext \
10277 conftest
$ac_exeext conftest.
$ac_ext
10278 LIBS
=$ac_check_lib_save_LIBS
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10281 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10282 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
10283 LIBS
="-lsocket -lnsl $LIBS"
10293 # Some systems put ldexp and frexp in libm instead of libc; assume
10294 # they're both in the same place. jcf-dump needs them.
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10298 $as_echo_n "checking for library containing ldexp... " >&6; }
10299 if ${ac_cv_search_ldexp+:} false
; then :
10300 $as_echo_n "(cached) " >&6
10302 ac_func_search_save_LIBS
=$LIBS
10303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10321 for ac_lib
in '' m
; do
10322 if test -z "$ac_lib"; then
10323 ac_res
="none required"
10326 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10328 if ac_fn_cxx_try_link
"$LINENO"; then :
10329 ac_cv_search_ldexp
=$ac_res
10331 rm -f core conftest.err conftest.
$ac_objext \
10333 if ${ac_cv_search_ldexp+:} false
; then :
10337 if ${ac_cv_search_ldexp+:} false
; then :
10340 ac_cv_search_ldexp
=no
10342 rm conftest.
$ac_ext
10343 LIBS
=$ac_func_search_save_LIBS
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10346 $as_echo "$ac_cv_search_ldexp" >&6; }
10347 ac_res
=$ac_cv_search_ldexp
10348 if test "$ac_res" != no
; then :
10349 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10357 # Some systems need dlopen
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10361 $as_echo_n "checking for library containing dlopen... " >&6; }
10362 if ${ac_cv_search_dlopen+:} false
; then :
10363 $as_echo_n "(cached) " >&6
10365 ac_func_search_save_LIBS
=$LIBS
10366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10369 /* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10384 for ac_lib
in '' dl
; do
10385 if test -z "$ac_lib"; then
10386 ac_res
="none required"
10389 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10391 if ac_fn_cxx_try_link
"$LINENO"; then :
10392 ac_cv_search_dlopen
=$ac_res
10394 rm -f core conftest.err conftest.
$ac_objext \
10396 if ${ac_cv_search_dlopen+:} false
; then :
10400 if ${ac_cv_search_dlopen+:} false
; then :
10403 ac_cv_search_dlopen
=no
10405 rm conftest.
$ac_ext
10406 LIBS
=$ac_func_search_save_LIBS
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10409 $as_echo "$ac_cv_search_dlopen" >&6; }
10410 ac_res
=$ac_cv_search_dlopen
10411 if test "$ac_res" != no
; then :
10412 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10420 # Use <inttypes.h> only if it exists,
10421 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10424 $as_echo_n "checking for inttypes.h... " >&6; }
10425 if ${gcc_cv_header_inttypes_h+:} false
; then :
10426 $as_echo_n "(cached) " >&6
10428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 #define __STDC_FORMAT_MACROS
10431 #include <sys/types.h>
10432 #include <inttypes.h>
10444 if ac_fn_cxx_try_compile
"$LINENO"; then :
10445 gcc_cv_header_inttypes_h
=yes
10447 gcc_cv_header_inttypes_h
=no
10449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10453 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10454 if test $gcc_cv_header_inttypes_h = yes; then
10456 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10460 # Look for the ZSTD package.
10470 # Check whether --with-zstd was given.
10471 if test "${with_zstd+set}" = set; then :
10472 withval
=$with_zstd;
10476 # Check whether --with-zstd-include was given.
10477 if test "${with_zstd_include+set}" = set; then :
10478 withval
=$with_zstd_include;
10482 # Check whether --with-zstd-lib was given.
10483 if test "${with_zstd_lib+set}" = set; then :
10484 withval
=$with_zstd_lib;
10487 case "x$with_zstd" in
10493 *) ZSTD_INCLUDE
=$with_zstd/include
10494 ZSTD_LIB
=$with_zstd/lib
10498 if test "x$with_zstd" != xno
; then
10499 if test "x$with_zstd_include" != x
; then
10500 ZSTD_INCLUDE
=$with_zstd_include
10502 if test "x$with_zstd_lib" != x
; then
10503 ZSTD_LIB
=$with_zstd_lib
10505 if test "x$ZSTD_INCLUDE" != x \
10506 && test "x$ZSTD_INCLUDE" != xno
; then
10507 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10509 if test "x$ZSTD_LIB" != x \
10510 && test "x$ZSTD_LIB" != xno
; then
10511 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10514 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10515 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10518 $as_echo_n "checking for zstd.h... " >&6; }
10519 if ${gcc_cv_header_zstd_h+:} false
; then :
10520 $as_echo_n "(cached) " >&6
10522 # We require version 1.3.0 or later. This is the first version that has
10523 # ZSTD_getFrameContentSize.
10524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10527 #if ZSTD_VERSION_NUMBER < 10300
10528 #error "need zstd 1.3.0 or better"
10538 if ac_fn_cxx_try_compile
"$LINENO"; then :
10539 gcc_cv_header_zstd_h
=yes
10541 gcc_cv_header_zstd_h
=no
10543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10547 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10548 if test $gcc_cv_header_zstd_h = yes; then
10550 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10552 elif test "x$with_zstd" != x
; then
10553 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10556 # LTO can use zstd compression algorithm
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10560 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10561 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10562 $as_echo_n "(cached) " >&6
10564 ac_func_search_save_LIBS
=$LIBS
10565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10568 /* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10574 char ZSTD_compress ();
10578 return ZSTD_compress ();
10583 for ac_lib
in '' zstd
; do
10584 if test -z "$ac_lib"; then
10585 ac_res
="none required"
10588 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10590 if ac_fn_cxx_try_link
"$LINENO"; then :
10591 ac_cv_search_ZSTD_compress
=$ac_res
10593 rm -f core conftest.err conftest.
$ac_objext \
10595 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10599 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10602 ac_cv_search_ZSTD_compress
=no
10604 rm conftest.
$ac_ext
10605 LIBS
=$ac_func_search_save_LIBS
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10608 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10609 ac_res
=$ac_cv_search_ZSTD_compress
10610 if test "$ac_res" != no
; then :
10611 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10622 for ac_func
in times clock kill getrlimit setrlimit atoq \
10623 popen sysconf strsignal getrusage nl_langinfo \
10624 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10625 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
10627 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10628 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10629 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10630 cat >>confdefs.h
<<_ACEOF
10631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10638 if test x
$ac_cv_func_mbstowcs = xyes
; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10640 $as_echo_n "checking whether mbstowcs works... " >&6; }
10641 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10642 $as_echo_n "(cached) " >&6
10644 if test "$cross_compiling" = yes; then :
10645 gcc_cv_func_mbstowcs_works
=yes
10647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <stdlib.h>
10652 mbstowcs(0, "", 0);
10656 if ac_fn_cxx_try_run
"$LINENO"; then :
10657 gcc_cv_func_mbstowcs_works
=yes
10659 gcc_cv_func_mbstowcs_works
=no
10661 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10662 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10667 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10668 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10670 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10675 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10676 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10680 cat >>confdefs.h
<<_ACEOF
10681 #define ssize_t int
10686 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10687 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10691 cat >>confdefs.h
<<_ACEOF
10692 #define caddr_t char *
10697 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10699 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10701 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10707 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10708 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10709 gcc_header_sys_mman_h
=yes
10711 gcc_header_sys_mman_h
=no
10714 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10715 if test "x$ac_cv_func_mmap" = xyes
; then :
10721 if test "$gcc_header_sys_mman_h" != yes \
10722 ||
test "$gcc_func_mmap" != yes; then
10723 gcc_cv_func_mmap_file
=no
10724 gcc_cv_func_mmap_dev_zero
=no
10725 gcc_cv_func_mmap_anon
=no
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10728 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10729 if ${gcc_cv_func_mmap_file+:} false
; then :
10730 $as_echo_n "(cached) " >&6
10732 # Add a system to this blacklist if
10733 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10734 # memory area containing the same data that you'd get if you applied
10735 # read() to the same fd. The only system known to have a problem here
10736 # is VMS, where text files have record structure.
10739 gcc_cv_func_mmap_file
=no
;;
10741 gcc_cv_func_mmap_file
=yes;;
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10745 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10747 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10748 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10749 $as_echo_n "(cached) " >&6
10751 # Add a system to this blacklist if it has mmap() but /dev/zero
10752 # does not exist, or if mmapping /dev/zero does not give anonymous
10753 # zeroed pages with both the following properties:
10754 # 1. If you map N consecutive pages in with one call, and then
10755 # unmap any subset of those pages, the pages that were not
10756 # explicitly unmapped remain accessible.
10757 # 2. If you map two adjacent blocks of memory and then unmap them
10758 # both at once, they must both go away.
10759 # Systems known to be in this category are Windows (all variants),
10762 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10763 gcc_cv_func_mmap_dev_zero
=no
;;
10765 gcc_cv_func_mmap_dev_zero
=yes;;
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10769 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10771 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10773 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10774 if ${gcc_cv_decl_map_anon+:} false
; then :
10775 $as_echo_n "(cached) " >&6
10777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779 #include <sys/types.h>
10780 #include <sys/mman.h>
10781 #include <unistd.h>
10783 #ifndef MAP_ANONYMOUS
10784 #define MAP_ANONYMOUS MAP_ANON
10790 int n = MAP_ANONYMOUS;
10795 if ac_fn_cxx_try_compile
"$LINENO"; then :
10796 gcc_cv_decl_map_anon
=yes
10798 gcc_cv_decl_map_anon
=no
10800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10803 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10805 if test $gcc_cv_decl_map_anon = no
; then
10806 gcc_cv_func_mmap_anon
=no
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10809 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10810 if ${gcc_cv_func_mmap_anon+:} false
; then :
10811 $as_echo_n "(cached) " >&6
10813 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10814 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10815 # doesn't give anonymous zeroed pages with the same properties listed
10816 # above for use of /dev/zero.
10817 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10819 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10820 gcc_cv_func_mmap_anon
=no
;;
10822 gcc_cv_func_mmap_anon
=yes;;
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10826 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10830 if test $gcc_cv_func_mmap_file = yes; then
10832 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10835 if test $gcc_cv_func_mmap_dev_zero = yes; then
10837 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10840 if test $gcc_cv_func_mmap_anon = yes; then
10842 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10849 # Under VMS, vfork works very differently than on Unix. The standard test
10850 # won't work, and it isn't easily adaptable. It makes more sense to
10852 ac_cv_func_vfork_works
=yes
10855 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10856 if test "x$ac_cv_type_pid_t" = xyes
; then :
10860 cat >>confdefs.h
<<_ACEOF
10866 for ac_header
in vfork.h
10868 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10869 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10870 cat >>confdefs.h
<<_ACEOF
10871 #define HAVE_VFORK_H 1
10877 for ac_func
in fork vfork
10879 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10880 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10881 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10882 cat >>confdefs.h
<<_ACEOF
10883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10889 if test "x$ac_cv_func_fork" = xyes
; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10891 $as_echo_n "checking for working fork... " >&6; }
10892 if ${ac_cv_func_fork_works+:} false
; then :
10893 $as_echo_n "(cached) " >&6
10895 if test "$cross_compiling" = yes; then :
10896 ac_cv_func_fork_works
=cross
10898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10900 $ac_includes_default
10905 /* By Ruediger Kuhlmann. */
10906 return fork () < 0;
10912 if ac_fn_cxx_try_run
"$LINENO"; then :
10913 ac_cv_func_fork_works
=yes
10915 ac_cv_func_fork_works
=no
10917 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10918 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10923 $as_echo "$ac_cv_func_fork_works" >&6; }
10926 ac_cv_func_fork_works
=$ac_cv_func_fork
10928 if test "x$ac_cv_func_fork_works" = xcross
; then
10930 *-*-amigaos* |
*-*-msdosdjgpp*)
10931 # Override, as these systems have only a dummy fork() stub
10932 ac_cv_func_fork_works
=no
10935 ac_cv_func_fork_works
=yes
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10939 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10941 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10942 if test "x$ac_cv_func_vfork" = xyes
; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10944 $as_echo_n "checking for working vfork... " >&6; }
10945 if ${ac_cv_func_vfork_works+:} false
; then :
10946 $as_echo_n "(cached) " >&6
10948 if test "$cross_compiling" = yes; then :
10949 ac_cv_func_vfork_works
=cross
10951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 /* Thanks to Paul Eggert for this test. */
10954 $ac_includes_default
10955 #include <sys/wait.h>
10956 #ifdef HAVE_VFORK_H
10957 # include <vfork.h>
10959 /* On some sparc systems, changes by the child to local and incoming
10960 argument registers are propagated back to the parent. The compiler
10961 is told about this with #include <vfork.h>, but some compilers
10962 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10963 static variable whose address is put into a register that is
10964 clobbered by the vfork. */
10967 sparc_address_test (int arg)
10969 sparc_address_test (arg) int arg;
10972 static pid_t child;
10990 pid_t parent = getpid ();
10993 sparc_address_test (0);
10998 /* Here is another test for sparc vfork register problems. This
10999 test uses lots of local variables, at least as many local
11000 variables as main has allocated so far including compiler
11001 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11002 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11003 reuse the register of parent for one of the local variables,
11004 since it will think that parent can't possibly be used any more
11005 in this routine. Assigning to the local variable will thus
11006 munge parent in the parent process. */
11008 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11009 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11010 /* Convince the compiler that p..p7 are live; otherwise, it might
11011 use the same hardware register for all 8 local variables. */
11012 if (p != p1 || p != p2 || p != p3 || p != p4
11013 || p != p5 || p != p6 || p != p7)
11016 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11017 from child file descriptors. If the child closes a descriptor
11018 before it execs or exits, this munges the parent's descriptor
11019 as well. Test for this by closing stdout in the child. */
11020 _exit(close(fileno(stdout)) != 0);
11025 while (wait(&status) != child)
11028 /* Was there some problem with vforking? */
11031 /* Did the child fail? (This shouldn't happen.) */
11034 /* Did the vfork/compiler bug occur? */
11035 || parent != getpid()
11037 /* Did the file descriptor bug occur? */
11038 || fstat(fileno(stdout), &st) != 0
11043 if ac_fn_cxx_try_run
"$LINENO"; then :
11044 ac_cv_func_vfork_works
=yes
11046 ac_cv_func_vfork_works
=no
11048 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11049 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11054 $as_echo "$ac_cv_func_vfork_works" >&6; }
11057 if test "x$ac_cv_func_fork_works" = xcross
; then
11058 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11060 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11063 if test "x$ac_cv_func_vfork_works" = xyes
; then
11065 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11069 $as_echo "#define vfork fork" >>confdefs.h
11072 if test "x$ac_cv_func_fork_works" = xyes
; then
11074 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11080 if test "X$prefix" = "XNONE"; then
11081 acl_final_prefix
="$ac_default_prefix"
11083 acl_final_prefix
="$prefix"
11085 if test "X$exec_prefix" = "XNONE"; then
11086 acl_final_exec_prefix
='${prefix}'
11088 acl_final_exec_prefix
="$exec_prefix"
11090 acl_save_prefix
="$prefix"
11091 prefix
="$acl_final_prefix"
11092 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11093 prefix
="$acl_save_prefix"
11096 # Check whether --with-gnu-ld was given.
11097 if test "${with_gnu_ld+set}" = set; then :
11098 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11103 # Prepare PATH_SEPARATOR.
11104 # The user is always right.
11105 if test "${PATH_SEPARATOR+set}" != set; then
11106 echo "#! /bin/sh" >conf$$.sh
11107 echo "exit 0" >>conf$$.sh
11109 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11117 if test "$GCC" = yes; then
11118 # Check if gcc -print-prog-name=ld gives a path.
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11120 $as_echo_n "checking for ld used by GCC... " >&6; }
11123 # gcc leaves a trailing carriage return which upsets mingw
11124 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11126 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11129 # Accept absolute paths.
11130 [\\/]* |
[A-Za-z
]:[\\/]*)
11131 re_direlt
='/[^/][^/]*/\.\./'
11132 # Canonicalize the path of ld
11133 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11134 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11135 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11137 test -z "$LD" && LD
="$ac_prog"
11140 # If it fails, then pretend we aren't using GCC.
11144 # If it is relative, then search for the first ld in PATH.
11145 with_gnu_ld
=unknown
11148 elif test "$with_gnu_ld" = yes; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11150 $as_echo_n "checking for GNU ld... " >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11153 $as_echo_n "checking for non-GNU ld... " >&6; }
11155 if ${acl_cv_path_LD+:} false
; then :
11156 $as_echo_n "(cached) " >&6
11158 if test -z "$LD"; then
11159 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11160 for ac_dir
in $PATH; do
11161 test -z "$ac_dir" && ac_dir
=.
11162 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11163 acl_cv_path_LD
="$ac_dir/$ac_prog"
11164 # Check to see if the program is GNU ld. I'd rather use --version,
11165 # but apparently some GNU ld's only accept -v.
11166 # Break only if it was the GNU/non-GNU ld that we prefer.
11167 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11168 test "$with_gnu_ld" != no
&& break
11170 test "$with_gnu_ld" != yes && break
11176 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11180 LD
="$acl_cv_path_LD"
11181 if test -n "$LD"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11183 $as_echo "$LD" >&6; }
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11188 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11190 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11191 if ${acl_cv_prog_gnu_ld+:} false
; then :
11192 $as_echo_n "(cached) " >&6
11194 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11195 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11196 acl_cv_prog_gnu_ld
=yes
11198 acl_cv_prog_gnu_ld
=no
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11202 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11203 with_gnu_ld
=$acl_cv_prog_gnu_ld
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11208 $as_echo_n "checking for shared library run path origin... " >&6; }
11209 if ${acl_cv_rpath+:} false
; then :
11210 $as_echo_n "(cached) " >&6
11213 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11214 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11216 rm -f .
/conftest.sh
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11221 $as_echo "$acl_cv_rpath" >&6; }
11223 libext
="$acl_cv_libext"
11224 shlibext
="$acl_cv_shlibext"
11225 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11226 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11227 hardcode_direct
="$acl_cv_hardcode_direct"
11228 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11229 # Check whether --enable-rpath was given.
11230 if test "${enable_rpath+set}" = set; then :
11231 enableval
=$enable_rpath; :
11245 acl_save_prefix
="$prefix"
11246 prefix
="$acl_final_prefix"
11247 acl_save_exec_prefix
="$exec_prefix"
11248 exec_prefix
="$acl_final_exec_prefix"
11250 eval additional_includedir
=\"$includedir\"
11251 eval additional_libdir
=\"$libdir\"
11253 exec_prefix
="$acl_save_exec_prefix"
11254 prefix
="$acl_save_prefix"
11257 # Check whether --with-libiconv-prefix was given.
11258 if test "${with_libiconv_prefix+set}" = set; then :
11259 withval
=$with_libiconv_prefix;
11260 if test "X$withval" = "Xno"; then
11263 if test "X$withval" = "X"; then
11265 acl_save_prefix
="$prefix"
11266 prefix
="$acl_final_prefix"
11267 acl_save_exec_prefix
="$exec_prefix"
11268 exec_prefix
="$acl_final_exec_prefix"
11270 eval additional_includedir
=\"$includedir\"
11271 eval additional_libdir
=\"$libdir\"
11273 exec_prefix
="$acl_save_exec_prefix"
11274 prefix
="$acl_save_prefix"
11277 additional_includedir
="$withval/include"
11278 additional_libdir
="$withval/lib"
11285 # Check whether --with-libiconv-type was given.
11286 if test "${with_libiconv_type+set}" = set; then :
11287 withval
=$with_libiconv_type; with_libiconv_type
=$withval
11289 with_libiconv_type
=auto
11292 lib_type
=`eval echo \$with_libiconv_type`
11299 names_already_handled
=
11300 names_next_round
='iconv '
11301 while test -n "$names_next_round"; do
11302 names_this_round
="$names_next_round"
11304 for name
in $names_this_round; do
11306 for n
in $names_already_handled; do
11307 if test "$n" = "$name"; then
11308 already_handled
=yes
11312 if test -z "$already_handled"; then
11313 names_already_handled
="$names_already_handled $name"
11314 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11315 eval value
=\"\
$HAVE_LIB$uppername\"
11316 if test -n "$value"; then
11317 if test "$value" = yes; then
11318 eval value
=\"\
$LIB$uppername\"
11319 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
11320 eval value
=\"\
$LTLIB$uppername\"
11321 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
11330 if test $use_additional = yes; then
11331 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11332 found_dir
="$additional_libdir"
11333 found_so
="$additional_libdir/lib$name.$shlibext"
11334 if test -f "$additional_libdir/lib$name.la"; then
11335 found_la
="$additional_libdir/lib$name.la"
11337 elif test x
$lib_type != xshared
; then
11338 if test -f "$additional_libdir/lib$name.$libext"; then
11339 found_dir
="$additional_libdir"
11340 found_a
="$additional_libdir/lib$name.$libext"
11341 if test -f "$additional_libdir/lib$name.la"; then
11342 found_la
="$additional_libdir/lib$name.la"
11347 if test "X$found_dir" = "X"; then
11348 for x
in $LDFLAGS $LTLIBICONV; do
11350 acl_save_prefix
="$prefix"
11351 prefix
="$acl_final_prefix"
11352 acl_save_exec_prefix
="$exec_prefix"
11353 exec_prefix
="$acl_final_exec_prefix"
11355 exec_prefix
="$acl_save_exec_prefix"
11356 prefix
="$acl_save_prefix"
11360 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11361 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
11363 found_so
="$dir/lib$name.$shlibext"
11364 if test -f "$dir/lib$name.la"; then
11365 found_la
="$dir/lib$name.la"
11367 elif test x
$lib_type != xshared
; then
11368 if test -f "$dir/lib$name.$libext"; then
11370 found_a
="$dir/lib$name.$libext"
11371 if test -f "$dir/lib$name.la"; then
11372 found_la
="$dir/lib$name.la"
11378 if test "X$found_dir" != "X"; then
11383 if test "X$found_dir" != "X"; then
11384 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11385 if test "X$found_so" != "X"; then
11386 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11387 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11390 for x
in $ltrpathdirs; do
11391 if test "X$x" = "X$found_dir"; then
11396 if test -z "$haveit"; then
11397 ltrpathdirs
="$ltrpathdirs $found_dir"
11399 if test "$hardcode_direct" = yes; then
11400 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11402 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11403 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11405 for x
in $rpathdirs; do
11406 if test "X$x" = "X$found_dir"; then
11411 if test -z "$haveit"; then
11412 rpathdirs
="$rpathdirs $found_dir"
11416 for x
in $LDFLAGS $LIBICONV; do
11418 acl_save_prefix
="$prefix"
11419 prefix
="$acl_final_prefix"
11420 acl_save_exec_prefix
="$exec_prefix"
11421 exec_prefix
="$acl_final_exec_prefix"
11423 exec_prefix
="$acl_save_exec_prefix"
11424 prefix
="$acl_save_prefix"
11426 if test "X$x" = "X-L$found_dir"; then
11431 if test -z "$haveit"; then
11432 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11434 if test "$hardcode_minus_L" != no
; then
11435 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11437 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11443 if test "X$found_a" != "X"; then
11444 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11446 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11449 additional_includedir
=
11450 case "$found_dir" in
11452 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11453 additional_includedir
="$basedir/include"
11456 if test "X$additional_includedir" != "X"; then
11457 if test "X$additional_includedir" != "X/usr/include"; then
11459 if test "X$additional_includedir" = "X/usr/local/include"; then
11460 if test -n "$GCC"; then
11462 linux
*) haveit
=yes;;
11466 if test -z "$haveit"; then
11467 for x
in $CPPFLAGS $INCICONV; do
11469 acl_save_prefix
="$prefix"
11470 prefix
="$acl_final_prefix"
11471 acl_save_exec_prefix
="$exec_prefix"
11472 exec_prefix
="$acl_final_exec_prefix"
11474 exec_prefix
="$acl_save_exec_prefix"
11475 prefix
="$acl_save_prefix"
11477 if test "X$x" = "X-I$additional_includedir"; then
11482 if test -z "$haveit"; then
11483 if test -d "$additional_includedir"; then
11484 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11490 if test -n "$found_la"; then
11491 save_libdir
="$libdir"
11492 case "$found_la" in
11493 */* |
*\\*) .
"$found_la" ;;
11494 *) .
"./$found_la" ;;
11496 libdir
="$save_libdir"
11497 for dep
in $dependency_libs; do
11500 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11501 if test "X$additional_libdir" != "X/usr/lib"; then
11503 if test "X$additional_libdir" = "X/usr/local/lib"; then
11504 if test -n "$GCC"; then
11506 linux
*) haveit
=yes;;
11510 if test -z "$haveit"; then
11512 for x
in $LDFLAGS $LIBICONV; do
11514 acl_save_prefix
="$prefix"
11515 prefix
="$acl_final_prefix"
11516 acl_save_exec_prefix
="$exec_prefix"
11517 exec_prefix
="$acl_final_exec_prefix"
11519 exec_prefix
="$acl_save_exec_prefix"
11520 prefix
="$acl_save_prefix"
11522 if test "X$x" = "X-L$additional_libdir"; then
11527 if test -z "$haveit"; then
11528 if test -d "$additional_libdir"; then
11529 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11533 for x
in $LDFLAGS $LTLIBICONV; do
11535 acl_save_prefix
="$prefix"
11536 prefix
="$acl_final_prefix"
11537 acl_save_exec_prefix
="$exec_prefix"
11538 exec_prefix
="$acl_final_exec_prefix"
11540 exec_prefix
="$acl_save_exec_prefix"
11541 prefix
="$acl_save_prefix"
11543 if test "X$x" = "X-L$additional_libdir"; then
11548 if test -z "$haveit"; then
11549 if test -d "$additional_libdir"; then
11550 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11557 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11558 if test "$enable_rpath" != no
; then
11560 for x
in $rpathdirs; do
11561 if test "X$x" = "X$dir"; then
11566 if test -z "$haveit"; then
11567 rpathdirs
="$rpathdirs $dir"
11570 for x
in $ltrpathdirs; do
11571 if test "X$x" = "X$dir"; then
11576 if test -z "$haveit"; then
11577 ltrpathdirs
="$ltrpathdirs $dir"
11582 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11585 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11588 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11589 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11595 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11596 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11597 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11599 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11600 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11607 if test "X$rpathdirs" != "X"; then
11608 if test -n "$hardcode_libdir_separator"; then
11610 for found_dir
in $rpathdirs; do
11611 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11613 acl_save_libdir
="$libdir"
11615 eval flag
=\"$hardcode_libdir_flag_spec\"
11616 libdir
="$acl_save_libdir"
11617 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11619 for found_dir
in $rpathdirs; do
11620 acl_save_libdir
="$libdir"
11621 libdir
="$found_dir"
11622 eval flag
=\"$hardcode_libdir_flag_spec\"
11623 libdir
="$acl_save_libdir"
11624 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11628 if test "X$ltrpathdirs" != "X"; then
11629 for found_dir
in $ltrpathdirs; do
11630 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11641 $as_echo_n "checking for iconv... " >&6; }
11642 if ${am_cv_func_iconv+:} false
; then :
11643 $as_echo_n "(cached) " >&6
11646 am_cv_func_iconv
="no, consider installing GNU libiconv"
11648 am_save_CPPFLAGS
="$CPPFLAGS"
11649 CPPFLAGS
="$CPPFLAGS $INCICONV"
11650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652 #include <stdlib.h>
11657 iconv_t cd = iconv_open("","");
11658 iconv(cd,NULL,NULL,NULL,NULL);
11664 if ac_fn_cxx_try_link
"$LINENO"; then :
11665 am_cv_func_iconv
=yes
11667 rm -f core conftest.err conftest.
$ac_objext \
11668 conftest
$ac_exeext conftest.
$ac_ext
11669 CPPFLAGS
="$am_save_CPPFLAGS"
11671 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11672 for _libs
in .libs _libs
; do
11673 am_save_CPPFLAGS
="$CPPFLAGS"
11674 am_save_LIBS
="$LIBS"
11675 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11676 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11679 #include <stdlib.h>
11684 iconv_t cd = iconv_open("","");
11685 iconv(cd,NULL,NULL,NULL,NULL);
11691 if ac_fn_cxx_try_link
"$LINENO"; then :
11692 INCICONV
="-I../libiconv/include"
11693 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11694 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11695 am_cv_lib_iconv
=yes
11696 am_cv_func_iconv
=yes
11698 rm -f core conftest.err conftest.
$ac_objext \
11699 conftest
$ac_exeext conftest.
$ac_ext
11700 CPPFLAGS
="$am_save_CPPFLAGS"
11701 LIBS
="$am_save_LIBS"
11702 if test "$am_cv_func_iconv" = "yes"; then
11708 if test "$am_cv_func_iconv" != yes; then
11709 am_save_CPPFLAGS
="$CPPFLAGS"
11710 am_save_LIBS
="$LIBS"
11711 CPPFLAGS
="$CPPFLAGS $INCICONV"
11712 LIBS
="$LIBS $LIBICONV"
11713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715 #include <stdlib.h>
11720 iconv_t cd = iconv_open("","");
11721 iconv(cd,NULL,NULL,NULL,NULL);
11727 if ac_fn_cxx_try_link
"$LINENO"; then :
11728 am_cv_lib_iconv
=yes
11729 am_cv_func_iconv
=yes
11731 rm -f core conftest.err conftest.
$ac_objext \
11732 conftest
$ac_exeext conftest.
$ac_ext
11733 CPPFLAGS
="$am_save_CPPFLAGS"
11734 LIBS
="$am_save_LIBS"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11739 $as_echo "$am_cv_func_iconv" >&6; }
11740 if test "$am_cv_func_iconv" = yes; then
11742 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11745 if test "$am_cv_lib_iconv" = yes; then
11747 for element
in $INCICONV; do
11749 for x
in $CPPFLAGS; do
11751 acl_save_prefix
="$prefix"
11752 prefix
="$acl_final_prefix"
11753 acl_save_exec_prefix
="$exec_prefix"
11754 exec_prefix
="$acl_final_exec_prefix"
11756 exec_prefix
="$acl_save_exec_prefix"
11757 prefix
="$acl_save_prefix"
11759 if test "X$x" = "X$element"; then
11764 if test -z "$haveit"; then
11765 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11770 $as_echo_n "checking how to link with libiconv... " >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11772 $as_echo "$LIBICONV" >&6; }
11780 if test "$am_cv_func_iconv" = yes; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11782 $as_echo_n "checking for iconv declaration... " >&6; }
11783 if ${am_cv_proto_iconv+:} false
; then :
11784 $as_echo_n "(cached) " >&6
11787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11790 #include <stdlib.h>
11796 #if defined(__STDC__) || defined(__cplusplus)
11797 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11810 if ac_fn_cxx_try_compile
"$LINENO"; then :
11811 am_cv_proto_iconv_arg1
=""
11813 am_cv_proto_iconv_arg1
="const"
11815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11816 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);"
11819 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11821 }$am_cv_proto_iconv" >&5
11823 }$am_cv_proto_iconv" >&6; }
11825 cat >>confdefs.h
<<_ACEOF
11826 #define ICONV_CONST $am_cv_proto_iconv_arg1
11832 # Until we have in-tree GNU iconv:
11834 if test -f "$LTLIBICONV"; then
11835 LIBICONV_DEP
=$LTLIBICONV
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11841 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11842 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11843 $as_echo_n "(cached) " >&6
11845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 #include <locale.h>
11856 if ac_fn_cxx_try_link
"$LINENO"; then :
11857 am_cv_val_LC_MESSAGES
=yes
11859 am_cv_val_LC_MESSAGES
=no
11861 rm -f core conftest.err conftest.
$ac_objext \
11862 conftest
$ac_exeext conftest.
$ac_ext
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11865 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11866 if test $am_cv_val_LC_MESSAGES = yes; then
11868 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11875 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11876 if ${am_cv_langinfo_codeset+:} false
; then :
11877 $as_echo_n "(cached) " >&6
11879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11881 #include <langinfo.h>
11885 char* cs = nl_langinfo(CODESET);
11890 if ac_fn_cxx_try_link
"$LINENO"; then :
11891 am_cv_langinfo_codeset
=yes
11893 am_cv_langinfo_codeset
=no
11895 rm -f core conftest.err conftest.
$ac_objext \
11896 conftest
$ac_exeext conftest.
$ac_ext
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11900 $as_echo "$am_cv_langinfo_codeset" >&6; }
11901 if test $am_cv_langinfo_codeset = yes; then
11903 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11908 # We will need to find libiberty.h and ansidecl.h
11909 saved_CFLAGS
="$CFLAGS"
11910 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11911 saved_CXXFLAGS
="$CXXFLAGS"
11912 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11914 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11915 # normal autoconf function for these. But force definition of
11916 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11917 # basename handling in libiberty.h.
11918 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11919 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11920 #undef HAVE_DECL_BASENAME
11921 #define HAVE_DECL_BASENAME 1
11922 #include \"ansidecl.h\"
11923 #include \"system.h\"
11925 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11931 cat >>confdefs.h
<<_ACEOF
11932 #define HAVE_DECL_BASENAME $ac_have_decl
11934 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11935 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11936 #undef HAVE_DECL_BASENAME
11937 #define HAVE_DECL_BASENAME 1
11938 #include \"ansidecl.h\"
11939 #include \"system.h\"
11941 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11947 cat >>confdefs.h
<<_ACEOF
11948 #define HAVE_DECL_STRSTR $ac_have_decl
11952 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11953 madvise stpcpy strnlen strsignal strverscmp \
11954 strtol strtoul strtoll strtoull setenv unsetenv \
11955 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11956 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
11958 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11960 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11961 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11962 $as_echo_n "(cached) " >&6
11964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11967 #define $ac_tr_decl 1
11969 #include "ansidecl.h"
11970 #include "system.h"
11976 char *(*pfn) = (char *(*)) $ac_func ;
11982 if ac_fn_cxx_try_compile
"$LINENO"; then :
11983 eval "gcc_cv_have_decl_$ac_func=yes"
11985 eval "gcc_cv_have_decl_$ac_func=no"
11987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11990 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11993 #define $ac_tr_decl 1
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11999 #define $ac_tr_decl 0
12007 for ac_func
in getrlimit setrlimit getrusage
12009 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12011 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12012 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12013 $as_echo_n "(cached) " >&6
12015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12018 #define $ac_tr_decl 1
12020 #include "ansidecl.h"
12021 #include "system.h"
12022 #ifdef HAVE_SYS_RESOURCE_H
12023 #include <sys/resource.h>
12031 char *(*pfn) = (char *(*)) $ac_func ;
12037 if ac_fn_cxx_try_compile
"$LINENO"; then :
12038 eval "gcc_cv_have_decl_$ac_func=yes"
12040 eval "gcc_cv_have_decl_$ac_func=no"
12042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12045 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12047 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12048 #define $ac_tr_decl 1
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12054 #define $ac_tr_decl 0
12062 for ac_func
in mallinfo mallinfo2
12064 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12066 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12067 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12068 $as_echo_n "(cached) " >&6
12070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12073 #define $ac_tr_decl 1
12075 #include "ansidecl.h"
12076 #include "system.h"
12077 #ifdef HAVE_MALLOC_H
12078 #include <malloc.h>
12086 char *(*pfn) = (char *(*)) $ac_func ;
12092 if ac_fn_cxx_try_compile
"$LINENO"; then :
12093 eval "gcc_cv_have_decl_$ac_func=yes"
12095 eval "gcc_cv_have_decl_$ac_func=no"
12097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12100 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12103 #define $ac_tr_decl 1
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12109 #define $ac_tr_decl 0
12117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12120 #include "ansidecl.h"
12121 #include "system.h"
12122 #ifdef HAVE_SYS_RESOURCE_H
12123 #include <sys/resource.h>
12134 if ac_fn_cxx_try_compile
"$LINENO"; then :
12138 $as_echo "#define rlim_t long" >>confdefs.h
12141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12143 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12144 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12145 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12146 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12147 for ac_func
in ldgetname
12149 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12151 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12152 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12153 $as_echo_n "(cached) " >&6
12155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12158 #define $ac_tr_decl 1
12160 #include "ansidecl.h"
12161 #include "system.h"
12162 #ifdef HAVE_LDFCN_H
12173 char *(*pfn) = (char *(*)) $ac_func ;
12179 if ac_fn_cxx_try_compile
"$LINENO"; then :
12180 eval "gcc_cv_have_decl_$ac_func=yes"
12182 eval "gcc_cv_have_decl_$ac_func=no"
12184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12187 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12190 #define $ac_tr_decl 1
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12196 #define $ac_tr_decl 0
12204 for ac_func
in times
12206 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12208 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12209 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12210 $as_echo_n "(cached) " >&6
12212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12215 #define $ac_tr_decl 1
12217 #include "ansidecl.h"
12218 #include "system.h"
12219 #ifdef HAVE_SYS_TIMES_H
12220 #include <sys/times.h>
12228 char *(*pfn) = (char *(*)) $ac_func ;
12234 if ac_fn_cxx_try_compile
"$LINENO"; then :
12235 eval "gcc_cv_have_decl_$ac_func=yes"
12237 eval "gcc_cv_have_decl_$ac_func=no"
12239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12242 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12244 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12245 #define $ac_tr_decl 1
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12251 #define $ac_tr_decl 0
12259 for ac_func
in sigaltstack
12261 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12263 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12264 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
12265 $as_echo_n "(cached) " >&6
12267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 #define $ac_tr_decl 1
12272 #include "ansidecl.h"
12273 #include "system.h"
12274 #include <signal.h>
12281 char *(*pfn) = (char *(*)) $ac_func ;
12287 if ac_fn_cxx_try_compile
"$LINENO"; then :
12288 eval "gcc_cv_have_decl_$ac_func=yes"
12290 eval "gcc_cv_have_decl_$ac_func=no"
12292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12295 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12297 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
12298 #define $ac_tr_decl 1
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
12304 #define $ac_tr_decl 0
12312 # More time-related stuff.
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12314 $as_echo_n "checking for struct tms... " >&6; }
12315 if ${ac_cv_struct_tms+:} false
; then :
12316 $as_echo_n "(cached) " >&6
12319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12322 #include "ansidecl.h"
12323 #include "system.h"
12324 #ifdef HAVE_SYS_TIMES_H
12325 #include <sys/times.h>
12336 if ac_fn_cxx_try_compile
"$LINENO"; then :
12337 ac_cv_struct_tms
=yes
12339 ac_cv_struct_tms
=no
12341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12344 $as_echo "$ac_cv_struct_tms" >&6; }
12345 if test $ac_cv_struct_tms = yes; then
12347 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12351 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12352 # revisit after autoconf 2.50.
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12354 $as_echo_n "checking for clock_t... " >&6; }
12355 if ${gcc_cv_type_clock_t+:} false
; then :
12356 $as_echo_n "(cached) " >&6
12359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 #include "ansidecl.h"
12363 #include "system.h"
12373 if ac_fn_cxx_try_compile
"$LINENO"; then :
12374 gcc_cv_type_clock_t
=yes
12376 gcc_cv_type_clock_t
=no
12378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12381 $as_echo "$gcc_cv_type_clock_t" >&6; }
12382 if test $gcc_cv_type_clock_t = yes; then
12384 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12388 # Check if F_SETLKW is supported by fcntl.
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12390 $as_echo_n "checking for F_SETLKW... " >&6; }
12391 if ${ac_cv_f_setlkw+:} false
; then :
12392 $as_echo_n "(cached) " >&6
12395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12408 return fcntl (1, F_SETLKW, &fl);
12413 if ac_fn_cxx_try_compile
"$LINENO"; then :
12418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12421 $as_echo "$ac_cv_f_setlkw" >&6; }
12422 if test $ac_cv_f_setlkw = yes; then
12424 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12428 # Check if O_CLOEXEC is defined by fcntl
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12430 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12431 if ${ac_cv_o_cloexec+:} false
; then :
12432 $as_echo_n "(cached) " >&6
12435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12443 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12448 if ac_fn_cxx_try_compile
"$LINENO"; then :
12449 ac_cv_o_cloexec
=yes
12453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12456 $as_echo "$ac_cv_o_cloexec" >&6; }
12457 if test $ac_cv_o_cloexec = yes; then
12459 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12463 # Check if O_NONBLOCK is defined by fcntl
12464 for ac_header
in fcntl.h
12466 ac_fn_cxx_check_header_preproc
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12467 if test "x$ac_cv_header_fcntl_h" = xyes
; then :
12468 cat >>confdefs.h
<<_ACEOF
12469 #define HAVE_FCNTL_H 1
12475 ac_fn_cxx_check_decl
"$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12477 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes
; then :
12481 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12483 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12488 # C++ Modules would like some networking features to provide the mapping
12489 # server. You can still use modules without them though.
12490 # The following network-related checks could probably do with some
12491 # Windows and other non-linux defenses and checking.
12493 # Local socket connectivity wants AF_UNIX networking
12494 # Check for AF_UNIX networking
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12496 $as_echo_n "checking for AF_UNIX... " >&6; }
12497 if ${ac_cv_af_unix+:} false
; then :
12498 $as_echo_n "(cached) " >&6
12501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12504 #include <sys/types.h>
12505 #include <sys/socket.h>
12506 #include <sys/un.h>
12507 #include <netinet/in.h>
12513 un.sun_family = AF_UNSPEC;
12514 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12515 connect (fd, (sockaddr *)&un, sizeof (un));
12520 if ac_fn_cxx_try_compile
"$LINENO"; then :
12525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12528 $as_echo "$ac_cv_af_unix" >&6; }
12529 if test $ac_cv_af_unix = yes; then
12531 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12535 # Remote socket connectivity wants AF_INET6 networking
12536 # Check for AF_INET6 networking
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12538 $as_echo_n "checking for AF_INET6... " >&6; }
12539 if ${ac_cv_af_inet6+:} false
; then :
12540 $as_echo_n "(cached) " >&6
12543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 #include <sys/types.h>
12547 #include <sys/socket.h>
12548 #include <netinet/in.h>
12555 in6.sin6_family = AF_UNSPEC;
12556 struct addrinfo *addrs = 0;
12557 struct addrinfo hints;
12558 hints.ai_flags = 0;
12559 hints.ai_family = AF_INET6;
12560 hints.ai_socktype = SOCK_STREAM;
12561 hints.ai_protocol = 0;
12562 hints.ai_canonname = 0;
12565 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12566 const char *str = gai_strerror (e);
12567 freeaddrinfo (addrs);
12568 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12569 connect (fd, (sockaddr *)&in6, sizeof (in6));
12574 if ac_fn_cxx_try_compile
"$LINENO"; then :
12579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12582 $as_echo "$ac_cv_af_inet6" >&6; }
12583 if test $ac_cv_af_inet6 = yes; then
12585 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12589 # Check if _LK_LOCK is supported by _locking
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12591 $as_echo_n "checking for _LK_LOCK... " >&6; }
12592 if ${ac_cv_lk_lock+:} false
; then :
12593 $as_echo_n "(cached) " >&6
12596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12600 #include <sys/locking.h>
12606 return _locking (fd, _LK_LOCK, 0);
12611 if ac_fn_cxx_try_compile
"$LINENO"; then :
12616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12619 $as_echo "$ac_cv_lk_lock" >&6; }
12620 if test $ac_cv_lk_lock = yes; then
12622 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12626 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12627 CFLAGS
="$saved_CFLAGS"
12628 CXXFLAGS
="$saved_CXXFLAGS"
12630 # mkdir takes a single argument on some systems.
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12632 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12633 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12634 $as_echo_n "(cached) " >&6
12636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12639 #include <sys/types.h>
12640 #ifdef HAVE_SYS_STAT_H
12641 # include <sys/stat.h>
12643 #ifdef HAVE_UNISTD_H
12644 # include <unistd.h>
12646 #ifdef HAVE_DIRECT_H
12647 # include <direct.h>
12657 if ac_fn_cxx_try_compile
"$LINENO"; then :
12658 gcc_cv_mkdir_takes_one_arg
=no
12660 gcc_cv_mkdir_takes_one_arg
=yes
12662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12665 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12666 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12668 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12679 # With Setjmp/Longjmp based exception handling.
12680 # Check whether --enable-sjlj-exceptions was given.
12681 if test "${enable_sjlj_exceptions+set}" = set; then :
12682 enableval
=$enable_sjlj_exceptions; case $target in
12684 force_sjlj_exceptions
=yes
12688 force_sjlj_exceptions
=no
12693 if test $force_sjlj_exceptions = yes; then
12694 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12696 cat >>confdefs.h
<<_ACEOF
12697 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12702 # --------------------------------------------------------
12703 # Build, host, and target specific configuration fragments
12704 # --------------------------------------------------------
12706 # Collect build-machine-specific information.
12707 .
${srcdir}/config.build ||
exit 1
12709 # Collect host-machine-specific information.
12710 .
${srcdir}/config.
host ||
exit 1
12714 # Collect target-machine-specific information.
12715 .
${srcdir}/config.gcc ||
exit 1
12717 extra_objs
="${host_extra_objs} ${extra_objs}"
12718 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12720 # Default the target-machine variables that were not explicitly set.
12721 if test x
"$tm_file" = x
12722 then tm_file
=$cpu_type/$cpu_type.h
; fi
12724 if test x
"$extra_headers" = x
12725 then extra_headers
=; fi
12727 if test x
$md_file = x
12728 then md_file
=$cpu_type/$cpu_type.md
; fi
12730 if test x
$out_file = x
12731 then out_file
=$cpu_type/$cpu_type.cc
; fi
12733 if test x
"$tmake_file" = x
12734 then tmake_file
=$cpu_type/t-
$cpu_type
12737 # Support --enable-initfini-array.
12738 if test x
$enable_initfini_array != xno
; then
12739 tm_file
="${tm_file} initfini-array.h"
12742 if test x
"$dwarf2" = xyes
12743 then tm_file
="$tm_file tm-dwarf2.h"
12746 # Say what files are being used for the output code and MD file.
12747 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12748 echo "Using \`$srcdir/config/$md_file' as machine description file."
12750 # If any of the xm_file variables contain nonexistent files, warn
12751 # about them and drop them.
12754 for x
in $build_xm_file; do
12755 if test -f $srcdir/config
/$x
12757 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12758 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12761 build_xm_file
="$bx"
12764 for x
in $host_xm_file; do
12765 if test -f $srcdir/config
/$x
12767 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12768 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12774 for x
in $xm_file; do
12775 if test -f $srcdir/config
/$x
12777 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12778 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12784 for f
in $tm_file; do
12787 if test $count = ax
; then
12788 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12790 echo "Using the following target machine macro files:"
12791 for f
in $tm_file; do
12792 echo " $srcdir/config/$f"
12796 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12798 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12802 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12804 cat >>confdefs.h
<<_ACEOF
12805 #define HAVE_GNU_LD $gnu_ld_bool
12809 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12811 cat >>confdefs.h
<<_ACEOF
12812 #define HAVE_GNU_AS $gnu_as_bool
12817 for f
in $host_xm_file; do
12820 if test $count = a
; then
12822 elif test $count = ax
; then
12823 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12825 echo "Using the following host machine macro files:"
12826 for f
in $host_xm_file; do
12827 echo " $srcdir/config/$f"
12830 echo "Using ${out_host_hook_obj} for host machine hooks."
12832 if test "$host_xm_file" != "$build_xm_file"; then
12834 for f
in $build_xm_file; do
12837 if test $count = a
; then
12839 elif test $count = ax
; then
12840 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12842 echo "Using the following build machine macro files:"
12843 for f
in $build_xm_file; do
12844 echo " $srcdir/config/$f"
12849 if test -n "$configured_native_system_header_dir"; then
12850 native_system_header_dir
=$configured_native_system_header_dir
12852 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12856 powerpc
*-*-darwin*)
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12858 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12859 if ${gcc_cv_mcontext_underscores+:} false
; then :
12860 $as_echo_n "(cached) " >&6
12862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12865 #include <sys/cdefs.h>
12866 #include <sys/signal.h>
12867 #include <ucontext.h>
12868 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12871 if ac_fn_cxx_try_compile
"$LINENO"; then :
12872 gcc_cv_mcontext_underscores
=no
12874 gcc_cv_mcontext_underscores
=yes
12876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12879 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12880 if test $gcc_cv_mcontext_underscores = yes; then
12882 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12892 # Check if a valid thread package
12893 case ${enable_threads} in
12896 target_thread_file
='single'
12900 target_thread_file
='single'
12902 aix | dce | lynx | mipssde | posix | rtems | \
12903 single | tpf | vxworks | win32
)
12904 target_thread_file
=${enable_threads}
12907 echo "${enable_threads} is an unknown thread package" 1>&2
12912 if test x
${thread_file} = x
; then
12913 # No thread file set by target-specific clauses in config.gcc,
12914 # so use file chosen by default logic above
12915 thread_file
=${target_thread_file}
12923 if test x
$enable___cxa_atexit = xyes || \
12924 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12925 if test x
$host = x
$target; then
12927 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12928 # keyed to flag_use_cxa_atexit
12936 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12937 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12940 echo "__cxa_atexit can't be enabled on this target"
12946 # We can't check for __cxa_atexit when building a cross, so assume
12950 if test x
$use_cxa_atexit = xyes
; then
12952 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12957 # Look for a file containing extra machine modes.
12958 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12959 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12962 cat >>confdefs.h
<<_ACEOF
12963 #define EXTRA_MODES_FILE "config/$extra_modes"
12968 # Convert extra_options into a form suitable for Makefile use.
12971 for f
in $extra_options; do
12972 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12973 all_opt_files
="$all_opt_files $srcdir/config/$f"
12977 # auto-host.h is the file containing items generated by autoconf and is
12978 # the first file included by config.h.
12979 # If host=build, it is correct to have bconfig include auto-host.h
12980 # as well. If host!=build, we are in error and need to do more
12981 # work to find out the build config parameters.
12982 if test x
$host = x
$build
12984 build_auto
=auto-host.h
12985 HAVE_AUTO_BUILD
='# '
12987 # We create a subdir, then run autoconf in the subdir.
12988 # To prevent recursion we set host and build for the new
12989 # invocation of configure to the build for this invocation
12996 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12997 *) realsrcdir
=..
/${srcdir};;
12999 # Clearing GMPINC is necessary to prevent host headers being
13000 # used by the build compiler. Defining GENERATOR_FILE stops
13001 # system.h from including gmp.h.
13002 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
13003 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
13004 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
13005 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13006 ${realsrcdir}/configure \
13007 --enable-languages=${enable_languages-all} \
13008 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13009 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13010 --target=$target_alias --host=$build_alias \
13011 --build=$build_alias ||
exit # retaining $tempdir
13013 # We just finished tests for the build machine, so rename
13014 # the file auto-build.h in the gcc directory.
13015 mv auto-host.h ..
/auto-build.h
13018 build_auto
=auto-build.h
13024 tm_file
="${tm_file} defaults.h"
13025 tm_p_file
="${tm_p_file} tm-preds.h"
13026 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
13027 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
13028 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13029 # put this back in temporarily.
13030 xm_file
="auto-host.h ansidecl.h ${xm_file}"
13036 # Compile in configure arguments.
13037 if test -f configargs.h
; then
13038 # Being re-configured.
13039 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13040 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13041 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13042 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13045 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13048 # Double all backslashes and backslash all quotes to turn
13049 # gcc_config_arguments into a C string.
13050 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13051 $gcc_config_arguments
13053 gcc_config_arguments_str
=`cat conftest.out`
13056 cat > configargs.h
<<EOF
13057 /* Generated automatically. */
13058 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13059 static const char thread_model[] = "$thread_file";
13061 static const struct {
13062 const char *name, *value;
13063 } configure_default_options[] = $configure_default_options;
13066 gcc_BASEVER
=`cat $srcdir/BASE-VER`
13067 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
13068 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
13069 if test -f $srcdir/REVISION
; then
13070 gcc_REVISION
=`cat $srcdir/REVISION`
13074 cat > plugin-version.h
<<EOF
13075 #include "configargs.h"
13077 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13078 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13079 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13080 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13082 static char basever[] = "$gcc_BASEVER";
13083 static char datestamp[] = "$gcc_DATESTAMP";
13084 static char devphase[] = "$gcc_DEVPHASE";
13085 static char revision[] = "$gcc_REVISION";
13087 /* FIXME plugins: We should make the version information more precise.
13088 One way to do is to add a checksum. */
13090 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13091 devphase, revision,
13092 configuration_arguments};
13095 # Determine what GCC version number to use in filesystem paths.
13097 get_gcc_base_ver
="cat"
13099 # Check whether --with-gcc-major-version-only was given.
13100 if test "${with_gcc_major_version_only+set}" = set; then :
13101 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13102 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13110 # Internationalization
13111 # If we haven't got the data from the intl directory,
13112 # assume NLS is disabled.
13121 if test -f ..
/intl
/config.intl
; then
13122 . ..
/intl
/config.intl
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13125 $as_echo_n "checking whether NLS is requested... " >&6; }
13126 if test x
"$USE_NLS" != xyes
; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13131 $as_echo "yes" >&6; }
13133 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13137 $as_echo_n "checking for catalogs to be installed... " >&6; }
13138 # Look for .po and .gmo files in the source directory.
13141 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
13142 # If there aren't any .gmo files the shell will give us the
13143 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13145 case "$cat" in *\
**)
13148 # The quadruple backslash is collapsed to a double backslash
13149 # by the backticks, then collapsed again by the double quotes,
13150 # leaving us with one backslash in the sed expression (right
13151 # before the dot that mustn't act as a wildcard).
13152 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13153 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
13154 # The user is allowed to set LINGUAS to a list of languages to
13155 # install catalogs for. If it's empty that means "all of them."
13156 if test "x$LINGUAS" = x
; then
13157 CATALOGS
="$CATALOGS $cat"
13158 XLINGUAS
="$XLINGUAS $lang"
13160 case "$LINGUAS" in *$lang*)
13161 CATALOGS
="$CATALOGS $cat"
13162 XLINGUAS
="$XLINGUAS $lang"
13167 LINGUAS
="$XLINGUAS"
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13169 $as_echo "$LINGUAS" >&6; }
13182 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13183 # -liconv on the link line twice.
13184 case "$LIBINTL" in *$LIBICONV*)
13188 # Check whether --enable-secureplt was given.
13189 if test "${enable_secureplt+set}" = set; then :
13190 enableval
=$enable_secureplt;
13194 # Check whether --enable-mingw-wildcard was given.
13195 if test "${enable_mingw_wildcard+set}" = set; then :
13196 enableval
=$enable_mingw_wildcard;
13198 enable_mingw_wildcard
=platform
13201 if test x
"$enable_mingw_wildcard" != xplatform
; then :
13203 cat >>confdefs.h
<<_ACEOF
13204 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13209 # Check whether --enable-large-address-aware was given.
13210 if test "${enable_large_address_aware+set}" = set; then :
13211 enableval
=$enable_large_address_aware;
13214 if test x
"$enable_large_address_aware" = xyes
; then :
13216 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13220 # Check whether --enable-leading-mingw64-underscores was given.
13221 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13222 enableval
=$enable_leading_mingw64_underscores;
13225 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
13227 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13231 # Check whether --enable-cld was given.
13232 if test "${enable_cld+set}" = set; then :
13233 enableval
=$enable_cld;
13239 # Check whether --enable-frame-pointer was given.
13240 if test "${enable_frame_pointer+set}" = set; then :
13241 enableval
=$enable_frame_pointer;
13245 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
13246 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13247 enable_frame_pointer
=no
13250 enable_frame_pointer
=yes
13258 i
[34567]86-*-* | x86_64-
*-*)
13259 if test "x$enable_cld" = xyes
; then
13260 tm_defines
="${tm_defines} USE_IX86_CLD=1"
13262 if test "x$enable_frame_pointer" = xyes
; then
13263 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
13268 # Windows32 Registry support for specifying GCC installation paths.
13269 # Check whether --enable-win32-registry was given.
13270 if test "${enable_win32_registry+set}" = set; then :
13271 enableval
=$enable_win32_registry;
13276 win32 | pe | cygwin
* | mingw32
*)
13277 if test "x$enable_win32_registry" != xno
; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13279 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13280 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13281 $as_echo_n "(cached) " >&6
13283 ac_func_search_save_LIBS
=$LIBS
13284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13293 char RegOpenKeyExA ();
13297 return RegOpenKeyExA ();
13302 for ac_lib
in '' advapi32
; do
13303 if test -z "$ac_lib"; then
13304 ac_res
="none required"
13307 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13309 if ac_fn_cxx_try_link
"$LINENO"; then :
13310 ac_cv_search_RegOpenKeyExA
=$ac_res
13312 rm -f core conftest.err conftest.
$ac_objext \
13314 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13318 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
13321 ac_cv_search_RegOpenKeyExA
=no
13323 rm conftest.
$ac_ext
13324 LIBS
=$ac_func_search_save_LIBS
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13327 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13328 ac_res
=$ac_cv_search_RegOpenKeyExA
13329 if test "$ac_res" != no
; then :
13330 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13333 enable_win32_registry
=no
13338 if test "x$enable_win32_registry" != xno
; then
13340 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13343 if test "x$enable_win32_registry" != xyes \
13344 && test "x$enable_win32_registry" != x
; then
13346 cat >>confdefs.h
<<_ACEOF
13347 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13355 # Get an absolute path to the GCC top-level source directory
13356 holddir
=`${PWDCMD-pwd}`
13358 topdir
=`${PWDCMD-pwd}`
13361 # Conditionalize the makefile for this host machine.
13363 for f
in ${host_xmake_file}
13365 if test -f ${srcdir}/config
/$f
13367 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13371 # Conditionalize the makefile for this target machine.
13373 for f
in ${tmake_file}
13375 if test -f ${srcdir}/config
/$f
13377 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13380 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
13382 out_object_file
=`basename $out_file .cc`.o
13383 common_out_object_file
=`basename $common_out_file .cc`.o
13385 tm_file_list
="options.h"
13386 tm_include_list
="options.h insn-constants.h"
13387 for f
in $tm_file; do
13390 f
=`echo $f | sed 's/^..//'`
13391 tm_file_list
="${tm_file_list} $f"
13392 tm_include_list
="${tm_include_list} $f"
13395 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13396 tm_include_list
="${tm_include_list} $f"
13399 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13400 tm_include_list
="${tm_include_list} config/$f"
13407 for f
in $tm_p_file; do
13410 tm_p_file_list
="${tm_p_file_list} $f"
13411 tm_p_include_list
="${tm_p_include_list} $f"
13414 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13415 tm_p_include_list
="${tm_p_include_list} config/$f"
13421 for f
in $tm_d_file; do
13424 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13425 tm_d_include_list
="${tm_d_include_list} config/$f"
13432 for f
in $xm_file; do
13435 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13436 xm_include_list
="${xm_include_list} $f"
13439 xm_file_list
="${xm_file_list} $f"
13440 xm_include_list
="${xm_include_list} $f"
13443 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13444 xm_include_list
="${xm_include_list} config/$f"
13450 host_xm_include_list
=
13451 for f
in $host_xm_file; do
13454 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13455 host_xm_include_list
="${host_xm_include_list} $f"
13458 host_xm_file_list
="${host_xm_file_list} $f"
13459 host_xm_include_list
="${host_xm_include_list} $f"
13462 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13463 host_xm_include_list
="${host_xm_include_list} config/$f"
13468 build_xm_file_list
=
13469 for f
in $build_xm_file; do
13472 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13473 build_xm_include_list
="${build_xm_include_list} $f"
13475 auto-build.h | auto-host.h
)
13476 build_xm_file_list
="${build_xm_file_list} $f"
13477 build_xm_include_list
="${build_xm_include_list} $f"
13480 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13481 build_xm_include_list
="${build_xm_include_list} config/$f"
13486 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13487 # cross-compiler which does not use the native headers and libraries.
13488 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13491 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13492 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13494 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13495 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13496 if test "x$with_build_sysroot" != x
; then
13497 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13499 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13502 if test x
$host != x
$target
13504 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13506 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13507 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13508 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13511 if test "x$with_build_sysroot" != "x"; then
13512 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13513 elif test "x$with_sysroot" = x
; then
13514 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13515 elif test "x$with_sysroot" = xyes
; then
13516 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13518 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13521 target_header_dir
=${native_system_header_dir}
13524 # If this is a cross-compiler that does not
13525 # have its own set of headers then define
13528 # If this is using newlib, without having the headers available now,
13529 # then define inhibit_libc in LIBGCC2_CFLAGS.
13530 # This prevents libgcc2 from containing any code which requires libc
13532 : ${inhibit_libc=false}
13533 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13534 test x
$with_newlib = xyes
; } &&
13535 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13540 # When building gcc with a cross-compiler, we need to adjust things so
13541 # that the generator programs are still built with the native compiler.
13542 # Also, we cannot run fixincludes.
13544 # These are the normal (build=host) settings:
13545 CC_FOR_BUILD
='$(CC)'
13546 CXX_FOR_BUILD
='$(CXX)'
13547 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13548 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13549 BUILD_LDFLAGS
='$(LDFLAGS)'
13550 STMP_FIXINC
=stmp-fixinc
13552 # And these apply if build != host, or we are generating coverage data
13553 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13555 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13556 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13557 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13561 if test x
$enable_fixincludes = xno
;
13566 # Expand extra_headers to include complete path.
13567 # This substitutes for lots of t-* files.
13568 extra_headers_list
=
13569 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13570 for file in ${extra_headers} ; do
13571 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13574 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13575 if test x
"$use_gcc_tgmath" = xyes
13576 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13579 # Define collect2 in Makefile.
13580 case $host_can_use_collect2 in
13582 *) collect2
='collect2$(exeext)' ;;
13586 # Add a definition of USE_COLLECT2 if system wants one.
13587 case $use_collect2 in
13588 no
) use_collect2
= ;;
13591 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13592 xm_defines
="${xm_defines} USE_COLLECT2"
13593 case $host_can_use_collect2 in
13595 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13602 cat >>confdefs.h
<<_ACEOF
13603 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13607 # ---------------------------
13608 # Assembler & linker features
13609 # ---------------------------
13611 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13612 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13613 # However when ld-new is first executed from the build tree, libtool will
13614 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13615 # to the build tree. While doing this we need to use the previous-stage
13616 # linker, or we have an infinite loop. The presence of a shell script as
13617 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13618 # the gcc/collect-ld script. So we need to know how libtool works, or
13619 # exec-tool will fail.
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13625 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13630 macro_version
='2.2.7a'
13631 macro_revision
='1.3134'
13645 ltmain
="$ac_aux_dir/ltmain.sh"
13647 # Backslashify metacharacters that are still active within
13648 # double-quoted strings.
13649 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13651 # Same as above, but do not quote variable references.
13652 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13654 # Sed substitution to delay expansion of an escaped shell variable in a
13655 # double_quote_subst'ed string.
13656 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13658 # Sed substitution to delay expansion of an escaped single quote.
13659 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13661 # Sed substitution to avoid accidental globbing in evaled expressions
13662 no_glob_subst
='s/\*/\\\*/g'
13664 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13665 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13666 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13669 $as_echo_n "checking how to print strings... " >&6; }
13670 # Test print first, because it will be a builtin if present.
13671 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13672 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13674 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13677 # Use this function as a fallback that always works.
13678 func_fallback_echo ()
13680 eval 'cat <<_LTECHO_EOF
13684 ECHO='func_fallback_echo
'
13687 # func_echo_all arg...
13688 # Invoke $ECHO with all args, space-separated.
13695 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13696 $as_echo "printf" >&6; } ;;
13697 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13698 $as_echo "print -r" >&6; } ;;
13699 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13700 $as_echo "cat" >&6; } ;;
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13717 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13718 if ${ac_cv_path_SED+:} false; then :
13719 $as_echo_n "(cached) " >&6
13721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13722 for ac_i in 1 2 3 4 5 6 7; do
13723 ac_script="$ac_script$as_nl$ac_script"
13725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13726 { ac_script=; unset ac_script;}
13727 if test -z "$SED"; then
13728 ac_path_SED_found=false
13729 # Loop through the user's path and
test for each of PROGNAME-LIST
13730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13731 for as_dir
in $PATH
13734 test -z "$as_dir" && as_dir
=.
13735 for ac_prog
in sed gsed
; do
13736 for ac_exec_ext
in '' $ac_executable_extensions; do
13737 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13738 as_fn_executable_p
"$ac_path_SED" ||
continue
13739 # Check for GNU ac_path_SED and select it if it is found.
13740 # Check for GNU $ac_path_SED
13741 case `"$ac_path_SED" --version 2>&1` in
13743 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13746 $as_echo_n 0123456789 >"conftest.in"
13749 cat "conftest.in" "conftest.in" >"conftest.tmp"
13750 mv "conftest.tmp" "conftest.in"
13751 cp "conftest.in" "conftest.nl"
13752 $as_echo '' >> "conftest.nl"
13753 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13754 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13755 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13756 if test $ac_count -gt ${ac_path_SED_max-0}; then
13757 # Best one so far, save it but keep looking for a better one
13758 ac_cv_path_SED
="$ac_path_SED"
13759 ac_path_SED_max
=$ac_count
13761 # 10*(2^10) chars as input seems more than enough
13762 test $ac_count -gt 10 && break
13764 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13767 $ac_path_SED_found && break 3
13772 if test -z "$ac_cv_path_SED"; then
13773 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13776 ac_cv_path_SED
=$SED
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13781 $as_echo "$ac_cv_path_SED" >&6; }
13782 SED
="$ac_cv_path_SED"
13785 test -z "$SED" && SED
=sed
13786 Xsed
="$SED -e 1s/^X//"
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13799 $as_echo_n "checking for fgrep... " >&6; }
13800 if ${ac_cv_path_FGREP+:} false
; then :
13801 $as_echo_n "(cached) " >&6
13803 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13804 then ac_cv_path_FGREP
="$GREP -F"
13806 if test -z "$FGREP"; then
13807 ac_path_FGREP_found
=false
13808 # Loop through the user's path and test for each of PROGNAME-LIST
13809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13810 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13813 test -z "$as_dir" && as_dir
=.
13814 for ac_prog
in fgrep
; do
13815 for ac_exec_ext
in '' $ac_executable_extensions; do
13816 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13817 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13818 # Check for GNU ac_path_FGREP and select it if it is found.
13819 # Check for GNU $ac_path_FGREP
13820 case `"$ac_path_FGREP" --version 2>&1` in
13822 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13825 $as_echo_n 0123456789 >"conftest.in"
13828 cat "conftest.in" "conftest.in" >"conftest.tmp"
13829 mv "conftest.tmp" "conftest.in"
13830 cp "conftest.in" "conftest.nl"
13831 $as_echo 'FGREP' >> "conftest.nl"
13832 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13833 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13834 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13835 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13836 # Best one so far, save it but keep looking for a better one
13837 ac_cv_path_FGREP
="$ac_path_FGREP"
13838 ac_path_FGREP_max
=$ac_count
13840 # 10*(2^10) chars as input seems more than enough
13841 test $ac_count -gt 10 && break
13843 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13846 $ac_path_FGREP_found && break 3
13851 if test -z "$ac_cv_path_FGREP"; then
13852 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13855 ac_cv_path_FGREP
=$FGREP
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13861 $as_echo "$ac_cv_path_FGREP" >&6; }
13862 FGREP
="$ac_cv_path_FGREP"
13865 test -z "$GREP" && GREP
=grep
13885 # Check whether --with-gnu-ld was given.
13886 if test "${with_gnu_ld+set}" = set; then :
13887 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13893 if test "$GCC" = yes; then
13894 # Check if gcc -print-prog-name=ld gives a path.
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13896 $as_echo_n "checking for ld used by $CC... " >&6; }
13899 # gcc leaves a trailing carriage return which upsets mingw
13900 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13902 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13905 # Accept absolute paths.
13907 re_direlt
='/[^/][^/]*/\.\./'
13908 # Canonicalize the pathname of ld
13909 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13910 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13911 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13913 test -z "$LD" && LD
="$ac_prog"
13916 # If it fails, then pretend we aren't using GCC.
13920 # If it is relative, then search for the first ld in PATH.
13921 with_gnu_ld
=unknown
13924 elif test "$with_gnu_ld" = yes; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13926 $as_echo_n "checking for GNU ld... " >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13929 $as_echo_n "checking for non-GNU ld... " >&6; }
13931 if ${lt_cv_path_LD+:} false
; then :
13932 $as_echo_n "(cached) " >&6
13934 if test -z "$LD"; then
13935 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13936 for ac_dir
in $PATH; do
13938 test -z "$ac_dir" && ac_dir
=.
13939 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13940 lt_cv_path_LD
="$ac_dir/$ac_prog"
13941 # Check to see if the program is GNU ld. I'd rather use --version,
13942 # but apparently some variants of GNU ld only accept -v.
13943 # Break only if it was the GNU/non-GNU ld that we prefer.
13944 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13945 *GNU
* |
*'with BFD'*)
13946 test "$with_gnu_ld" != no
&& break
13949 test "$with_gnu_ld" != yes && break
13956 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13960 LD
="$lt_cv_path_LD"
13961 if test -n "$LD"; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13963 $as_echo "$LD" >&6; }
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13968 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13970 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13971 if ${lt_cv_prog_gnu_ld+:} false
; then :
13972 $as_echo_n "(cached) " >&6
13974 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13975 case `$LD -v 2>&1 </dev/null` in
13976 *GNU
* |
*'with BFD'*)
13977 lt_cv_prog_gnu_ld
=yes
13980 lt_cv_prog_gnu_ld
=no
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13985 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13986 with_gnu_ld
=$lt_cv_prog_gnu_ld
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13997 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13998 if ${lt_cv_path_NM+:} false
; then :
13999 $as_echo_n "(cached) " >&6
14001 if test -n "$NM"; then
14002 # Let the user override the test.
14003 lt_cv_path_NM
="$NM"
14005 lt_nm_to_check
="${ac_tool_prefix}nm"
14006 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14007 lt_nm_to_check
="$lt_nm_to_check nm"
14009 for lt_tmp_nm
in $lt_nm_to_check; do
14010 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
14011 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
14013 test -z "$ac_dir" && ac_dir
=.
14014 tmp_nm
="$ac_dir/$lt_tmp_nm"
14015 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
14016 # Check to see if the nm accepts a BSD-compat flag.
14017 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14018 # nm: unknown option "B" ignored
14019 # Tru64's nm complains that /dev/null is an invalid object file
14020 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14021 */dev
/null
* |
*'Invalid file or object type'*)
14022 lt_cv_path_NM
="$tmp_nm -B"
14026 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14028 lt_cv_path_NM
="$tmp_nm -p"
14032 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14033 continue # so that we can try to find one that supports BSD flags
14042 : ${lt_cv_path_NM=no}
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14046 $as_echo "$lt_cv_path_NM" >&6; }
14047 if test "$lt_cv_path_NM" != "no"; then
14048 NM
="$lt_cv_path_NM"
14050 # Didn't find any BSD compatible name lister, look for dumpbin.
14051 if test -n "$DUMPBIN"; then :
14052 # Let the user override the test.
14054 if test -n "$ac_tool_prefix"; then
14055 for ac_prog
in dumpbin
"link -dump"
14057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14058 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14060 $as_echo_n "checking for $ac_word... " >&6; }
14061 if ${ac_cv_prog_DUMPBIN+:} false
; then :
14062 $as_echo_n "(cached) " >&6
14064 if test -n "$DUMPBIN"; then
14065 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
14067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14068 for as_dir
in $PATH
14071 test -z "$as_dir" && as_dir
=.
14072 for ac_exec_ext
in '' $ac_executable_extensions; do
14073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14084 DUMPBIN
=$ac_cv_prog_DUMPBIN
14085 if test -n "$DUMPBIN"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14087 $as_echo "$DUMPBIN" >&6; }
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14094 test -n "$DUMPBIN" && break
14097 if test -z "$DUMPBIN"; then
14098 ac_ct_DUMPBIN
=$DUMPBIN
14099 for ac_prog
in dumpbin
"link -dump"
14101 # Extract the first word of "$ac_prog", so it can be a program name with args.
14102 set dummy
$ac_prog; ac_word
=$2
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104 $as_echo_n "checking for $ac_word... " >&6; }
14105 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
14106 $as_echo_n "(cached) " >&6
14108 if test -n "$ac_ct_DUMPBIN"; then
14109 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
14111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14112 for as_dir
in $PATH
14115 test -z "$as_dir" && as_dir
=.
14116 for ac_exec_ext
in '' $ac_executable_extensions; do
14117 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14118 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
14119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14128 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
14129 if test -n "$ac_ct_DUMPBIN"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14131 $as_echo "$ac_ct_DUMPBIN" >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14138 test -n "$ac_ct_DUMPBIN" && break
14141 if test "x$ac_ct_DUMPBIN" = x
; then
14144 case $cross_compiling:$ac_tool_warned in
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14148 ac_tool_warned
=yes ;;
14150 DUMPBIN
=$ac_ct_DUMPBIN
14154 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14156 DUMPBIN
="$DUMPBIN -symbols"
14164 if test "$DUMPBIN" != ":"; then
14168 test -z "$NM" && NM
=nm
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14176 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14177 if ${lt_cv_nm_interface+:} false
; then :
14178 $as_echo_n "(cached) " >&6
14180 lt_cv_nm_interface
="BSD nm"
14181 echo "int some_variable = 0;" > conftest.
$ac_ext
14182 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14183 (eval "$ac_compile" 2>conftest.err
)
14184 cat conftest.err
>&5
14185 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14186 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
14187 cat conftest.err
>&5
14188 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14189 cat conftest.out
>&5
14190 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
14191 lt_cv_nm_interface
="MS dumpbin"
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14196 $as_echo "$lt_cv_nm_interface" >&6; }
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14199 $as_echo_n "checking whether ln -s works... " >&6; }
14201 if test "$LN_S" = "ln -s"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14203 $as_echo "yes" >&6; }
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14206 $as_echo "no, using $LN_S" >&6; }
14209 # find the maximum length of command line arguments
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14211 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14212 if ${lt_cv_sys_max_cmd_len+:} false
; then :
14213 $as_echo_n "(cached) " >&6
14220 # On DJGPP, this test can blow up pretty badly due to problems in libc
14221 # (any single argument exceeding 2000 bytes causes a buffer overrun
14222 # during glob expansion). Even if it were fixed, the result of this
14223 # check would be larger than it should be.
14224 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
14228 # Under GNU Hurd, this test is not required because there is
14229 # no limit to the length of command line arguments.
14230 # Libtool will interpret -1 as no limit whatsoever
14231 lt_cv_sys_max_cmd_len
=-1;
14234 cygwin
* | mingw
* | cegcc
*)
14235 # On Win9x/ME, this test blows up -- it succeeds, but takes
14236 # about 5 minutes as the teststring grows exponentially.
14237 # Worse, since 9x/ME are not pre-emptively multitasking,
14238 # you end up with a "frozen" computer, even though with patience
14239 # the test eventually succeeds (with a max line length of 256k).
14240 # Instead, let's just punt: use the minimum linelength reported by
14241 # all of the supported platforms: 8192 (on NT/2K/XP).
14242 lt_cv_sys_max_cmd_len
=8192;
14246 # On MiNT this can take a long time and run out of memory.
14247 lt_cv_sys_max_cmd_len
=8192;
14251 # On AmigaOS with pdksh, this test takes hours, literally.
14252 # So we just punt and use a minimum line length of 8192.
14253 lt_cv_sys_max_cmd_len
=8192;
14256 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
14257 # This has been around since 386BSD, at least. Likely further.
14258 if test -x /sbin
/sysctl
; then
14259 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
14260 elif test -x /usr
/sbin
/sysctl
; then
14261 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
14263 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
14265 # And add a safety zone
14266 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14267 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14271 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14272 lt_cv_sys_max_cmd_len
=196608
14276 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14277 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14278 # nice to cause kernel panics so lets avoid the loop below.
14279 # First set a reasonable default.
14280 lt_cv_sys_max_cmd_len
=16384
14282 if test -x /sbin
/sysconfig
; then
14283 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14284 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
14289 lt_cv_sys_max_cmd_len
=102400
14291 sysv5
* | sco5v6
* | sysv4.2uw2
*)
14292 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14293 if test -n "$kargmax"; then
14294 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
14296 lt_cv_sys_max_cmd_len
=32768
14300 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
14301 if test -n "$lt_cv_sys_max_cmd_len"; then
14302 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
14303 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
14305 # Make teststring a little bigger before we do anything with it.
14306 # a 1K string should be a reasonable start.
14307 for i
in 1 2 3 4 5 6 7 8 ; do
14308 teststring
=$teststring$teststring
14310 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
14311 # If test is not a shell built-in, we'll probably end up computing a
14312 # maximum length that is only half of the actual maximum length, but
14314 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14315 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
14316 test $i != 17 # 1/2 MB should be enough
14319 teststring
=$teststring$teststring
14321 # Only check the string length outside the loop.
14322 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
14324 # Add a significant safety factor because C++ compilers can tack on
14325 # massive amounts of additional arguments before passing them to the
14326 # linker. It appears as though 1/2 is a usable value.
14327 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
14334 if test -n $lt_cv_sys_max_cmd_len ; then
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14336 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14339 $as_echo "none" >&6; }
14341 max_cmd_len
=$lt_cv_sys_max_cmd_len
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14353 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14354 # Try some XSI features
14356 ( _lt_dummy
="a/b/c"
14357 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14359 && eval 'test $(( 1 + 1 )) -eq 2 \
14360 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
14363 $as_echo "$xsi_shell" >&6; }
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
14367 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
14369 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
14371 && lt_shell_append=yes
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
14373 $as_echo "$lt_shell_append" >&6; }
14376 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14386 # test EBCDIC or ASCII
14387 case `echo X|tr X '\101'` in
14388 A) # ASCII based system
14389 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14390 lt_SP2NL='tr \040 \012'
14391 lt_NL2SP='tr \015\012 \040\040'
14393 *) # EBCDIC based system
14394 lt_SP2NL='tr \100 \n'
14395 lt_NL2SP='tr \r\n \100\100'
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14408 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14409 if ${lt_cv_ld_reload_flag+:} false; then :
14410 $as_echo_n "(cached
) " >&6
14412 lt_cv_ld_reload_flag='-r'
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14415 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14416 reload_flag=$lt_cv_ld_reload_flag
14417 case $reload_flag in
14419 *) reload_flag=" $reload_flag" ;;
14421 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14424 if test "$GCC" = yes; then
14425 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14427 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14440 if test -n "$ac_tool_prefix"; then
14441 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14442 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14444 $as_echo_n "checking
for $ac_word...
" >&6; }
14445 if ${ac_cv_prog_OBJDUMP+:} false; then :
14446 $as_echo_n "(cached
) " >&6
14448 if test -n "$OBJDUMP"; then
14449 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14452 for as_dir in $PATH
14455 test -z "$as_dir" && as_dir=.
14456 for ac_exec_ext in '' $ac_executable_extensions; do
14457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14458 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14459 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14468 OBJDUMP=$ac_cv_prog_OBJDUMP
14469 if test -n "$OBJDUMP"; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14471 $as_echo "$OBJDUMP" >&6; }
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14474 $as_echo "no
" >&6; }
14479 if test -z "$ac_cv_prog_OBJDUMP"; then
14480 ac_ct_OBJDUMP=$OBJDUMP
14481 # Extract the first word of "objdump
", so it can be a program name with args.
14482 set dummy objdump; ac_word=$2
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14484 $as_echo_n "checking
for $ac_word...
" >&6; }
14485 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14486 $as_echo_n "(cached
) " >&6
14488 if test -n "$ac_ct_OBJDUMP"; then
14489 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14492 for as_dir in $PATH
14495 test -z "$as_dir" && as_dir=.
14496 for ac_exec_ext in '' $ac_executable_extensions; do
14497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14498 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14508 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14509 if test -n "$ac_ct_OBJDUMP"; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14511 $as_echo "$ac_ct_OBJDUMP" >&6; }
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14514 $as_echo "no
" >&6; }
14517 if test "x
$ac_ct_OBJDUMP" = x; then
14520 case $cross_compiling:$ac_tool_warned in
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14523 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14524 ac_tool_warned=yes ;;
14526 OBJDUMP=$ac_ct_OBJDUMP
14529 OBJDUMP="$ac_cv_prog_OBJDUMP"
14532 test -z "$OBJDUMP" && OBJDUMP=objdump
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14543 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14544 if ${lt_cv_deplibs_check_method+:} false; then :
14545 $as_echo_n "(cached
) " >&6
14547 lt_cv_file_magic_cmd='$MAGIC_CMD'
14548 lt_cv_file_magic_test_file=
14549 lt_cv_deplibs_check_method='unknown'
14550 # Need to set the preceding variable on all platforms that support
14551 # interlibrary dependencies.
14552 # 'none' -- dependencies not supported.
14553 # `unknown' -- same as none, but documents that we really don't know.
14554 # 'pass_all' -- all dependencies passed with no checks.
14555 # 'test_compile' -- check by making test program.
14556 # 'file_magic [[regex]]' -- check by looking for files in library path
14557 # which responds to the $file_magic_cmd with a given extended regex.
14558 # If you have `file' or equivalent on your system and you're not sure
14559 # whether `pass_all' will *always* work, you probably want this one.
14563 lt_cv_deplibs_check_method=pass_all
14567 lt_cv_deplibs_check_method=pass_all
14571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14572 lt_cv_file_magic_cmd='/usr/bin/file -L'
14573 lt_cv_file_magic_test_file=/shlib/libc.so
14577 # func_win32_libid is a shell function defined in ltmain.sh
14578 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14579 lt_cv_file_magic_cmd='func_win32_libid'
14583 # Base MSYS/MinGW do not provide the 'file' command needed by
14584 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14585 # unless we find 'file', for example because we are cross-compiling.
14586 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14587 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14589 lt_cv_file_magic_cmd='func_win32_libid'
14591 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14592 lt_cv_file_magic_cmd='$OBJDUMP -f'
14597 # use the weaker test based on 'objdump'. See mingw*.
14598 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14599 lt_cv_file_magic_cmd='$OBJDUMP -f'
14602 darwin* | rhapsody*)
14603 lt_cv_deplibs_check_method=pass_all
14606 freebsd* | dragonfly*)
14607 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14610 # Not sure whether the presence of OpenBSD here was a mistake.
14611 # Let's accept both of them until this is cleared up.
14612 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14613 lt_cv_file_magic_cmd=/usr/bin/file
14614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14618 lt_cv_deplibs_check_method=pass_all
14623 lt_cv_deplibs_check_method=pass_all
14627 lt_cv_deplibs_check_method=pass_all
14630 hpux10.20* | hpux11*)
14631 lt_cv_file_magic_cmd=/usr/bin/file
14634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14635 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14638 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]'
14639 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14642 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14643 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14649 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14653 irix5* | irix6* | nonstopux*)
14655 *-32|*"-32 ") libmagic=32-bit;;
14656 *-n32|*"-n32 ") libmagic=N32;;
14657 *-64|*"-64 ") libmagic=64-bit;;
14658 *) libmagic=never-match;;
14660 lt_cv_deplibs_check_method=pass_all
14663 # This must be Linux ELF.
14664 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14665 lt_cv_deplibs_check_method=pass_all
14669 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14678 lt_cv_file_magic_cmd=/usr/bin/file
14679 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14683 lt_cv_deplibs_check_method=pass_all
14687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14694 osf3* | osf4* | osf5*)
14695 lt_cv_deplibs_check_method=pass_all
14699 lt_cv_deplibs_check_method=pass_all
14703 lt_cv_deplibs_check_method=pass_all
14706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14707 lt_cv_deplibs_check_method=pass_all
14711 case $host_vendor in
14713 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]'
14714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14717 lt_cv_deplibs_check_method=pass_all
14720 lt_cv_file_magic_cmd='/bin/file'
14721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14724 lt_cv_file_magic_cmd='/bin/file'
14725 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14726 lt_cv_file_magic_test_file=/lib/libc.so
14729 lt_cv_deplibs_check_method=pass_all
14732 lt_cv_deplibs_check_method=pass_all
14738 lt_cv_deplibs_check_method=pass_all
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14744 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14745 file_magic_cmd=$lt_cv_file_magic_cmd
14746 deplibs_check_method=$lt_cv_deplibs_check_method
14747 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14760 if test -n "$ac_tool_prefix"; then
14761 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14762 set dummy ${ac_tool_prefix}ar; ac_word=$2
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14764 $as_echo_n "checking
for $ac_word...
" >&6; }
14765 if ${ac_cv_prog_AR+:} false; then :
14766 $as_echo_n "(cached
) " >&6
14768 if test -n "$AR"; then
14769 ac_cv_prog_AR="$AR" # Let the user override the test.
14771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772 for as_dir in $PATH
14775 test -z "$as_dir" && as_dir=.
14776 for ac_exec_ext in '' $ac_executable_extensions; do
14777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14778 ac_cv_prog_AR="${ac_tool_prefix}ar"
14779 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14789 if test -n "$AR"; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14791 $as_echo "$AR" >&6; }
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14794 $as_echo "no
" >&6; }
14799 if test -z "$ac_cv_prog_AR"; then
14801 # Extract the first word of "ar", so it can be a program name with args.
14802 set dummy ar; ac_word=$2
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14804 $as_echo_n "checking
for $ac_word...
" >&6; }
14805 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14806 $as_echo_n "(cached
) " >&6
14808 if test -n "$ac_ct_AR"; then
14809 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14812 for as_dir in $PATH
14815 test -z "$as_dir" && as_dir=.
14816 for ac_exec_ext in '' $ac_executable_extensions; do
14817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14818 ac_cv_prog_ac_ct_AR="ar"
14819 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14828 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14829 if test -n "$ac_ct_AR"; then
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14831 $as_echo "$ac_ct_AR" >&6; }
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14834 $as_echo "no
" >&6; }
14837 if test "x
$ac_ct_AR" = x; then
14840 case $cross_compiling:$ac_tool_warned in
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14843 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14844 ac_tool_warned=yes ;;
14849 AR="$ac_cv_prog_AR"
14852 test -z "$AR" && AR=ar
14853 test -z "$AR_FLAGS" && AR_FLAGS=cru
14865 if test -n "$ac_tool_prefix"; then
14866 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14867 set dummy ${ac_tool_prefix}strip; ac_word=$2
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14869 $as_echo_n "checking
for $ac_word...
" >&6; }
14870 if ${ac_cv_prog_STRIP+:} false; then :
14871 $as_echo_n "(cached
) " >&6
14873 if test -n "$STRIP"; then
14874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14877 for as_dir in $PATH
14880 test -z "$as_dir" && as_dir=.
14881 for ac_exec_ext in '' $ac_executable_extensions; do
14882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14883 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14884 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14893 STRIP=$ac_cv_prog_STRIP
14894 if test -n "$STRIP"; then
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14896 $as_echo "$STRIP" >&6; }
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14899 $as_echo "no
" >&6; }
14904 if test -z "$ac_cv_prog_STRIP"; then
14906 # Extract the first word of "strip
", so it can be a program name with args.
14907 set dummy strip; ac_word=$2
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14909 $as_echo_n "checking
for $ac_word...
" >&6; }
14910 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14911 $as_echo_n "(cached
) " >&6
14913 if test -n "$ac_ct_STRIP"; then
14914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917 for as_dir in $PATH
14920 test -z "$as_dir" && as_dir=.
14921 for ac_exec_ext in '' $ac_executable_extensions; do
14922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14923 ac_cv_prog_ac_ct_STRIP="strip
"
14924 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14934 if test -n "$ac_ct_STRIP"; then
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14936 $as_echo "$ac_ct_STRIP" >&6; }
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14939 $as_echo "no
" >&6; }
14942 if test "x
$ac_ct_STRIP" = x; then
14945 case $cross_compiling:$ac_tool_warned in
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14948 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14949 ac_tool_warned=yes ;;
14954 STRIP="$ac_cv_prog_STRIP"
14957 test -z "$STRIP" && STRIP=:
14964 if test -n "$ac_tool_prefix"; then
14965 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14968 $as_echo_n "checking
for $ac_word...
" >&6; }
14969 if ${ac_cv_prog_RANLIB+:} false; then :
14970 $as_echo_n "(cached
) " >&6
14972 if test -n "$RANLIB"; then
14973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14979 test -z "$as_dir" && as_dir=.
14980 for ac_exec_ext in '' $ac_executable_extensions; do
14981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14983 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14992 RANLIB=$ac_cv_prog_RANLIB
14993 if test -n "$RANLIB"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14995 $as_echo "$RANLIB" >&6; }
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14998 $as_echo "no
" >&6; }
15003 if test -z "$ac_cv_prog_RANLIB"; then
15004 ac_ct_RANLIB=$RANLIB
15005 # Extract the first word of "ranlib
", so it can be a program name with args.
15006 set dummy ranlib; ac_word=$2
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15008 $as_echo_n "checking
for $ac_word...
" >&6; }
15009 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15010 $as_echo_n "(cached
) " >&6
15012 if test -n "$ac_ct_RANLIB"; then
15013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15016 for as_dir in $PATH
15019 test -z "$as_dir" && as_dir=.
15020 for ac_exec_ext in '' $ac_executable_extensions; do
15021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15022 ac_cv_prog_ac_ct_RANLIB="ranlib
"
15023 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15033 if test -n "$ac_ct_RANLIB"; then
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
15035 $as_echo "$ac_ct_RANLIB" >&6; }
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15038 $as_echo "no
" >&6; }
15041 if test "x
$ac_ct_RANLIB" = x; then
15044 case $cross_compiling:$ac_tool_warned in
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15047 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15048 ac_tool_warned=yes ;;
15050 RANLIB=$ac_ct_RANLIB
15053 RANLIB="$ac_cv_prog_RANLIB"
15056 test -z "$RANLIB" && RANLIB=:
15063 # Determine commands to create old-style static archives.
15064 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15065 old_postinstall_cmds='chmod 644 $oldlib'
15066 old_postuninstall_cmds=
15068 if test -n "$RANLIB"; then
15071 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
15074 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
15077 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
15082 lock_old_archive_extraction=yes ;;
15084 lock_old_archive_extraction=no ;;
15125 # If no C compiler was specified, use CC.
15128 # If no C compiler flags were specified, use CFLAGS.
15129 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15131 # Allow CC to be a program name with arguments.
15135 # Check for command to grab the raw symbol name followed by C symbol from nm.
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
15137 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
15138 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15139 $as_echo_n "(cached
) " >&6
15142 # These are sane defaults that work on at least a few old systems.
15143 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15145 # Character class describing NM global symbol codes.
15146 symcode='[BCDEGRST]'
15148 # Regexp to match symbols that can be accessed directly from C.
15149 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15151 # Define system-specific variables.
15156 cygwin* | mingw* | pw32* | cegcc*)
15157 symcode='[ABCDGISTW]'
15160 if test "$host_cpu" = ia64; then
15161 symcode='[ABCDEGRST]'
15164 irix* | nonstopux*)
15165 symcode='[BCDEGRST]'
15168 symcode='[BCDEGQRST]'
15179 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15187 # If we're using GNU nm, then use its standard symbol codes.
15188 case `$NM -V 2>&1` in
15189 *GNU* | *'with BFD'*)
15190 symcode='[ABCDGIRSTW]' ;;
15193 # Transform an extracted symbol line into a proper C declaration.
15194 # Some systems (esp. on ia64) link data and code symbols differently,
15195 # so use this general approach.
15196 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15198 # Transform an extracted symbol line into symbol name and symbol address
15199 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15200 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'"
15202 # Handle CRLF in mingw tool chain
15206 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15210 # Try without a prefix underscore, then with it.
15211 for ac_symprfx in "" "_
"; do
15213 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15214 symxfrm="\\1 $ac_symprfx\\2 \\2"
15216 # Write the raw and C identifiers.
15217 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
15218 # Fake it for dumpbin and say T for any non-static function
15219 # and D for any global variable.
15220 # Also find C++ and __fastcall symbols from MSVC++,
15221 # which start with @ or ?.
15222 lt_cv_sys_global_symbol_pipe="$AWK '"\
15223 " {last_section=section; section=\$ 3};"\
15224 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15225 " \$ 0!~/External *\|/{next};"\
15226 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15227 " {if(hide[section]) next};"\
15228 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15229 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15230 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15231 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15232 " ' prfx
=^
$ac_symprfx"
15234 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15237 # Check to see that the pipe works correctly.
15241 cat > conftest.$ac_ext <<_LT_EOF
15246 void nm_test_func(void);
15247 void nm_test_func(void){}
15251 int main(){nm_test_var='a';nm_test_func();return(0);}
15254 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15255 (eval $ac_compile) 2>&5
15257 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15258 test $ac_status = 0; }; then
15259 # Now try to grab the symbols.
15261 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
15262 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15264 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15265 test $ac_status = 0; } && test -s "$nlist"; then
15266 # Try sorting and uniquifying the output.
15267 if sort "$nlist" | uniq > "$nlist"T; then
15268 mv -f "$nlist"T "$nlist"
15273 # Make sure that we snagged all the symbols we need.
15274 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15275 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15276 cat <<_LT_EOF > conftest.$ac_ext
15282 # Now generate the symbol file.
15283 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15285 cat <<_LT_EOF >> conftest.$ac_ext
15287 /* The mapping between symbol names and symbols. */
15292 lt__PROGRAM__LTX_preloaded_symbols[] =
15294 { "@PROGRAM@
", (void *) 0 },
15296 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15297 cat <<\_LT_EOF >> conftest.$ac_ext
15301 /* This works around a problem in FreeBSD linker */
15302 #ifdef FREEBSD_WORKAROUND
15303 static const void *lt_preloaded_setup() {
15304 return lt__PROGRAM__LTX_preloaded_symbols;
15312 # Now try linking the two files.
15313 mv conftest.$ac_objext conftstm.$ac_objext
15314 lt_save_LIBS="$LIBS"
15315 lt_save_CFLAGS="$CFLAGS"
15316 LIBS="conftstm.
$ac_objext"
15317 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15318 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15319 (eval $ac_link) 2>&5
15321 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15322 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15325 LIBS="$lt_save_LIBS"
15326 CFLAGS="$lt_save_CFLAGS"
15328 echo "cannot
find nm_test_func
in $nlist" >&5
15331 echo "cannot
find nm_test_var
in $nlist" >&5
15334 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
15337 echo "$progname: failed program was
:" >&5
15338 cat conftest.$ac_ext >&5
15340 rm -rf conftest* conftst*
15342 # Do not use the global_symbol_pipe unless it works.
15343 if test "$pipe_works" = yes; then
15346 lt_cv_sys_global_symbol_pipe=
15352 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15353 lt_cv_sys_global_symbol_to_cdecl=
15355 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
15357 $as_echo "failed
" >&6; }
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
15360 $as_echo "ok
" >&6; }
15384 # Check whether --enable-libtool-lock was given.
15385 if test "${enable_libtool_lock+set}" = set; then :
15386 enableval=$enable_libtool_lock;
15389 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
15391 # Some flags need to be propagated to the compiler or linker for good
15395 # Find out which ABI we are using.
15396 echo 'int i;' > conftest.$ac_ext
15397 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15398 (eval $ac_compile) 2>&5
15400 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15401 test $ac_status = 0; }; then
15402 case `/usr/bin/file conftest.$ac_objext` in
15404 HPUX_IA64_MODE="32"
15407 HPUX_IA64_MODE="64"
15414 # Find out which ABI we are using.
15415 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15416 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15417 (eval $ac_compile) 2>&5
15419 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15420 test $ac_status = 0; }; then
15421 if test "$lt_cv_prog_gnu_ld" = yes; then
15422 case `/usr/bin/file conftest.$ac_objext` in
15424 LD="${LD-ld} -melf32bsmip"
15427 LD="${LD-ld} -melf32bmipn32"
15430 LD="${LD-ld} -melf64bmip"
15434 case `/usr/bin/file conftest.$ac_objext` in
15450 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15451 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15452 # Find out which ABI we are using.
15453 echo 'int i;' > conftest.$ac_ext
15454 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15455 (eval $ac_compile) 2>&5
15457 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15458 test $ac_status = 0; }; then
15459 case `/usr/bin/file conftest.o` in
15462 x86_64-*kfreebsd*-gnu)
15463 LD="${LD-ld} -m elf_i386_fbsd
"
15466 case `/usr/bin/file conftest.o` in
15468 LD="${LD-ld} -m elf32_x86_64
"
15471 LD="${LD-ld} -m elf_i386
"
15475 powerpc64le-*linux*)
15476 LD="${LD-ld} -m elf32lppclinux
"
15479 LD="${LD-ld} -m elf32ppclinux
"
15482 LD="${LD-ld} -m elf_s390
"
15485 LD="${LD-ld} -m elf32_sparc
"
15491 x86_64-*kfreebsd*-gnu)
15492 LD="${LD-ld} -m elf_x86_64_fbsd
"
15495 LD="${LD-ld} -m elf_x86_64
"
15498 LD="${LD-ld} -m elf64lppc
"
15501 LD="${LD-ld} -m elf64ppc
"
15503 s390*-*linux*|s390*-*tpf*)
15504 LD="${LD-ld} -m elf64_s390
"
15507 LD="${LD-ld} -m elf64_sparc
"
15517 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15518 SAVE_CFLAGS="$CFLAGS"
15519 CFLAGS="$CFLAGS -belf"
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15521 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15522 if ${lt_cv_cc_needs_belf+:} false; then :
15523 $as_echo_n "(cached
) " >&6
15526 ac_cpp='$CPP $CPPFLAGS'
15527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15542 if ac_fn_c_try_link "$LINENO"; then :
15543 lt_cv_cc_needs_belf=yes
15545 lt_cv_cc_needs_belf=no
15547 rm -f core conftest.err conftest.$ac_objext \
15548 conftest$ac_exeext conftest.$ac_ext
15550 ac_cpp='$CPP $CPPFLAGS'
15551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15557 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15558 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15559 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15560 CFLAGS="$SAVE_CFLAGS"
15564 # Find out which ABI we are using.
15565 echo 'int i;' > conftest.$ac_ext
15566 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15567 (eval $ac_compile) 2>&5
15569 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15570 test $ac_status = 0; }; then
15571 case `/usr/bin/file conftest.o` in
15573 case $lt_cv_prog_gnu_ld in
15574 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15576 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15588 need_locks="$enable_libtool_lock"
15592 rhapsody* | darwin*)
15593 if test -n "$ac_tool_prefix"; then
15594 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15595 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15597 $as_echo_n "checking
for $ac_word...
" >&6; }
15598 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15599 $as_echo_n "(cached
) " >&6
15601 if test -n "$DSYMUTIL"; then
15602 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15605 for as_dir in $PATH
15608 test -z "$as_dir" && as_dir=.
15609 for ac_exec_ext in '' $ac_executable_extensions; do
15610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15611 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15612 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15621 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15622 if test -n "$DSYMUTIL"; then
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15624 $as_echo "$DSYMUTIL" >&6; }
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15627 $as_echo "no
" >&6; }
15632 if test -z "$ac_cv_prog_DSYMUTIL"; then
15633 ac_ct_DSYMUTIL=$DSYMUTIL
15634 # Extract the first word of "dsymutil
", so it can be a program name with args.
15635 set dummy dsymutil; ac_word=$2
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15637 $as_echo_n "checking
for $ac_word...
" >&6; }
15638 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15639 $as_echo_n "(cached
) " >&6
15641 if test -n "$ac_ct_DSYMUTIL"; then
15642 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15645 for as_dir in $PATH
15648 test -z "$as_dir" && as_dir=.
15649 for ac_exec_ext in '' $ac_executable_extensions; do
15650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15651 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15652 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15661 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15662 if test -n "$ac_ct_DSYMUTIL"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15664 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15667 $as_echo "no
" >&6; }
15670 if test "x
$ac_ct_DSYMUTIL" = x; then
15673 case $cross_compiling:$ac_tool_warned in
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15676 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15677 ac_tool_warned=yes ;;
15679 DSYMUTIL=$ac_ct_DSYMUTIL
15682 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15685 if test -n "$ac_tool_prefix"; then
15686 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15687 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15689 $as_echo_n "checking
for $ac_word...
" >&6; }
15690 if ${ac_cv_prog_NMEDIT+:} false; then :
15691 $as_echo_n "(cached
) " >&6
15693 if test -n "$NMEDIT"; then
15694 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15697 for as_dir in $PATH
15700 test -z "$as_dir" && as_dir=.
15701 for ac_exec_ext in '' $ac_executable_extensions; do
15702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15703 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15704 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15713 NMEDIT=$ac_cv_prog_NMEDIT
15714 if test -n "$NMEDIT"; then
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15716 $as_echo "$NMEDIT" >&6; }
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15719 $as_echo "no
" >&6; }
15724 if test -z "$ac_cv_prog_NMEDIT"; then
15725 ac_ct_NMEDIT=$NMEDIT
15726 # Extract the first word of "nmedit
", so it can be a program name with args.
15727 set dummy nmedit; ac_word=$2
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15729 $as_echo_n "checking
for $ac_word...
" >&6; }
15730 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15731 $as_echo_n "(cached
) " >&6
15733 if test -n "$ac_ct_NMEDIT"; then
15734 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15737 for as_dir in $PATH
15740 test -z "$as_dir" && as_dir=.
15741 for ac_exec_ext in '' $ac_executable_extensions; do
15742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15743 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15744 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15753 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15754 if test -n "$ac_ct_NMEDIT"; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15756 $as_echo "$ac_ct_NMEDIT" >&6; }
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15759 $as_echo "no
" >&6; }
15762 if test "x
$ac_ct_NMEDIT" = x; then
15765 case $cross_compiling:$ac_tool_warned in
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15768 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15769 ac_tool_warned=yes ;;
15771 NMEDIT=$ac_ct_NMEDIT
15774 NMEDIT="$ac_cv_prog_NMEDIT"
15777 if test -n "$ac_tool_prefix"; then
15778 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15779 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15781 $as_echo_n "checking
for $ac_word...
" >&6; }
15782 if ${ac_cv_prog_LIPO+:} false; then :
15783 $as_echo_n "(cached
) " >&6
15785 if test -n "$LIPO"; then
15786 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15789 for as_dir in $PATH
15792 test -z "$as_dir" && as_dir=.
15793 for ac_exec_ext in '' $ac_executable_extensions; do
15794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15795 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15805 LIPO=$ac_cv_prog_LIPO
15806 if test -n "$LIPO"; then
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15808 $as_echo "$LIPO" >&6; }
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15811 $as_echo "no
" >&6; }
15816 if test -z "$ac_cv_prog_LIPO"; then
15818 # Extract the first word of "lipo
", so it can be a program name with args.
15819 set dummy lipo; ac_word=$2
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15821 $as_echo_n "checking
for $ac_word...
" >&6; }
15822 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15823 $as_echo_n "(cached
) " >&6
15825 if test -n "$ac_ct_LIPO"; then
15826 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15829 for as_dir in $PATH
15832 test -z "$as_dir" && as_dir=.
15833 for ac_exec_ext in '' $ac_executable_extensions; do
15834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15835 ac_cv_prog_ac_ct_LIPO="lipo
"
15836 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15845 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15846 if test -n "$ac_ct_LIPO"; then
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15848 $as_echo "$ac_ct_LIPO" >&6; }
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15851 $as_echo "no
" >&6; }
15854 if test "x
$ac_ct_LIPO" = x; then
15857 case $cross_compiling:$ac_tool_warned in
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15860 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15861 ac_tool_warned=yes ;;
15866 LIPO="$ac_cv_prog_LIPO"
15869 if test -n "$ac_tool_prefix"; then
15870 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15871 set dummy ${ac_tool_prefix}otool; ac_word=$2
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15873 $as_echo_n "checking
for $ac_word...
" >&6; }
15874 if ${ac_cv_prog_OTOOL+:} false; then :
15875 $as_echo_n "(cached
) " >&6
15877 if test -n "$OTOOL"; then
15878 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881 for as_dir in $PATH
15884 test -z "$as_dir" && as_dir=.
15885 for ac_exec_ext in '' $ac_executable_extensions; do
15886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15887 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15888 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15897 OTOOL=$ac_cv_prog_OTOOL
15898 if test -n "$OTOOL"; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15900 $as_echo "$OTOOL" >&6; }
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15903 $as_echo "no
" >&6; }
15908 if test -z "$ac_cv_prog_OTOOL"; then
15910 # Extract the first word of "otool
", so it can be a program name with args.
15911 set dummy otool; ac_word=$2
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15913 $as_echo_n "checking
for $ac_word...
" >&6; }
15914 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15915 $as_echo_n "(cached
) " >&6
15917 if test -n "$ac_ct_OTOOL"; then
15918 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15921 for as_dir in $PATH
15924 test -z "$as_dir" && as_dir=.
15925 for ac_exec_ext in '' $ac_executable_extensions; do
15926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15927 ac_cv_prog_ac_ct_OTOOL="otool
"
15928 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15937 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15938 if test -n "$ac_ct_OTOOL"; then
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15940 $as_echo "$ac_ct_OTOOL" >&6; }
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15943 $as_echo "no
" >&6; }
15946 if test "x
$ac_ct_OTOOL" = x; then
15949 case $cross_compiling:$ac_tool_warned in
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15952 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15953 ac_tool_warned=yes ;;
15958 OTOOL="$ac_cv_prog_OTOOL"
15961 if test -n "$ac_tool_prefix"; then
15962 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15963 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15965 $as_echo_n "checking
for $ac_word...
" >&6; }
15966 if ${ac_cv_prog_OTOOL64+:} false; then :
15967 $as_echo_n "(cached
) " >&6
15969 if test -n "$OTOOL64"; then
15970 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15973 for as_dir in $PATH
15976 test -z "$as_dir" && as_dir=.
15977 for ac_exec_ext in '' $ac_executable_extensions; do
15978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15979 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15980 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15989 OTOOL64=$ac_cv_prog_OTOOL64
15990 if test -n "$OTOOL64"; then
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15992 $as_echo "$OTOOL64" >&6; }
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15995 $as_echo "no
" >&6; }
16000 if test -z "$ac_cv_prog_OTOOL64"; then
16001 ac_ct_OTOOL64=$OTOOL64
16002 # Extract the first word of "otool64
", so it can be a program name with args.
16003 set dummy otool64; ac_word=$2
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16005 $as_echo_n "checking
for $ac_word...
" >&6; }
16006 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16007 $as_echo_n "(cached
) " >&6
16009 if test -n "$ac_ct_OTOOL64"; then
16010 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16013 for as_dir in $PATH
16016 test -z "$as_dir" && as_dir=.
16017 for ac_exec_ext in '' $ac_executable_extensions; do
16018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16019 ac_cv_prog_ac_ct_OTOOL64="otool64
"
16020 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16029 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16030 if test -n "$ac_ct_OTOOL64"; then
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
16032 $as_echo "$ac_ct_OTOOL64" >&6; }
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16035 $as_echo "no
" >&6; }
16038 if test "x
$ac_ct_OTOOL64" = x; then
16041 case $cross_compiling:$ac_tool_warned in
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
16044 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
16045 ac_tool_warned=yes ;;
16047 OTOOL64=$ac_ct_OTOOL64
16050 OTOOL64="$ac_cv_prog_OTOOL64"
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
16080 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
16081 if ${lt_cv_apple_cc_single_mod+:} false; then :
16082 $as_echo_n "(cached
) " >&6
16084 lt_cv_apple_cc_single_mod=no
16085 if test -z "${LT_MULTI_MODULE}"; then
16086 # By default we will add the -single_module flag. You can override
16087 # by either setting the environment variable LT_MULTI_MODULE
16088 # non-empty at configure time, or by adding -multi_module to the
16090 rm -rf libconftest.dylib*
16091 echo "int foo
(void
){return 1;}" > conftest.c
16092 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16093 -dynamiclib -Wl,-single_module conftest.c
" >&5
16094 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16095 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16097 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16098 lt_cv_apple_cc_single_mod=yes
16100 cat conftest.err >&5
16102 rm -rf libconftest.dylib*
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
16107 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
16109 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
16110 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16111 $as_echo_n "(cached
) " >&6
16113 lt_cv_ld_exported_symbols_list=no
16114 save_LDFLAGS=$LDFLAGS
16115 echo "_main
" > conftest.sym
16116 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16128 if ac_fn_c_try_link "$LINENO"; then :
16129 lt_cv_ld_exported_symbols_list=yes
16131 lt_cv_ld_exported_symbols_list=no
16133 rm -f core conftest.err conftest.$ac_objext \
16134 conftest$ac_exeext conftest.$ac_ext
16135 LDFLAGS="$save_LDFLAGS"
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
16139 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
16141 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
16142 if ${lt_cv_ld_force_load+:} false; then :
16143 $as_echo_n "(cached
) " >&6
16145 lt_cv_ld_force_load=no
16146 cat > conftest.c << _LT_EOF
16147 int forced_loaded() { return 2;}
16149 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
16150 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16151 echo "$AR cru libconftest.a conftest.o
" >&5
16152 $AR cru libconftest.a conftest.o 2>&5
16153 cat > conftest.c << _LT_EOF
16154 int main() { return 0;}
16156 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
16157 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16159 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16160 lt_cv_ld_force_load=yes
16162 cat conftest.err >&5
16164 rm -f conftest.err libconftest.a conftest conftest.c
16165 rm -rf conftest.dSYM
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
16169 $as_echo "$lt_cv_ld_force_load" >&6; }
16170 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16171 # build without first building modern cctools / linker.
16172 case $host_cpu-$host_os in
16173 *-rhapsody* | *-darwin1.[012])
16174 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16176 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16178 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16179 # deployment target is forced to an earlier version.
16180 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16181 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16184 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16191 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16192 _lt_dar_single_mod='$single_module'
16194 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16195 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16197 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16199 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
16200 _lt_dsymutil='~$DSYMUTIL $lib || :'
16208 for ac_header in dlfcn.h
16210 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
16211 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
16212 cat >>confdefs.h <<_ACEOF
16213 #define HAVE_DLFCN_H 1
16230 enable_win32_dll=no
16233 # Check whether --enable-shared was given.
16234 if test "${enable_shared+set}" = set; then :
16235 enableval=$enable_shared; p=${PACKAGE-default}
16237 yes) enable_shared=yes ;;
16238 no) enable_shared=no ;;
16241 # Look at the argument we got. We use all the common list separators.
16242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16243 for pkg in $enableval; do
16245 if test "X
$pkg" = "X
$p"; then
16264 # Check whether --enable-static was given.
16265 if test "${enable_static+set}" = set; then :
16266 enableval=$enable_static; p=${PACKAGE-default}
16268 yes) enable_static=yes ;;
16269 no) enable_static=no ;;
16272 # Look at the argument we got. We use all the common list separators.
16273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16274 for pkg in $enableval; do
16276 if test "X
$pkg" = "X
$p"; then
16296 # Check whether --with-pic was given.
16297 if test "${with_pic+set}" = set; then :
16298 withval=$with_pic; pic_mode="$withval"
16304 test -z "$pic_mode" && pic_mode=default
16312 # Check whether --enable-fast-install was given.
16313 if test "${enable_fast_install+set}" = set; then :
16314 enableval=$enable_fast_install; p=${PACKAGE-default}
16316 yes) enable_fast_install=yes ;;
16317 no) enable_fast_install=no ;;
16319 enable_fast_install=no
16320 # Look at the argument we got. We use all the common list separators.
16321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16322 for pkg in $enableval; do
16324 if test "X
$pkg" = "X
$p"; then
16325 enable_fast_install=yes
16332 enable_fast_install=yes
16345 # This can be used to rebuild libtool when needed
16346 LIBTOOL_DEPS="$ltmain"
16348 # Always use our own libtool.
16349 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16376 test -z "$LN_S" && LN_S="ln -s"
16391 if test -n "${ZSH_VERSION+set}" ; then
16392 setopt NO_GLOB_SUBST
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16396 $as_echo_n "checking
for objdir...
" >&6; }
16397 if ${lt_cv_objdir+:} false; then :
16398 $as_echo_n "(cached
) " >&6
16400 rm -f .libs 2>/dev/null
16401 mkdir .libs 2>/dev/null
16402 if test -d .libs; then
16405 # MS-DOS does not allow filenames that begin with a dot.
16408 rmdir .libs 2>/dev/null
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16411 $as_echo "$lt_cv_objdir" >&6; }
16412 objdir=$lt_cv_objdir
16418 cat >>confdefs.h <<_ACEOF
16419 #define LT_OBJDIR "$lt_cv_objdir/"
16427 # AIX sometimes has problems with the GCC collect2 program. For some
16428 # reason, if we set the COLLECT_NAMES environment variable, the problems
16429 # vanish in a puff of smoke.
16430 if test "X
${COLLECT_NAMES+set}" != Xset; then
16432 export COLLECT_NAMES
16437 # Global variables:
16439 can_build_shared=yes
16441 # All known linkers require a `.a' archive for static linking (except MSVC,
16442 # which needs '.lib').
16445 with_gnu_ld="$lt_cv_prog_gnu_ld"
16448 old_CFLAGS="$CFLAGS"
16450 # Set sane defaults for various variables
16451 test -z "$CC" && CC=cc
16452 test -z "$LTCC" && LTCC=$CC
16453 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16454 test -z "$LD" && LD=ld
16455 test -z "$ac_objext" && ac_objext=o
16457 for cc_temp in $compiler""; do
16459 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16460 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16465 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16468 # Only perform the check for file, if the check method requires it
16469 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16470 case $deplibs_check_method in
16472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16474 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16475 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16476 $as_echo_n "(cached
) " >&6
16480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16483 lt_save_MAGIC_CMD="$MAGIC_CMD"
16484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16485 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16486 for ac_dir in $ac_dummy; do
16488 test -z "$ac_dir" && ac_dir=.
16489 if test -f $ac_dir/${ac_tool_prefix}file; then
16490 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16491 if test -n "$file_magic_test_file"; then
16492 case $deplibs_check_method in
16494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16497 $EGREP "$file_magic_regex" > /dev/null; then
16502 *** Warning: the command libtool uses to detect shared libraries,
16503 *** $file_magic_cmd, produces output that libtool cannot recognize.
16504 *** The result is that libtool may fail to recognize shared libraries
16505 *** as such. This will affect the creation of libtool libraries that
16506 *** depend on shared libraries, but programs linked with such libtool
16507 *** libraries will work regardless of this problem. Nevertheless, you
16508 *** may want to report the problem to your system manager and/or to
16509 *** bug-libtool@gnu.org
16519 MAGIC_CMD="$lt_save_MAGIC_CMD"
16524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16525 if test -n "$MAGIC_CMD"; then
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16527 $as_echo "$MAGIC_CMD" >&6; }
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16530 $as_echo "no
" >&6; }
16537 if test -z "$lt_cv_path_MAGIC_CMD"; then
16538 if test -n "$ac_tool_prefix"; then
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16540 $as_echo_n "checking
for file...
" >&6; }
16541 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16542 $as_echo_n "(cached
) " >&6
16546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16549 lt_save_MAGIC_CMD="$MAGIC_CMD"
16550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16551 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16552 for ac_dir in $ac_dummy; do
16554 test -z "$ac_dir" && ac_dir=.
16555 if test -f $ac_dir/file; then
16556 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16557 if test -n "$file_magic_test_file"; then
16558 case $deplibs_check_method in
16560 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16562 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16563 $EGREP "$file_magic_regex" > /dev/null; then
16568 *** Warning: the command libtool uses to detect shared libraries,
16569 *** $file_magic_cmd, produces output that libtool cannot recognize.
16570 *** The result is that libtool may fail to recognize shared libraries
16571 *** as such. This will affect the creation of libtool libraries that
16572 *** depend on shared libraries, but programs linked with such libtool
16573 *** libraries will work regardless of this problem. Nevertheless, you
16574 *** may want to report the problem to your system manager and/or to
16575 *** bug-libtool@gnu.org
16585 MAGIC_CMD="$lt_save_MAGIC_CMD"
16590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16591 if test -n "$MAGIC_CMD"; then
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16593 $as_echo "$MAGIC_CMD" >&6; }
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16596 $as_echo "no
" >&6; }
16609 # Use C for the default configuration in the libtool script
16613 ac_cpp='$CPP $CPPFLAGS'
16614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16619 # Source file extension for C test sources.
16622 # Object file extension for compiled C test sources.
16626 # Code to be used in simple compile tests
16627 lt_simple_compile_test_code="int some_variable
= 0;"
16629 # Code to be used in simple link tests
16630 lt_simple_link_test_code='int main(){return(0);}'
16638 # If no C compiler was specified, use CC.
16641 # If no C compiler flags were specified, use CFLAGS.
16642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16644 # Allow CC to be a program name with arguments.
16647 # Save the default compiler, since it gets overwritten when the other
16648 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16649 compiler_DEFAULT=$CC
16651 # save warnings/boilerplate of simple test code
16652 ac_outfile=conftest.$ac_objext
16653 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16654 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16655 _lt_compiler_boilerplate=`cat conftest.err`
16658 ac_outfile=conftest.$ac_objext
16659 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16660 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16661 _lt_linker_boilerplate=`cat conftest.err`
16666 ## There is no encapsulation within the following macros, do not change
16667 ## the running order or otherwise move them around unless you know exactly
16668 ## what you are doing...
16669 if test -n "$compiler"; then
16671 lt_prog_compiler_no_builtin_flag=
16673 if test "$GCC" = yes; then
16674 case $cc_basename in
16676 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16678 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16682 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16683 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16684 $as_echo_n "(cached
) " >&6
16686 lt_cv_prog_compiler_rtti_exceptions=no
16687 ac_outfile=conftest.$ac_objext
16688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16689 lt_compiler_flag="-fno-rtti -fno-exceptions"
16690 # Insert the option either (1) after the last *FLAGS variable, or
16691 # (2) before a word containing "conftest.
", or (3) at the end.
16692 # Note that $ac_compile itself does not contain backslashes and begins
16693 # with a dollar sign (not a hyphen), so the echo should work correctly.
16694 # The option is referenced via a variable to avoid confusing sed.
16695 lt_compile=`echo "$ac_compile" | $SED \
16696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16698 -e 's:$: $lt_compiler_flag:'`
16699 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16700 (eval "$lt_compile" 2>conftest.err)
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16704 if (exit $ac_status) && test -s "$ac_outfile"; then
16705 # The compiler can only warn and ignore the option if not recognized
16706 # So say no if there are warnings other than the usual output.
16707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16710 lt_cv_prog_compiler_rtti_exceptions=yes
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16717 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16719 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16720 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16732 lt_prog_compiler_wl=
16733 lt_prog_compiler_pic=
16734 lt_prog_compiler_static=
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16737 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16739 if test "$GCC" = yes; then
16740 lt_prog_compiler_wl='-Wl,'
16741 lt_prog_compiler_static='-static'
16745 # All AIX code is PIC.
16746 if test "$host_cpu" = ia64; then
16747 # AIX 5 now supports IA64 processor
16748 lt_prog_compiler_static='-Bstatic'
16750 lt_prog_compiler_pic='-fPIC'
16756 # see comment about AmigaOS4 .so support
16757 lt_prog_compiler_pic='-fPIC'
16760 # FIXME: we need at least 68020 code to build shared libraries, but
16761 # adding the `-m68020' flag to GCC prevents building anything better,
16763 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16768 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16769 # PIC is the default for these OSes.
16772 mingw* | cygwin* | pw32* | os2* | cegcc*)
16773 # This hack is so that the source file can tell whether it is being
16774 # built for inclusion in a dll (and should export symbols for example).
16775 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16776 # (--disable-auto-import) libraries
16777 lt_prog_compiler_pic='-DDLL_EXPORT'
16780 darwin* | rhapsody*)
16781 # PIC is the default on this platform
16782 # Common symbols not allowed in MH_DYLIB files
16783 lt_prog_compiler_pic='-fno-common'
16787 # PIC is the default for Haiku.
16788 # The "-static" flag exists, but is broken.
16789 lt_prog_compiler_static=
16793 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16794 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16795 # sets the default TLS model and affects inlining.
16801 lt_prog_compiler_pic='-fPIC'
16807 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16808 # Instead, we relocate shared libraries at runtime.
16812 # Just because we use GCC doesn't mean we suddenly get shared libraries
16813 # on systems that don't support them.
16814 lt_prog_compiler_can_build_shared=no
16819 # QNX uses GNU C++, but need to define -shared option too, otherwise
16820 # it will coredump.
16821 lt_prog_compiler_pic='-fPIC -shared'
16825 if test -d /usr/nec; then
16826 lt_prog_compiler_pic=-Kconform_pic
16831 lt_prog_compiler_pic='-fPIC'
16835 case $cc_basename in
16836 nvcc*) # Cuda Compiler Driver 2.2
16837 lt_prog_compiler_wl='-Xlinker '
16838 lt_prog_compiler_pic='-Xcompiler -fPIC'
16842 # PORTME Check for flag to pass linker flags through the system compiler.
16845 lt_prog_compiler_wl='-Wl,'
16846 if test "$host_cpu" = ia64; then
16847 # AIX 5 now supports IA64 processor
16848 lt_prog_compiler_static='-Bstatic'
16850 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16854 mingw* | cygwin* | pw32* | os2* | cegcc*)
16855 # This hack is so that the source file can tell whether it is being
16856 # built for inclusion in a dll (and should export symbols for example).
16857 lt_prog_compiler_pic='-DDLL_EXPORT'
16860 hpux9* | hpux10* | hpux11*)
16861 lt_prog_compiler_wl='-Wl,'
16862 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16863 # not for PA HP-UX.
16869 lt_prog_compiler_pic='+Z'
16872 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16873 lt_prog_compiler_static='${wl}-a ${wl}archive'
16876 irix5* | irix6* | nonstopux*)
16877 lt_prog_compiler_wl='-Wl,'
16878 # PIC (with -KPIC) is the default.
16879 lt_prog_compiler_static='-non_shared'
16882 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16883 case $cc_basename in
16884 # old Intel for x86_64 which still supported -KPIC.
16886 lt_prog_compiler_wl='-Wl,'
16887 lt_prog_compiler_pic='-KPIC'
16888 lt_prog_compiler_static='-static'
16890 # icc used to be incompatible with GCC.
16891 # ICC 10 doesn't accept -KPIC any more.
16893 lt_prog_compiler_wl='-Wl,'
16894 lt_prog_compiler_pic='-fPIC'
16895 lt_prog_compiler_static='-static'
16897 # Lahey Fortran 8.1.
16899 lt_prog_compiler_wl='-Wl,'
16900 lt_prog_compiler_pic='--shared'
16901 lt_prog_compiler_static='--static'
16903 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16904 # Portland Group compilers (*not* the Pentium gcc compiler,
16905 # which looks to be a dead project)
16906 lt_prog_compiler_wl='-Wl,'
16907 lt_prog_compiler_pic='-fpic'
16908 lt_prog_compiler_static='-Bstatic'
16911 lt_prog_compiler_wl='-Wl,'
16912 # All Alpha code is PIC.
16913 lt_prog_compiler_static='-non_shared'
16915 xl* | bgxl* | bgf* | mpixl*)
16916 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16917 lt_prog_compiler_wl='-Wl,'
16918 lt_prog_compiler_pic='-qpic'
16919 lt_prog_compiler_static='-qstaticlink'
16922 case `$CC -V 2>&1 | sed 5q` in
16923 *Sun\ F* | *Sun*Fortran*)
16924 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16925 lt_prog_compiler_pic='-KPIC'
16926 lt_prog_compiler_static='-Bstatic'
16927 lt_prog_compiler_wl=''
16931 lt_prog_compiler_pic='-KPIC'
16932 lt_prog_compiler_static='-Bstatic'
16933 lt_prog_compiler_wl='-Wl,'
16941 lt_prog_compiler_pic='-KPIC'
16942 lt_prog_compiler_static='-Bstatic'
16946 # QNX uses GNU C++, but need to define -shared option too, otherwise
16947 # it will coredump.
16948 lt_prog_compiler_pic='-fPIC -shared'
16951 osf3* | osf4* | osf5*)
16952 lt_prog_compiler_wl='-Wl,'
16953 # All OSF/1 code is PIC.
16954 lt_prog_compiler_static='-non_shared'
16958 lt_prog_compiler_static='-non_shared'
16962 lt_prog_compiler_pic='-KPIC'
16963 lt_prog_compiler_static='-Bstatic'
16964 case $cc_basename in
16965 f77* | f90* | f95*)
16966 lt_prog_compiler_wl='-Qoption ld ';;
16968 lt_prog_compiler_wl='-Wl,';;
16973 lt_prog_compiler_wl='-Qoption ld '
16974 lt_prog_compiler_pic='-PIC'
16975 lt_prog_compiler_static='-Bstatic'
16978 sysv4 | sysv4.2uw2* | sysv4.3*)
16979 lt_prog_compiler_wl='-Wl,'
16980 lt_prog_compiler_pic='-KPIC'
16981 lt_prog_compiler_static='-Bstatic'
16985 if test -d /usr/nec ;then
16986 lt_prog_compiler_pic='-Kconform_pic'
16987 lt_prog_compiler_static='-Bstatic'
16991 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16992 lt_prog_compiler_wl='-Wl,'
16993 lt_prog_compiler_pic='-KPIC'
16994 lt_prog_compiler_static='-Bstatic'
16998 lt_prog_compiler_wl='-Wl,'
16999 lt_prog_compiler_can_build_shared=no
17003 lt_prog_compiler_pic='-pic'
17004 lt_prog_compiler_static='-Bstatic'
17008 lt_prog_compiler_can_build_shared=no
17014 # For platforms which do not support PIC, -DPIC is meaningless:
17016 lt_prog_compiler_pic=
17019 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
17023 $as_echo "$lt_prog_compiler_pic" >&6; }
17031 # Check to make sure the PIC flag actually works.
17033 if test -n "$lt_prog_compiler_pic"; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
17035 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
17036 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17037 $as_echo_n "(cached
) " >&6
17039 lt_cv_prog_compiler_pic_works=no
17040 ac_outfile=conftest.$ac_objext
17041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17042 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17043 # Insert the option either (1) after the last *FLAGS variable, or
17044 # (2) before a word containing "conftest.
", or (3) at the end.
17045 # Note that $ac_compile itself does not contain backslashes and begins
17046 # with a dollar sign (not a hyphen), so the echo should work correctly.
17047 # The option is referenced via a variable to avoid confusing sed.
17048 lt_compile=`echo "$ac_compile" | $SED \
17049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17051 -e 's:$: $lt_compiler_flag:'`
17052 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17053 (eval "$lt_compile" 2>conftest.err)
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17057 if (exit $ac_status) && test -s "$ac_outfile"; then
17058 # The compiler can only warn and ignore the option if not recognized
17059 # So say no if there are warnings other than the usual output.
17060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17063 lt_cv_prog_compiler_pic_works=yes
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
17070 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17072 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17073 case $lt_prog_compiler_pic in
17075 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17078 lt_prog_compiler_pic=
17079 lt_prog_compiler_can_build_shared=no
17090 # Check to make sure the static flag actually works.
17092 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
17094 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
17095 if ${lt_cv_prog_compiler_static_works+:} false; then :
17096 $as_echo_n "(cached
) " >&6
17098 lt_cv_prog_compiler_static_works=no
17099 save_LDFLAGS="$LDFLAGS"
17100 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17103 # The linker can only warn and ignore the option if not recognized
17104 # So say no if there are warnings
17105 if test -s conftest.err; then
17106 # Append any errors to the config.log.
17107 cat conftest.err 1>&5
17108 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17110 if diff conftest.exp conftest.er2 >/dev/null; then
17111 lt_cv_prog_compiler_static_works=yes
17114 lt_cv_prog_compiler_static_works=yes
17118 LDFLAGS="$save_LDFLAGS"
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
17122 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17124 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17127 lt_prog_compiler_static=
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17137 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17138 if ${lt_cv_prog_compiler_c_o+:} false; then :
17139 $as_echo_n "(cached
) " >&6
17141 lt_cv_prog_compiler_c_o=no
17142 $RM -r conftest 2>/dev/null
17146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17148 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17149 # Insert the option either (1) after the last *FLAGS variable, or
17150 # (2) before a word containing "conftest.
", or (3) at the end.
17151 # Note that $ac_compile itself does not contain backslashes and begins
17152 # with a dollar sign (not a hyphen), so the echo should work correctly.
17153 lt_compile=`echo "$ac_compile" | $SED \
17154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17156 -e 's:$: $lt_compiler_flag:'`
17157 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17158 (eval "$lt_compile" 2>out/conftest.err)
17160 cat out/conftest.err >&5
17161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17164 # The compiler can only warn and ignore the option if not recognized
17165 # So say no if there are warnings
17166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17169 lt_cv_prog_compiler_c_o=yes
17174 # SGI C++ compiler will create directory out/ii_files/ for
17175 # template instantiation
17176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17177 $RM out/* && rmdir out
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17184 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
17192 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
17193 if ${lt_cv_prog_compiler_c_o+:} false; then :
17194 $as_echo_n "(cached
) " >&6
17196 lt_cv_prog_compiler_c_o=no
17197 $RM -r conftest 2>/dev/null
17201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17203 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
17204 # Insert the option either (1) after the last *FLAGS variable, or
17205 # (2) before a word containing "conftest.
", or (3) at the end.
17206 # Note that $ac_compile itself does not contain backslashes and begins
17207 # with a dollar sign (not a hyphen), so the echo should work correctly.
17208 lt_compile=`echo "$ac_compile" | $SED \
17209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17211 -e 's:$: $lt_compiler_flag:'`
17212 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
17213 (eval "$lt_compile" 2>out/conftest.err)
17215 cat out/conftest.err >&5
17216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17217 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17219 # The compiler can only warn and ignore the option if not recognized
17220 # So say no if there are warnings
17221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17224 lt_cv_prog_compiler_c_o=yes
17229 # SGI C++ compiler will create directory out/ii_files/ for
17230 # template instantiation
17231 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17232 $RM out/* && rmdir out
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
17239 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17244 hard_links="nottested
"
17245 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17246 # do not overwrite the value of need_locks provided by the user
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
17248 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
17251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17253 ln conftest.a conftest.b 2>&5 || hard_links=no
17254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
17256 $as_echo "$hard_links" >&6; }
17257 if test "$hard_links" = no; then
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
17259 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
17272 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
17275 allow_undefined_flag=
17276 always_export_symbols=no
17278 archive_expsym_cmds=
17279 compiler_needs_object=no
17280 enable_shared_with_static_runtimes=no
17281 export_dynamic_flag_spec=
17282 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17283 hardcode_automatic=no
17285 hardcode_direct_absolute=no
17286 hardcode_libdir_flag_spec=
17287 hardcode_libdir_flag_spec_ld=
17288 hardcode_libdir_separator=
17289 hardcode_minus_L=no
17290 hardcode_shlibpath_var=unsupported
17292 link_all_deplibs=unknown
17294 module_expsym_cmds=
17295 old_archive_from_new_cmds=
17296 old_archive_from_expsyms_cmds=
17297 thread_safe_flag_spec=
17298 whole_archive_flag_spec=
17299 # include_expsyms should be a list of space-separated symbols to be *always*
17300 # included in the symbol list
17302 # exclude_expsyms can be an extended regexp of symbols to exclude
17303 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17304 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17305 # as well as any symbol that contains `d'.
17306 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17307 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17308 # platforms (ab)use it in PIC code, but their linkers get confused if
17309 # the symbol is explicitly referenced. Since portable code cannot
17310 # rely on this symbol name, it's probably fine to never include it in
17311 # preloaded symbol tables.
17312 # Exclude shared library initialization/finalization symbols.
17313 extract_expsyms_cmds=
17316 cygwin* | mingw* | pw32* | cegcc*)
17317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17318 # When not using gcc, we currently assume that we are using
17319 # Microsoft Visual C++.
17320 if test "$GCC" != yes; then
17325 # we just hope/assume this is gcc and not c89 (= MSVC++)
17335 # On some targets, GNU ld is compatible enough with the native linker
17336 # that we're better off using the native interface for both.
17337 lt_use_gnu_ld_interface=no
17338 if test "$with_gnu_ld" = yes; then
17341 # The AIX port of GNU ld has always aspired to compatibility
17342 # with the native linker. However, as the warning in the GNU ld
17343 # block says, versions before 2.19.5* couldn't really create working
17344 # shared libraries, regardless of the interface used.
17345 case `$LD -v 2>&1` in
17346 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17347 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17348 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17350 lt_use_gnu_ld_interface=yes
17355 lt_use_gnu_ld_interface=yes
17360 if test "$lt_use_gnu_ld_interface" = yes; then
17361 # If archive_cmds runs LD, not CC, wlarc should be empty
17364 # Set some defaults for GNU ld with shared library support. These
17365 # are reset later if shared libraries are not supported. Putting them
17366 # here allows them to be overridden if necessary.
17367 runpath_var=LD_RUN_PATH
17368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17369 export_dynamic_flag_spec='${wl}--export-dynamic'
17370 # ancient GNU ld didn't support --whole-archive et. al.
17371 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17372 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17374 whole_archive_flag_spec=
17376 supports_anon_versioning=no
17377 case `$LD -v 2>&1` in
17378 *GNU\ gold*) supports_anon_versioning=yes ;;
17379 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17380 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17381 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17382 *\ 2.11.*) ;; # other 2.11 versions
17383 *) supports_anon_versioning=yes ;;
17386 # See if GNU ld supports shared libraries.
17389 # On AIX/PPC, the GNU linker is very broken
17390 if test "$host_cpu" != ia64; then
17394 *** Warning: the GNU linker, at least up to release 2.19, is reported
17395 *** to be unable to reliably create shared libraries on AIX.
17396 *** Therefore, libtool is disabling shared libraries support. If you
17397 *** really care for shared libraries, you may want to install binutils
17398 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17399 *** You will then need to restart the configuration process.
17408 # see comment about AmigaOS4 .so support
17409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17410 archive_expsym_cmds=''
17413 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)'
17414 hardcode_libdir_flag_spec
='-L$libdir'
17415 hardcode_minus_L
=yes
17421 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17422 allow_undefined_flag
=unsupported
17423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17424 # support --undefined. This deserves some investigation. FIXME
17425 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17431 cygwin
* | mingw
* | pw32
* | cegcc
*)
17432 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17433 # as there is no search path for DLLs.
17434 hardcode_libdir_flag_spec
='-L$libdir'
17435 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17436 allow_undefined_flag
=unsupported
17437 always_export_symbols
=no
17438 enable_shared_with_static_runtimes
=yes
17439 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17441 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17442 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17443 # If the export-symbols file already is a .def file (1st line
17444 # is EXPORTS), use it as is; otherwise, prepend...
17445 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17446 cp $export_symbols $output_objdir/$soname.def;
17448 echo EXPORTS > $output_objdir/$soname.def;
17449 cat $export_symbols >> $output_objdir/$soname.def;
17451 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17458 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17459 link_all_deplibs
=yes
17464 hardcode_shlibpath_var
=no
17465 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17466 export_dynamic_flag_spec
='${wl}-E'
17467 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17468 # Instead, shared libraries are loaded at an image base (0x10000000 by
17469 # default) and relocated if they conflict, which is a slow very memory
17470 # consuming and fragmenting process. To avoid this, we pick a random,
17471 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17472 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17473 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17474 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'
17477 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17479 if test "$host_os" = linux-dietlibc
; then
17480 case $cc_basename in
17481 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17484 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17485 && test "$tmp_diet" = no
17487 tmp_addflag
=' $pic_flag'
17488 tmp_sharedflag
='-shared'
17489 case $cc_basename,$host_cpu in
17490 pgcc
*) # Portland Group C compiler
17491 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'
17492 tmp_addflag
=' $pic_flag'
17494 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17495 # Portland Group f77 and f90 compilers
17496 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'
17497 tmp_addflag
=' $pic_flag -Mnomain' ;;
17498 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17499 tmp_addflag
=' -i_dynamic' ;;
17500 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17501 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17502 ifc
* | ifort
*) # Intel Fortran compiler
17503 tmp_addflag
=' -nofor_main' ;;
17504 lf95
*) # Lahey Fortran 8.1
17505 whole_archive_flag_spec
=
17506 tmp_sharedflag
='--shared' ;;
17507 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17508 tmp_sharedflag
='-qmkshrobj'
17510 nvcc
*) # Cuda Compiler Driver 2.2
17511 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'
17512 compiler_needs_object
=yes
17515 case `$CC -V 2>&1 | sed 5q` in
17516 *Sun\ C
*) # Sun C 5.9
17517 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'
17518 compiler_needs_object
=yes
17519 tmp_sharedflag
='-G' ;;
17520 *Sun\ F
*) # Sun Fortran 8.3
17521 tmp_sharedflag
='-G' ;;
17523 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525 if test "x$supports_anon_versioning" = xyes
; then
17526 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17528 echo "local: *; };" >> $output_objdir/$libname.ver~
17529 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17532 case $cc_basename in
17533 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17534 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17535 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17536 hardcode_libdir_flag_spec
=
17537 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17538 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17539 if test "x$supports_anon_versioning" = xyes
; then
17540 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17541 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17542 echo "local: *; };" >> $output_objdir/$libname.ver~
17543 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17553 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17554 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17557 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17558 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17563 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17567 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17568 *** create shared libraries on Solaris systems. Therefore, libtool
17569 *** is disabling shared libraries support. We urge you to upgrade GNU
17570 *** binutils to release 2.9.1 or newer. Another option is to modify
17571 *** your PATH or compiler configuration so that the native linker is
17572 *** used, and then restart.
17575 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17576 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17577 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17583 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17584 case `$LD -v 2>&1` in
17585 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17589 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17590 *** reliably create shared libraries on SCO systems. Therefore, libtool
17591 *** is disabling shared libraries support. We urge you to upgrade GNU
17592 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17593 *** your PATH or compiler configuration so that the native linker is
17594 *** used, and then restart.
17599 # For security reasons, it is highly recommended that you always
17600 # use absolute paths for naming shared libraries, and exclude the
17601 # DT_RUNPATH tag from executables and libraries. But doing so
17602 # requires that you compile everything twice, which is a pain.
17603 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17604 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17605 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17606 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17615 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17617 hardcode_direct
=yes
17618 hardcode_shlibpath_var
=no
17622 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17623 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17624 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17631 if test "$ld_shlibs" = no
; then
17633 hardcode_libdir_flag_spec
=
17634 export_dynamic_flag_spec
=
17635 whole_archive_flag_spec
=
17638 # PORTME fill in a description of your system's linker (not GNU ld)
17641 allow_undefined_flag
=unsupported
17642 always_export_symbols
=yes
17643 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'
17644 # Note: this linker hardcodes the directories in LIBPATH if there
17645 # are no directories specified by -L.
17646 hardcode_minus_L
=yes
17647 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17648 # Neither direct hardcoding nor static linking is supported with a
17650 hardcode_direct
=unsupported
17655 if test "$host_cpu" = ia64
; then
17656 # On IA64, the linker does run time linking by default, so we don't
17657 # have to do anything special.
17658 aix_use_runtimelinking
=no
17659 exp_sym_flag
='-Bexport'
17662 # If we're using GNU nm, then we don't want the "-C" option.
17663 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17664 # Also, AIX nm treats weak defined symbols like other global
17665 # defined symbols, whereas GNU nm marks them as "W".
17666 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17667 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'
17669 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'
17671 aix_use_runtimelinking
=no
17673 # Test if we are trying to use run time linking or normal
17674 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17675 # need to do runtime linking.
17676 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17677 for ld_flag
in $LDFLAGS; do
17678 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17679 aix_use_runtimelinking
=yes
17686 exp_sym_flag
='-bexport'
17687 no_entry_flag
='-bnoentry'
17690 # When large executables or shared objects are built, AIX ld can
17691 # have problems creating the table of contents. If linking a library
17692 # or program results in "error TOC overflow" add -mminimal-toc to
17693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17697 hardcode_direct
=yes
17698 hardcode_direct_absolute
=yes
17699 hardcode_libdir_separator
=':'
17700 link_all_deplibs
=yes
17701 file_list_spec
='${wl}-f,'
17703 if test "$GCC" = yes; then
17704 case $host_os in aix4.
[012]|aix4.
[012].
*)
17705 # We only want to do this on AIX 4.2 and lower, the check
17706 # below for broken collect2 doesn't work under 4.3+
17707 collect2name
=`${CC} -print-prog-name=collect2`
17708 if test -f "$collect2name" &&
17709 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17711 # We have reworked collect2
17714 # We have old collect2
17715 hardcode_direct
=unsupported
17716 # It fails to find uninstalled libraries when the uninstalled
17717 # path is not listed in the libpath. Setting hardcode_minus_L
17718 # to unsupported forces relinking
17719 hardcode_minus_L
=yes
17720 hardcode_libdir_flag_spec
='-L$libdir'
17721 hardcode_libdir_separator
=
17725 shared_flag
='-shared'
17726 if test "$aix_use_runtimelinking" = yes; then
17727 shared_flag
="$shared_flag "'${wl}-G'
17731 if test "$host_cpu" = ia64
; then
17732 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17733 # chokes on -Wl,-G. The following line is correct:
17736 if test "$aix_use_runtimelinking" = yes; then
17737 shared_flag
='${wl}-G'
17739 shared_flag
='${wl}-bM:SRE'
17744 export_dynamic_flag_spec
='${wl}-bexpall'
17745 # It seems that -bexpall does not export symbols beginning with
17746 # underscore (_), so it is better to generate a list of symbols to export.
17747 always_export_symbols
=yes
17748 if test "$aix_use_runtimelinking" = yes; then
17749 # Warning - without using the other runtime loading flags (-brtl),
17750 # -berok will link without error, but may produce a broken library.
17751 allow_undefined_flag
='-berok'
17752 # Determine the default libpath from the value encoded in an
17753 # empty executable.
17754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17755 /* end confdefs.h. */
17765 if ac_fn_c_try_link
"$LINENO"; then :
17767 lt_aix_libpath_sed
='
17768 /Import File Strings/,/^$/ {
17774 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17775 # Check for a 64-bit object if we didn't find anything.
17776 if test -z "$aix_libpath"; then
17777 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17780 rm -f core conftest.err conftest.
$ac_objext \
17781 conftest
$ac_exeext conftest.
$ac_ext
17782 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17784 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17785 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"
17787 if test "$host_cpu" = ia64
; then
17788 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17789 allow_undefined_flag
="-z nodefs"
17790 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"
17792 # Determine the default libpath from the value encoded in an
17793 # empty executable.
17794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17805 if ac_fn_c_try_link
"$LINENO"; then :
17807 lt_aix_libpath_sed
='
17808 /Import File Strings/,/^$/ {
17814 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17815 # Check for a 64-bit object if we didn't find anything.
17816 if test -z "$aix_libpath"; then
17817 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17820 rm -f core conftest.err conftest.
$ac_objext \
17821 conftest
$ac_exeext conftest.
$ac_ext
17822 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17824 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17825 # Warning - without using the other run time loading flags,
17826 # -berok will link without error, but may produce a broken library.
17827 no_undefined_flag
=' ${wl}-bernotok'
17828 allow_undefined_flag
=' ${wl}-berok'
17829 if test "$with_gnu_ld" = yes; then
17830 # We only use this code for GNU lds that support --whole-archive.
17831 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17833 # Exported symbols can be pulled into shared objects from archives
17834 whole_archive_flag_spec
='$convenience'
17836 archive_cmds_need_lc
=yes
17837 # This is similar to how AIX traditionally builds its shared libraries.
17838 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'
17846 # see comment about AmigaOS4 .so support
17847 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17848 archive_expsym_cmds
=''
17851 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)'
17852 hardcode_libdir_flag_spec
='-L$libdir'
17853 hardcode_minus_L
=yes
17859 export_dynamic_flag_spec
=-rdynamic
17862 cygwin
* | mingw
* | pw32
* | cegcc
*)
17863 # When not using gcc, we currently assume that we are using
17864 # Microsoft Visual C++.
17865 # hardcode_libdir_flag_spec is actually meaningless, as there is
17866 # no search path for DLLs.
17867 hardcode_libdir_flag_spec
=' '
17868 allow_undefined_flag
=unsupported
17869 # Tell ltmain to make .lib files, not .a files.
17871 # Tell ltmain to make .dll files, not .so files.
17873 # FIXME: Setting linknames here is a bad hack.
17874 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17875 # The linker will automatically build a .lib file if we build a DLL.
17876 old_archive_from_new_cmds
='true'
17877 # FIXME: Should let the user specify the lib program.
17878 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17879 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17880 enable_shared_with_static_runtimes
=yes
17883 darwin
* | rhapsody
*)
17886 archive_cmds_need_lc
=no
17888 hardcode_automatic
=yes
17889 hardcode_shlibpath_var
=unsupported
17890 if test "$lt_cv_ld_force_load" = "yes"; then
17891 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\"`'
17893 whole_archive_flag_spec
=''
17895 link_all_deplibs
=yes
17896 allow_undefined_flag
="$_lt_dar_allow_undefined"
17897 case $cc_basename in
17898 ifort
*) _lt_dar_can_shared
=yes ;;
17899 *) _lt_dar_can_shared
=$GCC ;;
17901 if test "$_lt_dar_can_shared" = "yes"; then
17902 output_verbose_link_cmd
=func_echo_all
17903 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17904 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17905 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}"
17906 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}"
17915 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17916 hardcode_libdir_flag_spec
='-L$libdir'
17917 hardcode_shlibpath_var
=no
17920 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17921 # support. Future versions do this automatically, but an explicit c++rt0.o
17922 # does not break anything, and helps significantly (at the cost of a little
17925 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17926 hardcode_libdir_flag_spec
='-R$libdir'
17927 hardcode_direct
=yes
17928 hardcode_shlibpath_var
=no
17931 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17933 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17934 hardcode_direct
=yes
17935 hardcode_minus_L
=yes
17936 hardcode_shlibpath_var
=no
17939 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17940 freebsd
* | dragonfly
*)
17941 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17942 hardcode_libdir_flag_spec
='-R$libdir'
17943 hardcode_direct
=yes
17944 hardcode_shlibpath_var
=no
17948 if test "$GCC" = yes; then
17949 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'
17951 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'
17953 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17954 hardcode_libdir_separator
=:
17955 hardcode_direct
=yes
17957 # hardcode_minus_L: Not really in the search PATH,
17958 # but as the default location of the library.
17959 hardcode_minus_L
=yes
17960 export_dynamic_flag_spec
='${wl}-E'
17964 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17965 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17967 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17969 if test "$with_gnu_ld" = no
; then
17970 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17971 hardcode_libdir_flag_spec_ld
='+b $libdir'
17972 hardcode_libdir_separator
=:
17973 hardcode_direct
=yes
17974 hardcode_direct_absolute
=yes
17975 export_dynamic_flag_spec
='${wl}-E'
17976 # hardcode_minus_L: Not really in the search PATH,
17977 # but as the default location of the library.
17978 hardcode_minus_L
=yes
17983 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17986 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17989 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17992 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17998 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18001 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18005 # Older versions of the 11.00 compiler do not understand -b yet
18006 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18008 $as_echo_n "checking if $CC understands -b... " >&6; }
18009 if ${lt_cv_prog_compiler__b+:} false
; then :
18010 $as_echo_n "(cached) " >&6
18012 lt_cv_prog_compiler__b
=no
18013 save_LDFLAGS
="$LDFLAGS"
18014 LDFLAGS
="$LDFLAGS -b"
18015 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
18016 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
18017 # The linker can only warn and ignore the option if not recognized
18018 # So say no if there are warnings
18019 if test -s conftest.err
; then
18020 # Append any errors to the config.log.
18021 cat conftest.err
1>&5
18022 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
18023 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
18024 if diff conftest.exp conftest.er2
>/dev
/null
; then
18025 lt_cv_prog_compiler__b
=yes
18028 lt_cv_prog_compiler__b
=yes
18032 LDFLAGS
="$save_LDFLAGS"
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18036 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18038 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
18039 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18041 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18047 if test "$with_gnu_ld" = no
; then
18048 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
18049 hardcode_libdir_separator
=:
18054 hardcode_shlibpath_var
=no
18057 hardcode_direct
=yes
18058 hardcode_direct_absolute
=yes
18059 export_dynamic_flag_spec
='${wl}-E'
18061 # hardcode_minus_L: Not really in the search PATH,
18062 # but as the default location of the library.
18063 hardcode_minus_L
=yes
18069 irix5
* | irix6
* | nonstopux
*)
18070 if test "$GCC" = yes; then
18071 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'
18072 # Try to use the -exported_symbol ld option, if it does not
18073 # work, assume that -exports_file does not work either and
18074 # implicitly export all symbols.
18075 save_LDFLAGS
="$LDFLAGS"
18076 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18078 /* end confdefs.h. */
18081 if ac_fn_c_try_link
"$LINENO"; then :
18082 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'
18085 rm -f core conftest.err conftest.
$ac_objext \
18086 conftest
$ac_exeext conftest.
$ac_ext
18087 LDFLAGS
="$save_LDFLAGS"
18089 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'
18090 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'
18092 archive_cmds_need_lc
='no'
18093 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18094 hardcode_libdir_separator
=:
18096 link_all_deplibs
=yes
18100 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18101 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18103 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18105 hardcode_libdir_flag_spec
='-R$libdir'
18106 hardcode_direct
=yes
18107 hardcode_shlibpath_var
=no
18111 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18112 hardcode_direct
=yes
18113 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18114 hardcode_libdir_separator
=:
18115 hardcode_shlibpath_var
=no
18122 if test -f /usr
/libexec
/ld.so
; then
18123 hardcode_direct
=yes
18124 hardcode_shlibpath_var
=no
18125 hardcode_direct_absolute
=yes
18126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18127 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18128 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18129 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18130 export_dynamic_flag_spec
='${wl}-E'
18133 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18134 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18135 hardcode_libdir_flag_spec
='-R$libdir'
18138 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18139 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
18149 hardcode_libdir_flag_spec
='-L$libdir'
18150 hardcode_minus_L
=yes
18151 allow_undefined_flag
=unsupported
18152 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'
18153 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18157 if test "$GCC" = yes; then
18158 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18159 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'
18161 allow_undefined_flag
=' -expect_unresolved \*'
18162 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'
18164 archive_cmds_need_lc
='no'
18165 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18166 hardcode_libdir_separator
=:
18169 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18170 if test "$GCC" = yes; then
18171 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
18172 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'
18173 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
18175 allow_undefined_flag
=' -expect_unresolved \*'
18176 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'
18177 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~
18178 $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'
18180 # Both c and cxx compiler support -rpath directly
18181 hardcode_libdir_flag_spec
='-rpath $libdir'
18183 archive_cmds_need_lc
='no'
18184 hardcode_libdir_separator
=:
18188 no_undefined_flag
=' -z defs'
18189 if test "$GCC" = yes; then
18191 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18192 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18193 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18195 case `$CC -V 2>&1` in
18198 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18199 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18200 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18204 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18205 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18206 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18210 hardcode_libdir_flag_spec
='-R$libdir'
18211 hardcode_shlibpath_var
=no
18213 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18215 # The compiler driver will combine and reorder linker options,
18216 # but understands `-z linker_flag'. GCC discards it without `$wl',
18217 # but is careful enough not to reorder.
18218 # Supported since Solaris 2.6 (maybe 2.5.1?)
18219 if test "$GCC" = yes; then
18220 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18222 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
18226 link_all_deplibs
=yes
18230 if test "x$host_vendor" = xsequent
; then
18231 # Use $CC to link under sequent, because it throws in some extra .o
18232 # files that make .init and .fini sections work.
18233 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18235 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18237 hardcode_libdir_flag_spec
='-L$libdir'
18238 hardcode_direct
=yes
18239 hardcode_minus_L
=yes
18240 hardcode_shlibpath_var
=no
18244 case $host_vendor in
18246 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18247 hardcode_direct
=yes # is this really true???
18250 ## LD is ld it makes a PLAMLIB
18251 ## CC just makes a GrossModule.
18252 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18253 reload_cmds
='$CC -r -o $output$reload_objs'
18257 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18258 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
18261 runpath_var
='LD_RUN_PATH'
18262 hardcode_shlibpath_var
=no
18266 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18267 hardcode_shlibpath_var
=no
18268 export_dynamic_flag_spec
='-Bexport'
18272 if test -d /usr
/nec
; then
18273 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18274 hardcode_shlibpath_var
=no
18275 runpath_var
=LD_RUN_PATH
18276 hardcode_runpath_var
=yes
18281 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18282 no_undefined_flag
='${wl}-z,text'
18283 archive_cmds_need_lc
=no
18284 hardcode_shlibpath_var
=no
18285 runpath_var
='LD_RUN_PATH'
18287 if test "$GCC" = yes; then
18288 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18289 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18291 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18292 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18296 sysv5
* | sco3.2v5
* | sco5v6
*)
18297 # Note: We can NOT use -z defs as we might desire, because we do not
18298 # link with -lc, and that would cause any symbols used from libc to
18299 # always be unresolved, which means just about no library would
18300 # ever link correctly. If we're not using GNU ld we use -z text
18301 # though, which does catch some bad symbols but isn't as heavy-handed
18303 no_undefined_flag
='${wl}-z,text'
18304 allow_undefined_flag
='${wl}-z,nodefs'
18305 archive_cmds_need_lc
=no
18306 hardcode_shlibpath_var
=no
18307 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
18308 hardcode_libdir_separator
=':'
18309 link_all_deplibs
=yes
18310 export_dynamic_flag_spec
='${wl}-Bexport'
18311 runpath_var
='LD_RUN_PATH'
18313 if test "$GCC" = yes; then
18314 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18315 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18317 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18318 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18323 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18324 hardcode_libdir_flag_spec
='-L$libdir'
18325 hardcode_shlibpath_var
=no
18333 if test x
$host_vendor = xsni
; then
18335 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
18336 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18343 $as_echo "$ld_shlibs" >&6; }
18344 test "$ld_shlibs" = no
&& can_build_shared
=no
18346 with_gnu_ld
=$with_gnu_ld
18363 # Do we need to explicitly link libc?
18365 case "x$archive_cmds_need_lc" in
18367 # Assume -lc should be added
18368 archive_cmds_need_lc
=yes
18370 if test "$enable_shared" = yes && test "$GCC" = yes; then
18371 case $archive_cmds in
18373 # FIXME: we may have to deal with multi-command sequences.
18376 # Test whether the compiler implicitly links with -lc since on some
18377 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18378 # to ld, don't add -lc before -lgcc.
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18380 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18381 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
18382 $as_echo_n "(cached) " >&6
18385 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18388 (eval $ac_compile) 2>&5
18390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18391 test $ac_status = 0; } 2>conftest.err
; then
18394 libobjs
=conftest.
$ac_objext
18396 wl
=$lt_prog_compiler_wl
18397 pic_flag
=$lt_prog_compiler_pic
18403 lt_save_allow_undefined_flag
=$allow_undefined_flag
18404 allow_undefined_flag
=
18405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18406 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18409 test $ac_status = 0; }
18411 lt_cv_archive_cmds_need_lc
=no
18413 lt_cv_archive_cmds_need_lc
=yes
18415 allow_undefined_flag
=$lt_save_allow_undefined_flag
18417 cat conftest.err
1>&5
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18423 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18424 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18588 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18590 if test "$GCC" = yes; then
18592 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18593 *) lt_awk_arg
="/^libraries:/" ;;
18596 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18597 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18599 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18600 case $lt_search_path_spec in
18602 # if the path contains ";" then we assume it to be the separator
18603 # otherwise default to the standard path separator (i.e. ":") - it is
18604 # assumed that no part of a normal pathname contains ";" but that should
18605 # okay in the real world where ";" in dirpaths is itself problematic.
18606 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18609 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18612 # Ok, now we have the path, separated by spaces, we can step through it
18613 # and add multilib dir if necessary.
18614 lt_tmp_lt_search_path_spec
=
18615 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18616 for lt_sys_path
in $lt_search_path_spec; do
18617 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18618 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18620 test -d "$lt_sys_path" && \
18621 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18624 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18625 BEGIN {RS=" "; FS="/|\n";} {
18628 for (lt_i = NF; lt_i > 0; lt_i--) {
18629 if ($lt_i != "" && $lt_i != ".") {
18630 if ($lt_i == "..") {
18633 if (lt_count == 0) {
18634 lt_foo="/" $lt_i lt_foo;
18641 if (lt_foo != "") { lt_freq[lt_foo]++; }
18642 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18644 # AWK program above erroneously prepends '/' to C:/dos/paths
18647 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18648 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18650 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18652 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18654 library_names_spec
=
18655 libname_spec
='lib$name'
18659 postuninstall_cmds
=
18663 shlibpath_overrides_runpath
=unknown
18665 dynamic_linker
="$host_os ld.so"
18666 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18667 need_lib_prefix
=unknown
18668 hardcode_into_libs
=no
18670 # when you set need_version to no, make sure it does not cause -set_version
18671 # flags to be left without arguments
18672 need_version
=unknown
18677 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18678 shlibpath_var
=LIBPATH
18680 # AIX 3 has no versioning support, so we append a major version to the name.
18681 soname_spec
='${libname}${release}${shared_ext}$major'
18688 hardcode_into_libs
=yes
18689 if test "$host_cpu" = ia64
; then
18690 # AIX 5 supports IA64
18691 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18692 shlibpath_var
=LD_LIBRARY_PATH
18694 # With GCC up to 2.95.x, collect2 would create an import file
18695 # for dependence libraries. The import file would start with
18696 # the line `#! .'. This would cause the generated library to
18697 # depend on `.', always an invalid library. This was fixed in
18698 # development snapshots of GCC prior to 3.0.
18700 aix4 | aix4.
[01] | aix4.
[01].
*)
18701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18703 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18706 can_build_shared
=no
18710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18711 # soname into executable. Probably we can add versioning support to
18712 # collect2, so additional links can be useful in future.
18713 if test "$aix_use_runtimelinking" = yes; then
18714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18715 # instead of lib<name>.a to let people know that these are not
18716 # typical AIX shared libraries.
18717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18719 # We preserve .a as extension for shared libraries through AIX4.2
18720 # and later when we are not doing run time linking.
18721 library_names_spec
='${libname}${release}.a $libname.a'
18722 soname_spec
='${libname}${release}${shared_ext}$major'
18724 shlibpath_var
=LIBPATH
18731 # Since July 2007 AmigaOS4 officially supports .so libraries.
18732 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18733 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18736 library_names_spec
='$libname.ixlibrary $libname.a'
18737 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18738 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'
18744 library_names_spec
='${libname}${shared_ext}'
18745 dynamic_linker
="$host_os ld.so"
18746 shlibpath_var
=LIBRARY_PATH
18752 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753 soname_spec
='${libname}${release}${shared_ext}$major'
18754 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18755 shlibpath_var
=LD_LIBRARY_PATH
18756 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18757 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18758 # the default ld.so.conf also contains /usr/contrib/lib and
18759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18760 # libtool to hard-code these into programs
18763 cygwin
* | mingw
* | pw32
* | cegcc
*)
18764 version_type
=windows
18769 case $GCC,$host_os in
18770 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18771 library_names_spec
='$libname.dll.a'
18772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18773 postinstall_cmds
='base_file=`basename \${file}`~
18774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18775 dldir=$destdir/`dirname \$dlpath`~
18776 test -d \$dldir || mkdir -p \$dldir~
18777 $install_prog $dir/$dlname \$dldir/$dlname~
18778 chmod a+x \$dldir/$dlname~
18779 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18780 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18782 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18783 dlpath=$dir/\$dldll~
18785 shlibpath_overrides_runpath
=yes
18789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18790 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18792 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18795 # MinGW DLLs use traditional 'lib' prefix
18796 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18799 # pw32 DLLs use 'pw' prefix rather than 'lib'
18800 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18806 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18809 dynamic_linker
='Win32 ld.exe'
18810 # FIXME: first we should search . and the directory the executable is in
18814 darwin
* | rhapsody
*)
18815 dynamic_linker
="$host_os dyld"
18816 version_type
=darwin
18819 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18820 soname_spec
='${libname}${release}${major}$shared_ext'
18821 shlibpath_overrides_runpath
=yes
18822 shlibpath_var
=DYLD_LIBRARY_PATH
18823 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18825 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18826 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18834 soname_spec
='${libname}${release}${shared_ext}$major'
18835 shlibpath_var
=LD_LIBRARY_PATH
18838 freebsd
* | dragonfly
*)
18839 # DragonFly does not have aout. When/if they implement a new
18840 # versioning mechanism, adjust this.
18841 if test -x /usr
/bin
/objformat
; then
18842 objformat
=`/usr/bin/objformat`
18845 freebsd
[23].
*) objformat
=aout
;;
18846 *) objformat
=elf
;;
18849 version_type
=freebsd-
$objformat
18850 case $version_type in
18852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18857 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18861 shlibpath_var
=LD_LIBRARY_PATH
18864 shlibpath_overrides_runpath
=yes
18866 freebsd3.
[01]* | freebsdelf3.
[01]*)
18867 shlibpath_overrides_runpath
=yes
18868 hardcode_into_libs
=yes
18870 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18871 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18872 shlibpath_overrides_runpath
=no
18873 hardcode_into_libs
=yes
18875 *) # from 4.6 on, and DragonFly
18876 shlibpath_overrides_runpath
=yes
18877 hardcode_into_libs
=yes
18886 dynamic_linker
="$host_os runtime_loader"
18887 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18888 soname_spec
='${libname}${release}${shared_ext}$major'
18889 shlibpath_var
=LIBRARY_PATH
18890 shlibpath_overrides_runpath
=yes
18891 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18892 hardcode_into_libs
=yes
18895 hpux9
* | hpux10
* | hpux11
*)
18896 # Give a soname corresponding to the major version so that dld.sl refuses to
18897 # link against other versions.
18904 hardcode_into_libs
=yes
18905 dynamic_linker
="$host_os dld.so"
18906 shlibpath_var
=LD_LIBRARY_PATH
18907 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909 soname_spec
='${libname}${release}${shared_ext}$major'
18910 if test "X$HPUX_IA64_MODE" = X32
; then
18911 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18913 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18915 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18919 hardcode_into_libs
=yes
18920 dynamic_linker
="$host_os dld.sl"
18921 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18922 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18924 soname_spec
='${libname}${release}${shared_ext}$major'
18925 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18926 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18930 dynamic_linker
="$host_os dld.sl"
18931 shlibpath_var
=SHLIB_PATH
18932 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18934 soname_spec
='${libname}${release}${shared_ext}$major'
18937 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18938 postinstall_cmds
='chmod 555 $lib'
18939 # or fails outright, so override atomically:
18940 install_override_mode
=555
18947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18948 soname_spec
='${libname}${release}${shared_ext}$major'
18949 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18950 shlibpath_var
=LD_LIBRARY_PATH
18951 shlibpath_overrides_runpath
=no
18952 hardcode_into_libs
=yes
18955 irix5
* | irix6
* | nonstopux
*)
18957 nonstopux
*) version_type
=nonstopux
;;
18959 if test "$lt_cv_prog_gnu_ld" = yes; then
18967 soname_spec
='${libname}${release}${shared_ext}$major'
18968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18970 irix5
* | nonstopux
*)
18971 libsuff
= shlibsuff
=
18974 case $LD in # libtool.m4 will add one of these switches to LD
18975 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18976 libsuff
= shlibsuff
= libmagic
=32-bit;;
18977 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18978 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18979 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18980 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18981 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18985 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18986 shlibpath_overrides_runpath
=no
18987 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18988 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18989 hardcode_into_libs
=yes
18992 # No shared lib support for Linux oldld, aout, or coff.
18993 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18997 # This must be Linux ELF.
18999 # uclinux* changes (here and below) have been submitted to the libtool
19000 # project, but have not yet been accepted: they are GCC-local changes
19001 # for the time being. (See
19002 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19003 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
19007 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19008 soname_spec
='${libname}${release}${shared_ext}$major'
19009 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19010 shlibpath_var
=LD_LIBRARY_PATH
19011 shlibpath_overrides_runpath
=no
19013 # Some binutils ld are patched to set DT_RUNPATH
19014 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
19015 $as_echo_n "(cached) " >&6
19017 lt_cv_shlibpath_overrides_runpath
=no
19018 save_LDFLAGS
=$LDFLAGS
19019 save_libdir
=$libdir
19020 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19021 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19033 if ac_fn_c_try_link
"$LINENO"; then :
19034 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
19035 lt_cv_shlibpath_overrides_runpath
=yes
19038 rm -f core conftest.err conftest.
$ac_objext \
19039 conftest
$ac_exeext conftest.
$ac_ext
19040 LDFLAGS
=$save_LDFLAGS
19041 libdir
=$save_libdir
19045 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
19047 # This implies no fast_install, which is unacceptable.
19048 # Some rework will be needed to allow for fast_install
19049 # before this can be enabled.
19050 hardcode_into_libs
=yes
19052 # Append ld.so.conf contents to the search path
19053 if test -f /etc
/ld.so.conf
; then
19054 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' ' '`
19055 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19058 # We used to test for /lib/ld.so.1 and disable shared libraries on
19059 # powerpc, because MkLinux only supported shared libraries with the
19060 # GNU dynamic linker. Since this was broken with cross compilers,
19061 # most powerpc-linux boxes support dynamic linking these days and
19062 # people can always --disable-shared, the test was removed, and we
19063 # assume the GNU/Linux dynamic linker is in use.
19064 dynamic_linker
='GNU/Linux ld.so'
19071 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19073 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19074 dynamic_linker
='NetBSD (a.out) ld.so'
19076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19077 soname_spec
='${libname}${release}${shared_ext}$major'
19078 dynamic_linker
='NetBSD ld.elf_so'
19080 shlibpath_var
=LD_LIBRARY_PATH
19081 shlibpath_overrides_runpath
=yes
19082 hardcode_into_libs
=yes
19087 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19088 shlibpath_var
=LD_LIBRARY_PATH
19089 shlibpath_overrides_runpath
=yes
19096 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19097 soname_spec
='${libname}${release}${shared_ext}$major'
19098 shlibpath_var
=LD_LIBRARY_PATH
19099 shlibpath_overrides_runpath
=no
19100 hardcode_into_libs
=yes
19101 dynamic_linker
='ldqnx.so'
19106 sys_lib_dlsearch_path_spec
="/usr/lib"
19108 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19110 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19111 *) need_version
=no
;;
19113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19114 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19115 shlibpath_var
=LD_LIBRARY_PATH
19116 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19118 openbsd2.
[89] | openbsd2.
[89].
*)
19119 shlibpath_overrides_runpath
=no
19122 shlibpath_overrides_runpath
=yes
19126 shlibpath_overrides_runpath
=yes
19131 libname_spec
='$name'
19134 library_names_spec
='$libname${shared_ext} $libname.a'
19135 dynamic_linker
='OS/2 ld.exe'
19136 shlibpath_var
=LIBPATH
19139 osf3
* | osf4
* | osf5
*)
19143 soname_spec
='${libname}${release}${shared_ext}$major'
19144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19145 shlibpath_var
=LD_LIBRARY_PATH
19146 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19147 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19159 soname_spec
='${libname}${release}${shared_ext}$major'
19160 shlibpath_var
=LD_LIBRARY_PATH
19161 shlibpath_overrides_runpath
=yes
19162 hardcode_into_libs
=yes
19163 # ldd complains unless libraries are executable
19164 postinstall_cmds
='chmod +x $lib'
19169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19170 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19171 shlibpath_var
=LD_LIBRARY_PATH
19172 shlibpath_overrides_runpath
=yes
19173 if test "$with_gnu_ld" = yes; then
19181 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19182 soname_spec
='${libname}${release}${shared_ext}$major'
19183 shlibpath_var
=LD_LIBRARY_PATH
19184 case $host_vendor in
19186 shlibpath_overrides_runpath
=no
19188 runpath_var
=LD_RUN_PATH
19196 shlibpath_overrides_runpath
=no
19197 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19203 if test -d /usr
/nec
;then
19205 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19206 soname_spec
='$libname${shared_ext}.$major'
19207 shlibpath_var
=LD_LIBRARY_PATH
19211 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19212 version_type
=freebsd-elf
19215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19216 soname_spec
='${libname}${release}${shared_ext}$major'
19217 shlibpath_var
=LD_LIBRARY_PATH
19218 shlibpath_overrides_runpath
=yes
19219 hardcode_into_libs
=yes
19220 if test "$with_gnu_ld" = yes; then
19221 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19223 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19226 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19230 sys_lib_dlsearch_path_spec
='/usr/lib'
19234 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19239 shlibpath_var
=LD_LIBRARY_PATH
19240 shlibpath_overrides_runpath
=no
19241 hardcode_into_libs
=yes
19246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19247 soname_spec
='${libname}${release}${shared_ext}$major'
19248 shlibpath_var
=LD_LIBRARY_PATH
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19256 $as_echo "$dynamic_linker" >&6; }
19257 test "$dynamic_linker" = no
&& can_build_shared
=no
19259 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19260 if test "$GCC" = yes; then
19261 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19264 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19265 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19267 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19268 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19363 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19365 if test -n "$hardcode_libdir_flag_spec" ||
19366 test -n "$runpath_var" ||
19367 test "X$hardcode_automatic" = "Xyes" ; then
19369 # We can hardcode non-existent directories.
19370 if test "$hardcode_direct" != no
&&
19371 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19372 # have to relink, otherwise we might link with an installed library
19373 # when we should be linking with a yet-to-be-installed one
19374 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19375 test "$hardcode_minus_L" != no
; then
19376 # Linking always hardcodes the temporary library directory.
19377 hardcode_action
=relink
19379 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19380 hardcode_action
=immediate
19383 # We cannot hardcode anything, or else we can only hardcode existing
19385 hardcode_action
=unsupported
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19388 $as_echo "$hardcode_action" >&6; }
19390 if test "$hardcode_action" = relink ||
19391 test "$inherit_rpath" = yes; then
19392 # Fast installation is not supported
19393 enable_fast_install
=no
19394 elif test "$shlibpath_overrides_runpath" = yes ||
19395 test "$enable_shared" = no
; then
19396 # Fast installation is not necessary
19397 enable_fast_install
=needless
19405 if test "x$enable_dlopen" != xyes
; then
19406 enable_dlopen
=unknown
19407 enable_dlopen_self
=unknown
19408 enable_dlopen_self_static
=unknown
19415 lt_cv_dlopen
="load_add_on"
19417 lt_cv_dlopen_self
=yes
19420 mingw
* | pw32
* | cegcc
*)
19421 lt_cv_dlopen
="LoadLibrary"
19426 lt_cv_dlopen
="dlopen"
19431 # if libdl is installed we need to link against it
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19433 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19434 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19435 $as_echo_n "(cached) " >&6
19437 ac_check_lib_save_LIBS
=$LIBS
19439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19442 /* Override any GCC internal prototype to avoid an error.
19443 Use char because int might match the return type of a GCC
19444 builtin and then its argument prototype would still apply. */
19457 if ac_fn_c_try_link
"$LINENO"; then :
19458 ac_cv_lib_dl_dlopen
=yes
19460 ac_cv_lib_dl_dlopen
=no
19462 rm -f core conftest.err conftest.
$ac_objext \
19463 conftest
$ac_exeext conftest.
$ac_ext
19464 LIBS
=$ac_check_lib_save_LIBS
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19467 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19468 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19469 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19472 lt_cv_dlopen
="dyld"
19474 lt_cv_dlopen_self
=yes
19481 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19482 if test "x$ac_cv_func_shl_load" = xyes
; then :
19483 lt_cv_dlopen
="shl_load"
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19486 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19487 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19488 $as_echo_n "(cached) " >&6
19490 ac_check_lib_save_LIBS
=$LIBS
19492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h. */
19495 /* Override any GCC internal prototype to avoid an error.
19496 Use char because int might match the return type of a GCC
19497 builtin and then its argument prototype would still apply. */
19505 return shl_load ();
19510 if ac_fn_c_try_link
"$LINENO"; then :
19511 ac_cv_lib_dld_shl_load
=yes
19513 ac_cv_lib_dld_shl_load
=no
19515 rm -f core conftest.err conftest.
$ac_objext \
19516 conftest
$ac_exeext conftest.
$ac_ext
19517 LIBS
=$ac_check_lib_save_LIBS
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19520 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19521 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19522 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19524 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19525 if test "x$ac_cv_func_dlopen" = xyes
; then :
19526 lt_cv_dlopen
="dlopen"
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19530 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19531 $as_echo_n "(cached) " >&6
19533 ac_check_lib_save_LIBS
=$LIBS
19535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19538 /* Override any GCC internal prototype to avoid an error.
19539 Use char because int might match the return type of a GCC
19540 builtin and then its argument prototype would still apply. */
19553 if ac_fn_c_try_link
"$LINENO"; then :
19554 ac_cv_lib_dl_dlopen
=yes
19556 ac_cv_lib_dl_dlopen
=no
19558 rm -f core conftest.err conftest.
$ac_objext \
19559 conftest
$ac_exeext conftest.
$ac_ext
19560 LIBS
=$ac_check_lib_save_LIBS
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19563 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19564 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19565 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19568 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19569 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19570 $as_echo_n "(cached) " >&6
19572 ac_check_lib_save_LIBS
=$LIBS
19573 LIBS
="-lsvld $LIBS"
19574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19577 /* Override any GCC internal prototype to avoid an error.
19578 Use char because int might match the return type of a GCC
19579 builtin and then its argument prototype would still apply. */
19592 if ac_fn_c_try_link
"$LINENO"; then :
19593 ac_cv_lib_svld_dlopen
=yes
19595 ac_cv_lib_svld_dlopen
=no
19597 rm -f core conftest.err conftest.
$ac_objext \
19598 conftest
$ac_exeext conftest.
$ac_ext
19599 LIBS
=$ac_check_lib_save_LIBS
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19602 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19603 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19604 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19607 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19608 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19609 $as_echo_n "(cached) " >&6
19611 ac_check_lib_save_LIBS
=$LIBS
19613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19614 /* end confdefs.h. */
19616 /* Override any GCC internal prototype to avoid an error.
19617 Use char because int might match the return type of a GCC
19618 builtin and then its argument prototype would still apply. */
19626 return dld_link ();
19631 if ac_fn_c_try_link
"$LINENO"; then :
19632 ac_cv_lib_dld_dld_link
=yes
19634 ac_cv_lib_dld_dld_link
=no
19636 rm -f core conftest.err conftest.
$ac_objext \
19637 conftest
$ac_exeext conftest.
$ac_ext
19638 LIBS
=$ac_check_lib_save_LIBS
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19641 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19642 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19643 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19664 if test "x$lt_cv_dlopen" != xno
; then
19670 case $lt_cv_dlopen in
19672 save_CPPFLAGS
="$CPPFLAGS"
19673 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19675 save_LDFLAGS
="$LDFLAGS"
19676 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19679 LIBS
="$lt_cv_dlopen_libs $LIBS"
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19682 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19683 if ${lt_cv_dlopen_self+:} false
; then :
19684 $as_echo_n "(cached) " >&6
19686 if test "$cross_compiling" = yes; then :
19687 lt_cv_dlopen_self
=cross
19689 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19690 lt_status
=$lt_dlunknown
19691 cat > conftest.
$ac_ext <<_LT_EOF
19692 #line 19692 "configure"
19693 #include "confdefs.h"
19702 # define LT_DLGLOBAL RTLD_GLOBAL
19705 # define LT_DLGLOBAL DL_GLOBAL
19707 # define LT_DLGLOBAL 0
19711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19712 find out it does not work in some platform. */
19713 #ifndef LT_DLLAZY_OR_NOW
19715 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19718 # define LT_DLLAZY_OR_NOW DL_LAZY
19721 # define LT_DLLAZY_OR_NOW RTLD_NOW
19724 # define LT_DLLAZY_OR_NOW DL_NOW
19726 # define LT_DLLAZY_OR_NOW 0
19733 /* When -fvisbility=hidden is used, assume the code has been annotated
19734 correspondingly for the symbols needed. */
19735 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19736 void fnord () __attribute__((visibility("default")));
19739 void fnord () { int i=42; }
19742 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19743 int status = $lt_dlunknown;
19747 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19750 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19751 else puts (dlerror ());
19753 /* dlclose (self); */
19761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19762 (eval $ac_link) 2>&5
19764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19765 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19766 (.
/conftest
; exit; ) >&5 2>/dev
/null
19768 case x
$lt_status in
19769 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19770 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19771 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19774 # compilation failed
19775 lt_cv_dlopen_self
=no
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19783 $as_echo "$lt_cv_dlopen_self" >&6; }
19785 if test "x$lt_cv_dlopen_self" = xyes
; then
19786 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19788 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19789 if ${lt_cv_dlopen_self_static+:} false
; then :
19790 $as_echo_n "(cached) " >&6
19792 if test "$cross_compiling" = yes; then :
19793 lt_cv_dlopen_self_static
=cross
19795 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19796 lt_status
=$lt_dlunknown
19797 cat > conftest.
$ac_ext <<_LT_EOF
19798 #line 19798 "configure"
19799 #include "confdefs.h"
19808 # define LT_DLGLOBAL RTLD_GLOBAL
19811 # define LT_DLGLOBAL DL_GLOBAL
19813 # define LT_DLGLOBAL 0
19817 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19818 find out it does not work in some platform. */
19819 #ifndef LT_DLLAZY_OR_NOW
19821 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19824 # define LT_DLLAZY_OR_NOW DL_LAZY
19827 # define LT_DLLAZY_OR_NOW RTLD_NOW
19830 # define LT_DLLAZY_OR_NOW DL_NOW
19832 # define LT_DLLAZY_OR_NOW 0
19839 /* When -fvisbility=hidden is used, assume the code has been annotated
19840 correspondingly for the symbols needed. */
19841 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19842 void fnord () __attribute__((visibility("default")));
19845 void fnord () { int i=42; }
19848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19849 int status = $lt_dlunknown;
19853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19856 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19857 else puts (dlerror ());
19859 /* dlclose (self); */
19867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19868 (eval $ac_link) 2>&5
19870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19871 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19872 (.
/conftest
; exit; ) >&5 2>/dev
/null
19874 case x
$lt_status in
19875 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19876 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19877 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19880 # compilation failed
19881 lt_cv_dlopen_self_static
=no
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19889 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19892 CPPFLAGS
="$save_CPPFLAGS"
19893 LDFLAGS
="$save_LDFLAGS"
19898 case $lt_cv_dlopen_self in
19899 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19900 *) enable_dlopen_self
=unknown
;;
19903 case $lt_cv_dlopen_self_static in
19904 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19905 *) enable_dlopen_self_static
=unknown
;;
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19928 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19929 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19930 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19931 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19933 $as_echo "yes" >&6; }
19935 # FIXME - insert some real tests, host_os isn't really good enough
19938 if test -n "$STRIP" ; then
19939 striplib
="$STRIP -x"
19940 old_striplib
="$STRIP -S"
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19942 $as_echo "yes" >&6; }
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19945 $as_echo "no" >&6; }
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19950 $as_echo "no" >&6; }
19966 # Report which library types will actually be built
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19968 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19970 $as_echo "$can_build_shared" >&6; }
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19973 $as_echo_n "checking whether to build shared libraries... " >&6; }
19974 test "$can_build_shared" = "no" && enable_shared
=no
19976 # On AIX, shared libraries and static libraries use the same namespace, and
19977 # are all built from PIC.
19980 test "$enable_shared" = yes && enable_static
=no
19981 if test -n "$RANLIB"; then
19982 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19983 postinstall_cmds
='$RANLIB $lib'
19988 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19989 test "$enable_shared" = yes && enable_static
=no
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19994 $as_echo "$enable_shared" >&6; }
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19997 $as_echo_n "checking whether to build static libraries... " >&6; }
19998 # Make sure either enable_shared or enable_static is yes.
19999 test "$enable_shared" = yes || enable_static
=yes
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20001 $as_echo "$enable_static" >&6; }
20008 ac_cpp
='$CXXCPP $CPPFLAGS'
20009 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20015 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20016 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20017 (test "X$CXX" != "Xg++"))) ; then
20019 ac_cpp
='$CXXCPP $CPPFLAGS'
20020 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20021 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20022 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20024 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20025 if test -z "$CXXCPP"; then
20026 if ${ac_cv_prog_CXXCPP+:} false
; then :
20027 $as_echo_n "(cached) " >&6
20029 # Double quotes because CXXCPP needs to be expanded
20030 for CXXCPP
in "$CXX -E" "/lib/cpp"
20032 ac_preproc_ok
=false
20033 for ac_cxx_preproc_warn_flag
in '' yes
20035 # Use a header file that comes with gcc, so configuring glibc
20036 # with a fresh cross-compiler works.
20037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20038 # <limits.h> exists even on freestanding compilers.
20039 # On the NeXT, cc -E runs the code through the compiler's parser,
20040 # not just through cpp. "Syntax error" is here to catch this case.
20041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h. */
20044 # include <limits.h>
20046 # include <assert.h>
20050 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20053 # Broken: fails on valid input.
20056 rm -f conftest.err conftest.i conftest.
$ac_ext
20058 # OK, works on sane cases. Now check whether nonexistent headers
20059 # can be detected and how.
20060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h. */
20062 #include <ac_nonexistent.h>
20064 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20065 # Broken: success on invalid input.
20068 # Passes both tests.
20072 rm -f conftest.err conftest.i conftest.
$ac_ext
20075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20076 rm -f conftest.i conftest.err conftest.
$ac_ext
20077 if $ac_preproc_ok; then :
20082 ac_cv_prog_CXXCPP
=$CXXCPP
20085 CXXCPP
=$ac_cv_prog_CXXCPP
20087 ac_cv_prog_CXXCPP
=$CXXCPP
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20090 $as_echo "$CXXCPP" >&6; }
20091 ac_preproc_ok
=false
20092 for ac_cxx_preproc_warn_flag
in '' yes
20094 # Use a header file that comes with gcc, so configuring glibc
20095 # with a fresh cross-compiler works.
20096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20097 # <limits.h> exists even on freestanding compilers.
20098 # On the NeXT, cc -E runs the code through the compiler's parser,
20099 # not just through cpp. "Syntax error" is here to catch this case.
20100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h. */
20103 # include <limits.h>
20105 # include <assert.h>
20109 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20112 # Broken: fails on valid input.
20115 rm -f conftest.err conftest.i conftest.
$ac_ext
20117 # OK, works on sane cases. Now check whether nonexistent headers
20118 # can be detected and how.
20119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h. */
20121 #include <ac_nonexistent.h>
20123 if ac_fn_cxx_try_cpp
"$LINENO"; then :
20124 # Broken: success on invalid input.
20127 # Passes both tests.
20131 rm -f conftest.err conftest.i conftest.
$ac_ext
20134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20135 rm -f conftest.i conftest.err conftest.
$ac_ext
20136 if $ac_preproc_ok; then :
20139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20141 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
20142 See \`config.log' for more details" "$LINENO" 5; }
20146 ac_cpp
='$CXXCPP $CPPFLAGS'
20147 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20148 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20149 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20152 _lt_caught_CXX_error
=yes
20156 ac_cpp
='$CXXCPP $CPPFLAGS'
20157 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20158 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20159 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20161 archive_cmds_need_lc_CXX
=no
20162 allow_undefined_flag_CXX
=
20163 always_export_symbols_CXX
=no
20164 archive_expsym_cmds_CXX
=
20165 compiler_needs_object_CXX
=no
20166 export_dynamic_flag_spec_CXX
=
20167 hardcode_direct_CXX
=no
20168 hardcode_direct_absolute_CXX
=no
20169 hardcode_libdir_flag_spec_CXX
=
20170 hardcode_libdir_flag_spec_ld_CXX
=
20171 hardcode_libdir_separator_CXX
=
20172 hardcode_minus_L_CXX
=no
20173 hardcode_shlibpath_var_CXX
=unsupported
20174 hardcode_automatic_CXX
=no
20175 inherit_rpath_CXX
=no
20177 module_expsym_cmds_CXX
=
20178 link_all_deplibs_CXX
=unknown
20179 old_archive_cmds_CXX
=$old_archive_cmds
20180 reload_flag_CXX
=$reload_flag
20181 reload_cmds_CXX
=$reload_cmds
20182 no_undefined_flag_CXX
=
20183 whole_archive_flag_spec_CXX
=
20184 enable_shared_with_static_runtimes_CXX
=no
20186 # Source file extension for C++ test sources.
20189 # Object file extension for compiled C++ test sources.
20193 # No sense in running all these tests if we already determined that
20194 # the CXX compiler isn't working. Some variables (like enable_shared)
20195 # are currently assumed to apply to all compilers on this platform,
20196 # and will be corrupted by setting them based on a non-working compiler.
20197 if test "$_lt_caught_CXX_error" != yes; then
20198 # Code to be used in simple compile tests
20199 lt_simple_compile_test_code
="int some_variable = 0;"
20201 # Code to be used in simple link tests
20202 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
20204 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20211 # If no C compiler was specified, use CC.
20214 # If no C compiler flags were specified, use CFLAGS.
20215 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
20217 # Allow CC to be a program name with arguments.
20221 # save warnings/boilerplate of simple test code
20222 ac_outfile
=conftest.
$ac_objext
20223 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
20224 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20225 _lt_compiler_boilerplate
=`cat conftest.err`
20228 ac_outfile
=conftest.
$ac_objext
20229 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
20230 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
20231 _lt_linker_boilerplate
=`cat conftest.err`
20235 # Allow CC to be a program name with arguments.
20240 lt_save_with_gnu_ld
=$with_gnu_ld
20241 lt_save_path_LD
=$lt_cv_path_LD
20242 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20243 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
20245 $as_unset lt_cv_prog_gnu_ld
20247 if test -n "${lt_cv_path_LDCXX+set}"; then
20248 lt_cv_path_LD
=$lt_cv_path_LDCXX
20250 $as_unset lt_cv_path_LD
20252 test -z "${LDCXX+set}" || LD
=$LDCXX
20256 for cc_temp
in $compiler""; do
20258 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20259 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20264 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20267 if test -n "$compiler"; then
20268 # We don't want -fno-exception when compiling C++ code, so set the
20269 # no_builtin_flag separately
20270 if test "$GXX" = yes; then
20271 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
20273 lt_prog_compiler_no_builtin_flag_CXX
=
20276 if test "$GXX" = yes; then
20277 # Set up default GNU C++ configuration
20281 # Check whether --with-gnu-ld was given.
20282 if test "${with_gnu_ld+set}" = set; then :
20283 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
20289 if test "$GCC" = yes; then
20290 # Check if gcc -print-prog-name=ld gives a path.
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20292 $as_echo_n "checking for ld used by $CC... " >&6; }
20295 # gcc leaves a trailing carriage return which upsets mingw
20296 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20298 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
20301 # Accept absolute paths.
20303 re_direlt
='/[^/][^/]*/\.\./'
20304 # Canonicalize the pathname of ld
20305 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20306 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
20307 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20309 test -z "$LD" && LD
="$ac_prog"
20312 # If it fails, then pretend we aren't using GCC.
20316 # If it is relative, then search for the first ld in PATH.
20317 with_gnu_ld
=unknown
20320 elif test "$with_gnu_ld" = yes; then
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20322 $as_echo_n "checking for GNU ld... " >&6; }
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20325 $as_echo_n "checking for non-GNU ld... " >&6; }
20327 if ${lt_cv_path_LD+:} false
; then :
20328 $as_echo_n "(cached) " >&6
20330 if test -z "$LD"; then
20331 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
20332 for ac_dir
in $PATH; do
20334 test -z "$ac_dir" && ac_dir
=.
20335 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
20336 lt_cv_path_LD
="$ac_dir/$ac_prog"
20337 # Check to see if the program is GNU ld. I'd rather use --version,
20338 # but apparently some variants of GNU ld only accept -v.
20339 # Break only if it was the GNU/non-GNU ld that we prefer.
20340 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20341 *GNU
* |
*'with BFD'*)
20342 test "$with_gnu_ld" != no
&& break
20345 test "$with_gnu_ld" != yes && break
20352 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
20356 LD
="$lt_cv_path_LD"
20357 if test -n "$LD"; then
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20359 $as_echo "$LD" >&6; }
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20362 $as_echo "no" >&6; }
20364 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20366 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20367 if ${lt_cv_prog_gnu_ld+:} false
; then :
20368 $as_echo_n "(cached) " >&6
20370 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20371 case `$LD -v 2>&1 </dev/null` in
20372 *GNU
* |
*'with BFD'*)
20373 lt_cv_prog_gnu_ld
=yes
20376 lt_cv_prog_gnu_ld
=no
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20381 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20382 with_gnu_ld
=$lt_cv_prog_gnu_ld
20390 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20391 # archiving commands below assume that GNU ld is being used.
20392 if test "$with_gnu_ld" = yes; then
20393 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20394 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'
20396 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20397 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20399 # If archive_cmds runs LD, not CC, wlarc should be empty
20400 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20401 # investigate it a little bit more. (MM)
20404 # ancient GNU ld didn't support --whole-archive et. al.
20405 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20406 $GREP 'no-whole-archive' > /dev
/null
; then
20407 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20409 whole_archive_flag_spec_CXX
=
20415 # A generic and very simple default shared library creation
20416 # command for GNU C++ for the case where it uses the native
20417 # linker, instead of GNU ld. If possible, this setting should
20418 # overridden to take advantage of the native linker features on
20419 # the platform it is being used on.
20420 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20423 # Commands to make compiler produce verbose output that lists
20424 # what "hidden" libraries, object files and flags are used when
20425 # linking a shared library.
20426 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20434 # PORTME: fill in a description of your system's C++ link characteristics
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20436 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20440 # FIXME: insert proper C++ library support
20444 if test "$host_cpu" = ia64
; then
20445 # On IA64, the linker does run time linking by default, so we don't
20446 # have to do anything special.
20447 aix_use_runtimelinking
=no
20448 exp_sym_flag
='-Bexport'
20451 aix_use_runtimelinking
=no
20453 # Test if we are trying to use run time linking or normal
20454 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20455 # need to do runtime linking.
20456 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20457 for ld_flag
in $LDFLAGS; do
20460 aix_use_runtimelinking
=yes
20468 exp_sym_flag
='-bexport'
20469 no_entry_flag
='-bnoentry'
20472 # When large executables or shared objects are built, AIX ld can
20473 # have problems creating the table of contents. If linking a library
20474 # or program results in "error TOC overflow" add -mminimal-toc to
20475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20478 archive_cmds_CXX
=''
20479 hardcode_direct_CXX
=yes
20480 hardcode_direct_absolute_CXX
=yes
20481 hardcode_libdir_separator_CXX
=':'
20482 link_all_deplibs_CXX
=yes
20483 file_list_spec_CXX
='${wl}-f,'
20485 if test "$GXX" = yes; then
20486 case $host_os in aix4.
[012]|aix4.
[012].
*)
20487 # We only want to do this on AIX 4.2 and lower, the check
20488 # below for broken collect2 doesn't work under 4.3+
20489 collect2name
=`${CC} -print-prog-name=collect2`
20490 if test -f "$collect2name" &&
20491 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20493 # We have reworked collect2
20496 # We have old collect2
20497 hardcode_direct_CXX
=unsupported
20498 # It fails to find uninstalled libraries when the uninstalled
20499 # path is not listed in the libpath. Setting hardcode_minus_L
20500 # to unsupported forces relinking
20501 hardcode_minus_L_CXX
=yes
20502 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20503 hardcode_libdir_separator_CXX
=
20506 shared_flag
='-shared'
20507 if test "$aix_use_runtimelinking" = yes; then
20508 shared_flag
="$shared_flag "'${wl}-G'
20512 if test "$host_cpu" = ia64
; then
20513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20514 # chokes on -Wl,-G. The following line is correct:
20517 if test "$aix_use_runtimelinking" = yes; then
20518 shared_flag
='${wl}-G'
20520 shared_flag
='${wl}-bM:SRE'
20525 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20526 # It seems that -bexpall does not export symbols beginning with
20527 # underscore (_), so it is better to generate a list of symbols to
20529 always_export_symbols_CXX
=yes
20530 if test "$aix_use_runtimelinking" = yes; then
20531 # Warning - without using the other runtime loading flags (-brtl),
20532 # -berok will link without error, but may produce a broken library.
20533 allow_undefined_flag_CXX
='-berok'
20534 # Determine the default libpath from the value encoded in an empty
20536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20537 /* end confdefs.h. */
20547 if ac_fn_cxx_try_link
"$LINENO"; then :
20549 lt_aix_libpath_sed
='
20550 /Import File Strings/,/^$/ {
20556 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20557 # Check for a 64-bit object if we didn't find anything.
20558 if test -z "$aix_libpath"; then
20559 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20562 rm -f core conftest.err conftest.
$ac_objext \
20563 conftest
$ac_exeext conftest.
$ac_ext
20564 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20566 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20568 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"
20570 if test "$host_cpu" = ia64
; then
20571 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20572 allow_undefined_flag_CXX
="-z nodefs"
20573 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"
20575 # Determine the default libpath from the value encoded in an
20576 # empty executable.
20577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20578 /* end confdefs.h. */
20588 if ac_fn_cxx_try_link
"$LINENO"; then :
20590 lt_aix_libpath_sed
='
20591 /Import File Strings/,/^$/ {
20597 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20598 # Check for a 64-bit object if we didn't find anything.
20599 if test -z "$aix_libpath"; then
20600 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20603 rm -f core conftest.err conftest.
$ac_objext \
20604 conftest
$ac_exeext conftest.
$ac_ext
20605 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20607 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20608 # Warning - without using the other run time loading flags,
20609 # -berok will link without error, but may produce a broken library.
20610 no_undefined_flag_CXX
=' ${wl}-bernotok'
20611 allow_undefined_flag_CXX
=' ${wl}-berok'
20612 if test "$with_gnu_ld" = yes; then
20613 # We only use this code for GNU lds that support --whole-archive.
20614 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20616 # Exported symbols can be pulled into shared objects from archives
20617 whole_archive_flag_spec_CXX
='$convenience'
20619 archive_cmds_need_lc_CXX
=yes
20620 # This is similar to how AIX traditionally builds its shared
20622 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'
20628 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20629 allow_undefined_flag_CXX
=unsupported
20630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20631 # support --undefined. This deserves some investigation. FIXME
20632 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20639 case $cc_basename in
20641 # FIXME: insert proper C++ library support
20647 cygwin
* | mingw
* | pw32
* | cegcc
*)
20648 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20649 # as there is no search path for DLLs.
20650 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20651 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20652 allow_undefined_flag_CXX
=unsupported
20653 always_export_symbols_CXX
=no
20654 enable_shared_with_static_runtimes_CXX
=yes
20656 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20657 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'
20658 # If the export-symbols file already is a .def file (1st line
20659 # is EXPORTS), use it as is; otherwise, prepend...
20660 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20661 cp $export_symbols $output_objdir/$soname.def;
20663 echo EXPORTS > $output_objdir/$soname.def;
20664 cat $export_symbols >> $output_objdir/$soname.def;
20666 $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'
20671 darwin
* | rhapsody
*)
20674 archive_cmds_need_lc_CXX
=no
20675 hardcode_direct_CXX
=no
20676 hardcode_automatic_CXX
=yes
20677 hardcode_shlibpath_var_CXX
=unsupported
20678 if test "$lt_cv_ld_force_load" = "yes"; then
20679 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\"`'
20681 whole_archive_flag_spec_CXX
=''
20683 link_all_deplibs_CXX
=yes
20684 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20685 case $cc_basename in
20686 ifort
*) _lt_dar_can_shared
=yes ;;
20687 *) _lt_dar_can_shared
=$GCC ;;
20689 if test "$_lt_dar_can_shared" = "yes"; then
20690 output_verbose_link_cmd
=func_echo_all
20691 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}"
20692 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20693 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}"
20694 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}"
20695 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20696 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}"
20697 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}"
20707 case $cc_basename in
20709 # FIXME: insert proper C++ library support
20713 # Green Hills C++ Compiler
20714 # FIXME: insert proper C++ library support
20718 # FIXME: insert proper C++ library support
20725 # C++ shared libraries reported to be fairly broken before
20731 archive_cmds_need_lc_CXX
=no
20734 freebsd
* | dragonfly
*)
20735 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20744 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20745 link_all_deplibs_CXX
=yes
20749 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20750 hardcode_libdir_separator_CXX
=:
20751 export_dynamic_flag_spec_CXX
='${wl}-E'
20752 hardcode_direct_CXX
=yes
20753 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20754 # but as the default
20755 # location of the library.
20757 case $cc_basename in
20759 # FIXME: insert proper C++ library support
20763 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'
20764 # Commands to make compiler produce verbose output that lists
20765 # what "hidden" libraries, object files and flags are used when
20766 # linking a shared library.
20768 # There doesn't appear to be a way to prevent this compiler from
20769 # explicitly linking system object files so we need to strip them
20770 # from the output so that they don't get included in the library
20772 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"'
20775 if test "$GXX" = yes; then
20776 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'
20778 # FIXME: insert proper C++ library support
20786 if test $with_gnu_ld = no
; then
20787 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20788 hardcode_libdir_separator_CXX
=:
20794 export_dynamic_flag_spec_CXX
='${wl}-E'
20800 hardcode_direct_CXX
=no
20801 hardcode_shlibpath_var_CXX
=no
20804 hardcode_direct_CXX
=yes
20805 hardcode_direct_absolute_CXX
=yes
20806 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20807 # but as the default
20808 # location of the library.
20812 case $cc_basename in
20814 # FIXME: insert proper C++ library support
20820 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20823 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20826 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20829 # Commands to make compiler produce verbose output that lists
20830 # what "hidden" libraries, object files and flags are used when
20831 # linking a shared library.
20833 # There doesn't appear to be a way to prevent this compiler from
20834 # explicitly linking system object files so we need to strip them
20835 # from the output so that they don't get included in the library
20837 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"'
20840 if test "$GXX" = yes; then
20841 if test $with_gnu_ld = no
; then
20844 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20847 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20850 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'
20855 # FIXME: insert proper C++ library support
20863 hardcode_direct_CXX
=no
20864 hardcode_shlibpath_var_CXX
=no
20865 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20866 export_dynamic_flag_spec_CXX
='${wl}-E'
20867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20868 # Instead, shared libraries are loaded at an image base (0x10000000 by
20869 # default) and relocated if they conflict, which is a slow very memory
20870 # consuming and fragmenting process. To avoid this, we pick a random,
20871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20873 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'
20874 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'
20877 case $cc_basename in
20880 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'
20882 # Archives containing C++ object files must be created using
20883 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20884 # necessary to make sure instantiated templates are included
20886 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20889 if test "$GXX" = yes; then
20890 if test "$with_gnu_ld" = no
; then
20891 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'
20893 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'
20896 link_all_deplibs_CXX
=yes
20899 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20900 hardcode_libdir_separator_CXX
=:
20901 inherit_rpath_CXX
=yes
20904 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20905 case $cc_basename in
20907 # Kuck and Associates, Inc. (KAI) C++ Compiler
20909 # KCC will only create a shared library if the output file
20910 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20911 # to its proper name (with version) after linking.
20912 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'
20913 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'
20914 # Commands to make compiler produce verbose output that lists
20915 # what "hidden" libraries, object files and flags are used when
20916 # linking a shared library.
20918 # There doesn't appear to be a way to prevent this compiler from
20919 # explicitly linking system object files so we need to strip them
20920 # from the output so that they don't get included in the library
20922 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"'
20924 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20925 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20927 # Archives containing C++ object files must be created using
20928 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20929 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20934 # version 8.0 and above of icpc choke on multiply defined symbols
20935 # if we add $predep_objects and $postdep_objects, however 7.1 and
20936 # earlier do not add the objects themselves.
20937 case `$CC -V 2>&1` in
20939 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20940 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'
20942 *) # Version 8.0 or newer
20945 ia64
*) tmp_idyn
=' -i_dynamic';;
20947 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20948 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'
20951 archive_cmds_need_lc_CXX
=no
20952 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20953 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20954 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20957 # Portland Group C++ compiler
20959 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20960 prelink_cmds_CXX
='tpldir=Template.dir~
20962 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20963 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20964 old_archive_cmds_CXX
='tpldir=Template.dir~
20966 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20967 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20969 archive_cmds_CXX
='tpldir=Template.dir~
20971 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20972 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20973 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20975 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20976 $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'
20978 *) # Version 6 and above use weak symbols
20979 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20980 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'
20984 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20985 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20986 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'
20990 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20991 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'
20993 runpath_var
=LD_RUN_PATH
20994 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20995 hardcode_libdir_separator_CXX
=:
20997 # Commands to make compiler produce verbose output that lists
20998 # what "hidden" libraries, object files and flags are used when
20999 # linking a shared library.
21001 # There doesn't appear to be a way to prevent this compiler from
21002 # explicitly linking system object files so we need to strip them
21003 # from the output so that they don't get included in the library
21005 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'
21007 xl
* | mpixl
* | bgxl
*)
21008 # IBM XL 8.0 on PPC, with GNU ld
21009 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21010 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
21011 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21012 if test "x$supports_anon_versioning" = xyes
; then
21013 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
21014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21015 echo "local: *; };" >> $output_objdir/$libname.ver~
21016 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21020 case `$CC -V 2>&1 | sed 5q` in
21023 no_undefined_flag_CXX
=' -zdefs'
21024 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21025 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'
21026 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21027 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'
21028 compiler_needs_object_CXX
=yes
21030 # Not sure whether something based on
21031 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21033 output_verbose_link_cmd
='func_echo_all'
21035 # Archives containing C++ object files must be created using
21036 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21037 # necessary to make sure instantiated templates are included
21039 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21047 # FIXME: insert proper C++ library support
21052 # FIXME: insert proper C++ library support
21057 case $cc_basename in
21059 # FIXME: insert proper C++ library support
21063 # FIXME: insert proper C++ library support
21070 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21071 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21073 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21074 hardcode_direct_CXX
=yes
21075 hardcode_shlibpath_var_CXX
=no
21077 # Workaround some broken pre-1.5 toolchains
21078 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21086 # C++ shared libraries are fairly broken
21091 if test -f /usr
/libexec
/ld.so
; then
21092 hardcode_direct_CXX
=yes
21093 hardcode_shlibpath_var_CXX
=no
21094 hardcode_direct_absolute_CXX
=yes
21095 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21096 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21098 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21099 export_dynamic_flag_spec_CXX
='${wl}-E'
21100 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21102 output_verbose_link_cmd
=func_echo_all
21108 osf3
* | osf4
* | osf5
*)
21109 case $cc_basename in
21111 # Kuck and Associates, Inc. (KAI) C++ Compiler
21113 # KCC will only create a shared library if the output file
21114 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21115 # to its proper name (with version) after linking.
21116 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'
21118 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
21119 hardcode_libdir_separator_CXX
=:
21121 # Archives containing C++ object files must be created using
21122 # the KAI C++ compiler.
21124 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
21125 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
21129 # Rational C++ 2.4.1
21130 # FIXME: insert proper C++ library support
21136 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21137 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'
21138 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21141 allow_undefined_flag_CXX
=' -expect_unresolved \*'
21142 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'
21143 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21144 echo "-hidden">> $lib.exp~
21145 $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~
21147 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
21151 hardcode_libdir_separator_CXX
=:
21153 # Commands to make compiler produce verbose output that lists
21154 # what "hidden" libraries, object files and flags are used when
21155 # linking a shared library.
21157 # There doesn't appear to be a way to prevent this compiler from
21158 # explicitly linking system object files so we need to strip them
21159 # from the output so that they don't get included in the library
21161 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"'
21164 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21165 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
21168 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'
21171 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'
21175 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
21176 hardcode_libdir_separator_CXX
=:
21178 # Commands to make compiler produce verbose output that lists
21179 # what "hidden" libraries, object files and flags are used when
21180 # linking a shared library.
21181 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21184 # FIXME: insert proper C++ library support
21192 # FIXME: insert proper C++ library support
21197 case $cc_basename in
21200 # FIXME: insert proper C++ library support
21205 # FIXME: insert proper C++ library support
21209 # FIXME: insert proper C++ library support
21216 case $cc_basename in
21218 # Sun C++ 4.2, 5.x and Centerline C++
21219 archive_cmds_need_lc_CXX
=yes
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
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21223 $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'
21225 hardcode_libdir_flag_spec_CXX
='-R$libdir'
21226 hardcode_shlibpath_var_CXX
=no
21228 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21230 # The compiler driver will combine and reorder linker options,
21231 # but understands `-z linker_flag'.
21232 # Supported since Solaris 2.6 (maybe 2.5.1?)
21233 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
21236 link_all_deplibs_CXX
=yes
21238 output_verbose_link_cmd
='func_echo_all'
21240 # Archives containing C++ object files must be created using
21241 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21242 # necessary to make sure instantiated templates are included
21244 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
21247 # Green Hills C++ Compiler
21248 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21250 # The C++ compiler must be used to create the archive.
21251 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21254 # GNU C++ compiler with Solaris linker
21255 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
21256 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
21257 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
21258 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21259 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21260 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21262 # Commands to make compiler produce verbose output that lists
21263 # what "hidden" libraries, object files and flags are used when
21264 # linking a shared library.
21265 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21267 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21269 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21270 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21271 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21273 # Commands to make compiler produce verbose output that lists
21274 # what "hidden" libraries, object files and flags are used when
21275 # linking a shared library.
21276 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21279 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
21281 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21283 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21291 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21292 no_undefined_flag_CXX
='${wl}-z,text'
21293 archive_cmds_need_lc_CXX
=no
21294 hardcode_shlibpath_var_CXX
=no
21295 runpath_var
='LD_RUN_PATH'
21297 case $cc_basename in
21299 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21300 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21303 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21304 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21309 sysv5
* | sco3.2v5
* | sco5v6
*)
21310 # Note: We can NOT use -z defs as we might desire, because we do not
21311 # link with -lc, and that would cause any symbols used from libc to
21312 # always be unresolved, which means just about no library would
21313 # ever link correctly. If we're not using GNU ld we use -z text
21314 # though, which does catch some bad symbols but isn't as heavy-handed
21316 no_undefined_flag_CXX
='${wl}-z,text'
21317 allow_undefined_flag_CXX
='${wl}-z,nodefs'
21318 archive_cmds_need_lc_CXX
=no
21319 hardcode_shlibpath_var_CXX
=no
21320 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
21321 hardcode_libdir_separator_CXX
=':'
21322 link_all_deplibs_CXX
=yes
21323 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
21324 runpath_var
='LD_RUN_PATH'
21326 case $cc_basename in
21328 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21329 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21330 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
21331 '"$old_archive_cmds_CXX"
21332 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
21333 '"$reload_cmds_CXX"
21336 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21337 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21343 case $cc_basename in
21345 # NonStop-UX NCC 3.20
21346 # FIXME: insert proper C++ library support
21350 # FIXME: insert proper C++ library support
21357 # FIXME: insert proper C++ library support
21362 # FIXME: insert proper C++ library support
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21368 $as_echo "$ld_shlibs_CXX" >&6; }
21369 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21375 ## There is no encapsulation within the following macros, do not change
21376 ## the running order or otherwise move them around unless you know exactly
21377 ## what you are doing...
21378 # Dependencies to place before and after the object being linked:
21379 predep_objects_CXX
=
21380 postdep_objects_CXX
=
21383 compiler_lib_search_path_CXX
=
21385 cat > conftest.
$ac_ext <<_LT_EOF
21389 Foo (void) { a = 0; }
21395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21396 (eval $ac_compile) 2>&5
21398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21399 test $ac_status = 0; }; then
21400 # Parse the compiler output and extract the necessary
21401 # objects, libraries and library flags.
21403 # Sentinel used to keep track of whether or not we are before
21404 # the conftest object file.
21405 pre_test_object_deps_done
=no
21407 for p
in `eval "$output_verbose_link_cmd"`; do
21411 # Some compilers place space between "-{L,R}" and the path.
21412 # Remove the space.
21413 if test $p = "-L" ||
21414 test $p = "-R"; then
21421 if test "$pre_test_object_deps_done" = no
; then
21424 # Internal compiler library paths should come after those
21425 # provided the user. The postdeps already come after the
21426 # user supplied libs so there is no need to process them.
21427 if test -z "$compiler_lib_search_path_CXX"; then
21428 compiler_lib_search_path_CXX
="${prev}${p}"
21430 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21433 # The "-l" case would never come before the object being
21434 # linked, so don't bother handling this case.
21437 if test -z "$postdeps_CXX"; then
21438 postdeps_CXX
="${prev}${p}"
21440 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21446 # This assumes that the test object file only shows up
21447 # once in the compiler output.
21448 if test "$p" = "conftest.$objext"; then
21449 pre_test_object_deps_done
=yes
21453 if test "$pre_test_object_deps_done" = no
; then
21454 if test -z "$predep_objects_CXX"; then
21455 predep_objects_CXX
="$p"
21457 predep_objects_CXX
="$predep_objects_CXX $p"
21460 if test -z "$postdep_objects_CXX"; then
21461 postdep_objects_CXX
="$p"
21463 postdep_objects_CXX
="$postdep_objects_CXX $p"
21468 *) ;; # Ignore the rest.
21476 echo "libtool.m4: error: problem compiling CXX test program"
21479 $RM -f confest.
$objext
21481 # PORTME: override above test on systems where it is broken
21484 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21485 # hack all around it, let's just trust "g++" to DTRT.
21486 predep_objects_CXX
=
21487 postdep_objects_CXX
=
21492 case `$CC -V 2>&1 | sed 5q` in
21496 # The more standards-conforming stlport4 library is
21497 # incompatible with the Cstd library. Avoid specifying
21498 # it if it's in CXXFLAGS. Ignore libCrun as
21499 # -library=stlport4 depends on it.
21500 case " $CXX $CXXFLAGS " in
21501 *" -library=stlport4 "*)
21502 solaris_use_stlport4
=yes
21506 if test "$solaris_use_stlport4" != yes; then
21507 postdeps_CXX
='-library=Cstd -library=Crun'
21514 case $cc_basename in
21516 # The more standards-conforming stlport4 library is
21517 # incompatible with the Cstd library. Avoid specifying
21518 # it if it's in CXXFLAGS. Ignore libCrun as
21519 # -library=stlport4 depends on it.
21520 case " $CXX $CXXFLAGS " in
21521 *" -library=stlport4 "*)
21522 solaris_use_stlport4
=yes
21526 # Adding this requires a known-good setup of shared libraries for
21527 # Sun compiler versions before 5.6, else PIC objects from an old
21528 # archive will be linked into the output, leading to subtle bugs.
21529 if test "$solaris_use_stlport4" != yes; then
21530 postdeps_CXX
='-library=Cstd -library=Crun'
21538 case " $postdeps_CXX " in
21539 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21541 compiler_lib_search_dirs_CXX
=
21542 if test -n "${compiler_lib_search_path_CXX}"; then
21543 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21576 lt_prog_compiler_wl_CXX
=
21577 lt_prog_compiler_pic_CXX
=
21578 lt_prog_compiler_static_CXX
=
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21581 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21583 # C++ specific cases for pic, static, wl, etc.
21584 if test "$GXX" = yes; then
21585 lt_prog_compiler_wl_CXX
='-Wl,'
21586 lt_prog_compiler_static_CXX
='-static'
21590 # All AIX code is PIC.
21591 if test "$host_cpu" = ia64
; then
21592 # AIX 5 now supports IA64 processor
21593 lt_prog_compiler_static_CXX
='-Bstatic'
21595 lt_prog_compiler_pic_CXX
='-fPIC'
21601 # see comment about AmigaOS4 .so support
21602 lt_prog_compiler_pic_CXX
='-fPIC'
21605 # FIXME: we need at least 68020 code to build shared libraries, but
21606 # adding the `-m68020' flag to GCC prevents building anything better,
21608 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21613 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21614 # PIC is the default for these OSes.
21616 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21617 # This hack is so that the source file can tell whether it is being
21618 # built for inclusion in a dll (and should export symbols for example).
21619 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21620 # (--disable-auto-import) libraries
21621 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21623 darwin
* | rhapsody
*)
21624 # PIC is the default on this platform
21625 # Common symbols not allowed in MH_DYLIB files
21626 lt_prog_compiler_pic_CXX
='-fno-common'
21629 # DJGPP does not support shared libraries at all
21630 lt_prog_compiler_pic_CXX
=
21633 # PIC is the default for Haiku.
21634 # The "-static" flag exists, but is broken.
21635 lt_prog_compiler_static_CXX
=
21638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21639 # Instead, we relocate shared libraries at runtime.
21642 if test -d /usr
/nec
; then
21643 lt_prog_compiler_pic_CXX
=-Kconform_pic
21647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21649 # sets the default TLS model and affects inlining.
21654 lt_prog_compiler_pic_CXX
='-fPIC'
21659 # QNX uses GNU C++, but need to define -shared option too, otherwise
21660 # it will coredump.
21661 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21664 lt_prog_compiler_pic_CXX
='-fPIC'
21670 # All AIX code is PIC.
21671 if test "$host_cpu" = ia64
; then
21672 # AIX 5 now supports IA64 processor
21673 lt_prog_compiler_static_CXX
='-Bstatic'
21675 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21679 case $cc_basename in
21681 # Green Hills C++ Compiler
21682 # _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"
21687 case $cc_basename in
21689 lt_prog_compiler_pic_CXX
='-KPIC'
21692 # Green Hills C++ Compiler
21693 lt_prog_compiler_pic_CXX
='-pic'
21699 freebsd
* | dragonfly
*)
21700 # FreeBSD uses GNU C++
21702 hpux9
* | hpux10
* | hpux11
*)
21703 case $cc_basename in
21705 lt_prog_compiler_wl_CXX
='-Wl,'
21706 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21707 if test "$host_cpu" != ia64
; then
21708 lt_prog_compiler_pic_CXX
='+Z'
21712 lt_prog_compiler_wl_CXX
='-Wl,'
21713 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21719 lt_prog_compiler_pic_CXX
='+Z'
21728 # This is c89, which is MS Visual C++ (no shared libs)
21729 # Anyone wants to do a port?
21731 irix5
* | irix6
* | nonstopux
*)
21732 case $cc_basename in
21734 lt_prog_compiler_wl_CXX
='-Wl,'
21735 lt_prog_compiler_static_CXX
='-non_shared'
21736 # CC pic flag -KPIC is the default.
21742 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21743 case $cc_basename in
21746 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21747 lt_prog_compiler_pic_CXX
='-fPIC'
21750 # old Intel C++ for x86_64 which still supported -KPIC.
21751 lt_prog_compiler_wl_CXX
='-Wl,'
21752 lt_prog_compiler_pic_CXX
='-KPIC'
21753 lt_prog_compiler_static_CXX
='-static'
21756 # Intel C++, used to be incompatible with GCC.
21757 # ICC 10 doesn't accept -KPIC any more.
21758 lt_prog_compiler_wl_CXX
='-Wl,'
21759 lt_prog_compiler_pic_CXX
='-fPIC'
21760 lt_prog_compiler_static_CXX
='-static'
21763 # Portland Group C++ compiler
21764 lt_prog_compiler_wl_CXX
='-Wl,'
21765 lt_prog_compiler_pic_CXX
='-fpic'
21766 lt_prog_compiler_static_CXX
='-Bstatic'
21770 # Make sure the PIC flag is empty. It appears that all Alpha
21771 # Linux and Compaq Tru64 Unix objects are PIC.
21772 lt_prog_compiler_pic_CXX
=
21773 lt_prog_compiler_static_CXX
='-non_shared'
21775 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21776 # IBM XL 8.0, 9.0 on PPC and BlueGene
21777 lt_prog_compiler_wl_CXX
='-Wl,'
21778 lt_prog_compiler_pic_CXX
='-qpic'
21779 lt_prog_compiler_static_CXX
='-qstaticlink'
21782 case `$CC -V 2>&1 | sed 5q` in
21785 lt_prog_compiler_pic_CXX
='-KPIC'
21786 lt_prog_compiler_static_CXX
='-Bstatic'
21787 lt_prog_compiler_wl_CXX
='-Qoption ld '
21798 case $cc_basename in
21800 lt_prog_compiler_pic_CXX
='-W c,exportall'
21809 # QNX uses GNU C++, but need to define -shared option too, otherwise
21810 # it will coredump.
21811 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21813 osf3
* | osf4
* | osf5
*)
21814 case $cc_basename in
21816 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21819 # Rational C++ 2.4.1
21820 lt_prog_compiler_pic_CXX
='-pic'
21823 # Digital/Compaq C++
21824 lt_prog_compiler_wl_CXX
='-Wl,'
21825 # Make sure the PIC flag is empty. It appears that all Alpha
21826 # Linux and Compaq Tru64 Unix objects are PIC.
21827 lt_prog_compiler_pic_CXX
=
21828 lt_prog_compiler_static_CXX
='-non_shared'
21837 case $cc_basename in
21839 # Sun C++ 4.2, 5.x and Centerline C++
21840 lt_prog_compiler_pic_CXX
='-KPIC'
21841 lt_prog_compiler_static_CXX
='-Bstatic'
21842 lt_prog_compiler_wl_CXX
='-Qoption ld '
21845 # Green Hills C++ Compiler
21846 lt_prog_compiler_pic_CXX
='-PIC'
21853 case $cc_basename in
21856 lt_prog_compiler_pic_CXX
='-pic'
21857 lt_prog_compiler_static_CXX
='-Bstatic'
21861 lt_prog_compiler_pic_CXX
='-pic'
21867 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21868 case $cc_basename in
21870 lt_prog_compiler_wl_CXX
='-Wl,'
21871 lt_prog_compiler_pic_CXX
='-KPIC'
21872 lt_prog_compiler_static_CXX
='-Bstatic'
21877 case $cc_basename in
21879 # NonStop-UX NCC 3.20
21880 lt_prog_compiler_pic_CXX
='-KPIC'
21889 lt_prog_compiler_can_build_shared_CXX
=no
21895 # For platforms which do not support PIC, -DPIC is meaningless:
21897 lt_prog_compiler_pic_CXX
=
21900 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21904 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21909 # Check to make sure the PIC flag actually works.
21911 if test -n "$lt_prog_compiler_pic_CXX"; then
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21914 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21915 $as_echo_n "(cached) " >&6
21917 lt_cv_prog_compiler_pic_works_CXX
=no
21918 ac_outfile
=conftest.
$ac_objext
21919 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21920 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21921 # Insert the option either (1) after the last *FLAGS variable, or
21922 # (2) before a word containing "conftest.", or (3) at the end.
21923 # Note that $ac_compile itself does not contain backslashes and begins
21924 # with a dollar sign (not a hyphen), so the echo should work correctly.
21925 # The option is referenced via a variable to avoid confusing sed.
21926 lt_compile
=`echo "$ac_compile" | $SED \
21927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21929 -e 's:$: $lt_compiler_flag:'`
21930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21931 (eval "$lt_compile" 2>conftest.err
)
21933 cat conftest.err
>&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 if (exit $ac_status) && test -s "$ac_outfile"; then
21936 # The compiler can only warn and ignore the option if not recognized
21937 # So say no if there are warnings other than the usual output.
21938 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21939 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21940 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21941 lt_cv_prog_compiler_pic_works_CXX
=yes
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21948 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21950 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21951 case $lt_prog_compiler_pic_CXX in
21953 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21956 lt_prog_compiler_pic_CXX
=
21957 lt_prog_compiler_can_build_shared_CXX
=no
21965 # Check to make sure the static flag actually works.
21967 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21969 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21970 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21971 $as_echo_n "(cached) " >&6
21973 lt_cv_prog_compiler_static_works_CXX
=no
21974 save_LDFLAGS
="$LDFLAGS"
21975 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21976 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21977 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21978 # The linker can only warn and ignore the option if not recognized
21979 # So say no if there are warnings
21980 if test -s conftest.err
; then
21981 # Append any errors to the config.log.
21982 cat conftest.err
1>&5
21983 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21984 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21985 if diff conftest.exp conftest.er2
>/dev
/null
; then
21986 lt_cv_prog_compiler_static_works_CXX
=yes
21989 lt_cv_prog_compiler_static_works_CXX
=yes
21993 LDFLAGS
="$save_LDFLAGS"
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21997 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21999 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
22002 lt_prog_compiler_static_CXX
=
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22010 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22011 $as_echo_n "(cached) " >&6
22013 lt_cv_prog_compiler_c_o_CXX
=no
22014 $RM -r conftest
2>/dev
/null
22018 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22020 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22021 # Insert the option either (1) after the last *FLAGS variable, or
22022 # (2) before a word containing "conftest.", or (3) at the end.
22023 # Note that $ac_compile itself does not contain backslashes and begins
22024 # with a dollar sign (not a hyphen), so the echo should work correctly.
22025 lt_compile
=`echo "$ac_compile" | $SED \
22026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22028 -e 's:$: $lt_compiler_flag:'`
22029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22030 (eval "$lt_compile" 2>out
/conftest.err
)
22032 cat out
/conftest.err
>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22036 # The compiler can only warn and ignore the option if not recognized
22037 # So say no if there are warnings
22038 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22039 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22040 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22041 lt_cv_prog_compiler_c_o_CXX
=yes
22046 # SGI C++ compiler will create directory out/ii_files/ for
22047 # template instantiation
22048 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22049 $RM out
/* && rmdir out
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22056 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22062 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
22063 $as_echo_n "(cached) " >&6
22065 lt_cv_prog_compiler_c_o_CXX
=no
22066 $RM -r conftest
2>/dev
/null
22070 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22072 lt_compiler_flag
="-o out/conftest2.$ac_objext"
22073 # Insert the option either (1) after the last *FLAGS variable, or
22074 # (2) before a word containing "conftest.", or (3) at the end.
22075 # Note that $ac_compile itself does not contain backslashes and begins
22076 # with a dollar sign (not a hyphen), so the echo should work correctly.
22077 lt_compile
=`echo "$ac_compile" | $SED \
22078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22080 -e 's:$: $lt_compiler_flag:'`
22081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22082 (eval "$lt_compile" 2>out
/conftest.err
)
22084 cat out
/conftest.err
>&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
22088 # The compiler can only warn and ignore the option if not recognized
22089 # So say no if there are warnings
22090 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
22091 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
22092 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
22093 lt_cv_prog_compiler_c_o_CXX
=yes
22098 # SGI C++ compiler will create directory out/ii_files/ for
22099 # template instantiation
22100 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
22101 $RM out
/* && rmdir out
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22108 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22113 hard_links
="nottested"
22114 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
22115 # do not overwrite the value of need_locks provided by the user
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22117 $as_echo_n "checking if we can lock with hard links... " >&6; }
22120 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22122 ln conftest.a conftest.b
2>&5 || hard_links
=no
22123 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22125 $as_echo "$hard_links" >&6; }
22126 if test "$hard_links" = no
; then
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22128 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22138 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22140 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22143 # If we're using GNU nm, then we don't want the "-C" option.
22144 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22145 # Also, AIX nm treats weak defined symbols like other global defined
22146 # symbols, whereas GNU nm marks them as "W".
22147 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
22148 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'
22150 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'
22154 export_symbols_cmds_CXX
="$ltdll_cmds"
22156 cygwin
* | mingw
* | cegcc
*)
22157 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'
22160 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22163 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22166 $as_echo "$ld_shlibs_CXX" >&6; }
22167 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
22169 with_gnu_ld_CXX
=$with_gnu_ld
22177 # Do we need to explicitly link libc?
22179 case "x$archive_cmds_need_lc_CXX" in
22181 # Assume -lc should be added
22182 archive_cmds_need_lc_CXX
=yes
22184 if test "$enable_shared" = yes && test "$GCC" = yes; then
22185 case $archive_cmds_CXX in
22187 # FIXME: we may have to deal with multi-command sequences.
22190 # Test whether the compiler implicitly links with -lc since on some
22191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22192 # to ld, don't add -lc before -lgcc.
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22194 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22195 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
22196 $as_echo_n "(cached) " >&6
22199 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22202 (eval $ac_compile) 2>&5
22204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22205 test $ac_status = 0; } 2>conftest.err
; then
22208 libobjs
=conftest.
$ac_objext
22210 wl
=$lt_prog_compiler_wl_CXX
22211 pic_flag
=$lt_prog_compiler_pic_CXX
22217 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
22218 allow_undefined_flag_CXX
=
22219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22220 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22223 test $ac_status = 0; }
22225 lt_cv_archive_cmds_need_lc_CXX
=no
22227 lt_cv_archive_cmds_need_lc_CXX
=yes
22229 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
22231 cat conftest.err
1>&5
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22237 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22238 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22309 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22311 library_names_spec
=
22312 libname_spec
='lib$name'
22316 postuninstall_cmds
=
22320 shlibpath_overrides_runpath
=unknown
22322 dynamic_linker
="$host_os ld.so"
22323 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22324 need_lib_prefix
=unknown
22325 hardcode_into_libs
=no
22327 # when you set need_version to no, make sure it does not cause -set_version
22328 # flags to be left without arguments
22329 need_version
=unknown
22334 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22335 shlibpath_var
=LIBPATH
22337 # AIX 3 has no versioning support, so we append a major version to the name.
22338 soname_spec
='${libname}${release}${shared_ext}$major'
22345 hardcode_into_libs
=yes
22346 if test "$host_cpu" = ia64
; then
22347 # AIX 5 supports IA64
22348 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22349 shlibpath_var
=LD_LIBRARY_PATH
22351 # With GCC up to 2.95.x, collect2 would create an import file
22352 # for dependence libraries. The import file would start with
22353 # the line `#! .'. This would cause the generated library to
22354 # depend on `.', always an invalid library. This was fixed in
22355 # development snapshots of GCC prior to 3.0.
22357 aix4 | aix4.
[01] | aix4.
[01].
*)
22358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22360 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
22363 can_build_shared
=no
22367 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22368 # soname into executable. Probably we can add versioning support to
22369 # collect2, so additional links can be useful in future.
22370 if test "$aix_use_runtimelinking" = yes; then
22371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22372 # instead of lib<name>.a to let people know that these are not
22373 # typical AIX shared libraries.
22374 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22376 # We preserve .a as extension for shared libraries through AIX4.2
22377 # and later when we are not doing run time linking.
22378 library_names_spec
='${libname}${release}.a $libname.a'
22379 soname_spec
='${libname}${release}${shared_ext}$major'
22381 shlibpath_var
=LIBPATH
22388 # Since July 2007 AmigaOS4 officially supports .so libraries.
22389 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22393 library_names_spec
='$libname.ixlibrary $libname.a'
22394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22395 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'
22401 library_names_spec
='${libname}${shared_ext}'
22402 dynamic_linker
="$host_os ld.so"
22403 shlibpath_var
=LIBRARY_PATH
22409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22410 soname_spec
='${libname}${release}${shared_ext}$major'
22411 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22412 shlibpath_var
=LD_LIBRARY_PATH
22413 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22414 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22415 # the default ld.so.conf also contains /usr/contrib/lib and
22416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22417 # libtool to hard-code these into programs
22420 cygwin
* | mingw
* | pw32
* | cegcc
*)
22421 version_type
=windows
22426 case $GCC,$host_os in
22427 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22428 library_names_spec
='$libname.dll.a'
22429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22430 postinstall_cmds
='base_file=`basename \${file}`~
22431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22432 dldir=$destdir/`dirname \$dlpath`~
22433 test -d \$dldir || mkdir -p \$dldir~
22434 $install_prog $dir/$dlname \$dldir/$dlname~
22435 chmod a+x \$dldir/$dlname~
22436 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22437 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22439 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22440 dlpath=$dir/\$dldll~
22442 shlibpath_overrides_runpath
=yes
22446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22447 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22451 # MinGW DLLs use traditional 'lib' prefix
22452 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22455 # pw32 DLLs use 'pw' prefix rather than 'lib'
22456 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22462 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22465 dynamic_linker
='Win32 ld.exe'
22466 # FIXME: first we should search . and the directory the executable is in
22470 darwin
* | rhapsody
*)
22471 dynamic_linker
="$host_os dyld"
22472 version_type
=darwin
22475 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22476 soname_spec
='${libname}${release}${major}$shared_ext'
22477 shlibpath_overrides_runpath
=yes
22478 shlibpath_var
=DYLD_LIBRARY_PATH
22479 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22481 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22488 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22489 soname_spec
='${libname}${release}${shared_ext}$major'
22490 shlibpath_var
=LD_LIBRARY_PATH
22493 freebsd
* | dragonfly
*)
22494 # DragonFly does not have aout. When/if they implement a new
22495 # versioning mechanism, adjust this.
22496 if test -x /usr
/bin
/objformat
; then
22497 objformat
=`/usr/bin/objformat`
22500 freebsd
[23].
*) objformat
=aout
;;
22501 *) objformat
=elf
;;
22504 version_type
=freebsd-
$objformat
22505 case $version_type in
22507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22512 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22516 shlibpath_var
=LD_LIBRARY_PATH
22519 shlibpath_overrides_runpath
=yes
22521 freebsd3.
[01]* | freebsdelf3.
[01]*)
22522 shlibpath_overrides_runpath
=yes
22523 hardcode_into_libs
=yes
22525 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22526 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22527 shlibpath_overrides_runpath
=no
22528 hardcode_into_libs
=yes
22530 *) # from 4.6 on, and DragonFly
22531 shlibpath_overrides_runpath
=yes
22532 hardcode_into_libs
=yes
22541 dynamic_linker
="$host_os runtime_loader"
22542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22543 soname_spec
='${libname}${release}${shared_ext}$major'
22544 shlibpath_var
=LIBRARY_PATH
22545 shlibpath_overrides_runpath
=yes
22546 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22547 hardcode_into_libs
=yes
22550 hpux9
* | hpux10
* | hpux11
*)
22551 # Give a soname corresponding to the major version so that dld.sl refuses to
22552 # link against other versions.
22559 hardcode_into_libs
=yes
22560 dynamic_linker
="$host_os dld.so"
22561 shlibpath_var
=LD_LIBRARY_PATH
22562 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22564 soname_spec
='${libname}${release}${shared_ext}$major'
22565 if test "X$HPUX_IA64_MODE" = X32
; then
22566 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22568 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22570 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22574 hardcode_into_libs
=yes
22575 dynamic_linker
="$host_os dld.sl"
22576 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22577 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22579 soname_spec
='${libname}${release}${shared_ext}$major'
22580 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22581 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22585 dynamic_linker
="$host_os dld.sl"
22586 shlibpath_var
=SHLIB_PATH
22587 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22588 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22589 soname_spec
='${libname}${release}${shared_ext}$major'
22592 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22593 postinstall_cmds
='chmod 555 $lib'
22594 # or fails outright, so override atomically:
22595 install_override_mode
=555
22602 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22603 soname_spec
='${libname}${release}${shared_ext}$major'
22604 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22605 shlibpath_var
=LD_LIBRARY_PATH
22606 shlibpath_overrides_runpath
=no
22607 hardcode_into_libs
=yes
22610 irix5
* | irix6
* | nonstopux
*)
22612 nonstopux
*) version_type
=nonstopux
;;
22614 if test "$lt_cv_prog_gnu_ld" = yes; then
22622 soname_spec
='${libname}${release}${shared_ext}$major'
22623 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22625 irix5
* | nonstopux
*)
22626 libsuff
= shlibsuff
=
22629 case $LD in # libtool.m4 will add one of these switches to LD
22630 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22631 libsuff
= shlibsuff
= libmagic
=32-bit;;
22632 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22633 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22634 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22635 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22636 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22640 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22641 shlibpath_overrides_runpath
=no
22642 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22643 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22644 hardcode_into_libs
=yes
22647 # No shared lib support for Linux oldld, aout, or coff.
22648 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22652 # This must be Linux ELF.
22654 # uclinux* changes (here and below) have been submitted to the libtool
22655 # project, but have not yet been accepted: they are GCC-local changes
22656 # for the time being. (See
22657 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22658 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22663 soname_spec
='${libname}${release}${shared_ext}$major'
22664 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22665 shlibpath_var
=LD_LIBRARY_PATH
22666 shlibpath_overrides_runpath
=no
22668 # Some binutils ld are patched to set DT_RUNPATH
22669 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22670 $as_echo_n "(cached) " >&6
22672 lt_cv_shlibpath_overrides_runpath
=no
22673 save_LDFLAGS
=$LDFLAGS
22674 save_libdir
=$libdir
22675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22678 /* end confdefs.h. */
22688 if ac_fn_cxx_try_link
"$LINENO"; then :
22689 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22690 lt_cv_shlibpath_overrides_runpath
=yes
22693 rm -f core conftest.err conftest.
$ac_objext \
22694 conftest
$ac_exeext conftest.
$ac_ext
22695 LDFLAGS
=$save_LDFLAGS
22696 libdir
=$save_libdir
22700 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22702 # This implies no fast_install, which is unacceptable.
22703 # Some rework will be needed to allow for fast_install
22704 # before this can be enabled.
22705 hardcode_into_libs
=yes
22707 # Append ld.so.conf contents to the search path
22708 if test -f /etc
/ld.so.conf
; then
22709 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' ' '`
22710 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22713 # We used to test for /lib/ld.so.1 and disable shared libraries on
22714 # powerpc, because MkLinux only supported shared libraries with the
22715 # GNU dynamic linker. Since this was broken with cross compilers,
22716 # most powerpc-linux boxes support dynamic linking these days and
22717 # people can always --disable-shared, the test was removed, and we
22718 # assume the GNU/Linux dynamic linker is in use.
22719 dynamic_linker
='GNU/Linux ld.so'
22726 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22728 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22729 dynamic_linker
='NetBSD (a.out) ld.so'
22731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22732 soname_spec
='${libname}${release}${shared_ext}$major'
22733 dynamic_linker
='NetBSD ld.elf_so'
22735 shlibpath_var
=LD_LIBRARY_PATH
22736 shlibpath_overrides_runpath
=yes
22737 hardcode_into_libs
=yes
22742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22743 shlibpath_var
=LD_LIBRARY_PATH
22744 shlibpath_overrides_runpath
=yes
22751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22752 soname_spec
='${libname}${release}${shared_ext}$major'
22753 shlibpath_var
=LD_LIBRARY_PATH
22754 shlibpath_overrides_runpath
=no
22755 hardcode_into_libs
=yes
22756 dynamic_linker
='ldqnx.so'
22761 sys_lib_dlsearch_path_spec
="/usr/lib"
22763 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22765 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22766 *) need_version
=no
;;
22768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22769 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22770 shlibpath_var
=LD_LIBRARY_PATH
22771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22773 openbsd2.
[89] | openbsd2.
[89].
*)
22774 shlibpath_overrides_runpath
=no
22777 shlibpath_overrides_runpath
=yes
22781 shlibpath_overrides_runpath
=yes
22786 libname_spec
='$name'
22789 library_names_spec
='$libname${shared_ext} $libname.a'
22790 dynamic_linker
='OS/2 ld.exe'
22791 shlibpath_var
=LIBPATH
22794 osf3
* | osf4
* | osf5
*)
22798 soname_spec
='${libname}${release}${shared_ext}$major'
22799 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22800 shlibpath_var
=LD_LIBRARY_PATH
22801 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22802 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22814 soname_spec
='${libname}${release}${shared_ext}$major'
22815 shlibpath_var
=LD_LIBRARY_PATH
22816 shlibpath_overrides_runpath
=yes
22817 hardcode_into_libs
=yes
22818 # ldd complains unless libraries are executable
22819 postinstall_cmds
='chmod +x $lib'
22824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22825 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22826 shlibpath_var
=LD_LIBRARY_PATH
22827 shlibpath_overrides_runpath
=yes
22828 if test "$with_gnu_ld" = yes; then
22836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837 soname_spec
='${libname}${release}${shared_ext}$major'
22838 shlibpath_var
=LD_LIBRARY_PATH
22839 case $host_vendor in
22841 shlibpath_overrides_runpath
=no
22843 runpath_var
=LD_RUN_PATH
22851 shlibpath_overrides_runpath
=no
22852 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22858 if test -d /usr
/nec
;then
22860 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22861 soname_spec
='$libname${shared_ext}.$major'
22862 shlibpath_var
=LD_LIBRARY_PATH
22866 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22867 version_type
=freebsd-elf
22870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22871 soname_spec
='${libname}${release}${shared_ext}$major'
22872 shlibpath_var
=LD_LIBRARY_PATH
22873 shlibpath_overrides_runpath
=yes
22874 hardcode_into_libs
=yes
22875 if test "$with_gnu_ld" = yes; then
22876 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22878 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22881 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22885 sys_lib_dlsearch_path_spec
='/usr/lib'
22889 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22894 shlibpath_var
=LD_LIBRARY_PATH
22895 shlibpath_overrides_runpath
=no
22896 hardcode_into_libs
=yes
22901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22902 soname_spec
='${libname}${release}${shared_ext}$major'
22903 shlibpath_var
=LD_LIBRARY_PATH
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22911 $as_echo "$dynamic_linker" >&6; }
22912 test "$dynamic_linker" = no
&& can_build_shared
=no
22914 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22915 if test "$GCC" = yes; then
22916 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22919 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22920 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22922 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22923 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22964 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22965 hardcode_action_CXX
=
22966 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22967 test -n "$runpath_var_CXX" ||
22968 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22970 # We can hardcode non-existent directories.
22971 if test "$hardcode_direct_CXX" != no
&&
22972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22973 # have to relink, otherwise we might link with an installed library
22974 # when we should be linking with a yet-to-be-installed one
22975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22976 test "$hardcode_minus_L_CXX" != no
; then
22977 # Linking always hardcodes the temporary library directory.
22978 hardcode_action_CXX
=relink
22980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22981 hardcode_action_CXX
=immediate
22984 # We cannot hardcode anything, or else we can only hardcode existing
22986 hardcode_action_CXX
=unsupported
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22989 $as_echo "$hardcode_action_CXX" >&6; }
22991 if test "$hardcode_action_CXX" = relink ||
22992 test "$inherit_rpath_CXX" = yes; then
22993 # Fast installation is not supported
22994 enable_fast_install
=no
22995 elif test "$shlibpath_overrides_runpath" = yes ||
22996 test "$enable_shared" = no
; then
22997 # Fast installation is not necessary
22998 enable_fast_install
=needless
23007 fi # test -n "$compiler"
23013 with_gnu_ld
=$lt_save_with_gnu_ld
23014 lt_cv_path_LDCXX
=$lt_cv_path_LD
23015 lt_cv_path_LD
=$lt_save_path_LD
23016 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
23017 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
23018 fi # test "$_lt_caught_CXX_error" != yes
23021 ac_cpp
='$CXXCPP $CPPFLAGS'
23022 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23023 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23024 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
23041 # Only expand once:
23047 # Identify the assembler which will work hand-in-glove with the newly
23048 # built GCC, so that we can examine its features. This is the assembler
23049 # which will be driven by the driver program.
23051 # If build != host, and we aren't building gas in-tree, we identify a
23052 # build->target assembler and hope that it will have the same features
23053 # as the host->target assembler we'll be using.
23054 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23056 if ${gcc_cv_as+:} false
; then :
23060 if test -x "$DEFAULT_ASSEMBLER"; then
23061 gcc_cv_as
="$DEFAULT_ASSEMBLER"
23062 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23063 && test -f ..
/gas
/Makefile \
23064 && test x
$build = x
$host; then
23065 gcc_cv_as
=..
/gas
/as-new
$build_exeext
23066 elif test -x as
$build_exeext; then
23067 # Build using assembler in the current directory.
23068 gcc_cv_as
=.
/as
$build_exeext
23069 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
23070 gcc_cv_as
="$AS_FOR_TARGET"
23072 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23073 set dummy
$AS_FOR_TARGET; ac_word
=$2
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23075 $as_echo_n "checking for $ac_word... " >&6; }
23076 if ${ac_cv_path_gcc_cv_as+:} false
; then :
23077 $as_echo_n "(cached) " >&6
23081 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
23084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23085 for as_dir
in $PATH
23088 test -z "$as_dir" && as_dir
=.
23089 for ac_exec_ext
in '' $ac_executable_extensions; do
23090 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23091 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
23092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23102 gcc_cv_as
=$ac_cv_path_gcc_cv_as
23103 if test -n "$gcc_cv_as"; then
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23105 $as_echo "$gcc_cv_as" >&6; }
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23108 $as_echo "no" >&6; }
23115 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
23117 case "$ORIGINAL_AS_FOR_TARGET" in
23118 .
/as | .
/as
$build_exeext) ;;
23119 *) ac_config_files
="$ac_config_files as:exec-tool.in"
23124 # Check whether --enable-ld was given.
23125 if test "${enable_ld+set}" = set; then :
23126 enableval
=$enable_ld; case "${enableval}" in
23134 install_gold_as_default
=no
23135 # Check whether --enable-gold was given.
23136 if test "${enable_gold+set}" = set; then :
23137 enableval
=$enable_gold; case "${enableval}" in
23139 install_gold_as_default
=yes
23142 if test x
${default_ld} != x
; then
23143 install_gold_as_default
=yes
23149 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
23155 # Identify the linker which will work hand-in-glove with the newly
23156 # built GCC, so that we can examine its features. This is the linker
23157 # which will be driven by the driver program.
23159 # If build != host, and we aren't building gas in-tree, we identify a
23160 # build->target linker and hope that it will have the same features
23161 # as the host->target linker we'll be using.
23162 gcc_cv_gld_major_version
=
23163 gcc_cv_gld_minor_version
=
23164 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23165 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23166 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23168 if ${gcc_cv_ld+:} false
; then :
23172 if test -x "$DEFAULT_LINKER"; then
23173 gcc_cv_ld
="$DEFAULT_LINKER"
23174 elif test $install_gold_as_default = yes \
23175 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23176 && test -f ..
/gold
/Makefile \
23177 && test x
$build = x
$host; then
23178 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
23179 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23180 && test -f ..
/ld
/Makefile \
23181 && test x
$build = x
$host; then
23182 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
23183 elif test -x collect-ld
$build_exeext; then
23184 # Build using linker in the current directory.
23185 gcc_cv_ld
=.
/collect-ld
$build_exeext
23186 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
23187 gcc_cv_ld
="$LD_FOR_TARGET"
23189 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23190 set dummy
$LD_FOR_TARGET; ac_word
=$2
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23192 $as_echo_n "checking for $ac_word... " >&6; }
23193 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
23194 $as_echo_n "(cached) " >&6
23198 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
23201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23202 for as_dir
in $PATH
23205 test -z "$as_dir" && as_dir
=.
23206 for ac_exec_ext
in '' $ac_executable_extensions; do
23207 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23208 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
23209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23219 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
23220 if test -n "$gcc_cv_ld"; then
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23222 $as_echo "$gcc_cv_ld" >&6; }
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23225 $as_echo "no" >&6; }
23232 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
23233 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23234 # if the PLUGIN_LD is set ld-new, just have it as ld
23235 # as that is the installed named.
23236 if test x
$PLUGIN_LD_SUFFIX = xld-new \
23237 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
23238 PLUGIN_LD_SUFFIX
=ld
23241 # Check whether --with-plugin-ld was given.
23242 if test "${with_plugin_ld+set}" = set; then :
23243 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
23244 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
23245 PLUGIN_LD_SUFFIX
="$withval"
23251 cat >>confdefs.h
<<_ACEOF
23252 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23256 # Check to see if we are using gold instead of ld
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23258 $as_echo_n "checking whether we are using gold... " >&6; }
23260 if test x
$gcc_cv_ld != x
; then
23261 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23262 |
grep "GNU gold" > /dev
/null
; then
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23267 $as_echo "$ld_is_gold" >&6; }
23269 # Check to see if we are using mold instead of ld
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23271 $as_echo_n "checking whether we are using mold... " >&6; }
23273 if test x
$gcc_cv_ld != x
; then
23274 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
23275 |
grep "mold" > /dev
/null
; then
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23280 $as_echo "$ld_is_mold" >&6; }
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23284 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23285 # Check to see if default ld is not gold, but gold is
23286 # available and has support for split stack. If gcc was configured
23287 # with gold then no checking is done.
23289 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
23291 # For platforms other than powerpc64*, enable as appropriate.
23293 gold_non_default
=no
23294 ld_gold
=`which ${gcc_cv_ld}.gold`
23295 # Make sure this gold has minimal split stack support
23296 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
23297 ld_vers
=`$ld_gold --version | sed 1q`
23298 gold_vers
=`echo $ld_vers | sed -n \
23299 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23301 # check that the gold version contains the complete split stack support
23302 # on powerpc64 big and little endian
23304 case "$gold_vers" in
23305 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
23307 *) gold_non_default
=no
23313 if test $gold_non_default = yes; then
23315 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23320 $as_echo "$gold_non_default" >&6; }
23322 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
23324 case "$ORIGINAL_LD_FOR_TARGET" in
23325 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
23326 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23331 $as_echo_n "checking what linker to use... " >&6; }
23332 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
23333 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
23334 # Single tree build which includes ld. We want to prefer it
23335 # over whatever linker top-level may have detected, since
23336 # we'll use what we're building after installation anyway.
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23338 $as_echo "newly built ld" >&6; }
23340 in_tree_ld_is_elf
=no
23341 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
23342 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
23343 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
23344 in_tree_ld_is_elf
=yes
23345 elif test "$ld_is_gold" = yes; then
23346 in_tree_ld_is_elf
=yes
23348 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
23350 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23351 if test x
$gcc_cv_gld_version != x
; then
23355 case $gcc_cv_gld_version in
23357 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
23359 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23360 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23361 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
23362 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23365 $as_echo "$gcc_cv_ld" >&6; }
23367 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23368 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
23369 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
23375 # Figure out what nm we will be using.
23376 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23377 if ${gcc_cv_nm+:} false
; then :
23381 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23382 && test -f ..
/binutils
/Makefile \
23383 && test x
$build = x
$host; then
23384 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
23385 elif test -x nm
$build_exeext; then
23386 gcc_cv_nm
=.
/nm
$build_exeext
23387 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
23388 gcc_cv_nm
="$NM_FOR_TARGET"
23390 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23391 set dummy
$NM_FOR_TARGET; ac_word
=$2
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23393 $as_echo_n "checking for $ac_word... " >&6; }
23394 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23395 $as_echo_n "(cached) " >&6
23399 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23403 for as_dir
in $PATH
23406 test -z "$as_dir" && as_dir
=.
23407 for ac_exec_ext
in '' $ac_executable_extensions; do
23408 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23409 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23420 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23421 if test -n "$gcc_cv_nm"; then
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23423 $as_echo "$gcc_cv_nm" >&6; }
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23426 $as_echo "no" >&6; }
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23434 $as_echo_n "checking what nm to use... " >&6; }
23435 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23436 # Single tree build which includes binutils.
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23438 $as_echo "newly built nm" >&6; }
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23442 $as_echo "$gcc_cv_nm" >&6; }
23446 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23448 case "$ORIGINAL_NM_FOR_TARGET" in
23449 .
/nm | .
/nm
$build_exeext) ;;
23450 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23455 # Figure out what objdump we will be using.
23456 if ${gcc_cv_objdump+:} false
; then :
23460 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23461 && test -f ..
/binutils
/Makefile \
23462 && test x
$build = x
$host; then
23463 # Single tree build which includes binutils.
23464 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23465 elif test -x objdump
$build_exeext; then
23466 gcc_cv_objdump
=.
/objdump
$build_exeext
23467 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23468 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23470 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23471 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23473 $as_echo_n "checking for $ac_word... " >&6; }
23474 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23475 $as_echo_n "(cached) " >&6
23477 case $gcc_cv_objdump in
23479 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23483 for as_dir
in $PATH
23486 test -z "$as_dir" && as_dir
=.
23487 for ac_exec_ext
in '' $ac_executable_extensions; do
23488 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23489 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23500 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23501 if test -n "$gcc_cv_objdump"; then
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23503 $as_echo "$gcc_cv_objdump" >&6; }
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23506 $as_echo "no" >&6; }
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23514 $as_echo_n "checking what objdump to use... " >&6; }
23515 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23516 # Single tree build which includes binutils.
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23518 $as_echo "newly built objdump" >&6; }
23519 elif test x
$gcc_cv_objdump = x
; then
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23521 $as_echo "not found" >&6; }
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23524 $as_echo "$gcc_cv_objdump" >&6; }
23527 # Figure out what readelf we will be using.
23528 if ${gcc_cv_readelf+:} false
; then :
23532 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23533 && test -f ..
/binutils
/Makefile \
23534 && test x
$build = x
$host; then
23535 # Single tree build which includes binutils.
23536 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23537 elif test -x readelf
$build_exeext; then
23538 gcc_cv_readelf
=.
/readelf
$build_exeext
23539 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23540 gcc_cv_readelf
="$READELF_FOR_TARGET"
23542 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23543 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23545 $as_echo_n "checking for $ac_word... " >&6; }
23546 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23547 $as_echo_n "(cached) " >&6
23549 case $gcc_cv_readelf in
23551 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23555 for as_dir
in $PATH
23558 test -z "$as_dir" && as_dir
=.
23559 for ac_exec_ext
in '' $ac_executable_extensions; do
23560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23561 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23572 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23573 if test -n "$gcc_cv_readelf"; then
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23575 $as_echo "$gcc_cv_readelf" >&6; }
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23578 $as_echo "no" >&6; }
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23586 $as_echo_n "checking what readelf to use... " >&6; }
23587 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23588 # Single tree build which includes binutils.
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23590 $as_echo "newly built readelf" >&6; }
23591 elif test x
$gcc_cv_readelf = x
; then
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23593 $as_echo "not found" >&6; }
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23596 $as_echo "$gcc_cv_readelf" >&6; }
23599 # Figure out what otool we will be using.
23600 if ${gcc_cv_otool+:} false
; then :
23604 if test -x otool
$build_exeext; then
23605 gcc_cv_otool
=.
/otool
$build_exeext
23606 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23607 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23609 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23610 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23612 $as_echo_n "checking for $ac_word... " >&6; }
23613 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23614 $as_echo_n "(cached) " >&6
23616 case $gcc_cv_otool in
23618 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23622 for as_dir
in $PATH
23625 test -z "$as_dir" && as_dir
=.
23626 for ac_exec_ext
in '' $ac_executable_extensions; do
23627 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23628 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23639 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23640 if test -n "$gcc_cv_otool"; then
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23642 $as_echo "$gcc_cv_otool" >&6; }
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23645 $as_echo "no" >&6; }
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23653 $as_echo_n "checking what otool to use... " >&6; }
23654 if test x
$gcc_cv_otool = x
; then
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23656 $as_echo "not found" >&6; }
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23659 $as_echo "$gcc_cv_otool" >&6; }
23662 # Figure out the dsymutil we will use.
23663 if ${gcc_cv_dsymutil+:} false
; then :
23667 if test -x "$DEFAULT_DSYMUTIL"; then
23668 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23669 elif test -x dsymutil
$build_exeext; then
23670 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23671 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23672 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23673 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23674 gcc_cv_dsymutil
=$DSYMUTIL
23676 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23677 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23679 $as_echo_n "checking for $ac_word... " >&6; }
23680 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23681 $as_echo_n "(cached) " >&6
23683 case $gcc_cv_dsymutil in
23685 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23689 for as_dir
in $PATH
23692 test -z "$as_dir" && as_dir
=.
23693 for ac_exec_ext
in '' $ac_executable_extensions; do
23694 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23695 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23706 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23707 if test -n "$gcc_cv_dsymutil"; then
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23709 $as_echo "$gcc_cv_dsymutil" >&6; }
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23712 $as_echo "no" >&6; }
23719 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23721 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23722 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23723 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23727 # Figure out what assembler alignment features are present.
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23729 $as_echo_n "checking assembler flags... " >&6; }
23730 if ${gcc_cv_as_flags+:} false
; then :
23731 $as_echo_n "(cached) " >&6
23734 i
[34567]86-*-linux*)
23735 gcc_cv_as_flags
=--32
23737 x86_64-
*-linux-gnux32)
23738 gcc_cv_as_flags
=--x32
23741 gcc_cv_as_flags
=--64
23743 powerpc
*-*-darwin*)
23744 gcc_cv_as_flags
="-arch ppc"
23747 gcc_cv_as_flags
=" "
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23752 $as_echo "$gcc_cv_as_flags" >&6; }
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23755 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23756 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23757 $as_echo_n "(cached) " >&6
23759 gcc_cv_as_balign_and_p2align
=no
23760 if test x
$gcc_cv_as != x
; then
23761 $as_echo '.balign 4
23762 .p2align 2' > conftest.s
23763 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23765 (eval $ac_try) 2>&5
23767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23768 test $ac_status = 0; }; }
23770 gcc_cv_as_balign_and_p2align
=yes
23772 echo "configure: failed program was" >&5
23775 rm -f conftest.o conftest.s
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23779 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23780 if test $gcc_cv_as_balign_and_p2align = yes; then
23782 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23788 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23789 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23790 $as_echo_n "(cached) " >&6
23792 gcc_cv_as_max_skip_p2align
=no
23793 if test x
$gcc_cv_as != x
; then
23794 $as_echo '.p2align 4,,7' > conftest.s
23795 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23797 (eval $ac_try) 2>&5
23799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23800 test $ac_status = 0; }; }
23802 gcc_cv_as_max_skip_p2align
=yes
23804 echo "configure: failed program was" >&5
23807 rm -f conftest.o conftest.s
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23811 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23812 if test $gcc_cv_as_max_skip_p2align = yes; then
23814 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23820 $as_echo_n "checking assembler for .literal16... " >&6; }
23821 if ${gcc_cv_as_literal16+:} false
; then :
23822 $as_echo_n "(cached) " >&6
23824 gcc_cv_as_literal16
=no
23825 if test x
$gcc_cv_as != x
; then
23826 $as_echo '.literal16' > conftest.s
23827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23829 (eval $ac_try) 2>&5
23831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23832 test $ac_status = 0; }; }
23834 gcc_cv_as_literal16
=yes
23836 echo "configure: failed program was" >&5
23839 rm -f conftest.o conftest.s
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23843 $as_echo "$gcc_cv_as_literal16" >&6; }
23844 if test $gcc_cv_as_literal16 = yes; then
23846 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23852 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23853 if ${gcc_cv_as_subsection_m1+:} false
; then :
23854 $as_echo_n "(cached) " >&6
23856 gcc_cv_as_subsection_m1
=no
23857 if test x
$gcc_cv_as != x
; then
23858 $as_echo 'conftest_label1: .word 0
23860 conftest_label2: .word 0
23861 .previous' > conftest.s
23862 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23864 (eval $ac_try) 2>&5
23866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23867 test $ac_status = 0; }; }
23869 if test x
$gcc_cv_nm != x
; then
23870 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23871 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23872 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23874 else gcc_cv_as_subsection_m1
=yes
23876 rm -f conftest.nm1 conftest.nm2
23879 echo "configure: failed program was" >&5
23882 rm -f conftest.o conftest.s
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23886 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23887 if test $gcc_cv_as_subsection_m1 = yes; then
23889 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23895 $as_echo_n "checking assembler for .weak... " >&6; }
23896 if ${gcc_cv_as_weak+:} false
; then :
23897 $as_echo_n "(cached) " >&6
23900 if test x
$gcc_cv_as != x
; then
23901 $as_echo ' .weak foobar' > conftest.s
23902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23904 (eval $ac_try) 2>&5
23906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23907 test $ac_status = 0; }; }
23911 echo "configure: failed program was" >&5
23914 rm -f conftest.o conftest.s
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23918 $as_echo "$gcc_cv_as_weak" >&6; }
23919 if test $gcc_cv_as_weak = yes; then
23921 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23927 $as_echo_n "checking assembler for .weakref... " >&6; }
23928 if ${gcc_cv_as_weakref+:} false
; then :
23929 $as_echo_n "(cached) " >&6
23931 gcc_cv_as_weakref
=no
23932 if test x
$gcc_cv_as != x
; then
23933 $as_echo ' .weakref foobar, barfnot' > conftest.s
23934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23936 (eval $ac_try) 2>&5
23938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23939 test $ac_status = 0; }; }
23941 gcc_cv_as_weakref
=yes
23943 echo "configure: failed program was" >&5
23946 rm -f conftest.o conftest.s
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23950 $as_echo "$gcc_cv_as_weakref" >&6; }
23951 if test $gcc_cv_as_weakref = yes; then
23953 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23959 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23960 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23961 $as_echo_n "(cached) " >&6
23963 gcc_cv_as_nsubspa_comdat
=no
23964 if test x
$gcc_cv_as != x
; then
23965 $as_echo ' .SPACE $TEXT$
23966 .NSUBSPA $CODE$,COMDAT' > conftest.s
23967 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23969 (eval $ac_try) 2>&5
23971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23972 test $ac_status = 0; }; }
23974 gcc_cv_as_nsubspa_comdat
=yes
23976 echo "configure: failed program was" >&5
23979 rm -f conftest.o conftest.s
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23983 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23984 if test $gcc_cv_as_nsubspa_comdat = yes; then
23986 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23991 # .hidden needs to be supported in both the assembler and the linker,
23992 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23993 # This is irritatingly difficult to feature test for; we have to check the
23994 # date string after the version number. If we've got an in-tree
23995 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23997 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23998 case "${target}" in
24000 conftest_s
=' .globl foobar,hidden'
24003 conftest_s
=' .hidden foobar
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24008 $as_echo_n "checking assembler for .hidden... " >&6; }
24009 if ${gcc_cv_as_hidden+:} false
; then :
24010 $as_echo_n "(cached) " >&6
24012 gcc_cv_as_hidden
=no
24013 if test x
$gcc_cv_as != x
; then
24014 $as_echo "$conftest_s" > conftest.s
24015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24017 (eval $ac_try) 2>&5
24019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24020 test $ac_status = 0; }; }
24022 gcc_cv_as_hidden
=yes
24024 echo "configure: failed program was" >&5
24027 rm -f conftest.o conftest.s
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24031 $as_echo "$gcc_cv_as_hidden" >&6; }
24034 case "${target}" in
24036 # Darwin as has some visibility support, though with a different syntax.
24037 gcc_cv_as_hidden
=yes
24041 # gnu_indirect_function type is an extension proposed at
24042 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24043 # selection of function implementation
24044 # Check whether --enable-gnu-indirect-function was given.
24045 if test "${enable_gnu_indirect_function+set}" = set; then :
24046 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24048 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24049 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24052 enable_gnu_indirect_function
="$default_gnu_indirect_function"
24056 case "${target}" in
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24059 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24060 cat > conftest.s
<<EOF
24062 .type foo_resolver, @function
24065 .size foo_resolver, .-foo_resolver
24068 .type foo, %gnu_indirect_function
24069 .set foo, foo_resolver
24072 .type bar, @function
24078 if test x
$gcc_cv_as != x \
24079 && test x
$gcc_cv_ld != x \
24080 && test x
$gcc_cv_readelf != x \
24081 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24082 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24083 && $gcc_cv_readelf --relocs --wide conftest \
24084 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
24085 enable_gnu_indirect_function
=yes
24087 rm -f conftest conftest.o conftest.s
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24089 $as_echo "$enable_gnu_indirect_function" >&6; }
24093 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24095 cat >>confdefs.h
<<_ACEOF
24096 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24101 if test $in_tree_ld != yes ; then
24102 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24103 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24104 if test x
"$ld_is_gold" = xyes
; then
24105 # GNU gold --version looks like this:
24107 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24109 # We extract the binutils version which is more familiar and specific
24110 # than the gold version.
24111 ld_vers
=`echo $ld_ver | sed -n \
24112 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24114 # GNU ld --version looks like this:
24116 # GNU ld (GNU Binutils) 2.21.51.20110225
24117 ld_vers
=`echo $ld_ver | sed -n \
24118 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24120 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'`
24121 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24122 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24123 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24125 case "${target}" in
24127 # Solaris 2 ld -V output looks like this for a regular version:
24129 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24131 # but test versions add stuff at the end:
24133 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24135 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24136 # numbers can be used in ld.so.1 feature checks even if a different
24137 # linker is configured.
24138 ld_ver
=`$gcc_cv_ld -V 2>&1`
24139 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
24140 ld_vers
=`echo $ld_ver | sed -n \
24141 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24142 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24143 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24151 $as_echo_n "checking linker for .hidden support... " >&6; }
24152 if ${gcc_cv_ld_hidden+:} false
; then :
24153 $as_echo_n "(cached) " >&6
24155 if test $in_tree_ld = yes ; then
24156 gcc_cv_ld_hidden
=no
24157 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 \
24158 && test $in_tree_ld_is_elf = yes; then
24159 gcc_cv_ld_hidden
=yes
24162 gcc_cv_ld_hidden
=yes
24163 if test x
"$ld_is_gold" = xyes
; then
24165 elif test x
"$ld_is_mold" = xyes
; then
24167 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24168 if test 0"$ld_date" -lt 20020404; then
24169 if test -n "$ld_date"; then
24170 # If there was date string, but was earlier than 2002-04-04, fail
24171 gcc_cv_ld_hidden
=no
24172 elif test -z "$ld_vers"; then
24173 # If there was no date string nor ld version number, something is wrong
24174 gcc_cv_ld_hidden
=no
24176 test -z "$ld_vers_patch" && ld_vers_patch
=0
24177 if test "$ld_vers_major" -lt 2; then
24178 gcc_cv_ld_hidden
=no
24179 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24180 gcc_cv_ld_hidden
="no"
24181 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24182 gcc_cv_ld_hidden
=no
24187 case "${target}" in
24189 gcc_cv_ld_hidden
=yes
24192 # Darwin ld has some visibility support.
24193 gcc_cv_ld_hidden
=yes
24195 hppa64
*-*-hpux* | ia64
*-*-hpux*)
24196 gcc_cv_ld_hidden
=yes
24199 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24200 # .symbolic was only added in Solaris 9 12/02.
24201 gcc_cv_ld_hidden
=yes
24204 gcc_cv_ld_hidden
=no
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24211 $as_echo "$gcc_cv_ld_hidden" >&6; }
24212 libgcc_visibility
=no
24215 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24216 libgcc_visibility
=yes
24218 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24223 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24224 gcc_cv_ld_ro_rw_mix
=unknown
24225 if test $in_tree_ld = yes ; then
24226 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 \
24227 && test $in_tree_ld_is_elf = yes; then
24228 gcc_cv_ld_ro_rw_mix
=read-write
24230 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24231 echo '.section myfoosect, "a"' > conftest1.s
24232 echo '.section myfoosect, "aw"' > conftest2.s
24233 echo '.byte 1' >> conftest2.s
24234 echo '.section myfoosect, "a"' > conftest3.s
24235 echo '.byte 0' >> conftest3.s
24236 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24237 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24238 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
24239 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24240 conftest2.o conftest3.o
> /dev
/null
2>&1; then
24241 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
24242 | sed -e '/myfoosect/!d' -e N`
24243 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
24244 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
24245 gcc_cv_ld_ro_rw_mix
=read-only
24247 gcc_cv_ld_ro_rw_mix
=read-write
24251 rm -f conftest.
* conftest
[123].
*
24253 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
24255 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24259 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24261 # Check whether --enable-initfini-array was given.
24262 if test "${enable_initfini_array+set}" = set; then :
24263 enableval
=$enable_initfini_array;
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24267 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24268 if ${gcc_cv_initfini_array+:} false
; then :
24269 $as_echo_n "(cached) " >&6
24271 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24272 case "${target}" in
24274 if test "$cross_compiling" = yes; then :
24275 gcc_cv_initfini_array
=no
24277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24278 /* end confdefs.h. */
24281 #error Not an ELF OS
24283 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24284 if it can be used. */
24286 int main (void) { return x; }
24287 int foo (void) { x = 0; }
24288 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24291 if ac_fn_cxx_try_run
"$LINENO"; then :
24292 gcc_cv_initfini_array
=yes
24294 gcc_cv_initfini_array
=no
24296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24301 gcc_cv_initfini_array
=no
24302 if test $in_tree_ld = yes ; then
24303 if test "$gcc_cv_gld_major_version" -eq 2 \
24304 -a "$gcc_cv_gld_minor_version" -ge 22 \
24305 -o "$gcc_cv_gld_major_version" -gt 2 \
24306 && test $in_tree_ld_is_elf = yes; then
24307 gcc_cv_initfini_array
=yes
24309 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24310 case $target:$gas in
24313 sh_type
='%progbits'
24315 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
24317 sh_type
='@progbits'
24319 sparc
*-*-solaris2*:no
)
24321 sh_type
='#progbits'
24325 case "$target:$gnu_ld" in
24327 cat > conftest.s
<<EOF
24328 .section .dtors,$sh_flags,$sh_type
24330 .byte 'A', 'A', 'A', 'A'
24331 .section .ctors,$sh_flags,$sh_type
24333 .byte 'B', 'B', 'B', 'B'
24334 .section .fini_array.65530,$sh_flags,$sh_type
24336 .byte 'C', 'C', 'C', 'C'
24337 .section .init_array.65530,$sh_flags,$sh_type
24339 .byte 'D', 'D', 'D', 'D'
24340 .section .dtors.64528,$sh_flags,$sh_type
24342 .byte 'E', 'E', 'E', 'E'
24343 .section .ctors.64528,$sh_flags,$sh_type
24345 .byte 'F', 'F', 'F', 'F'
24346 .section .fini_array.01005,$sh_flags,$sh_type
24348 .byte 'G', 'G', 'G', 'G'
24349 .section .init_array.01005,$sh_flags,$sh_type
24351 .byte 'H', 'H', 'H', 'H'
24356 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24357 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24358 && $gcc_cv_objdump -s -j .init_array conftest \
24359 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
24360 && $gcc_cv_objdump -s -j .fini_array conftest \
24361 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
24362 gcc_cv_initfini_array
=yes
24366 # When Solaris ld added constructor priority support, it was
24367 # decided to only handle .init_array.N/.fini_array.N since
24368 # there was no need for backwards compatibility with
24369 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24370 # sections with correct execution order resp. to
24371 # .init_array/.fini_array, while gld merges them into
24372 # .init_array/.fini_array.
24373 cat > conftest.s
<<EOF
24374 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24376 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24377 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24379 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24380 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24382 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24383 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24385 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24390 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
24391 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
24392 && $gcc_cv_objdump -s -j .init_array conftest \
24393 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
24394 && $gcc_cv_objdump -s -j .fini_array conftest \
24395 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
24396 gcc_cv_initfini_array
=yes
24400 rm -f conftest conftest.
*
24402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24403 /* end confdefs.h. */
24406 # error Not an ELF OS
24408 #include <stdlib.h>
24409 #if defined __GLIBC_PREREQ
24410 # if __GLIBC_PREREQ (2, 4)
24412 # error GLIBC 2.4 required
24415 # if defined __sun__ && defined __svr4__
24416 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24418 # error The C library not known to support .init_array/.fini_array
24423 if ac_fn_cxx_try_cpp
"$LINENO"; then :
24426 gcc_cv_initfini_array
=no
24428 rm -f conftest.err conftest.i conftest.
$ac_ext;;
24431 case "${target}" in
24432 aarch64
*-linux-gnu*)
24433 # AArch64 postdates glibc support for .init_array/.fini_array,
24434 # so we don't need the preprocessor test above.
24435 gcc_cv_initfini_array
=yes
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24440 $as_echo_n "checking cross compile... guessing... " >&6; }
24441 gcc_cv_initfini_array
=no
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24447 $as_echo "$gcc_cv_initfini_array" >&6; }
24448 enable_initfini_array
=$gcc_cv_initfini_array
24453 cat >>confdefs.h
<<_ACEOF
24454 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24459 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24460 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24461 # these directives, even when they appear to accept them.
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24463 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24464 if ${gcc_cv_as_leb128+:} false
; then :
24465 $as_echo_n "(cached) " >&6
24467 gcc_cv_as_leb128
=no
24468 if test x
$gcc_cv_as != x
; then
24475 .uleb128 0x8000000000000000
24477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24479 (eval $ac_try) 2>&5
24481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24482 test $ac_status = 0; }; }
24485 if test "x$gcc_cv_objdump" != x
; then
24486 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
24487 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
24488 gcc_cv_as_leb128
=yes
24490 elif test "x$gcc_cv_otool" != x
; then
24491 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
24492 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
24493 gcc_cv_as_leb128
=yes
24496 # play safe, assume the assembler is broken.
24501 echo "configure: failed program was" >&5
24504 rm -f conftest.o conftest.s
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24508 $as_echo "$gcc_cv_as_leb128" >&6; }
24509 if test $gcc_cv_as_leb128 = yes; then
24511 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24514 if test $gcc_cv_as_leb128 != yes; then
24516 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24520 # Determine if an .eh_frame section is read-only.
24521 gcc_fn_eh_frame_ro
() {
24522 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
24523 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
24524 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
24527 # Check if we have assembler support for unwind directives.
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24529 $as_echo_n "checking assembler for cfi directives... " >&6; }
24530 if ${gcc_cv_as_cfi_directive+:} false
; then :
24531 $as_echo_n "(cached) " >&6
24533 gcc_cv_as_cfi_directive
=no
24534 if test x
$gcc_cv_as != x
; then
24540 .cfi_escape 1, 2, 3, 4, 5
24541 .cfi_endproc' > conftest.s
24542 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24551 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24552 # read-only and read-write sections, we need to make sure that the
24553 # assembler used emits read-write .eh_frame sections.
24554 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
24555 gcc_cv_as_cfi_directive
=yes
24556 elif test "x$gcc_cv_objdump" = x
; then
24557 # No objdump, err on the side of caution.
24558 gcc_cv_as_cfi_directive
=no
24560 if test x
$gas = xyes
; then
24568 sparc
*-*-solaris2.
*)
24569 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24570 if gcc_fn_eh_frame_ro
$as_32_opt \
24571 || gcc_fn_eh_frame_ro
$as_64_opt; then
24572 gcc_cv_as_cfi_directive
=no
24574 gcc_cv_as_cfi_directive
=yes
24577 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24578 # On Solaris/x86, make sure that GCC and assembler agree on using
24579 # read-only .eh_frame sections for 64-bit.
24580 if gcc_fn_eh_frame_ro
$as_32_opt; then
24581 gcc_cv_as_cfi_directive
=no
24582 elif gcc_fn_eh_frame_ro
$as_64_opt; then
24583 gcc_cv_as_cfi_directive
=yes
24585 gcc_cv_as_cfi_directive
=no
24592 gcc_cv_as_cfi_directive
=yes
24596 echo "configure: failed program was" >&5
24599 rm -f conftest.o conftest.s
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24603 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24606 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24608 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24609 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24610 $as_echo_n "(cached) " >&6
24612 gcc_cv_as_cfi_advance_working
=no
24613 if test x
$gcc_cv_as != x
; then
24616 .cfi_adjust_cfa_offset 64
24618 .cfi_adjust_cfa_offset 128
24619 .cfi_endproc' > conftest.s
24620 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24622 (eval $ac_try) 2>&5
24624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24625 test $ac_status = 0; }; }
24628 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24629 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24630 gcc_cv_as_cfi_advance_working
=yes
24634 echo "configure: failed program was" >&5
24637 rm -f conftest.o conftest.s
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24641 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24645 # no objdump, err on the side of caution
24646 gcc_cv_as_cfi_advance_working
=no
24650 cat >>confdefs.h
<<_ACEOF
24651 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24652 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24658 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24659 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24660 $as_echo_n "(cached) " >&6
24662 gcc_cv_as_cfi_personality_directive
=no
24663 if test x
$gcc_cv_as != x
; then
24666 .cfi_personality 0, symbol
24667 .cfi_endproc' > conftest.s
24668 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24670 (eval $ac_try) 2>&5
24672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24673 test $ac_status = 0; }; }
24675 gcc_cv_as_cfi_personality_directive
=yes
24677 echo "configure: failed program was" >&5
24680 rm -f conftest.o conftest.s
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24684 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24688 cat >>confdefs.h
<<_ACEOF
24689 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24694 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24695 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24696 $as_echo_n "(cached) " >&6
24698 gcc_cv_as_cfi_sections_directive
=no
24699 if test x
$gcc_cv_as != x
; then
24701 .cfi_sections .debug_frame, .eh_frame
24703 .cfi_endproc' > conftest.s
24704 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24706 (eval $ac_try) 2>&5
24708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24709 test $ac_status = 0; }; }
24712 win32 | pe | cygwin
* | mingw32
*)
24713 # Need to check that we generated the correct relocation for the
24714 # .debug_frame section. This was fixed for binutils 2.21.
24715 gcc_cv_as_cfi_sections_directive
=no
24716 if test "x$gcc_cv_objdump" != x
; then
24717 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24718 grep secrel
> /dev
/null
; then
24719 gcc_cv_as_cfi_sections_directive
=yes
24724 gcc_cv_as_cfi_sections_directive
=yes
24728 echo "configure: failed program was" >&5
24731 rm -f conftest.o conftest.s
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24735 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24740 cat >>confdefs.h
<<_ACEOF
24741 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24745 # GAS versions up to and including 2.11.0 may mis-optimize
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24748 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24749 if ${gcc_cv_as_eh_frame+:} false
; then :
24750 $as_echo_n "(cached) " >&6
24752 gcc_cv_as_eh_frame
=no
24753 if test x
$gcc_cv_as != x
; then
24760 .section .eh_frame,"aw",@progbits
24762 .4byte .LECIE1-.LSCIE1
24776 .4byte .LEFDE1-.LASFDE1
24778 .4byte .LASFDE1-__FRAME_BEGIN__
24785 .LEFDE1:' > conftest.s
24786 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24788 (eval $ac_try) 2>&5
24790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24791 test $ac_status = 0; }; }
24793 cat > conftest.lit
<<EOF
24794 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24795 0010 01000000 12000000 18000000 00000000 ................
24796 0020 08000000 04080000 0044 .........D
24798 cat > conftest.big
<<EOF
24799 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24800 0010 00000001 00000012 00000018 00000000 ................
24801 0020 00000008 04000000 0844 .........D
24803 # If the assembler didn't choke, and we can objdump,
24804 # and we got the correct data, then succeed.
24805 # The text in the here-document typically retains its unix-style line
24806 # endings, while the output of objdump will use host line endings.
24807 # Therefore, use diff -b for the comparisons.
24808 if test x
$gcc_cv_objdump != x \
24809 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24810 |
tail -3 > conftest.got \
24811 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24812 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24814 gcc_cv_as_eh_frame
=yes
24815 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }; then
24821 gcc_cv_as_eh_frame
=buggy
24823 # Uh oh, what do we do now?
24824 gcc_cv_as_eh_frame
=no
24827 echo "configure: failed program was" >&5
24830 rm -f conftest.o conftest.s
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24834 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24838 if test $gcc_cv_as_eh_frame = buggy
; then
24840 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24844 # Test if the assembler supports the section flag 'e' or #exclude for
24845 # specifying an excluded section.
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24847 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24848 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24849 $as_echo_n "(cached) " >&6
24851 gcc_cv_as_section_exclude_e
=no
24852 if test x
$gcc_cv_as != x
; then
24853 $as_echo '.section foo1,"e"
24854 .byte 0,0,0,0' > conftest.s
24855 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24857 (eval $ac_try) 2>&5
24859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24860 test $ac_status = 0; }; }
24862 gcc_cv_as_section_exclude_e
=yes
24864 echo "configure: failed program was" >&5
24867 rm -f conftest.o conftest.s
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24871 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24874 if test $gcc_cv_as_section_exclude_e = no
; then
24875 case "${target}" in
24876 # Solaris as uses #exclude instead.
24878 case "${target}" in
24879 sparc
*-*-solaris2*)
24880 conftest_s
='.section "foo1", #exclude'
24882 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24883 conftest_s
='.section foo1, #exclude'
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24889 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24890 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24891 $as_echo_n "(cached) " >&6
24893 gcc_cv_as_section_exclude_hash
=no
24894 if test x
$gcc_cv_as != x
; then
24895 $as_echo "$conftest_s
24896 .byte 0,0,0,0" > conftest.s
24897 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24899 (eval $ac_try) 2>&5
24901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24902 test $ac_status = 0; }; }
24904 gcc_cv_as_section_exclude_hash
=yes
24906 echo "configure: failed program was" >&5
24909 rm -f conftest.o conftest.s
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24913 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24918 cat >>confdefs.h
<<_ACEOF
24919 #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`
24923 # Test if the assembler supports the section flag 'R' for specifying
24924 # section with SHF_GNU_RETAIN.
24925 case "${target}" in
24926 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24927 # assembler supports the section flag 'R', it doesn't mean that
24928 # Solairs ld supports it.
24930 gcc_cv_as_shf_gnu_retain
=no
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24934 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24935 if ${gcc_cv_as_shf_gnu_retain+:} false
; then :
24936 $as_echo_n "(cached) " >&6
24938 gcc_cv_as_shf_gnu_retain
=no
24939 if test x
$gcc_cv_as != x
; then
24940 $as_echo '.section .foo,"awR",%progbits
24941 .byte 0' > conftest.s
24942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; }
24949 gcc_cv_as_shf_gnu_retain
=yes
24951 echo "configure: failed program was" >&5
24954 rm -f conftest.o conftest.s
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24958 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24964 cat >>confdefs.h
<<_ACEOF
24965 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24969 # Test if the assembler supports the section flag 'o' for specifying
24970 # section with link-order.
24971 case "${target}" in
24972 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24973 # assembler supports the section flag 'o', it doesn't mean that
24974 # Solairs ld supports it.
24976 gcc_cv_as_section_link_order
=no
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24980 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24981 if ${gcc_cv_as_section_link_order+:} false
; then :
24982 $as_echo_n "(cached) " >&6
24984 gcc_cv_as_section_link_order
=no
24985 if test x
$gcc_cv_as != x
; then
24986 $as_echo '.section .foo,"a"
24988 .section __patchable_function_entries,"awo",%progbits,.foo
24989 .byte 0' > conftest.s
24990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24992 (eval $ac_try) 2>&5
24994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24995 test $ac_status = 0; }; }
24997 gcc_cv_as_section_link_order
=yes
24999 echo "configure: failed program was" >&5
25002 rm -f conftest.o conftest.s
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25006 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25012 cat >>confdefs.h
<<_ACEOF
25013 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25018 $as_echo_n "checking assembler for section merging support... " >&6; }
25019 if ${gcc_cv_as_shf_merge+:} false
; then :
25020 $as_echo_n "(cached) " >&6
25022 gcc_cv_as_shf_merge
=no
25023 if test x
$gcc_cv_as != x
; then
25024 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25027 (eval $ac_try) 2>&5
25029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25030 test $ac_status = 0; }; }
25032 gcc_cv_as_shf_merge
=yes
25034 echo "configure: failed program was" >&5
25037 rm -f conftest.o conftest.s
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25041 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25044 if test $gcc_cv_as_shf_merge = no
; then
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25046 $as_echo_n "checking assembler for section merging support... " >&6; }
25047 if ${gcc_cv_as_shf_merge+:} false
; then :
25048 $as_echo_n "(cached) " >&6
25050 gcc_cv_as_shf_merge
=no
25051 if test x
$gcc_cv_as != x
; then
25052 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25053 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25055 (eval $ac_try) 2>&5
25057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25058 test $ac_status = 0; }; }
25060 gcc_cv_as_shf_merge
=yes
25062 echo "configure: failed program was" >&5
25065 rm -f conftest.o conftest.s
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25069 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25074 cat >>confdefs.h
<<_ACEOF
25075 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25079 gcc_cv_ld_aligned_shf_merge
=yes
25081 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25083 sparc
*-*-solaris2.11
*)
25084 if test x
"$gnu_ld" = xno \
25085 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25086 gcc_cv_ld_aligned_shf_merge
=no
25091 cat >>confdefs.h
<<_ACEOF
25092 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25097 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25098 if ${gcc_cv_as_comdat_group+:} false
; then :
25099 $as_echo_n "(cached) " >&6
25101 gcc_cv_as_comdat_group
=no
25102 if test x
$gcc_cv_as != x
; then
25103 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25104 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25106 (eval $ac_try) 2>&5
25108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25109 test $ac_status = 0; }; }
25111 gcc_cv_as_comdat_group
=yes
25113 echo "configure: failed program was" >&5
25116 rm -f conftest.o conftest.s
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25120 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25123 if test $gcc_cv_as_comdat_group = yes; then
25124 gcc_cv_as_comdat_group_percent
=no
25125 gcc_cv_as_comdat_group_group
=no
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25128 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25129 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
25130 $as_echo_n "(cached) " >&6
25132 gcc_cv_as_comdat_group_percent
=no
25133 if test x
$gcc_cv_as != x
; then
25134 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25135 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25137 (eval $ac_try) 2>&5
25139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25140 test $ac_status = 0; }; }
25142 gcc_cv_as_comdat_group_percent
=yes
25144 echo "configure: failed program was" >&5
25147 rm -f conftest.o conftest.s
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25151 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25154 if test $gcc_cv_as_comdat_group_percent = yes; then
25155 gcc_cv_as_comdat_group_group
=no
25157 case "${target}" in
25158 # Sun as uses a completely different syntax.
25160 case "${target}" in
25161 sparc
*-*-solaris2*)
25163 .group foo,".text%foo",#comdat
25164 .section ".text%foo", #alloc,#execinstr,#progbits
25169 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25171 .group foo,.text%foo,#comdat
25172 .section .text%foo, "ax", @progbits
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25179 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25180 if ${gcc_cv_as_comdat_group_group+:} false
; then :
25181 $as_echo_n "(cached) " >&6
25183 gcc_cv_as_comdat_group_group
=no
25184 if test x
$gcc_cv_as != x
; then
25185 $as_echo "$conftest_s" > conftest.s
25186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188 (eval $ac_try) 2>&5
25190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191 test $ac_status = 0; }; }
25193 gcc_cv_as_comdat_group_group
=yes
25195 echo "configure: failed program was" >&5
25198 rm -f conftest.o conftest.s
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25202 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25207 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25208 gcc_cv_as_comdat_group_group
=no
25212 if test x
"$ld_is_gold" = xyes
; then
25214 elif test x
"$ld_is_mold" = xyes
; then
25216 elif test $in_tree_ld = yes ; then
25218 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 \
25219 && test $in_tree_ld_is_elf = yes; then
25222 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25224 if test 0"$ld_date" -lt 20050308; then
25225 if test -n "$ld_date"; then
25226 # If there was date string, but was earlier than 2005-03-08, fail
25228 elif test "$ld_vers_major" -lt 2; then
25230 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25235 case "${target}" in
25236 *-*-solaris2.1
[1-9]*)
25238 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25239 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25242 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25243 # least ld version 1.2267.
25244 if test "$ld_vers_major" -gt 1; then
25246 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
25248 elif test "$ld_vers_minor" -ge 2267; then
25253 # Assume linkers other than GNU ld don't support COMDAT group.
25258 # Allow overriding the automatic COMDAT group tests above.
25259 # Check whether --enable-comdat was given.
25260 if test "${enable_comdat+set}" = set; then :
25261 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
25264 if test $comdat_group = no
; then
25265 gcc_cv_as_comdat_group
=no
25266 gcc_cv_as_comdat_group_percent
=no
25267 gcc_cv_as_comdat_group_group
=no
25270 cat >>confdefs.h
<<_ACEOF
25271 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25272 || test $gcc_cv_as_comdat_group_percent = yes \
25273 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25277 # Restrict this test to Solaris/x86: other targets define this statically.
25278 case "${target}" in
25279 i?
86-*-solaris2* | x86_64-
*-solaris2*)
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25281 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25282 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25283 hidden_linkonce
=yes
25285 case "${target}" in
25286 # Full support for hidden thunks in linkonce sections only appeared in
25287 # Solaris 11/OpenSolaris.
25288 *-*-solaris2.1
[1-9]*)
25289 hidden_linkonce
=yes
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25297 $as_echo "$hidden_linkonce" >&6; }
25299 cat >>confdefs.h
<<_ACEOF
25300 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25307 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25308 if ${gcc_cv_as_is_stmt+:} false
; then :
25309 $as_echo_n "(cached) " >&6
25311 gcc_cv_as_is_stmt
=no
25312 if test x
$gcc_cv_as != x
; then
25315 .loc 1 1 0 is_stmt 1' > conftest.s
25316 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25318 (eval $ac_try) 2>&5
25320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25321 test $ac_status = 0; }; }
25323 gcc_cv_as_is_stmt
=yes
25325 echo "configure: failed program was" >&5
25328 rm -f conftest.o conftest.s
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25332 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25333 if test $gcc_cv_as_is_stmt = yes; then
25335 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25341 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25342 if ${gcc_cv_as_discriminator+:} false
; then :
25343 $as_echo_n "(cached) " >&6
25345 gcc_cv_as_discriminator
=no
25346 if test x
$gcc_cv_as != x
; then
25349 .loc 1 1 0 discriminator 1' > conftest.s
25350 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25357 gcc_cv_as_discriminator
=yes
25359 echo "configure: failed program was" >&5
25362 rm -f conftest.o conftest.s
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25366 $as_echo "$gcc_cv_as_discriminator" >&6; }
25367 if test $gcc_cv_as_discriminator = yes; then
25369 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25374 # Catch the newlib flag of the same name so we can gate GCC features on it.
25375 # Check whether --enable-newlib-nano-formatted-io was given.
25376 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25377 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
25381 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25387 # Thread-local storage - the check is heavily parameterized.
25393 .section ".tdata","awT",@progbits
25396 ldq $27,__tls_get_addr($29) !literal!1
25397 lda $16,foo($29) !tlsgd!1
25398 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25399 ldq $27,__tls_get_addr($29) !literal!2
25400 lda $16,foo($29) !tlsldm!2
25401 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25402 ldq $1,foo($29) !gotdtprel
25403 ldah $2,foo($29) !dtprelhi
25404 lda $3,foo($2) !dtprello
25405 lda $4,foo($29) !dtprel
25406 ldq $1,foo($29) !gottprel
25407 ldah $2,foo($29) !tprelhi
25408 lda $3,foo($2) !tprello
25409 lda $4,foo($29) !tprel'
25410 tls_as_opt
=--fatal-warnings
25414 add_s r0,r0, @foo@tpoff'
25416 cris-
*-*|crisv32-
*-*)
25418 .section ".tdata","awT",@progbits
25423 tls_as_opt
=--fatal-warnings
25427 .section ".tdata","awT",@progbits
25430 call #gettlsoff(x)'
25437 .section ".tdata","awT",@progbits
25441 addil LT%foo-$tls_gdidx$,gp
25442 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25445 addil LT%foo-$tls_ldidx$,gp
25447 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25448 addil LR%foo-$tls_dtpoff$,%ret0
25449 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25451 addil LT%foo-$tls_ieoff$,gp
25452 ldw RT%foo-$tls_ieoff$(%r1),%t2
25455 addil LR%foo-$tls_leoff$,%t1
25456 ldo RR%foo-$tls_leoff$(%r1),%t2'
25457 tls_as_opt
=--fatal-warnings
25461 .section ".tdata","awT",%progbits
25464 .word foo(gottpoff)
25470 i
[34567]86-*-* | x86_64-
*-*)
25472 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
25479 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25481 .section .tdata,"awt",@progbits'
25484 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25488 .section ".tdata","awT",@progbits'
25490 tls_as_opt
="--fatal-warnings"
25494 if test x
$on_solaris = xyes
; then
25496 yes) tls_as_opt
="$tls_as_opt --32" ;;
25499 conftest_s
="$conftest_s
25503 leal foo@tlsgd(,%ebx,1), %eax
25504 leal foo@tlsldm(%ebx), %eax
25505 leal foo@dtpoff(%eax), %edx
25506 movl foo@gottpoff(%ebx), %eax
25507 subl foo@gottpoff(%ebx), %eax
25508 addl foo@gotntpoff(%ebx), %eax
25509 movl foo@indntpoff, %eax
25510 movl \$foo@tpoff, %eax
25511 subl \$foo@tpoff, %eax
25512 leal foo@ntpoff(%ecx), %eax"
25515 if test x
$on_solaris = xyes
; then
25517 yes) tls_as_opt
="$tls_as_opt --64" ;;
25518 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
25521 conftest_s
="$conftest_s
25525 leaq foo@tlsgd(%rip), %rdi
25526 leaq foo@tlsld(%rip), %rdi
25527 leaq foo@dtpoff(%rax), %rdx
25528 movq foo@gottpoff(%rip), %rax
25529 movq \$foo@tpoff, %rax"
25535 .section ".tdata","awT",@progbits
25538 addl r16 = @ltoff(@dtpmod(foo#)), gp
25539 addl r17 = @ltoff(@dtprel(foo#)), gp
25540 addl r18 = @ltoff(@tprel(foo#)), gp
25541 addl r19 = @dtprel(foo#), gp
25542 adds r21 = @dtprel(foo#), r13
25543 movl r23 = @dtprel(foo#)
25544 addl r20 = @tprel(foo#), gp
25545 adds r22 = @tprel(foo#), r13
25546 movl r24 = @tprel(foo#)'
25547 tls_as_opt
=--fatal-warnings
25551 .section .tdata,"awT",@progbits
25558 tls_as_opt
='--fatal-warnings'
25562 .section .tdata,"awT",@progbits
25566 addik r5,r20,x@TLSGD
25567 addik r5,r20,x@TLSLDM'
25568 tls_as_opt
='--fatal-warnings'
25572 .section .tdata,"awT",@progbits
25576 addiu $4, $28, %tlsgd(x)
25577 addiu $4, $28, %tlsldm(x)
25578 lui $4, %dtprel_hi(x)
25579 addiu $4, $4, %dtprel_lo(x)
25580 lw $4, %gottprel(x)($28)
25581 lui $4, %tprel_hi(x)
25582 addiu $4, $4, %tprel_lo(x)'
25583 tls_as_opt
='-32 --fatal-warnings'
25587 .section .tdata,"awT",@progbits
25592 move.l x@TLSGD(%a5),%a0
25593 move.l x@TLSLDM(%a5),%a0
25594 move.l x@TLSLDO(%a5),%a0
25595 move.l x@TLSIE(%a5),%a0
25596 move.l x@TLSLE(%a5),%a0'
25597 tls_as_opt
='--fatal-warnings'
25601 .section ".tdata","awT",@progbits'
25602 tls_as_opt
="--fatal-warnings"
25606 .section ".tdata","awT",%progbits
25610 add x0, x0, #:tlsgd_lo12:x
25613 tls_as_opt
='--fatal-warnings'
25617 .section ".tdata","awT",@progbits
25620 l.movhi r3, tpoffha(foo)
25622 l.lwz r4, tpofflo(foo)(r3)'
25623 tls_as_opt
=--fatal-warnings
25627 .extern __get_tpointer
25643 .section ".tdata","awT",@progbits
25651 addi 3,2,ld0@got@tlsgd
25657 addi 3,2,x1@got@tlsld
25663 addis 9,3,x2@dtprel@ha
25664 addi 9,9,x2@dtprel@l
25667 ld 9,x3@got@dtprel(2)
25671 tls_as_opt
="-a64 --fatal-warnings"
25675 .section ".tdata","awT",@progbits
25683 addi 3,31,ld0@got@tlsgd
25685 addi 3,31,x1@got@tlsld
25688 addis 9,3,x2@dtprel@ha
25689 addi 9,9,x2@dtprel@l
25690 lwz 9,x3@got@tprel(31)
25693 addis 9,2,x2@tprel@ha
25694 addi 9,9,x2@tprel@l'
25695 tls_as_opt
="-a32 --fatal-warnings"
25699 .section .tdata,"awT",@progbits
25703 call __tls_get_addr'
25704 tls_as_opt
='--fatal-warnings'
25708 .section ".tdata","awT",@progbits
25715 .long foo@GOTNTPOFF
25716 .long foo@INDNTPOFF
25717 l %r1,foo@GOTNTPOFF(%r12)
25718 l %r1,0(%r1):tls_load:foo
25719 bas %r14,0(%r1,%r13):tls_gdcall:foo
25720 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25721 tls_as_opt
="-m31 --fatal-warnings"
25725 .section ".tdata","awT",@progbits
25732 .quad foo@GOTNTPOFF
25733 lg %r1,foo@GOTNTPOFF(%r12)
25734 larl %r1,foo@INDNTPOFF
25735 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25736 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25737 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25739 sh-
*-* | sh
[123456789lbe
]*-*-*)
25741 .section ".tdata","awT",@progbits
25749 tls_as_opt
=--fatal-warnings
25753 sparc
*-sun-solaris2.
*)
25760 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25762 .section ".tdata",#alloc,#write,#tls'
25765 .section ".tdata","awT",@progbits'
25766 tls_as_opt
="-32 --fatal-warnings"
25768 conftest_s
="$conftest_s
25771 sethi %tgd_hi22(foo), %o0
25772 add %o0, %tgd_lo10(foo), %o1
25773 add %l7, %o1, %o0, %tgd_add(foo)
25774 call __tls_get_addr, %tgd_call(foo)
25775 sethi %tldm_hi22(foo), %l1
25776 add %l1, %tldm_lo10(foo), %l2
25777 add %l7, %l2, %o0, %tldm_add(foo)
25778 call __tls_get_addr, %tldm_call(foo)
25779 sethi %tldo_hix22(foo), %l3
25780 xor %l3, %tldo_lox10(foo), %l4
25781 add %o0, %l4, %l5, %tldo_add(foo)
25782 sethi %tie_hi22(foo), %o3
25783 add %o3, %tie_lo10(foo), %o3
25784 ld [%l7 + %o3], %o2, %tie_ld(foo)
25785 add %g7, %o2, %o4, %tie_add(foo)
25786 sethi %tle_hix22(foo), %l1
25787 xor %l1, %tle_lox10(foo), %o5
25788 ld [%g7 + %o5], %o1"
25792 .section ".tdata","awT",@progbits
25795 movi a8, foo@TLSFUNC
25796 movi a10, foo@TLSARG
25797 callx8.tls a8, foo@TLSCALL'
25801 if test "x$enable_tls" = xno
; then
25802 : # TLS explicitly disabled.
25803 elif test "x$enable_tls" = xyes
; then
25804 set_have_as_tls
=yes # TLS explicitly enabled.
25805 elif test -z "$conftest_s"; then
25806 : # If we don't have a check, assume no support.
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25809 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25810 if ${gcc_cv_as_tls+:} false
; then :
25811 $as_echo_n "(cached) " >&6
25814 if test x
$gcc_cv_as != x
; then
25815 $as_echo "$conftest_s" > conftest.s
25816 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25818 (eval $ac_try) 2>&5
25820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25821 test $ac_status = 0; }; }
25825 echo "configure: failed program was" >&5
25828 rm -f conftest.o conftest.s
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25832 $as_echo "$gcc_cv_as_tls" >&6; }
25833 if test $gcc_cv_as_tls = yes; then
25834 set_have_as_tls
=yes
25838 if test $set_have_as_tls = yes ; then
25840 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25844 # Target-specific assembler checks.
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25847 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25848 gcc_cv_ld_static_dynamic
=no
25849 gcc_cv_ld_static_option
='-Bstatic'
25850 gcc_cv_ld_dynamic_option
='-Bdynamic'
25851 if test $in_tree_ld = yes ; then
25852 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
25853 gcc_cv_ld_static_dynamic
=yes
25855 elif test x
$gcc_cv_ld != x
; then
25856 # Check if linker supports -Bstatic/-Bdynamic option
25857 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25858 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25859 gcc_cv_ld_static_dynamic
=yes
25862 # AIX ld uses -b flags
25863 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25864 gcc_cv_ld_static_dynamic
=yes
25865 gcc_cv_ld_static_option
="-bstatic"
25866 gcc_cv_ld_dynamic_option
="-bdynamic"
25868 # HP-UX ld uses -a flags to select between shared and archive.
25870 if test x
"$gnu_ld" = xno
; then
25871 gcc_cv_ld_static_dynamic
=yes
25872 gcc_cv_ld_static_option
="-aarchive_shared"
25873 gcc_cv_ld_dynamic_option
="-adefault"
25876 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25878 gcc_cv_ld_static_dynamic
=yes
25883 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25885 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25888 cat >>confdefs.h
<<_ACEOF
25889 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25893 cat >>confdefs.h
<<_ACEOF
25894 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25899 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25902 $as_echo_n "checking linker --version-script option... " >&6; }
25903 gcc_cv_ld_version_script
=no
25904 ld_version_script_option
=''
25905 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25906 gcc_cv_ld_version_script
=yes
25907 ld_version_script_option
='--version-script'
25908 elif test x
$gcc_cv_ld != x
; then
25910 # Solaris 2 ld always supports -M. It also supports a subset of
25911 # --version-script since Solaris 11.4, but requires
25912 # -z gnu-version-script-compat to activate.
25914 gcc_cv_ld_version_script
=yes
25915 ld_version_script_option
='-M'
25919 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25921 $as_echo "$gcc_cv_ld_version_script" >&6; }
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25925 $as_echo_n "checking linker soname option... " >&6; }
25926 gcc_cv_ld_soname
=no
25927 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25928 gcc_cv_ld_soname
=yes
25929 ld_soname_option
='-soname'
25930 elif test x
$gcc_cv_ld != x
; then
25933 gcc_cv_ld_soname
=yes
25934 ld_soname_option
='-install_name'
25936 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25937 # ld compatiblity since some Solaris 10 update.
25939 gcc_cv_ld_soname
=yes
25940 ld_soname_option
='-h'
25944 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25946 $as_echo "$gcc_cv_ld_soname" >&6; }
25949 if test x
"$demangler_in_ld" = xyes
; then
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25951 $as_echo_n "checking linker --demangle support... " >&6; }
25952 gcc_cv_ld_demangle
=no
25953 if test $in_tree_ld = yes; then
25954 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 \
25955 gcc_cv_ld_demangle
=yes
25957 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25958 # Check if the GNU linker supports --demangle option
25959 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25960 gcc_cv_ld_demangle
=yes
25963 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25965 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25969 $as_echo "$gcc_cv_ld_demangle" >&6; }
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25973 $as_echo_n "checking linker plugin support... " >&6; }
25974 gcc_cv_lto_plugin
=0
25975 if test -f liblto_plugin.la
; then
25976 save_ld_ver
="$ld_ver"
25977 save_ld_vers_major
="$ld_vers_major"
25978 save_ld_vers_minor
="$ld_vers_minor"
25979 save_ld_is_gold
="$ld_is_gold"
25983 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25985 # FIXME: ld_is_gold?
25986 ld_vers_major
="$gcc_cv_gld_major_version"
25987 ld_vers_minor
="$gcc_cv_gld_minor_version"
25989 # Determine plugin linker version.
25990 # FIXME: Partial duplicate from above, generalize.
25991 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25992 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25993 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25995 ld_vers
=`echo $ld_ver | sed -n \
25996 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25998 ld_vers
=`echo $ld_ver | sed -n \
25999 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26001 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
26002 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26006 # Determine plugin support.
26007 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26008 # Require GNU ld or gold 2.21+ for plugin support by default.
26009 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26010 gcc_cv_lto_plugin
=2
26011 elif test "$ld_is_mold" = yes; then
26012 gcc_cv_lto_plugin
=2
26013 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26014 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26015 gcc_cv_lto_plugin
=1
26019 ld_ver
="$save_ld_ver"
26020 ld_vers_major
="$save_ld_vers_major"
26021 ld_vers_minor
="$save_ld_vers_minor"
26022 ld_is_gold
="$save_ld_is_gold"
26025 cat >>confdefs.h
<<_ACEOF
26026 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26030 $as_echo "$gcc_cv_lto_plugin" >&6; }
26032 # Target OS-specific assembler checks.
26034 case "$target_os" in
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26037 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26038 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
26039 $as_echo_n "(cached) " >&6
26041 gcc_cv_as_mmacosx_version_min
=no
26042 if test x
$gcc_cv_as != x
; then
26043 $as_echo '.text' > conftest.s
26044 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26046 (eval $ac_try) 2>&5
26048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26049 test $ac_status = 0; }; }
26051 gcc_cv_as_mmacosx_version_min
=yes
26053 echo "configure: failed program was" >&5
26056 rm -f conftest.o conftest.s
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26060 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26061 if test $gcc_cv_as_mmacosx_version_min = yes; then
26063 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26070 # Target CPU-specific assembler checks.
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26075 $as_echo_n "checking assembler for -mabi option... " >&6; }
26076 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
26077 $as_echo_n "(cached) " >&6
26079 gcc_cv_as_aarch64_mabi
=no
26080 if test x
$gcc_cv_as != x
; then
26081 $as_echo '.text' > conftest.s
26082 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26084 (eval $ac_try) 2>&5
26086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26087 test $ac_status = 0; }; }
26089 gcc_cv_as_aarch64_mabi
=yes
26091 echo "configure: failed program was" >&5
26094 rm -f conftest.o conftest.s
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26098 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26101 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
26103 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26106 if test x
$with_abi = xilp32
; then
26107 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26108 Upgrade the Assembler." "$LINENO" 5
26110 if test x
"$with_multilib_list" = xdefault
; then
26111 TM_MULTILIB_CONFIG
=lp64
26113 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
26114 for aarch64_multilib
in ${aarch64_multilibs}; do
26115 case ${aarch64_multilib} in
26117 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
26118 Upgrade the Assembler." "$LINENO" 5
26126 # Check if we have binutils support for relocations types needed by -fpic
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26128 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26129 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
26130 $as_echo_n "(cached) " >&6
26132 gcc_cv_as_aarch64_picreloc
=no
26133 if test x
$gcc_cv_as != x
; then
26136 ldr x0, [x2, #:gotpage_lo15:globalsym]
26138 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26140 (eval $ac_try) 2>&5
26142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26143 test $ac_status = 0; }; }
26145 gcc_cv_as_aarch64_picreloc
=yes
26147 echo "configure: failed program was" >&5
26150 rm -f conftest.o conftest.s
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26154 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26155 if test $gcc_cv_as_aarch64_picreloc = yes; then
26157 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26161 # Enable Branch Target Identification Mechanism and Return Address
26162 # Signing by default.
26163 # Check whether --enable-standard-branch-protection was given.
26164 if test "${enable_standard_branch_protection+set}" = set; then :
26165 enableval
=$enable_standard_branch_protection;
26168 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26173 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
26174 Valid choices are 'yes' and 'no'." "$LINENO" 5
26180 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26181 # Check whether --enable-fix-cortex-a53-835769 was given.
26182 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26183 enableval
=$enable_fix_cortex_a53_835769;
26186 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26191 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26192 Valid choices are 'yes' and 'no'." "$LINENO" 5
26199 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26200 # Check whether --enable-fix-cortex-a53-843419 was given.
26201 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26202 enableval
=$enable_fix_cortex_a53_843419;
26205 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26210 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26211 Valid choices are 'yes' and 'no'." "$LINENO" 5
26220 # All TARGET_ABI_OSF targets.
26221 alpha
*-*-linux* | alpha
*-*-*bsd
*)
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26223 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26224 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
26225 $as_echo_n "(cached) " >&6
26227 gcc_cv_as_alpha_explicit_relocs
=no
26228 if test x
$gcc_cv_as != x
; then
26229 $as_echo ' .set nomacro
26231 extbl $3, $2, $3 !lituse_bytoff!1
26232 ldq $2, a($29) !literal!1
26233 ldq $4, b($29) !literal!2
26234 ldq_u $3, 0($2) !lituse_base!1
26235 ldq $27, f($29) !literal!5
26236 jsr $26, ($27), f !lituse_jsr!5
26237 ldah $29, 0($26) !gpdisp!3
26238 lda $0, c($29) !gprel
26239 ldah $1, d($29) !gprelhigh
26240 lda $1, d($1) !gprellow
26241 lda $29, 0($29) !gpdisp!3' > conftest.s
26242 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26244 (eval $ac_try) 2>&5
26246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26247 test $ac_status = 0; }; }
26249 gcc_cv_as_alpha_explicit_relocs
=yes
26251 echo "configure: failed program was" >&5
26254 rm -f conftest.o conftest.s
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26258 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26259 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26261 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26266 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26267 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
26268 $as_echo_n "(cached) " >&6
26270 gcc_cv_as_alpha_jsrdirect_relocs
=no
26271 if test x
$gcc_cv_as != x
; then
26272 $as_echo ' .set nomacro
26274 ldq $27, a($29) !literal!1
26275 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26278 (eval $ac_try) 2>&5
26280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26281 test $ac_status = 0; }; }
26283 gcc_cv_as_alpha_jsrdirect_relocs
=yes
26285 echo "configure: failed program was" >&5
26288 rm -f conftest.o conftest.s
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26292 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26293 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26295 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26303 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26304 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
26305 $as_echo_n "(cached) " >&6
26307 gcc_cv_as_avr_mlink_relax
=no
26308 if test x
$gcc_cv_as != x
; then
26309 $as_echo '.text' > conftest.s
26310 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26312 (eval $ac_try) 2>&5
26314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26315 test $ac_status = 0; }; }
26317 gcc_cv_as_avr_mlink_relax
=yes
26319 echo "configure: failed program was" >&5
26322 rm -f conftest.o conftest.s
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26326 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26327 if test $gcc_cv_as_avr_mlink_relax = yes; then
26329 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26335 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26336 if ${gcc_cv_as_avr_mrmw+:} false
; then :
26337 $as_echo_n "(cached) " >&6
26339 gcc_cv_as_avr_mrmw
=no
26340 if test x
$gcc_cv_as != x
; then
26341 $as_echo '.text' > conftest.s
26342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26344 (eval $ac_try) 2>&5
26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26347 test $ac_status = 0; }; }
26349 gcc_cv_as_avr_mrmw
=yes
26351 echo "configure: failed program was" >&5
26354 rm -f conftest.o conftest.s
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26358 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26359 if test $gcc_cv_as_avr_mrmw = yes; then
26361 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26367 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26368 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
26369 $as_echo_n "(cached) " >&6
26371 gcc_cv_as_avr_mgccisr
=no
26372 if test x
$gcc_cv_as != x
; then
26378 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26380 (eval $ac_try) 2>&5
26382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26383 test $ac_status = 0; }; }
26385 gcc_cv_as_avr_mgccisr
=yes
26387 echo "configure: failed program was" >&5
26390 rm -f conftest.o conftest.s
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26394 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26395 if test $gcc_cv_as_avr_mgccisr = yes; then
26397 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26402 # Check how default linker description file implements .rodata for
26403 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26404 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26406 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26407 cat > conftest.s
<<EOF
26408 .section .rodata,"a",@progbits
26410 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26415 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26417 (eval $ac_try) 2>&5
26419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26420 test $ac_status = 0; }; }
26421 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26423 (eval $ac_try) 2>&5
26425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26426 test $ac_status = 0; }; }
26427 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
26428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26429 (eval $ac_try) 2>&5
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; }
26433 if test -s conftest.nm
26435 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26437 $as_echo "yes" >&6; }
26439 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26443 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26444 echo "$as_me: nm output was" >&5
26445 cat conftest.nm
>&5
26446 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26447 { $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
26448 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26452 $as_echo "test failed" >&6; }
26453 echo "$as_me: failed program was" >&5
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26456 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26458 rm -f conftest.s conftest.o conftest.elf conftest.nm
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26463 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26464 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
26465 $as_echo_n "(cached) " >&6
26467 gcc_cv_as_cris_no_mul_bug
=no
26468 if test x
$gcc_cv_as != x
; then
26469 $as_echo '.text' > conftest.s
26470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26472 (eval $ac_try) 2>&5
26474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26475 test $ac_status = 0; }; }
26477 gcc_cv_as_cris_no_mul_bug
=yes
26479 echo "configure: failed program was" >&5
26482 rm -f conftest.o conftest.s
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26486 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26487 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26489 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26497 $as_echo_n "checking assembler for -relax option... " >&6; }
26498 if ${gcc_cv_as_sparc_relax+:} false
; then :
26499 $as_echo_n "(cached) " >&6
26501 gcc_cv_as_sparc_relax
=no
26502 if test x
$gcc_cv_as != x
; then
26503 $as_echo '.text' > conftest.s
26504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26506 (eval $ac_try) 2>&5
26508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26509 test $ac_status = 0; }; }
26511 gcc_cv_as_sparc_relax
=yes
26513 echo "configure: failed program was" >&5
26516 rm -f conftest.o conftest.s
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26520 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26521 if test $gcc_cv_as_sparc_relax = yes; then
26523 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26529 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26530 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
26531 $as_echo_n "(cached) " >&6
26533 gcc_cv_as_sparc_gotdata_op
=no
26534 if test x
$gcc_cv_as != x
; then
26540 sethi %gdop_hix22(foo), %g1
26541 xor %g1, %gdop_lox10(foo), %g1
26542 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26543 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26545 (eval $ac_try) 2>&5
26547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26548 test $ac_status = 0; }; }
26550 if test x
$gcc_cv_ld != x \
26551 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26552 if test x
$gcc_cv_objdump != x
; then
26553 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
26554 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
26555 gcc_cv_as_sparc_gotdata_op
=no
26557 gcc_cv_as_sparc_gotdata_op
=yes
26563 echo "configure: failed program was" >&5
26566 rm -f conftest.o conftest.s
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26570 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26571 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26573 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26579 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26580 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
26581 $as_echo_n "(cached) " >&6
26583 gcc_cv_as_sparc_ua_pcrel
=no
26584 if test x
$gcc_cv_as != x
; then
26591 .uaword %r_disp32(foo)' > conftest.s
26592 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26594 (eval $ac_try) 2>&5
26596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26597 test $ac_status = 0; }; }
26599 if test x
$gcc_cv_ld != x \
26600 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
26601 gcc_cv_as_sparc_ua_pcrel
=yes
26605 echo "configure: failed program was" >&5
26608 rm -f conftest.o conftest.s
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26612 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26613 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26615 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26619 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26620 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
26621 $as_echo_n "(cached) " >&6
26623 gcc_cv_as_sparc_ua_pcrel_hidden
=no
26624 if test x
$gcc_cv_as != x
; then
26628 .uaword %r_disp32(foo)
26629 .byte 0x32, 0x33, 0x34
26633 .skip 4' > conftest.s
26634 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26636 (eval $ac_try) 2>&5
26638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26639 test $ac_status = 0; }; }
26641 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26642 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
26643 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
26644 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
26645 if $gcc_cv_objdump -R conftest
2> /dev
/null \
26646 |
grep 'DISP32' > /dev
/null
2>&1; then
26649 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
26654 echo "configure: failed program was" >&5
26657 rm -f conftest.o conftest.s
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26661 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26662 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26664 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26670 # unaligned pcrel relocs
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26673 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26674 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
26675 $as_echo_n "(cached) " >&6
26677 gcc_cv_as_sparc_offsetable_lo10
=no
26678 if test x
$gcc_cv_as != x
; then
26680 or %g1, %lo(ab) + 12, %g1
26681 or %g1, %lo(ab + 12), %g1' > conftest.s
26682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26684 (eval $ac_try) 2>&5
26686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26687 test $ac_status = 0; }; }
26689 if test x
$gcc_cv_objdump != x \
26690 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26691 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26692 gcc_cv_as_sparc_offsetable_lo10
=yes
26695 echo "configure: failed program was" >&5
26698 rm -f conftest.o conftest.s
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26702 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26703 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26705 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26711 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26712 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26713 $as_echo_n "(cached) " >&6
26715 gcc_cv_as_sparc_fmaf
=no
26716 if test x
$gcc_cv_as != x
; then
26718 .register %g2, #scratch
26719 .register %g3, #scratch
26721 fmaddd %f0, %f2, %f4, %f6
26722 addxccc %g1, %g2, %g3
26723 fsrl32 %f2, %f4, %f8
26724 fnaddd %f10, %f12, %f14' > conftest.s
26725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26727 (eval $ac_try) 2>&5
26729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26730 test $ac_status = 0; }; }
26732 gcc_cv_as_sparc_fmaf
=yes
26734 echo "configure: failed program was" >&5
26737 rm -f conftest.o conftest.s
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26741 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26742 if test $gcc_cv_as_sparc_fmaf = yes; then
26744 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26750 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26751 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26752 $as_echo_n "(cached) " >&6
26754 gcc_cv_as_sparc_sparc4
=no
26755 if test x
$gcc_cv_as != x
; then
26757 .register %g2, #scratch
26758 .register %g3, #scratch
26761 1: cwbneg %g2, %g3, 1f
26764 aes_kexpand0 %f4, %f6, %f8
26765 des_round %f38, %f40, %f42, %f44
26766 camellia_f %f54, %f56, %f58, %f60
26767 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26770 (eval $ac_try) 2>&5
26772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26773 test $ac_status = 0; }; }
26775 gcc_cv_as_sparc_sparc4
=yes
26777 echo "configure: failed program was" >&5
26780 rm -f conftest.o conftest.s
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26784 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26785 if test $gcc_cv_as_sparc_sparc4 = yes; then
26787 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26793 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26794 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26795 $as_echo_n "(cached) " >&6
26797 gcc_cv_as_sparc_sparc5
=no
26798 if test x
$gcc_cv_as != x
; then
26800 .register %g2, #scratch
26801 .register %g3, #scratch
26803 subxc %g1, %g2, %g3
26804 fpadd8 %f0, %f2, %f4' > conftest.s
26805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26807 (eval $ac_try) 2>&5
26809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26810 test $ac_status = 0; }; }
26812 gcc_cv_as_sparc_sparc5
=yes
26814 echo "configure: failed program was" >&5
26817 rm -f conftest.o conftest.s
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26821 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26822 if test $gcc_cv_as_sparc_sparc5 = yes; then
26824 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26830 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26831 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26832 $as_echo_n "(cached) " >&6
26834 gcc_cv_as_sparc_sparc6
=no
26835 if test x
$gcc_cv_as != x
; then
26837 .register %g2, #scratch
26838 .register %g3, #scratch
26841 fpsll64x %f0, %f2, %f4' > conftest.s
26842 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26844 (eval $ac_try) 2>&5
26846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26847 test $ac_status = 0; }; }
26849 gcc_cv_as_sparc_sparc6
=yes
26851 echo "configure: failed program was" >&5
26854 rm -f conftest.o conftest.s
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26858 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26859 if test $gcc_cv_as_sparc_sparc6 = yes; then
26861 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26867 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26868 if ${gcc_cv_as_sparc_leon+:} false
; then :
26869 $as_echo_n "(cached) " >&6
26871 gcc_cv_as_sparc_leon
=no
26872 if test x
$gcc_cv_as != x
; then
26874 .register %g2, #scratch
26875 .register %g3, #scratch
26879 casa [%g2] 0xb, %g3, %g1' > conftest.s
26880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26882 (eval $ac_try) 2>&5
26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885 test $ac_status = 0; }; }
26887 gcc_cv_as_sparc_leon
=yes
26889 echo "configure: failed program was" >&5
26892 rm -f conftest.o conftest.s
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26896 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26897 if test $gcc_cv_as_sparc_leon = yes; then
26899 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26905 i
[34567]86-*-* | x86_64-
*-*)
26908 # Full C++ conformance when using a shared libstdc++-v3 requires some
26909 # support from the Cygwin DLL, which in more recent versions exports
26910 # wrappers to aid in interposing and redirecting operators new, delete,
26911 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26912 # are configuring for a version of Cygwin that exports the wrappers.
26913 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26914 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26915 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26916 gcc_ac_cygwin_dll_wrappers
=yes
26918 gcc_ac_cygwin_dll_wrappers
=no
26922 # Can't check presence of libc functions during cross-compile, so
26923 # we just have to assume we're building for an up-to-date target.
26924 gcc_ac_cygwin_dll_wrappers
=yes
26927 cat >>confdefs.h
<<_ACEOF
26928 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26933 cygwin
* | pe | mingw32
*)
26934 # Recent binutils allows the three-operand form of ".comm" on PE. This
26935 # definition is used unconditionally to initialise the default state of
26936 # the target option variable that governs usage of the feature.
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26938 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26939 if ${gcc_cv_as_comm_has_align+:} false
; then :
26940 $as_echo_n "(cached) " >&6
26942 gcc_cv_as_comm_has_align
=no
26943 if test x
$gcc_cv_as != x
; then
26944 $as_echo '.comm foo,1,32' > conftest.s
26945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_comm_has_align
=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_comm_has_align" >&5
26961 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26965 cat >>confdefs.h
<<_ACEOF
26966 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26969 # Used for DWARF 2 in PE
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26971 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26972 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26973 $as_echo_n "(cached) " >&6
26975 gcc_cv_as_ix86_pe_secrel32
=no
26976 if test x
$gcc_cv_as != x
; then
26980 .secrel32 foo' > conftest.s
26981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26983 (eval $ac_try) 2>&5
26985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26986 test $ac_status = 0; }; }
26988 if test x
$gcc_cv_ld != x \
26989 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26990 gcc_cv_as_ix86_pe_secrel32
=yes
26994 echo "configure: failed program was" >&5
26997 rm -f conftest.o conftest.s
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27001 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27002 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27004 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27008 # Test if the assembler supports the extended form of the .section
27009 # directive that specifies section alignment. LTO support uses this,
27010 # but normally only after installation, so we warn but don't fail the
27011 # configure if LTO is enabled but the assembler does not support it.
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27013 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27014 if ${gcc_cv_as_section_has_align+:} false
; then :
27015 $as_echo_n "(cached) " >&6
27017 gcc_cv_as_section_has_align
=no
27018 if test x
$gcc_cv_as != x
; then
27019 $as_echo '.section lto_test,"dr0"' > conftest.s
27020 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27022 (eval $ac_try) 2>&5
27024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27025 test $ac_status = 0; }; }
27027 gcc_cv_as_section_has_align
=yes
27029 echo "configure: failed program was" >&5
27032 rm -f conftest.o conftest.s
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27036 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27039 if test x
$gcc_cv_as_section_has_align != xyes
; then
27040 case ",$enable_languages," in
27042 { $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
27043 $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;}
27050 darwin2
* | darwin19
*)
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27052 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27053 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false
; then :
27054 $as_echo_n "(cached) " >&6
27056 gcc_cv_as_mllvm_x86_pad_for_align
=no
27057 if test x
$gcc_cv_as != x
; then
27058 $as_echo '.text' > conftest.s
27059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061 (eval $ac_try) 2>&5
27063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; }
27066 gcc_cv_as_mllvm_x86_pad_for_align
=yes
27068 echo "configure: failed program was" >&5
27071 rm -f conftest.o conftest.s
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27075 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27076 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27078 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27086 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27087 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
27088 $as_echo_n "(cached) " >&6
27090 gcc_cv_as_ix86_xbrace_comment
=no
27091 if test x
$gcc_cv_as != x
; then
27092 $as_echo '.text' > conftest.s
27093 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27095 (eval $ac_try) 2>&5
27097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27098 test $ac_status = 0; }; }
27100 gcc_cv_as_ix86_xbrace_comment
=yes
27102 echo "configure: failed program was" >&5
27105 rm -f conftest.o conftest.s
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27109 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27110 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27112 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27118 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27119 if ${gcc_cv_as_ix86_filds+:} false
; then :
27120 $as_echo_n "(cached) " >&6
27122 gcc_cv_as_ix86_filds
=no
27123 if test x
$gcc_cv_as != x
; then
27124 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27125 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27127 (eval $ac_try) 2>&5
27129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27130 test $ac_status = 0; }; }
27132 gcc_cv_as_ix86_filds
=yes
27134 echo "configure: failed program was" >&5
27137 rm -f conftest.o conftest.s
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27141 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27142 if test $gcc_cv_as_ix86_filds = yes; then
27144 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27150 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27151 if ${gcc_cv_as_ix86_fildq+:} false
; then :
27152 $as_echo_n "(cached) " >&6
27154 gcc_cv_as_ix86_fildq
=no
27155 if test x
$gcc_cv_as != x
; then
27156 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27159 (eval $ac_try) 2>&5
27161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27162 test $ac_status = 0; }; }
27164 gcc_cv_as_ix86_fildq
=yes
27166 echo "configure: failed program was" >&5
27169 rm -f conftest.o conftest.s
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27173 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27174 if test $gcc_cv_as_ix86_fildq = yes; then
27176 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27182 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27183 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
27184 $as_echo_n "(cached) " >&6
27186 gcc_cv_as_ix86_cmov_sun_syntax
=no
27187 if test x
$gcc_cv_as != x
; then
27188 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27189 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27191 (eval $ac_try) 2>&5
27193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27194 test $ac_status = 0; }; }
27196 gcc_cv_as_ix86_cmov_sun_syntax
=yes
27198 echo "configure: failed program was" >&5
27201 rm -f conftest.o conftest.s
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27205 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27206 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27208 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27214 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27215 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
27216 $as_echo_n "(cached) " >&6
27218 gcc_cv_as_ix86_ffreep
=no
27219 if test x
$gcc_cv_as != x
; then
27220 $as_echo 'ffreep %st(1)' > conftest.s
27221 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27223 (eval $ac_try) 2>&5
27225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27226 test $ac_status = 0; }; }
27228 gcc_cv_as_ix86_ffreep
=yes
27230 echo "configure: failed program was" >&5
27233 rm -f conftest.o conftest.s
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27237 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27238 if test $gcc_cv_as_ix86_ffreep = yes; then
27240 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27246 $as_echo_n "checking assembler for .quad directive... " >&6; }
27247 if ${gcc_cv_as_ix86_quad+:} false
; then :
27248 $as_echo_n "(cached) " >&6
27250 gcc_cv_as_ix86_quad
=no
27251 if test x
$gcc_cv_as != x
; then
27252 $as_echo '.quad 0' > conftest.s
27253 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255 (eval $ac_try) 2>&5
27257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258 test $ac_status = 0; }; }
27260 gcc_cv_as_ix86_quad
=yes
27262 echo "configure: failed program was" >&5
27265 rm -f conftest.o conftest.s
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27269 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27270 if test $gcc_cv_as_ix86_quad = yes; then
27272 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27278 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27279 if ${gcc_cv_as_ix86_sahf+:} false
; then :
27280 $as_echo_n "(cached) " >&6
27282 gcc_cv_as_ix86_sahf
=no
27283 if test x
$gcc_cv_as != x
; then
27286 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27288 (eval $ac_try) 2>&5
27290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27291 test $ac_status = 0; }; }
27293 gcc_cv_as_ix86_sahf
=yes
27295 echo "configure: failed program was" >&5
27298 rm -f conftest.o conftest.s
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27302 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27303 if test $gcc_cv_as_ix86_sahf = yes; then
27305 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27311 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27312 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
27313 $as_echo_n "(cached) " >&6
27315 gcc_cv_as_ix86_interunit_movq
=no
27316 if test x
$gcc_cv_as != x
; then
27319 movq %rax, %xmm0' > conftest.s
27320 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27322 (eval $ac_try) 2>&5
27324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27325 test $ac_status = 0; }; }
27327 gcc_cv_as_ix86_interunit_movq
=yes
27329 echo "configure: failed program was" >&5
27332 rm -f conftest.o conftest.s
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27336 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27340 cat >>confdefs.h
<<_ACEOF
27341 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27346 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27347 if ${gcc_cv_as_ix86_hle+:} false
; then :
27348 $as_echo_n "(cached) " >&6
27350 gcc_cv_as_ix86_hle
=no
27351 if test x
$gcc_cv_as != x
; then
27352 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27353 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27355 (eval $ac_try) 2>&5
27357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27358 test $ac_status = 0; }; }
27360 gcc_cv_as_ix86_hle
=yes
27362 echo "configure: failed program was" >&5
27365 rm -f conftest.o conftest.s
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27369 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27370 if test $gcc_cv_as_ix86_hle = yes; then
27372 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27378 $as_echo_n "checking assembler for swap suffix... " >&6; }
27379 if ${gcc_cv_as_ix86_swap+:} false
; then :
27380 $as_echo_n "(cached) " >&6
27382 gcc_cv_as_ix86_swap
=no
27383 if test x
$gcc_cv_as != x
; then
27384 $as_echo 'movl.s %esp, %ebp' > conftest.s
27385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27387 (eval $ac_try) 2>&5
27389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27390 test $ac_status = 0; }; }
27392 gcc_cv_as_ix86_swap
=yes
27394 echo "configure: failed program was" >&5
27397 rm -f conftest.o conftest.s
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27401 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27402 if test $gcc_cv_as_ix86_swap = yes; then
27404 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27410 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27411 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
27412 $as_echo_n "(cached) " >&6
27414 gcc_cv_as_ix86_diff_sect_delta
=no
27415 if test x
$gcc_cv_as != x
; then
27416 $as_echo '.section .rodata
27422 .L2: nop' > conftest.s
27423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27425 (eval $ac_try) 2>&5
27427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27428 test $ac_status = 0; }; }
27430 gcc_cv_as_ix86_diff_sect_delta
=yes
27432 echo "configure: failed program was" >&5
27435 rm -f conftest.o conftest.s
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27439 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27440 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27442 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27448 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27449 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
27450 $as_echo_n "(cached) " >&6
27452 gcc_cv_as_ix86_rep_lock_prefix
=no
27453 if test x
$gcc_cv_as != x
; then
27454 $as_echo 'rep movsl
27459 lock addl %edi, (%eax,%esi)
27460 lock orl $0, (%esp)' > conftest.s
27461 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27463 (eval $ac_try) 2>&5
27465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27466 test $ac_status = 0; }; }
27468 gcc_cv_as_ix86_rep_lock_prefix
=yes
27470 echo "configure: failed program was" >&5
27473 rm -f conftest.o conftest.s
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27477 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27478 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27480 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27486 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27487 if ${gcc_cv_as_ix86_ud2+:} false
; then :
27488 $as_echo_n "(cached) " >&6
27490 gcc_cv_as_ix86_ud2
=no
27491 if test x
$gcc_cv_as != x
; then
27492 $as_echo 'ud2' > conftest.s
27493 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27495 (eval $ac_try) 2>&5
27497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27498 test $ac_status = 0; }; }
27500 gcc_cv_as_ix86_ud2
=yes
27502 echo "configure: failed program was" >&5
27505 rm -f conftest.o conftest.s
27508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27509 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27510 if test $gcc_cv_as_ix86_ud2 = yes; then
27512 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27517 # Enforce 32-bit output with gas and gld.
27518 if test x
$gas = xyes
; then
27519 as_ix86_gas_32_opt
="--32"
27521 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27522 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
27523 ld_ix86_gld_32_opt
="-melf_i386_sol2"
27525 ld_ix86_gld_32_opt
="-melf_i386"
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27530 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27531 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
27532 $as_echo_n "(cached) " >&6
27534 gcc_cv_as_ix86_tlsgdplt
=no
27535 if test x
$gcc_cv_as != x
; then
27536 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27537 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27544 if test x
$gcc_cv_ld != x \
27545 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27546 gcc_cv_as_ix86_tlsgdplt
=yes
27550 echo "configure: failed program was" >&5
27553 rm -f conftest.o conftest.s
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27557 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27558 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27560 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27566 .section .tdata,"aw'$tls_section_flag'",@progbits
27568 .section .text,"ax",@progbits
27569 call tls_ld@tlsldmplt'
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27572 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27573 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
27574 $as_echo_n "(cached) " >&6
27576 gcc_cv_as_ix86_tlsldmplt
=no
27577 if test x
$gcc_cv_as != x
; then
27578 $as_echo "$conftest_s" > conftest.s
27579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27581 (eval $ac_try) 2>&5
27583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27584 test $ac_status = 0; }; }
27586 if test x
$gcc_cv_ld != x \
27587 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
27588 gcc_cv_as_ix86_tlsldmplt
=yes
27592 echo "configure: failed program was" >&5
27595 rm -f conftest.o conftest.s
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27599 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27603 cat >>confdefs.h
<<_ACEOF
27604 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27609 .section .text,"ax",@progbits
27611 .type _start, @function
27613 leal value@tlsldm(%ebx), %eax
27614 call ___tls_get_addr@plt
27616 .section .tdata,"aw'$tls_section_flag'",@progbits
27617 .type value, @object
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27620 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27621 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
27622 $as_echo_n "(cached) " >&6
27624 gcc_cv_as_ix86_tlsldm
=no
27625 if test x
$gcc_cv_as != x
; then
27626 $as_echo "$conftest_s" > conftest.s
27627 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27629 (eval $ac_try) 2>&5
27631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27632 test $ac_status = 0; }; }
27634 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27635 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
27636 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
27637 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
27638 gcc_cv_as_ix86_tlsldm
=yes
27643 echo "configure: failed program was" >&5
27646 rm -f conftest.o conftest.s
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27650 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27654 cat >>confdefs.h
<<_ACEOF
27655 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27669 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27670 if ${gcc_cv_as_ix86_got32x+:} false
; then :
27671 $as_echo_n "(cached) " >&6
27673 gcc_cv_as_ix86_got32x
=no
27674 if test x
$gcc_cv_as != x
; then
27675 $as_echo "$conftest_s" > conftest.s
27676 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27678 (eval $ac_try) 2>&5
27680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27681 test $ac_status = 0; }; }
27683 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
27684 && test x
$gcc_cv_readelf != x \
27685 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
27686 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
27687 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27688 if $gcc_cv_objdump -dw conftest
2>&1 \
27689 |
grep 0xffffff > /dev
/null
2>&1; then
27690 gcc_cv_as_ix86_got32x
=no
27692 gcc_cv_as_ix86_got32x
=yes
27697 echo "configure: failed program was" >&5
27700 rm -f conftest.o conftest.s
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27704 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27708 cat >>confdefs.h
<<_ACEOF
27709 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27714 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27715 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27716 $as_echo_n "(cached) " >&6
27718 gcc_cv_as_ix86_gotoff_in_data
=no
27719 if test x
$gcc_cv_as != x
; then
27724 .long .L0@GOTOFF' > conftest.s
27725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27727 (eval $ac_try) 2>&5
27729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27730 test $ac_status = 0; }; }
27732 gcc_cv_as_ix86_gotoff_in_data
=yes
27734 echo "configure: failed program was" >&5
27737 rm -f conftest.o conftest.s
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27741 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27745 cat >>confdefs.h
<<_ACEOF
27746 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27751 .section .text,"ax",@progbits
27753 .type _start, @function
27755 leal ld@tlsldm(%ecx), %eax
27756 call *___tls_get_addr@GOT(%ecx)
27757 leal gd@tlsgd(%ecx), %eax
27758 call *___tls_get_addr@GOT(%ecx)
27760 .section .tdata,"aw'$tls_section_flag'",@progbits
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27769 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27770 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27771 $as_echo_n "(cached) " >&6
27773 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27774 if test x
$gcc_cv_as != x
; then
27775 $as_echo "$conftest_s" > conftest.s
27776 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27778 (eval $ac_try) 2>&5
27780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27781 test $ac_status = 0; }; }
27783 if test x
$gcc_cv_ld != x \
27784 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27785 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27789 echo "configure: failed program was" >&5
27792 rm -f conftest.o conftest.s
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27796 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27800 cat >>confdefs.h
<<_ACEOF
27801 #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`
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27808 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27809 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27810 $as_echo_n "(cached) " >&6
27812 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27813 if test x
$gcc_cv_as != x
; then
27815 addl r15 = @ltoffx(x#), gp
27817 ld8.mov r16 = [r15], x#
27819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27821 (eval $ac_try) 2>&5
27823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27824 test $ac_status = 0; }; }
27826 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27828 echo "configure: failed program was" >&5
27831 rm -f conftest.o conftest.s
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27835 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27836 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27838 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27850 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27851 if ${gcc_cv_as_machine_directive+:} false
; then :
27852 $as_echo_n "(cached) " >&6
27854 gcc_cv_as_machine_directive
=no
27855 if test x
$gcc_cv_as != x
; then
27856 $as_echo ' .machine ppc7400' > conftest.s
27857 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27859 (eval $ac_try) 2>&5
27861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27862 test $ac_status = 0; }; }
27864 gcc_cv_as_machine_directive
=yes
27866 echo "configure: failed program was" >&5
27869 rm -f conftest.o conftest.s
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27873 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27876 if test x
$gcc_cv_as_machine_directive != xyes
; then
27877 echo "*** This target requires an assembler supporting \".machine\"" >&2
27878 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27879 test x
$build = x
$target && exit 1
27885 *-*-aix*) conftest_s
=' .machine "pwr5"
27888 *-*-darwin*) conftest_s
=' .text
27890 *) conftest_s
=' .machine power4
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27896 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27897 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27898 $as_echo_n "(cached) " >&6
27900 gcc_cv_as_powerpc_mfcrf
=no
27901 if test x
$gcc_cv_as != x
; then
27902 $as_echo "$conftest_s" > conftest.s
27903 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27905 (eval $ac_try) 2>&5
27907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27908 test $ac_status = 0; }; }
27910 gcc_cv_as_powerpc_mfcrf
=yes
27912 echo "configure: failed program was" >&5
27915 rm -f conftest.o conftest.s
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27919 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27920 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27922 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27928 *-*-aix*) conftest_s
=' .csect .text[PR]
27930 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27934 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27935 *) conftest_s
=' .text
27937 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27941 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27942 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27943 $as_echo_n "(cached) " >&6
27945 gcc_cv_as_powerpc_rel16
=no
27946 if test x
$gcc_cv_as != x
; then
27947 $as_echo "$conftest_s" > conftest.s
27948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27950 (eval $ac_try) 2>&5
27952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27953 test $ac_status = 0; }; }
27955 gcc_cv_as_powerpc_rel16
=yes
27957 echo "configure: failed program was" >&5
27960 rm -f conftest.o conftest.s
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27964 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27965 if test $gcc_cv_as_powerpc_rel16 = yes; then
27967 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27973 *-*-aix*) conftest_s
=' .machine "pwr7"
27976 *) conftest_s
=' .machine power7
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27982 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27983 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27984 $as_echo_n "(cached) " >&6
27986 gcc_cv_as_powerpc_vsx
=no
27987 if test x
$gcc_cv_as != x
; then
27988 $as_echo "$conftest_s" > conftest.s
27989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27991 (eval $ac_try) 2>&5
27993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27994 test $ac_status = 0; }; }
27996 gcc_cv_as_powerpc_vsx
=yes
27998 echo "configure: failed program was" >&5
28001 rm -f conftest.o conftest.s
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28005 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28006 if test $gcc_cv_as_powerpc_vsx = yes; then
28008 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28014 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28015 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
28016 $as_echo_n "(cached) " >&6
28018 gcc_cv_as_powerpc_gnu_attribute
=no
28019 if test x
$gcc_cv_as != x
; then
28020 $as_echo '.gnu_attribute 4,1' > conftest.s
28021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28023 (eval $ac_try) 2>&5
28025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28026 test $ac_status = 0; }; }
28028 gcc_cv_as_powerpc_gnu_attribute
=yes
28030 echo "configure: failed program was" >&5
28033 rm -f conftest.o conftest.s
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28037 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28038 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28040 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28046 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28047 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
28048 $as_echo_n "(cached) " >&6
28050 gcc_cv_as_powerpc_entry_markers
=no
28051 if test x
$gcc_cv_as != x
; then
28052 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28053 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28055 (eval $ac_try) 2>&5
28057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28058 test $ac_status = 0; }; }
28060 gcc_cv_as_powerpc_entry_markers
=yes
28062 echo "configure: failed program was" >&5
28065 rm -f conftest.o conftest.s
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28069 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28070 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28072 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28078 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28079 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
28080 $as_echo_n "(cached) " >&6
28082 gcc_cv_as_powerpc_pltseq_markers
=no
28083 if test x
$gcc_cv_as != x
; then
28084 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28085 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28087 (eval $ac_try) 2>&5
28089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28090 test $ac_status = 0; }; }
28092 gcc_cv_as_powerpc_pltseq_markers
=yes
28094 echo "configure: failed program was" >&5
28097 rm -f conftest.o conftest.s
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28101 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28102 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28104 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28112 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28113 if ${gcc_cv_as_aix_ref+:} false
; then :
28114 $as_echo_n "(cached) " >&6
28116 gcc_cv_as_aix_ref
=no
28117 if test x
$gcc_cv_as != x
; then
28118 $as_echo ' .csect stuff[rw]
28124 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28126 (eval $ac_try) 2>&5
28128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28129 test $ac_status = 0; }; }
28131 gcc_cv_as_aix_ref
=yes
28133 echo "configure: failed program was" >&5
28136 rm -f conftest.o conftest.s
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28140 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28141 if test $gcc_cv_as_aix_ref = yes; then
28143 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28149 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28150 if ${gcc_cv_as_aix_dwloc+:} false
; then :
28151 $as_echo_n "(cached) " >&6
28153 gcc_cv_as_aix_dwloc
=no
28154 if test x
$gcc_cv_as != x
; then
28155 $as_echo ' .dwsect 0xA0000
28159 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28161 (eval $ac_try) 2>&5
28163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28164 test $ac_status = 0; }; }
28166 gcc_cv_as_aix_dwloc
=yes
28168 echo "configure: failed program was" >&5
28171 rm -f conftest.o conftest.s
28174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28175 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28176 if test $gcc_cv_as_aix_dwloc = yes; then
28178 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28188 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28189 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
28190 $as_echo_n "(cached) " >&6
28192 gcc_cv_as_mips_explicit_relocs
=no
28193 if test x
$gcc_cv_as != x
; then
28194 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28195 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28197 (eval $ac_try) 2>&5
28199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28200 test $ac_status = 0; }; }
28202 gcc_cv_as_mips_explicit_relocs
=yes
28204 echo "configure: failed program was" >&5
28207 rm -f conftest.o conftest.s
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28211 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28212 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28213 if test x
$target_cpu_default = x
28214 then target_cpu_default
=MASK_EXPLICIT_RELOCS
28215 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28221 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28222 if ${gcc_cv_as_mips_no_shared+:} false
; then :
28223 $as_echo_n "(cached) " >&6
28225 gcc_cv_as_mips_no_shared
=no
28226 if test x
$gcc_cv_as != x
; then
28227 $as_echo 'nop' > conftest.s
28228 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28230 (eval $ac_try) 2>&5
28232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28233 test $ac_status = 0; }; }
28235 gcc_cv_as_mips_no_shared
=yes
28237 echo "configure: failed program was" >&5
28240 rm -f conftest.o conftest.s
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28244 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28245 if test $gcc_cv_as_mips_no_shared = yes; then
28247 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28253 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28254 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
28255 $as_echo_n "(cached) " >&6
28257 gcc_cv_as_mips_gnu_attribute
=no
28258 if test x
$gcc_cv_as != x
; then
28259 $as_echo '.gnu_attribute 4,1' > conftest.s
28260 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28262 (eval $ac_try) 2>&5
28264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28265 test $ac_status = 0; }; }
28267 gcc_cv_as_mips_gnu_attribute
=yes
28269 echo "configure: failed program was" >&5
28272 rm -f conftest.o conftest.s
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28276 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28277 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28279 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28285 $as_echo_n "checking assembler for .module support... " >&6; }
28286 if ${gcc_cv_as_mips_dot_module+:} false
; then :
28287 $as_echo_n "(cached) " >&6
28289 gcc_cv_as_mips_dot_module
=no
28290 if test x
$gcc_cv_as != x
; then
28291 $as_echo '.module mips2
28292 .module fp=xx' > conftest.s
28293 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28295 (eval $ac_try) 2>&5
28297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28298 test $ac_status = 0; }; }
28300 gcc_cv_as_mips_dot_module
=yes
28302 echo "configure: failed program was" >&5
28305 rm -f conftest.o conftest.s
28308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28309 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28310 if test $gcc_cv_as_mips_dot_module = yes; then
28312 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28316 if test x
$gcc_cv_as_mips_dot_module = xno \
28317 && test x
$with_fp_32 != x
; then
28318 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28322 $as_echo_n "checking assembler for .micromips support... " >&6; }
28323 if ${gcc_cv_as_micromips_support+:} false
; then :
28324 $as_echo_n "(cached) " >&6
28326 gcc_cv_as_micromips_support
=no
28327 if test x
$gcc_cv_as != x
; then
28328 $as_echo '.set micromips' > conftest.s
28329 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28331 (eval $ac_try) 2>&5
28333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28334 test $ac_status = 0; }; }
28336 gcc_cv_as_micromips_support
=yes
28338 echo "configure: failed program was" >&5
28341 rm -f conftest.o conftest.s
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28345 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28346 if test $gcc_cv_as_micromips_support = yes; then
28348 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28354 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28355 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
28356 $as_echo_n "(cached) " >&6
28358 gcc_cv_as_mips_dtprelword
=no
28359 if test x
$gcc_cv_as != x
; then
28360 $as_echo '.section .tdata,"awT",@progbits
28364 .dtprelword x+0x8000' > conftest.s
28365 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28367 (eval $ac_try) 2>&5
28369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28370 test $ac_status = 0; }; }
28372 gcc_cv_as_mips_dtprelword
=yes
28374 echo "configure: failed program was" >&5
28377 rm -f conftest.o conftest.s
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28381 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28382 if test $gcc_cv_as_mips_dtprelword = yes; then
28384 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28390 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28391 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
28392 $as_echo_n "(cached) " >&6
28394 gcc_cv_as_mips_dspr1_mult
=no
28395 if test x
$gcc_cv_as != x
; then
28396 $as_echo ' .set mips32r2
28404 multu $ac3,$4,$5' > conftest.s
28405 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28407 (eval $ac_try) 2>&5
28409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28410 test $ac_status = 0; }; }
28412 gcc_cv_as_mips_dspr1_mult
=yes
28414 echo "configure: failed program was" >&5
28417 rm -f conftest.o conftest.s
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28421 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28422 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28424 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28430 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28431 gcc_cv_as_ld_jalr_reloc
=no
28432 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28433 if test $in_tree_ld = yes ; then
28434 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 \
28435 && test $in_tree_ld_is_elf = yes; then
28436 gcc_cv_as_ld_jalr_reloc
=yes
28438 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28439 echo ' .ent x' > conftest.s
28440 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28441 echo ' lw $25,%call16(y)($28)' >> conftest.s
28442 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28443 echo '1: jalr $25' >> conftest.s
28444 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28445 echo '1: jalr $25' >> conftest.s
28446 echo ' .end x' >> conftest.s
28447 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
28448 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
28449 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
28450 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
28451 gcc_cv_as_ld_jalr_reloc
=yes
28457 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28458 if test x
$target_cpu_default = x
; then
28459 target_cpu_default
=MASK_RELAX_PIC_CALLS
28461 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28465 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28468 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28469 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
28470 $as_echo_n "(cached) " >&6
28472 gcc_cv_ld_mips_personality_relaxation
=no
28473 if test $in_tree_ld = yes ; then
28474 if test "$gcc_cv_gld_major_version" -eq 2 \
28475 -a "$gcc_cv_gld_minor_version" -ge 21 \
28476 -o "$gcc_cv_gld_major_version" -gt 2; then
28477 gcc_cv_ld_mips_personality_relaxation
=yes
28479 elif test x
$gcc_cv_as != x \
28480 -a x
$gcc_cv_ld != x \
28481 -a x
$gcc_cv_readelf != x
; then
28482 cat > conftest.s
<<EOF
28484 .cfi_personality 0x80,indirect_ptr
28491 .section .data,"aw",@progbits
28495 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
28496 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
28497 if $gcc_cv_readelf -d conftest
2>&1 \
28498 |
grep TEXTREL
> /dev
/null
2>&1; then
28500 elif $gcc_cv_readelf --relocs conftest
2>&1 \
28501 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
28504 gcc_cv_ld_mips_personality_relaxation
=yes
28508 rm -f conftest.s conftest.o conftest
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28511 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28512 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
28514 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28519 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28520 if ${gcc_cv_as_mips_nan+:} false
; then :
28521 $as_echo_n "(cached) " >&6
28523 gcc_cv_as_mips_nan
=no
28524 if test x
$gcc_cv_as != x
; then
28525 $as_echo '' > conftest.s
28526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28528 (eval $ac_try) 2>&5
28530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28531 test $ac_status = 0; }; }
28533 gcc_cv_as_mips_nan
=yes
28535 echo "configure: failed program was" >&5
28538 rm -f conftest.o conftest.s
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28542 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28543 if test $gcc_cv_as_mips_nan = yes; then
28545 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28549 if test x
$gcc_cv_as_mips_nan = xno \
28550 && test x
$with_nan != x
; then
28551 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28555 # Earlier GAS versions generically support .gnu_attribute, but the
28556 # msp430 assembler will not do anything with it.
28557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28558 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28559 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
28560 $as_echo_n "(cached) " >&6
28562 gcc_cv_as_msp430_gnu_attribute
=no
28563 if test x
$gcc_cv_as != x
; then
28564 $as_echo '.gnu_attribute 4,1' > conftest.s
28565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28567 (eval $ac_try) 2>&5
28569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28570 test $ac_status = 0; }; }
28572 gcc_cv_as_msp430_gnu_attribute
=yes
28574 echo "configure: failed program was" >&5
28577 rm -f conftest.o conftest.s
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28581 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28582 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28584 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28589 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28590 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
28591 $as_echo_n "(cached) " >&6
28593 gcc_cv_as_msp430_mspabi_attribute
=no
28594 if test x
$gcc_cv_as != x
; then
28595 $as_echo '.mspabi_attribute 4,2' > conftest.s
28596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28598 (eval $ac_try) 2>&5
28600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28601 test $ac_status = 0; }; }
28603 gcc_cv_as_msp430_mspabi_attribute
=yes
28605 echo "configure: failed program was" >&5
28608 rm -f conftest.o conftest.s
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28612 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28613 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28615 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28619 if test x
$enable_newlib_nano_formatted_io = xyes
; then
28621 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28626 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28627 # syntax that is documented in the ABI specification.
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28629 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28630 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
28631 $as_echo_n "(cached) " >&6
28633 gcc_cv_as_nios2_gotoff_relocation
=no
28634 if test x
$gcc_cv_as != x
; then
28635 $as_echo ' .extern foo
28637 .long %gotoff(foo)' > conftest.s
28638 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28640 (eval $ac_try) 2>&5
28642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28643 test $ac_status = 0; }; }
28645 gcc_cv_as_nios2_gotoff_relocation
=yes
28647 echo "configure: failed program was" >&5
28650 rm -f conftest.o conftest.s
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28654 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28655 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28657 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28664 $as_echo_n "checking assembler for .attribute support... " >&6; }
28665 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28666 $as_echo_n "(cached) " >&6
28668 gcc_cv_as_riscv_attribute
=no
28669 if test x
$gcc_cv_as != x
; then
28670 $as_echo '.attribute stack_align,4' > conftest.s
28671 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28673 (eval $ac_try) 2>&5
28675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28676 test $ac_status = 0; }; }
28678 gcc_cv_as_riscv_attribute
=yes
28680 echo "configure: failed program was" >&5
28683 rm -f conftest.o conftest.s
28686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28687 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28688 if test $gcc_cv_as_riscv_attribute = yes; then
28690 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28695 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28696 if ${gcc_cv_as_riscv_isa_spec+:} false
; then :
28697 $as_echo_n "(cached) " >&6
28699 gcc_cv_as_riscv_isa_spec
=no
28700 if test x
$gcc_cv_as != x
; then
28701 $as_echo '' > conftest.s
28702 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28704 (eval $ac_try) 2>&5
28706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28707 test $ac_status = 0; }; }
28709 gcc_cv_as_riscv_isa_spec
=yes
28711 echo "configure: failed program was" >&5
28714 rm -f conftest.o conftest.s
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28718 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28719 if test $gcc_cv_as_riscv_isa_spec = yes; then
28721 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28726 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28727 if ${gcc_cv_as_riscv_march_zifencei+:} false
; then :
28728 $as_echo_n "(cached) " >&6
28730 gcc_cv_as_riscv_march_zifencei
=no
28731 if test x
$gcc_cv_as != x
; then
28732 $as_echo '' > conftest.s
28733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28735 (eval $ac_try) 2>&5
28737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28738 test $ac_status = 0; }; }
28740 gcc_cv_as_riscv_march_zifencei
=yes
28742 echo "configure: failed program was" >&5
28745 rm -f conftest.o conftest.s
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28749 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28750 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28752 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28759 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28760 if ${gcc_cv_as_loongarch_dtprelword+:} false
; then :
28761 $as_echo_n "(cached) " >&6
28763 gcc_cv_as_loongarch_dtprelword
=no
28764 if test x
$gcc_cv_as != x
; then
28765 $as_echo '' > conftest.s
28766 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28768 (eval $ac_try) 2>&5
28770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28771 test $ac_status = 0; }; }
28773 .section .tdata
,"awT",@progbits
28777 .dtprelword x
+0x8000
28779 echo "configure: failed program was" >&5
28782 rm -f conftest.o conftest.s
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28786 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28788 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28790 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28794 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28795 if ${gcc_cv_as_loongarch_explicit_relocs+:} false
; then :
28796 $as_echo_n "(cached) " >&6
28798 gcc_cv_as_loongarch_explicit_relocs
=no
28799 if test x
$gcc_cv_as != x
; then
28800 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28801 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28803 (eval $ac_try) 2>&5
28805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28806 test $ac_status = 0; }; }
28808 gcc_cv_as_loongarch_explicit_relocs
=yes
28810 echo "configure: failed program was" >&5
28813 rm -f conftest.o conftest.s
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28817 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28818 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28820 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28825 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28826 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false
; then :
28827 $as_echo_n "(cached) " >&6
28829 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=no
28830 if test x
$gcc_cv_as != x
; then
28831 $as_echo '.cfi_startproc
28832 .cfi_personality 0x9b,a
28834 .cfi_endproc' > conftest.s
28835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28837 (eval $ac_try) 2>&5
28839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28840 test $ac_status = 0; }; }
28842 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support
=yes
28844 echo "configure: failed program was" >&5
28847 rm -f conftest.o conftest.s
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
28851 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
28852 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
28854 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28861 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28862 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28863 $as_echo_n "(cached) " >&6
28865 gcc_cv_as_s390_gnu_attribute
=no
28866 if test x
$gcc_cv_as != x
; then
28867 $as_echo '.gnu_attribute 8,1' > conftest.s
28868 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28870 (eval $ac_try) 2>&5
28872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28873 test $ac_status = 0; }; }
28875 gcc_cv_as_s390_gnu_attribute
=yes
28877 echo "configure: failed program was" >&5
28880 rm -f conftest.o conftest.s
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28884 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28885 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28887 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28892 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28893 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28894 $as_echo_n "(cached) " >&6
28896 gcc_cv_as_s390_machine_machinemode
=no
28897 if test x
$gcc_cv_as != x
; then
28898 $as_echo ' .machinemode push
28901 .machine pop' > conftest.s
28902 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28904 (eval $ac_try) 2>&5
28906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28907 test $ac_status = 0; }; }
28909 gcc_cv_as_s390_machine_machinemode
=yes
28911 echo "configure: failed program was" >&5
28914 rm -f conftest.o conftest.s
28917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28918 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28919 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28921 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28926 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28927 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28928 $as_echo_n "(cached) " >&6
28930 gcc_cv_as_s390_architecture_modifiers
=no
28931 if test x
$gcc_cv_as != x
; then
28932 $as_echo ' .machine z13+vx ' > conftest.s
28933 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28935 (eval $ac_try) 2>&5
28937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28938 test $ac_status = 0; }; }
28940 gcc_cv_as_s390_architecture_modifiers
=yes
28942 echo "configure: failed program was" >&5
28945 rm -f conftest.o conftest.s
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28949 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28950 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28952 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28957 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28958 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28959 $as_echo_n "(cached) " >&6
28961 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28962 if test x
$gcc_cv_as != x
; then
28963 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28964 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28966 (eval $ac_try) 2>&5
28968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28969 test $ac_status = 0; }; }
28971 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28973 echo "configure: failed program was" >&5
28976 rm -f conftest.o conftest.s
28979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28980 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28981 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28983 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28988 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28989 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false
; then :
28990 $as_echo_n "(cached) " >&6
28992 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=no
28993 if test x
$gcc_cv_as != x
; then
28994 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28997 (eval $ac_try) 2>&5
28999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29000 test $ac_status = 0; }; }
29002 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13
=yes
29004 echo "configure: failed program was" >&5
29007 rm -f conftest.o conftest.s
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29011 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29012 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29014 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29022 # Mips, LoongArch and HP-UX need the GNU assembler.
29023 # Linux on IA64 might be able to use the Intel assembler.
29026 mips
*-*-* | loongarch
*-*-* |
*-*-hpux* )
29027 if test x
$gas_flag = xyes \
29028 ||
test x
"$host" != x
"$build" \
29029 ||
test ! -x "$gcc_cv_as" \
29030 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
29033 echo "*** This configuration requires the GNU assembler" >&2
29039 # AMD GCN needs the LLVM assembler and linker.
29040 # Test that LLVM is at least 13.0.1.
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29044 $as_echo_n "checking llvm assembler version... " >&6; }
29045 gcc_cv_as_version
="unknown"
29046 if test x
$gcc_cv_as != x
; then
29047 gcc_cv_as_version
=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29048 case "$gcc_cv_as_version" in
29049 13.0.
[1-9]*) ;; # 13.0.1+
29050 13.
[1-9]*) ;; # 13.1+
29051 1[4-9]*) ;; # 14..19
29052 [2-9][0-9]*) ;; # 20..99
29053 [1-9][0-9][0-9]*) ;; # 100+
29054 error
) as_fn_error $?
"cannot determine LLVM version" "$LINENO" 5 ;;
29055 *) as_fn_error $?
"LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29059 $as_echo "$gcc_cv_as_version, ok" >&6; }
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29066 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29067 if ${gcc_cv_as_arm_option_extensions+:} false
; then :
29068 $as_echo_n "(cached) " >&6
29070 gcc_cv_as_arm_option_extensions
=no
29071 if test x
$gcc_cv_as != x
; then
29075 vmov.f32 s0, s1' > conftest.s
29076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29078 (eval $ac_try) 2>&5
29080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29081 test $ac_status = 0; }; }
29083 gcc_cv_as_arm_option_extensions
=yes
29085 echo "configure: failed program was" >&5
29088 rm -f conftest.o conftest.s
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29092 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29093 if test $gcc_cv_as_arm_option_extensions = yes; then
29095 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29101 # ??? Not all targets support dwarf2 debug_line, even within a version
29102 # of gas. Moreover, we need to emit a valid instruction to trigger any
29103 # info to the output file. So, as supported targets are added to gas 2.11,
29104 # add some instruction here to (also) show we expect this might work.
29105 # ??? Once 2.11 is released, probably need to add first known working
29106 # version to the per-target configury.
29107 case "$cpu_type" in
29108 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29109 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29110 | visium | xstormy16 | xtensa
)
29120 if test x
"$insn" != x
; then
29122 .file 1 \"conftest.s\"
29125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29126 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29127 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
29128 $as_echo_n "(cached) " >&6
29130 gcc_cv_as_dwarf2_debug_line
=no
29131 if test x
$gcc_cv_as != x
; then
29132 $as_echo "$conftest_s" > conftest.s
29133 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29135 (eval $ac_try) 2>&5
29137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29138 test $ac_status = 0; }; }
29140 if test x
$gcc_cv_objdump != x \
29141 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
29142 |
grep debug_line
> /dev
/null
2>&1; then
29143 gcc_cv_as_dwarf2_debug_line
=yes
29144 elif test x
$gcc_cv_otool != x \
29145 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
29146 |
grep debug_line
> /dev
/null
2>&1; then
29147 gcc_cv_as_dwarf2_debug_line
=yes
29150 echo "configure: failed program was" >&5
29153 rm -f conftest.o conftest.s
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29157 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29161 # The .debug_line file table must be in the exact order that
29162 # we specified the files, since these indices are also used
29163 # by DW_AT_decl_file. Approximate this test by testing if
29164 # the assembler bitches if the same index is assigned twice.
29165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29166 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29167 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
29168 $as_echo_n "(cached) " >&6
29170 gcc_cv_as_dwarf2_file_buggy
=no
29171 if test x
$gcc_cv_as != x
; then
29172 $as_echo ' .file 1 "foo.s"
29173 .file 1 "bar.s"' > conftest.s
29174 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29176 (eval $ac_try) 2>&5
29178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29179 test $ac_status = 0; }; }
29181 gcc_cv_as_dwarf2_file_buggy
=yes
29183 echo "configure: failed program was" >&5
29186 rm -f conftest.o conftest.s
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29190 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29194 if test $gcc_cv_as_dwarf2_debug_line = yes \
29195 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
29197 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29200 if test $gcc_cv_as_leb128 = yes; then
29202 .file 1 \"conftest.s\"
29203 .loc 1 3 0 view .LVU1
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29210 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29211 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
29212 $as_echo_n "(cached) " >&6
29214 gcc_cv_as_dwarf2_debug_view
=no
29215 if test x
$gcc_cv_as != x
; then
29216 $as_echo "$conftest_s" > conftest.s
29217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29219 (eval $ac_try) 2>&5
29221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29222 test $ac_status = 0; }; }
29224 gcc_cv_as_dwarf2_debug_view
=yes
29226 echo "configure: failed program was" >&5
29229 rm -f conftest.o conftest.s
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29233 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29234 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29236 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29244 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29245 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
29246 $as_echo_n "(cached) " >&6
29248 gcc_cv_as_gdwarf2_flag
=no
29249 if test x
$gcc_cv_as != x
; then
29250 $as_echo "$insn" > conftest.s
29251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29253 (eval $ac_try) 2>&5
29255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29256 test $ac_status = 0; }; }
29258 gcc_cv_as_gdwarf2_flag
=yes
29260 echo "configure: failed program was" >&5
29263 rm -f conftest.o conftest.s
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29267 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29268 if test $gcc_cv_as_gdwarf2_flag = yes; then
29270 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29276 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29277 if ${gcc_cv_as_gdwarf_5_flag+:} false
; then :
29278 $as_echo_n "(cached) " >&6
29280 gcc_cv_as_gdwarf_5_flag
=no
29281 if test x
$gcc_cv_as != x
; then
29282 $as_echo "$insn" > conftest.s
29283 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29285 (eval $ac_try) 2>&5
29287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29288 test $ac_status = 0; }; }
29290 if test x
$gcc_cv_objdump != x \
29291 && $gcc_cv_objdump -Wi conftest.o
2>&1 \
29292 |
grep DW_TAG_compile_unit
> /dev
/null
2>&1; then
29293 gcc_cv_as_gdwarf_5_flag
=yes;
29296 echo "configure: failed program was" >&5
29299 rm -f conftest.o conftest.s
29302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29303 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29304 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29306 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29312 win32 | pe | cygwin
* | mingw32
*)
29313 section_flags
=\"dr
\"
29314 function_type
=".def foo; .scl 2; .type 32; .endef"
29317 section_flags
=\"\",%progbits
29318 function_type
=".type foo, %function"
29319 function_size
=".size foo, .-foo";;
29321 dwarf4_debug_info_size
=0x46
29322 dwarf4_high_pc_form
=7
29323 dwarf4_debug_aranges_size
=0x2c
29325 for dwarf4_addr_size
in 8 4; do
29341 .section .debug_info,$section_flags
29343 .4byte $dwarf4_debug_info_size
29345 .4byte .Ldebug_abbrev0
29346 .byte 0x$dwarf4_addr_size
29348 .ascii \"GNU C17\\0\"
29352 .${dwarf4_addr_size}byte .Ltext0
29353 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29354 .4byte .Ldebug_line0
29360 .${dwarf4_addr_size}byte .LFB0
29361 .${dwarf4_addr_size}byte .LFE0-.LFB0
29365 .section .debug_abbrev,$section_flags
29381 .byte 0x$dwarf4_high_pc_form
29402 .byte 0x$dwarf4_high_pc_form
29408 .section .debug_aranges,$section_flags
29409 .4byte $dwarf4_debug_aranges_size
29411 .4byte .Ldebug_info0
29416 .${dwarf4_addr_size}byte .Ltext0
29417 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29418 .${dwarf4_addr_size}byte 0
29419 .${dwarf4_addr_size}byte 0
29420 .section .debug_line,$section_flags
29422 .4byte .LELT0-.LSLT0
29425 .4byte .LELTP0-.LASLTP0
29453 .byte 0x$dwarf4_line_sz
29455 .${dwarf4_addr_size}byte .LM1
29460 .byte 0x$dwarf4_line_sz
29462 .${dwarf4_addr_size}byte .LM2
29467 .byte 0x$dwarf4_line_sz
29469 .${dwarf4_addr_size}byte .Letext0
29474 .section .debug_str,$section_flags
29478 if test $dwarf4_addr_size = 4; then
29479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29480 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29481 if ${gcc_cv_as_debug_line_32_flag+:} false
; then :
29482 $as_echo_n "(cached) " >&6
29484 gcc_cv_as_debug_line_32_flag
=no
29485 if test x
$gcc_cv_as != x
; then
29486 $as_echo "$conftest_s" > conftest.s
29487 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29489 (eval $ac_try) 2>&5
29491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29492 test $ac_status = 0; }; }
29494 gcc_cv_as_debug_line_32_flag
=yes
29496 echo "configure: failed program was" >&5
29499 rm -f conftest.o conftest.s
29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29503 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29504 if test $gcc_cv_as_debug_line_32_flag = yes; then
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29510 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29511 if ${gcc_cv_as_debug_line_64_flag+:} false
; then :
29512 $as_echo_n "(cached) " >&6
29514 gcc_cv_as_debug_line_64_flag
=no
29515 if test x
$gcc_cv_as != x
; then
29516 $as_echo "$conftest_s" > conftest.s
29517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29519 (eval $ac_try) 2>&5
29521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29522 test $ac_status = 0; }; }
29524 gcc_cv_as_debug_line_64_flag
=yes
29526 echo "configure: failed program was" >&5
29529 rm -f conftest.o conftest.s
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29533 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29534 if test $gcc_cv_as_debug_line_64_flag = yes; then
29539 if test $dwarf4_success = yes; then
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29542 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29543 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false
; then :
29544 $as_echo_n "(cached) " >&6
29546 gcc_cv_as_dwarf_4_debug_line_flag
=no
29547 if test x
$gcc_cv_as != x
; then
29548 $as_echo "$conftest_s" > conftest.s
29549 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29551 (eval $ac_try) 2>&5
29553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29554 test $ac_status = 0; }; }
29556 gcc_cv_as_dwarf_4_debug_line_flag
=yes
29558 echo "configure: failed program was" >&5
29561 rm -f conftest.o conftest.s
29564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29565 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29566 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29572 dwarf4_debug_info_size
=0x36
29573 dwarf4_high_pc_form
=6
29574 dwarf4_debug_aranges_size
=0x1c
29578 if test $dwarf4_success = yes; then
29596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29597 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29598 if ${gcc_cv_as_dwarf_4_app_flag+:} false
; then :
29599 $as_echo_n "(cached) " >&6
29601 gcc_cv_as_dwarf_4_app_flag
=no
29602 if test x
$gcc_cv_as != x
; then
29603 $as_echo "$conftest_s" > conftest.s
29604 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29606 (eval $ac_try) 2>&5
29608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29609 test $ac_status = 0; }; }
29611 gcc_cv_as_dwarf_4_app_flag
=yes
29613 echo "configure: failed program was" >&5
29616 rm -f conftest.o conftest.s
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29620 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29621 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29627 if test $dwarf4_success = yes; then
29637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29638 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29639 if ${gcc_cv_as_working_gdwarf_n_flag+:} false
; then :
29640 $as_echo_n "(cached) " >&6
29642 gcc_cv_as_working_gdwarf_n_flag
=no
29643 if test x
$gcc_cv_as != x
; then
29644 $as_echo "$conftest_s" > conftest.s
29645 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29647 (eval $ac_try) 2>&5
29649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29650 test $ac_status = 0; }; }
29652 if test x
$gcc_cv_objdump != x \
29653 && $gcc_cv_objdump -W conftest.o
2>&1 \
29654 |
grep conftest.s
> /dev
/null
2>&1; then
29655 gcc_cv_as_working_gdwarf_n_flag
=no
29657 gcc_cv_as_working_gdwarf_n_flag
=yes
29660 echo "configure: failed program was" >&5
29663 rm -f conftest.o conftest.s
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29667 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29670 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29672 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29678 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29679 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
29680 $as_echo_n "(cached) " >&6
29682 gcc_cv_as_debug_prefix_map_flag
=no
29683 if test x
$gcc_cv_as != x
; then
29684 $as_echo "$insn" > conftest.s
29685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29687 (eval $ac_try) 2>&5
29689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29690 test $ac_status = 0; }; }
29692 gcc_cv_as_debug_prefix_map_flag
=yes
29694 echo "configure: failed program was" >&5
29697 rm -f conftest.o conftest.s
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29701 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29702 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29704 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29711 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29712 if ${gcc_cv_as_compress_debug+:} false
; then :
29713 $as_echo_n "(cached) " >&6
29715 gcc_cv_as_compress_debug
=no
29716 if test x
$gcc_cv_as != x
; then
29717 $as_echo '' > conftest.s
29718 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29720 (eval $ac_try) 2>&5
29722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29723 test $ac_status = 0; }; }
29725 # gas compiled without zlib cannot compress debug sections and warns
29726 # about it, but still exits successfully. So check for this, too.
29727 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
29729 gcc_cv_as_compress_debug
=0
29730 elif $gcc_cv_as --compress-debug-sections=zlib
-o conftest.o conftest.s
> /dev
/null
2>&1
29732 gcc_cv_as_compress_debug
=1
29733 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
29734 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
29735 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29736 if $gcc_cv_as --compress-debug-sections=zstd
-o conftest.o conftest.s
> /dev
/null
2>&1
29738 gcc_cv_as_compress_debug
=2
29741 gcc_cv_as_compress_debug
=0
29744 echo "configure: failed program was" >&5
29747 rm -f conftest.o conftest.s
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29751 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29755 cat >>confdefs.h
<<_ACEOF
29756 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29760 cat >>confdefs.h
<<_ACEOF
29761 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29765 cat >>confdefs.h
<<_ACEOF
29766 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29771 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29772 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
29773 $as_echo_n "(cached) " >&6
29775 gcc_cv_as_lcomm_with_alignment
=no
29776 if test x
$gcc_cv_as != x
; then
29777 $as_echo '.lcomm bar,4,16' > conftest.s
29778 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29780 (eval $ac_try) 2>&5
29782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29783 test $ac_status = 0; }; }
29785 gcc_cv_as_lcomm_with_alignment
=yes
29787 echo "configure: failed program was" >&5
29790 rm -f conftest.o conftest.s
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29794 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29795 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29797 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29802 if test x
$with_sysroot = x
&& test x
$host = x
$target \
29803 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29804 && test "$prefix" != "NONE"; then
29806 cat >>confdefs.h
<<_ACEOF
29807 #define PREFIX_INCLUDE_DIR "$prefix/include"
29812 # Determine the version of glibc, if any, used on the target.
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29814 $as_echo_n "checking for target glibc version... " >&6; }
29816 # Check whether --with-glibc-version was given.
29817 if test "${with_glibc_version+set}" = set; then :
29818 withval
=$with_glibc_version;
29819 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29820 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29821 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29823 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
29827 glibc_version_major
=0
29828 glibc_version_minor
=0
29829 if test -f $target_header_dir/features.h \
29830 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29831 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29832 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29833 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29838 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29840 cat >>confdefs.h
<<_ACEOF
29841 #define TARGET_GLIBC_MAJOR $glibc_version_major
29845 cat >>confdefs.h
<<_ACEOF
29846 #define TARGET_GLIBC_MINOR $glibc_version_minor
29850 # Check whether --enable-gnu-unique-object was given.
29851 if test "${enable_gnu_unique_object+set}" = set; then :
29852 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29854 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29855 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29859 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29860 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
29861 $as_echo_n "(cached) " >&6
29863 gcc_cv_as_gnu_unique_object
=no
29864 if test x
$gcc_cv_as != x
; then
29865 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29868 (eval $ac_try) 2>&5
29870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29871 test $ac_status = 0; }; }
29873 gcc_cv_as_gnu_unique_object
=yes
29875 echo "configure: failed program was" >&5
29878 rm -f conftest.o conftest.s
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29882 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29883 if test $gcc_cv_as_gnu_unique_object = yes; then
29884 # We need to unquote above to to use the definition from config.gcc.
29885 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29887 if test $glibc_version_major -gt 2 \
29888 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29889 enable_gnu_unique_object
=yes
29896 if test x
$enable_gnu_unique_object = xyes
; then
29898 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29903 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29904 if ${gcc_cv_as_line_zero+:} false
; then :
29905 $as_echo_n "(cached) " >&6
29907 gcc_cv_as_line_zero
=no
29908 if test "x$gcc_cv_as" != x
; then
29909 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29910 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29912 (eval $ac_try) 2>&5
29914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29915 test $ac_status = 0; }; } &&
29916 test "x`cat conftest.out`" = x
29918 gcc_cv_as_line_zero
=yes
29920 echo "configure: failed program was" >&5
29922 echo "configure: error output was" >&5
29923 cat conftest.out
>&5
29925 rm -f conftest.o conftest.s conftest.out
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29929 $as_echo "$gcc_cv_as_line_zero" >&6; }
29930 if test "x$gcc_cv_as_line_zero" = xyes
; then
29932 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29937 $as_echo_n "checking support for thin archives... " >&6; }
29938 thin_archive_support
=no
29939 echo 'int main (void) { return 0; }' > conftest.c
29940 if ($AR --version |
sed 1q |
grep "GNU ar" \
29941 && $CC $CFLAGS -c conftest.c \
29942 && $AR rcT conftest.a conftest.o \
29943 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
29944 thin_archive_support
=yes
29946 rm -f conftest.c conftest.o conftest.a conftest
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29948 $as_echo "$thin_archive_support" >&6; }
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29952 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29953 gcc_cv_ld_eh_frame_hdr
=no
29954 if test $in_tree_ld = yes ; then
29955 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 \
29956 && test $in_tree_ld_is_elf = yes; then
29957 gcc_cv_ld_eh_frame_hdr
=yes
29959 elif test x
$gcc_cv_ld != x
; then
29960 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29961 # Check if linker supports --eh-frame-hdr option
29962 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
29963 gcc_cv_ld_eh_frame_hdr
=yes
29968 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29969 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
29970 gcc_cv_ld_eh_frame_hdr
=yes
29977 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
29979 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29983 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29986 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29987 gcc_cv_ld_eh_frame_ciev3
=no
29988 if test $in_tree_ld = yes ; then
29989 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 \
29990 && test $in_tree_ld_is_elf = yes; then
29991 gcc_cv_ld_eh_frame_ciev3
=yes
29993 elif test x
$gcc_cv_ld != x
; then
29994 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29995 gcc_cv_ld_eh_frame_ciev3
=yes
29996 if test 0"$ld_date" -lt 20040513; then
29997 if test -n "$ld_date"; then
29998 # If there was date string, but was earlier than 2004-05-13, fail
29999 gcc_cv_ld_eh_frame_ciev3
=no
30000 elif test "$ld_vers_major" -lt 2; then
30001 gcc_cv_ld_eh_frame_ciev3
=no
30002 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30003 gcc_cv_ld_eh_frame_ciev3
=no
30009 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30010 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
30011 gcc_cv_ld_eh_frame_ciev3
=yes
30018 cat >>confdefs.h
<<_ACEOF
30019 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30023 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30026 $as_echo_n "checking linker position independent executable support... " >&6; }
30028 if test $in_tree_ld = yes ; then
30030 # Full PIE support on Solaris was only introduced in gld 2.26.
30031 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
30032 *) gcc_gld_pie_min_version
=15 ;;
30034 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 \
30035 && test $in_tree_ld_is_elf = yes; then
30038 elif test x
$gcc_cv_ld != x
; then
30039 # Check if linker supports -pie option
30040 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
30044 if echo "$ld_ver" |
grep GNU
> /dev
/null \
30045 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30052 *-*-solaris2.1
[1-9]*)
30053 # Solaris 11.3 added PIE support.
30054 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
30061 if test x
"$gcc_cv_ld_pie" = xyes
; then
30063 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30067 $as_echo "$gcc_cv_ld_pie" >&6; }
30069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30070 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30071 gcc_cv_ld_pie_copyreloc
=no
30072 if test $gcc_cv_ld_pie = yes ; then
30073 if test $in_tree_ld = yes ; then
30074 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
30075 gcc_cv_ld_pie_copyreloc
=yes
30077 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30078 # Check if linker supports -pie option with copy reloc
30080 i?
86-*-linux* | x86_64-
*-linux*)
30081 cat > conftest1.s
<<EOF
30084 .type a_glob, @object
30089 cat > conftest2.s
<<EOF
30092 .type main, @function
30094 movl %eax, a_glob(%rip)
30097 .section .data.rel,"aw",@progbits
30102 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30103 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
30104 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30105 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
30106 gcc_cv_ld_pie_copyreloc
=yes
30108 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30114 cat >>confdefs.h
<<_ACEOF
30115 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30119 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30122 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30123 gcc_cv_ld_eh_gc_sections
=no
30124 if test $in_tree_ld = yes ; then
30125 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 \
30126 && test $in_tree_ld_is_elf = yes; then
30127 gcc_cv_ld_eh_gc_sections
=yes
30129 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
30130 cat > conftest.s
<<EOF
30133 .type _start, @function
30136 .size _start, .-_start
30137 .section .text.foo,"ax",@progbits
30138 .type foo, @function
30142 .section .gcc_except_table.foo,"a",@progbits
30145 .section .eh_frame,"a",@progbits
30148 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30149 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30150 |
grep "gc-sections option ignored" > /dev
/null
; then
30151 gcc_cv_ld_eh_gc_sections
=no
30152 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30153 |
grep gcc_except_table
> /dev
/null
; then
30154 gcc_cv_ld_eh_gc_sections
=yes
30155 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30156 if test x
$gcc_cv_as_comdat_group != xyes
; then
30157 gcc_cv_ld_eh_gc_sections
=no
30158 cat > conftest.s
<<EOF
30161 .type _start, @function
30164 .size _start, .-_start
30165 .section .gnu.linkonce.t.foo,"ax",@progbits
30166 .type foo, @function
30170 .section .gcc_except_table.foo,"a",@progbits
30173 .section .eh_frame,"a",@progbits
30176 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30177 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30178 |
grep "gc-sections option ignored" > /dev
/null
; then
30179 gcc_cv_ld_eh_gc_sections
=no
30180 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30181 |
grep gcc_except_table
> /dev
/null
; then
30182 gcc_cv_ld_eh_gc_sections
=yes
30188 rm -f conftest.s conftest.o conftest
30192 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30193 gcc_cv_ld_eh_gc_sections
=no
30196 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
30198 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30202 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30205 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30206 gcc_cv_ld_eh_gc_sections_bug
=no
30207 if test $in_tree_ld = yes ; then
30208 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 \
30209 && test $in_tree_ld_is_elf = yes; then
30210 gcc_cv_ld_eh_gc_sections_bug
=yes
30212 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
30213 gcc_cv_ld_eh_gc_sections_bug
=yes
30214 cat > conftest.s
<<EOF
30217 .type _start, @function
30220 .size _start, .-_start
30221 .section .text.startup.foo,"ax",@progbits
30222 .type foo, @function
30226 .section .gcc_except_table.foo,"a",@progbits
30229 .section .eh_frame,"a",@progbits
30232 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
30233 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
30234 |
grep "gc-sections option ignored" > /dev
/null
; then
30236 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
30237 |
grep gcc_except_table
> /dev
/null
; then
30238 gcc_cv_ld_eh_gc_sections_bug
=no
30241 rm -f conftest.s conftest.o conftest
30243 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
30245 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30249 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30252 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30253 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30254 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev
/null
; then
30255 gcc_cv_ld_compress_debug
=1
30256 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
30257 # Detect zstd debug section compression support
30258 if $gcc_cv_ld --help 2>&1 |
grep -- '--compress-debug-sections.*\<zstd\>' > /dev
/null
; then
30259 gcc_cv_ld_compress_debug
=2
30262 case "${target}" in
30264 # Introduced in Solaris 11.2.
30265 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
30266 gcc_cv_ld_compress_debug
=1
30267 gcc_cv_ld_compress_debug_option
="-z compress-sections"
30269 gcc_cv_ld_compress_debug
=0
30273 # Assume linkers other than GNU ld don't support compessed debug
30275 gcc_cv_ld_compress_debug
=0
30280 cat >>confdefs.h
<<_ACEOF
30281 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30285 cat >>confdefs.h
<<_ACEOF
30286 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30290 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30292 if test x
"$ld64_flag" = x
"yes"; then
30294 # Set defaults for possibly untestable items.
30295 gcc_cv_ld64_export_dynamic
=0
30296 gcc_cv_ld64_platform_version
=0
30298 if test "$build" = "$host"; then
30304 # On Darwin, because of FAT library support, it is often possible to execute
30305 # exes from compatible archs even when the host differs from the build system.
30306 case "$build","$host" in
30307 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
30308 darwin_try_test
=1;;
30312 # If the configurer specified a minimum ld64 version to be supported, then use
30313 # that to determine feature support.
30314 if test x
"${gcc_cv_ld64_version}" != x
; then
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30316 $as_echo_n "checking ld64 specified version... " >&6; }
30317 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30319 $as_echo "$gcc_cv_ld64_major" >&6; }
30320 if test "$gcc_cv_ld64_major" -ge 236; then
30321 gcc_cv_ld64_export_dynamic
=1
30323 if test "$gcc_cv_ld64_major" -ge 512; then
30324 gcc_cv_ld64_platform_version
=1
30326 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30327 # If the version was not specified, try to find it.
30328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30329 $as_echo_n "checking linker version... " >&6; }
30330 if test x
"${gcc_cv_ld64_version}" = x
; then
30331 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30334 $as_echo "$gcc_cv_ld64_version" >&6; }
30336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30337 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30338 gcc_cv_ld64_export_dynamic
=1
30339 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30340 gcc_cv_ld64_export_dynamic
=0
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30343 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30346 $as_echo_n "checking linker for -platform_version support... " >&6; }
30347 gcc_cv_ld64_platform_version
=1
30348 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
30349 gcc_cv_ld64_platform_version
=0
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30352 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30355 if test x
"${gcc_cv_ld64_version}" != x
; then
30357 cat >>confdefs.h
<<_ACEOF
30358 #define LD64_VERSION "${gcc_cv_ld64_version}"
30364 cat >>confdefs.h
<<_ACEOF
30365 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30370 cat >>confdefs.h
<<_ACEOF
30371 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30376 if test x
"$dsymutil_flag" = x
"yes"; then
30378 # If the user specified a dsymutil path, then we will already have the
30379 # version string, otherwise, pick it up.
30380 if test x
"$gcc_cv_dsymutil" = x
; then
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30382 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30383 dsymutil_vers
="tool unspecified"
30384 elif test x
"$dsymutil_vers" = x
; then
30385 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30388 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30390 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30391 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
30392 dsymutil_kind
=DWARFUTILS
30393 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30394 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
30395 dsymutil_kind
=CLANG
30396 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30397 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
30399 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30401 dsymutil_kind
=UNKNOWN
30402 dsymutil_vers
="0.0"
30404 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30405 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30406 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30407 if test x
"${dsymutil_minor}" = x
; then
30410 if test x
"${dsymutil_tiny}" = x
; then
30414 cat >>confdefs.h
<<_ACEOF
30415 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30419 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30423 win32 | pe | cygwin* | mingw32*)
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support
" >&5
30425 $as_echo_n "checking broken PE linker dwarf5 support...
" >&6; }
30426 gcc_cv_ld_broken_pe_dwarf5=yes
30427 if test $in_tree_ld = yes ; then
30428 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30429 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30430 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30431 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30432 gcc_cv_ld_broken_pe_dwarf5=no
30435 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30436 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30437 gcc_cv_ld_broken_pe_dwarf5=no
30440 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30442 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30446 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30449 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30450 gcc_cv_ld_disable_dynamicbase
=no
30451 if test $in_tree_ld = yes; then
30452 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 \
30453 gcc_cv_ld_disable_dynamicbase
=yes
30456 if $gcc_cv_ld --help 2>&1 |
grep -q 'disable\-]dynamicbase' > /dev
/null
; then
30457 gcc_cv_ld_disable_dynamicbase
=yes
30460 if test x
"$gcc_cv_ld_disable_dynamicbase" = xyes
; then
30462 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30466 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30475 $as_echo_n "checking linker --as-needed support... " >&6; }
30476 if ${gcc_cv_ld_as_needed+:} false
; then :
30477 $as_echo_n "(cached) " >&6
30479 gcc_cv_ld_as_needed
=no
30480 gcc_cv_ld_as_needed_option
='--as-needed'
30481 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
30482 if test $in_tree_ld = yes ; then
30483 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 \
30484 && test $in_tree_ld_is_elf = yes; then
30485 gcc_cv_ld_as_needed
=yes
30486 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30487 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30488 gcc_cv_ld_no_as_needed_option
='--pop-state'
30491 elif test x
$gcc_cv_ld != x
; then
30492 # Check if linker supports --as-needed and --no-as-needed options
30493 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
30494 gcc_cv_ld_as_needed
=yes
30495 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
30496 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
30497 && echo "$ld_ver" |
grep GNU
> /dev
/null \
30498 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30499 # Use these options only when both ld.bfd and ld.gold support
30500 # --push-state/--pop-state, which unfortunately wasn't added
30501 # at the same time.
30502 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
30503 gcc_cv_ld_no_as_needed_option
='--pop-state'
30506 case "$target:$gnu_ld" in
30508 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30510 gcc_cv_ld_as_needed
=yes
30511 gcc_cv_ld_as_needed_option
="-z ignore"
30512 gcc_cv_ld_no_as_needed_option
="-z record"
30516 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30517 # dl_iterate_phdr, i.e. since Solaris 11.
30519 *-*-solaris2.1
[1-9]*)
30521 i?
86-*-* | x86_64-
*-*)
30522 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
30523 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30524 gcc_cv_ld_as_needed
=no
30530 gcc_cv_ld_as_needed
=no
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30536 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30537 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
30539 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30542 cat >>confdefs.h
<<_ACEOF
30543 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30547 cat >>confdefs.h
<<_ACEOF
30548 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30554 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30555 saved_LDFLAGS
="$LDFLAGS"
30556 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
30557 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30559 /* end confdefs.h. */
30560 int main(void) {return 0;}
30562 if ac_fn_cxx_try_link
"$LINENO"; then :
30563 gcc_cv_ld_clearcap
=yes; break
30565 gcc_cv_ld_clearcap
=no
30567 rm -f core conftest.err conftest.
$ac_objext \
30568 conftest
$ac_exeext conftest.
$ac_ext
30570 LDFLAGS
="$saved_LDFLAGS"
30571 if test "x$gcc_cv_ld_clearcap" = xyes
; then
30573 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30575 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30579 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30585 emul_name
="-melf32lppc"
30588 emul_name
="-melf32ppc"
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30592 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30593 if ${gcc_cv_ld_ppc_attr+:} false
; then :
30594 $as_echo_n "(cached) " >&6
30596 gcc_cv_ld_ppc_attr
=no
30597 if test x
"$ld_is_gold" = xyes
; then
30598 gcc_cv_ld_ppc_attr
=yes
30599 elif test $in_tree_ld = yes ; then
30600 if test "$gcc_cv_gld_major_version" -eq 2 \
30601 -a "$gcc_cv_gld_minor_version" -ge 28 \
30602 -o "$gcc_cv_gld_major_version" -gt 2; then
30603 gcc_cv_ld_ppc_attr
=yes
30605 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30606 # check that merging the long double .gnu_attribute doesn't warn
30607 cat > conftest1.s
<<EOF
30610 cat > conftest2.s
<<EOF
30613 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30614 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30615 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
30616 && test ! -s conftest.err
; then
30617 gcc_cv_ld_ppc_attr
=yes
30619 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30624 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30625 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
30627 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30633 case "$target:$tm_file" in
30634 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
30637 emul_name
="-melf64lppc"
30640 emul_name
="-melf64ppc"
30643 emul_name
="-melf64lppc_fbsd"
30646 emul_name
="-melf64ppc_fbsd"
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30650 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30651 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
30652 $as_echo_n "(cached) " >&6
30654 gcc_cv_ld_no_dot_syms
=no
30655 if test x
"$ld_is_gold" = xyes
; then
30656 gcc_cv_ld_no_dot_syms
=yes
30657 elif test $in_tree_ld = yes ; then
30658 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
30659 gcc_cv_ld_no_dot_syms
=yes
30661 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30662 cat > conftest1.s
<<EOF
30666 cat > conftest2.s
<<EOF
30667 .section ".opd","aw"
30670 .type foo,@function
30672 .quad .LEfoo,.TOC.@tocbase,0
30678 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
30679 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
30680 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
30681 gcc_cv_ld_no_dot_syms
=yes
30683 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30688 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30689 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
30691 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30696 $as_echo_n "checking linker large toc support... " >&6; }
30697 if ${gcc_cv_ld_large_toc+:} false
; then :
30698 $as_echo_n "(cached) " >&6
30700 gcc_cv_ld_large_toc
=no
30701 if test x
"$ld_is_gold" = xyes
; then
30702 gcc_cv_ld_large_toc
=yes
30703 elif test $in_tree_ld = yes ; then
30704 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
30705 gcc_cv_ld_large_toc
=yes
30707 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
30708 cat > conftest.s
<<EOF
30709 .section ".tbss","awT",@nobits
30715 addis 9,13,ie0@got@tprel@ha
30716 ld 9,ie0@got@tprel@l(9)
30718 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30719 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
30720 gcc_cv_ld_large_toc
=yes
30722 rm -f conftest conftest.o conftest.s
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30727 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30728 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30730 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30735 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30736 if ${gcc_cv_ld_toc_align+:} false
; then :
30737 $as_echo_n "(cached) " >&6
30739 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
30740 cat > conftest.s
<<EOF
30745 .section .data.rel.ro,"aw",@progbits
30750 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
30751 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
30752 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)) }'`
30754 rm -f conftest conftest.o conftest.s
30758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30759 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30760 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30762 cat >>confdefs.h
<<_ACEOF
30763 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30773 $as_echo_n "checking linker large toc support... " >&6; }
30774 if ${gcc_cv_ld_large_toc+:} false
; then :
30775 $as_echo_n "(cached) " >&6
30777 gcc_cv_ld_large_toc
=no
30778 if test x
$gcc_cv_as != x
; then
30779 cat > conftest.s
<<EOF
30789 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
30790 gcc_cv_ld_large_toc
=yes
30792 rm -f conftest conftest.o conftest.s
30796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30797 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30798 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
30800 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30807 $as_echo_n "checking linker --build-id support... " >&6; }
30808 if ${gcc_cv_ld_buildid+:} false
; then :
30809 $as_echo_n "(cached) " >&6
30811 gcc_cv_ld_buildid
=no
30812 if test $in_tree_ld = yes ; then
30813 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30814 "$gcc_cv_gld_minor_version" -ge 18 -o \
30815 "$gcc_cv_gld_major_version" -gt 2 \
30816 && test $in_tree_ld_is_elf = yes; then
30817 gcc_cv_ld_buildid
=yes
30819 elif test x
$gcc_cv_ld != x
; then
30820 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
30821 gcc_cv_ld_buildid
=yes
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30826 $as_echo "$gcc_cv_ld_buildid" >&6; }
30827 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30829 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30833 # Check whether --enable-linker-build-id was given.
30834 if test "${enable_linker_build_id+set}" = set; then :
30835 enableval
=$enable_linker_build_id;
30837 enable_linker_build_id
=no
30841 if test x
"$enable_linker_build_id" = xyes
; then
30842 if test x
"$gcc_cv_ld_buildid" = xyes
; then
30844 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30848 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30852 # In binutils 2.21, GNU ld gained support for new emulations fully
30853 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30855 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30856 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
30857 $as_echo_n "(cached) " >&6
30859 gcc_cv_ld_sol2_emulation
=no
30860 if test $in_tree_ld = yes ; then
30861 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30862 "$gcc_cv_gld_minor_version" -ge 21 -o \
30863 "$gcc_cv_gld_major_version" -gt 2 \
30864 && test $in_tree_ld_is_elf = yes; then
30865 gcc_cv_ld_sol2_emulation
=yes
30867 elif test x
$gcc_cv_ld != x
; then
30868 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
30869 grep _sol2
> /dev
/null
; then
30870 gcc_cv_ld_sol2_emulation
=yes
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30875 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30876 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
30878 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30883 $as_echo_n "checking linker --sysroot support... " >&6; }
30884 if ${gcc_cv_ld_sysroot+:} false
; then :
30885 $as_echo_n "(cached) " >&6
30887 gcc_cv_ld_sysroot
=no
30888 if test $in_tree_ld = yes ; then
30889 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
30890 gcc_cv_ld_sysroot
=yes
30892 elif test x
$gcc_cv_ld != x
; then
30893 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
30894 gcc_cv_ld_sysroot
=yes
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30899 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30900 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
30902 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30908 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30910 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30911 if ${gcc_cv_solaris_crts+:} false
; then :
30912 $as_echo_n "(cached) " >&6
30914 gcc_cv_solaris_crts
=no
30915 if test x
$host != x
$target; then
30916 if test "x$with_sysroot" = xyes
; then
30917 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
30919 target_sysroot
="${with_sysroot}"
30922 target_libdir
="$target_sysroot/usr/lib"
30923 # At the time they were added, gcrt1.o became a symlink for backwards
30924 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30926 i?
86-*-solaris2* | x86_64-
*-solaris2*)
30927 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
30929 sparc
*-*-solaris2*)
30930 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
30934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30935 $as_echo "$gcc_cv_solaris_crts" >&6; }
30938 if test x
$gcc_cv_solaris_crts = xyes
; then
30940 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30944 # Check whether --enable-libssp was given.
30945 if test "${enable_libssp+set}" = set; then :
30946 enableval
=$enable_libssp; case "${enableval}" in
30950 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
30956 # Test for stack protector support in target C library.
30957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30958 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30959 if ${gcc_cv_libc_provides_ssp+:} false
; then :
30960 $as_echo_n "(cached) " >&6
30962 gcc_cv_libc_provides_ssp
=no
30963 if test "x$enable_libssp" = "xno"; then
30964 gcc_cv_libc_provides_ssp
=yes
30965 elif test "x$enable_libssp" = "xyes"; then
30966 gcc_cv_libc_provides_ssp
=no
30970 # All versions of musl provide stack protector
30971 gcc_cv_libc_provides_ssp
=yes;;
30972 *-*-linux* |
*-*-kfreebsd*-gnu)
30973 # glibc 2.4 and later provides __stack_chk_fail and
30974 # either __stack_chk_guard, or TLS access to stack guard canary.
30976 if test $glibc_version_major -gt 2 \
30977 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30978 gcc_cv_libc_provides_ssp
=yes
30981 if test -f $target_header_dir/features.h \
30982 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30983 $target_header_dir/features.h
> /dev
/null
; then
30984 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30985 $target_header_dir/features.h
> /dev
/null
&& \
30986 test -f $target_header_dir/bits
/uClibc_config.h
&& \
30987 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30988 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
30989 gcc_cv_libc_provides_ssp
=yes
30991 # all versions of Bionic support stack protector
30992 elif test -f $target_header_dir/sys
/cdefs.h \
30993 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30994 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
30995 gcc_cv_libc_provides_ssp
=yes
31000 # Avoid complicated tests (see
31001 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31002 # simply assert that glibc does provide this, which is true for all
31003 # realistically usable GNU/Hurd configurations.
31004 # All supported versions of musl provide it as well
31005 gcc_cv_libc_provides_ssp
=yes;;
31006 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
31007 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31008 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
31009 gcc_cv_libc_provides_ssp
=yes
31011 echo "no __stack_chk_fail on this target"
31015 *) gcc_cv_libc_provides_ssp
=no
;;
31019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31020 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31022 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31024 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31028 # Check whether --enable-default-ssp was given.
31029 # Check whether --enable-default-ssp was given.
31030 if test "${enable_default_ssp+set}" = set; then :
31031 enableval
=$enable_default_ssp;
31032 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
31034 ia64
*-*-*) enable_default_ssp
=no
;;
31035 *) enable_default_ssp
=$enableval ;;
31038 enable_default_ssp
=no
31041 enable_default_ssp
=no
31044 if test x
$enable_default_ssp = xyes
; then
31046 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31051 # Test for <sys/sdt.h> on the target.
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31054 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31056 if test -f $target_header_dir/sys
/sdt.h
; then
31059 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31063 $as_echo "$have_sys_sdt_h" >&6; }
31065 # Check if TFmode long double should be used by default or not.
31066 # Some glibc targets used DFmode long double, but with glibc 2.4
31067 # and later they can use TFmode.
31069 powerpc
*-*-linux* | \
31070 sparc
*-*-linux* | \
31074 # Check whether --with-long-double-128 was given.
31075 if test "${with_long_double_128+set}" = set; then :
31076 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
31080 s390
*-*-linux-musl*)
31081 gcc_cv_target_ldbl128
=yes
31083 powerpc
*-*-linux-musl*)
31084 gcc_cv_target_ldbl128
=no
31088 if test $glibc_version_major -gt 2 \
31089 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31090 gcc_cv_target_ldbl128
=yes
31093 gcc_cv_target_ldbl128
=no
31094 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31095 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
31096 && gcc_cv_target_ldbl128
=yes
31107 if test x
$gcc_cv_target_ldbl128 = xyes
; then
31109 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31113 # Check if TFmode long double target should use the IBM extended double or IEEE
31114 # 128-bit floating point formats if long doubles are 128-bits long. The long
31115 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31116 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31119 # Check whether --with-long-double-format was given.
31120 if test "${with_long_double_format+set}" = set; then :
31121 withval
=$with_long_double_format;
31122 case "$target:$with_long_double_format" in
31123 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
31126 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
31127 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31128 case "$with_cpu" in
31129 power7 | power8 | power9 | power1
*)
31133 as_fn_error $?
"Configuration option --with-long-double-format is only \
31134 supported if the default cpu is power7 or newer" "$LINENO" 5
31135 with_long_double_format
=""
31139 powerpc64
*-*-linux*:*)
31140 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31141 with_long_double_format
=""
31144 as_fn_error $?
"Configure option --with-long-double-format is only supported \
31145 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31146 with_long_double_format
=""
31152 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31153 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31154 gcc_cv_libc_provides_hwcap_in_tcb
=no
31158 if test $glibc_version_major -gt 2 \
31159 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31160 gcc_cv_libc_provides_hwcap_in_tcb
=yes
31164 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
31166 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31170 # Check if the target LIBC handles PT_GNU_STACK.
31171 gcc_cv_libc_gnustack
=unknown
31173 mips
*-*-linux-musl*)
31174 gcc_cv_libc_gnustack
=yes
31178 if test $glibc_version_major -gt 2 \
31179 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31180 gcc_cv_libc_gnustack
=yes
31184 if test x
$gcc_cv_libc_gnustack = xyes
; then
31186 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31191 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31192 gcc_cv_target_dl_iterate_phdr
=unknown
31195 # <link.h> needs both a dl_iterate_phdr declaration and support for
31196 # compilation with largefile support.
31197 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
31198 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
31199 gcc_cv_target_dl_iterate_phdr
=yes
31201 gcc_cv_target_dl_iterate_phdr
=no
31204 *-*-dragonfly* |
*-*-freebsd*)
31205 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
31206 gcc_cv_target_dl_iterate_phdr
=yes
31208 gcc_cv_target_dl_iterate_phdr
=no
31212 gcc_cv_target_dl_iterate_phdr
=yes
31216 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
31218 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31222 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31224 # We no longer support different GC mechanisms. Emit an error if
31225 # the user configures with --with-gc.
31227 # Check whether --with-gc was given.
31228 if test "${with_gc+set}" = set; then :
31229 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31233 # Libraries to use on the host. This will normally be set by the top
31234 # level Makefile. Here we simply capture the value for our Makefile.
31235 if test -z "${HOST_LIBS+set}"; then
31240 # Use the system's zlib library.
31242 # Use the system's zlib library.
31243 zlibdir
="-L\$(top_builddir)/../zlib"
31244 zlibinc
="-I\$(top_srcdir)/../zlib"
31246 # Check whether --with-system-zlib was given.
31247 if test "${with_system_zlib+set}" = set; then :
31248 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
31260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31261 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31262 # Check whether --enable-maintainer-mode was given.
31263 if test "${enable_maintainer_mode+set}" = set; then :
31264 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
31270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31271 $as_echo "$maintainer_mode" >&6; }
31273 if test "$maintainer_mode" = "yes"; then
31279 if test -z "$CTAGS"; then
31283 if test -z "$ETAGS"; then
31287 if test -z "$CSCOPE"; then
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31294 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31295 # Check whether --enable-link-mutex was given.
31296 if test "${enable_link_mutex+set}" = set; then :
31297 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31303 $as_echo "$do_link_mutex" >&6; }
31305 if test "$do_link_mutex" = "yes"; then
31308 DO_LINK_MUTEX
=false
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31314 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31315 # Check whether --enable-link-serialization was given.
31316 if test "${enable_link_serialization+set}" = set; then :
31317 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
31319 do_link_serialization
=no
31322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31323 $as_echo "$do_link_serialization" >&6; }
31325 case "$do_link_serialization" in
31327 DO_LINK_SERIALIZATION
=1;;
31328 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
31329 DO_LINK_SERIALIZATION
=$do_link_serialization;;
31331 DO_LINK_SERIALIZATION
=;;
31333 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31341 # Make empty files to contain the specs and options for each language.
31342 # Then add #include lines to for a compiler that has specs and/or options.
31348 # These (without "all_") are set in each config-lang.in.
31349 # `language' must be a single word so is spelled singularly.
31352 all_outputs
='Makefile'
31353 # List of language configure and makefile fragments.
31354 all_lang_configurefrags
=
31355 all_lang_makefrags
=
31356 # Additional files for gengtype
31357 all_gtfiles
="$target_gtfiles"
31359 # These are the languages that are set in --enable-languages,
31360 # and are available in the GCC tree.
31361 all_selected_languages
=
31363 # Add the language fragments.
31364 # Languages are added via two mechanisms. Some information must be
31365 # recorded in makefile variables, these are defined in config-lang.in.
31366 # We accumulate them and plug them into the main Makefile.
31367 # The other mechanism is a set of hooks for each of the main targets
31368 # like `clean', `install', etc.
31370 language_hooks
="Make-hooks"
31372 for lang
in ${srcdir}/*/config-lang.
in
31374 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31376 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31377 if test "x$lang_alias" = x
31379 echo "$lang doesn't set \$language." 1>&2
31382 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31383 subdirs
="$subdirs $subdir"
31385 # $gcc_subdir is where the gcc integration files are to be found
31386 # for a language, both for internal compiler purposes (compiler
31387 # sources implementing front-end to GCC tree converters), and for
31388 # build infrastructure purposes (Make-lang.in, etc.)
31390 # This will be <subdir> (relative to $srcdir) if a line like
31391 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31392 # is found in <langdir>/config-lang.in, and will remain <langdir>
31395 # Except for the language alias (fetched above), the regular
31396 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31397 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31398 # only this and the language alias.
31400 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31401 if [ "$gcc_subdir" = "" ]; then
31402 gcc_subdir
="$subdir"
31405 case ",$enable_languages," in
31407 all_selected_languages
="$all_selected_languages $lang_alias"
31408 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
31409 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31420 .
${srcdir}/$gcc_subdir/config-lang.
in
31421 if test "x$language" = x
31423 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31428 case ",$enable_languages," in
31429 *,$lang_alias,*) ;;
31431 for i
in $subdir_requires; do
31432 test -f "${srcdir}/$i/config-lang.in" && continue
31440 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31441 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
31442 # Put c/Make-lang.in fragment first to match serialization languages order.
31443 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31445 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31447 if test -f $srcdir/$gcc_subdir/lang.opt
; then
31448 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31449 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31451 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
31452 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31454 all_languages
="$all_languages $language"
31455 all_compilers
="$all_compilers $compilers"
31456 all_outputs
="$all_outputs $outputs"
31457 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
31458 case ",$enable_languages," in
31461 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31471 for language
in $all_selected_languages
31473 check_languages
="$check_languages check-$language"
31476 selftest_languages
=
31477 for language
in $all_selected_languages
31479 selftest_languages
="$selftest_languages selftest-$language"
31482 # We link each language in with a set of hooks, reached indirectly via
31483 # lang.${target}. Only do so for selected languages.
31487 target_list
="all.cross start.encap rest.encap tags \
31488 install-common install-man install-info install-dvi install-pdf \
31489 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31490 mostlyclean clean distclean maintainer-clean install-plugin"
31492 for t
in $target_list
31495 for lang
in $all_selected_languages
31499 echo "lang.$t: $x" >> Make-hooks
31502 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31503 echo "SERIAL_LIST =" >> Make-hooks
31504 echo else >> Make-hooks
31508 serialization_languages
=c
31509 for lang
in $all_selected_languages
31511 test $lang = c
&& continue
31512 if test $lang = lto
; then
31513 serialization_languages
="$serialization_languages lto1 lto2"
31515 serialization_languages
="$serialization_languages $lang"
31518 for lang
in $serialization_languages
31520 test $lang = c
&& continue
31521 lang_cnt
=`expr $lang_cnt + 1`
31522 lang_list
=" $prev$lang_list"
31525 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31526 echo endif
>> Make-hooks
31527 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31528 echo "INDEX.c = 0" >> Make-hooks
31530 for lang
in $serialization_languages
31532 test $lang = c
&& continue
31533 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31534 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31535 lang_cnt
=`expr $lang_cnt - 1`
31536 lang_idx
=`expr $lang_idx + 1`
31540 # Option include files
31543 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
31544 option_includes
="option-includes.mk"
31553 echo "dir ." > .gdbinit
31554 echo "dir ${srcdir}" >> .gdbinit
31555 if test x
$gdb_needs_out_file_path = xyes
31557 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31559 if test "x$subdirs" != x
; then
31562 echo "dir ${srcdir}/$s" >> .gdbinit
31565 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31566 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31568 # Put a breakpoint on __asan_report_error to help with debugging buffer
31571 *-fsanitize=address
*)
31572 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31576 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31580 # Find a directory in which to install a shared libgcc.
31582 # Check whether --enable-version-specific-runtime-libs was given.
31583 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31584 enableval
=$enable_version_specific_runtime_libs;
31588 # Substitute configuration variables
31659 if test x
${build} = x
${host} ; then
31660 if test x
${host} = x
${target} ; then
31661 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31663 echo "Links are now set up to build a cross-compiler" 1>&2
31664 echo " from ${host} to ${target}." 1>&2
31667 if test x
${host} = x
${target} ; then
31668 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31669 echo " for ${target}." 1>&2
31671 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31672 echo " from ${host} to ${target}." 1>&2
31681 if test "x${ISLLIBS}" != "x" ; then
31683 $as_echo "#define HAVE_isl 1" >>confdefs.h
31687 # Check for plugin support
31688 # Check whether --enable-plugin was given.
31689 if test "${enable_plugin+set}" = set; then :
31690 enableval
=$enable_plugin; enable_plugin
=$enableval
31692 enable_plugin
=yes; default_plugin
=yes
31701 # Since plugin support under MinGW is not as straightforward as on
31702 # other platforms (e.g., we have to link import library, etc), we
31703 # only enable it if explicitly requested.
31704 if test x
"$default_plugin" = x
"yes"; then
31706 elif test x
"$enable_plugin" = x
"yes"; then
31707 # Use make's target variable to derive import library name.
31708 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31713 if test x
$build = x
$host; then
31714 export_sym_check
="nm${exeext} -g"
31715 elif test x
$host = x
$target; then
31716 export_sym_check
="$gcc_cv_nm -g"
31722 if test x
$build = x
$host; then
31723 export_sym_check
="$ac_cv_prog_OBJDUMP -T"
31724 elif test x
$host = x
$target; then
31725 export_sym_check
="$gcc_cv_objdump -T"
31732 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31735 $as_echo_n "checking for exported symbols... " >&6; }
31736 if test "x$export_sym_check" != x
; then
31737 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31738 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31739 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31740 : # No need to use a flag
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31742 $as_echo "yes" >&6; }
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31745 $as_echo "yes" >&6; }
31746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31747 $as_echo_n "checking for -rdynamic... " >&6; }
31748 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
31749 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
31750 plugin_rdynamic
=yes
31751 pluginlibs
="-rdynamic"
31756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31757 $as_echo "$plugin_rdynamic" >&6; }
31760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31761 $as_echo "unable to check" >&6; }
31766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31767 $as_echo_n "checking for library containing dlopen... " >&6; }
31768 if ${ac_cv_search_dlopen+:} false
; then :
31769 $as_echo_n "(cached) " >&6
31771 ac_func_search_save_LIBS
=$LIBS
31772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31773 /* end confdefs.h. */
31775 /* Override any GCC internal prototype to avoid an error.
31776 Use char because int might match the return type of a GCC
31777 builtin and then its argument prototype would still apply. */
31790 for ac_lib
in '' dl
; do
31791 if test -z "$ac_lib"; then
31792 ac_res
="none required"
31795 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
31797 if ac_fn_cxx_try_link
"$LINENO"; then :
31798 ac_cv_search_dlopen
=$ac_res
31800 rm -f core conftest.err conftest.
$ac_objext \
31802 if ${ac_cv_search_dlopen+:} false
; then :
31806 if ${ac_cv_search_dlopen+:} false
; then :
31809 ac_cv_search_dlopen
=no
31811 rm conftest.
$ac_ext
31812 LIBS
=$ac_func_search_save_LIBS
31814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31815 $as_echo "$ac_cv_search_dlopen" >&6; }
31816 ac_res
=$ac_cv_search_dlopen
31817 if test "$ac_res" != no
; then :
31818 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
31822 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
31823 pluginlibs
="$pluginlibs -ldl"
31827 # Check that we can build shared objects with -fPIC -shared
31828 saved_LDFLAGS
="$LDFLAGS"
31829 saved_CFLAGS
="$CFLAGS"
31830 saved_CXXFLAGS
="$CXXFLAGS"
31833 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31834 CFLAGS
="$CFLAGS -fPIC"
31835 CXXFLAGS
=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31836 CXXFLAGS
="$CXXFLAGS -fPIC"
31837 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
31840 CFLAGS
="$CFLAGS -fPIC"
31841 CXXFLAGS
="$CXXFLAGS -fPIC"
31842 LDFLAGS
="$LDFLAGS -fPIC -shared"
31845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31846 $as_echo_n "checking for -fPIC -shared... " >&6; }
31847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31848 /* end confdefs.h. */
31858 if ac_fn_cxx_try_link
"$LINENO"; then :
31859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31860 $as_echo "yes" >&6; }; have_pic_shared
=yes
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31863 $as_echo "no" >&6; }; have_pic_shared
=no
31865 rm -f core conftest.err conftest.
$ac_objext \
31866 conftest
$ac_exeext conftest.
$ac_ext
31867 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
31871 LDFLAGS
="$saved_LDFLAGS"
31872 CFLAGS
="$saved_CFLAGS"
31873 CXXFLAGS
="$saved_CXXFLAGS"
31875 # If plugin support had been requested but not available, fail.
31876 if test x
"$enable_plugin" = x
"no" ; then
31877 if test x
"$default_plugin" != x
"yes"; then
31879 Building GCC with plugin support requires a host that supports
31880 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31887 if test x
"$enable_plugin" = x
"yes"; then
31889 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31894 # Enable --enable-host-shared
31895 # Check whether --enable-host-shared was given.
31896 if test "${enable_host_shared+set}" = set; then :
31897 enableval
=$enable_host_shared; PICFLAG
=-fPIC
31906 # Check whether --enable-libquadmath-support was given.
31907 if test "${enable_libquadmath_support+set}" = set; then :
31908 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
31910 ENABLE_LIBQUADMATH_SUPPORT
=yes
31913 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31915 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31920 # Specify what hash style to use by default.
31922 # Check whether --with-linker-hash-style was given.
31923 if test "${with_linker_hash_style+set}" = set; then :
31924 withval
=$with_linker_hash_style; case x
"$withval" in
31926 LINKER_HASH_STYLE
=sysv
31929 LINKER_HASH_STYLE
=gnu
31932 LINKER_HASH_STYLE
=both
31935 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31939 LINKER_HASH_STYLE
=''
31942 if test x
"${LINKER_HASH_STYLE}" != x
; then
31944 cat >>confdefs.h
<<_ACEOF
31945 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31950 # Specify what should be the default of -fdiagnostics-color option.
31952 # Check whether --with-diagnostics-color was given.
31953 if test "${with_diagnostics_color+set}" = set; then :
31954 withval
=$with_diagnostics_color; case x
"$withval" in
31956 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
31959 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
31962 DIAGNOSTICS_COLOR_DEFAULT
=-1
31965 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
31968 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31972 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
31976 cat >>confdefs.h
<<_ACEOF
31977 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31981 # Specify what should be the default of -fdiagnostics-urls option.
31983 # Check whether --with-diagnostics-urls was given.
31984 if test "${with_diagnostics_urls+set}" = set; then :
31985 withval
=$with_diagnostics_urls; case x
"$withval" in
31987 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
31990 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
31993 DIAGNOSTICS_URLS_DEFAULT
=-1
31996 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
31999 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32003 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
32007 cat >>confdefs.h
<<_ACEOF
32008 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32012 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32013 # of jit/jit-playback.cc.
32014 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32015 echo "gcc_driver_version: ${gcc_driver_version}"
32016 cat > gcc-driver-name.h
<<EOF
32017 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32020 # Check whether --enable-default-pie was given.
32021 # Check whether --enable-default-pie was given.
32022 if test "${enable_default_pie+set}" = set; then :
32023 enableval
=$enable_default_pie; enable_default_pie
=$enableval
32025 enable_default_pie
=no
32028 if test x
$enable_default_pie = xyes
; then
32030 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32035 # Check if -fno-PIE works.
32036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32037 $as_echo_n "checking for -fno-PIE option... " >&6; }
32038 if ${gcc_cv_c_no_fpie+:} false
; then :
32039 $as_echo_n "(cached) " >&6
32041 saved_CXXFLAGS
="$CXXFLAGS"
32042 CXXFLAGS
="$CXXFLAGS -fno-PIE"
32043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32044 /* end confdefs.h. */
32045 int main(void) {return 0;}
32047 if ac_fn_cxx_try_compile
"$LINENO"; then :
32048 gcc_cv_c_no_fpie
=yes
32050 gcc_cv_c_no_fpie
=no
32052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32053 CXXFLAGS
="$saved_CXXFLAGS"
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32056 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32057 if test "$gcc_cv_c_no_fpie" = "yes"; then
32058 NO_PIE_CFLAGS
="-fno-PIE"
32062 # Check if -no-pie works.
32063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32064 $as_echo_n "checking for -no-pie option... " >&6; }
32065 if ${gcc_cv_no_pie+:} false
; then :
32066 $as_echo_n "(cached) " >&6
32068 saved_LDFLAGS
="$LDFLAGS"
32069 LDFLAGS
="$LDFLAGS -no-pie"
32070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32071 /* end confdefs.h. */
32072 int main(void) {return 0;}
32074 if ac_fn_cxx_try_link
"$LINENO"; then :
32079 rm -f core conftest.err conftest.
$ac_objext \
32080 conftest
$ac_exeext conftest.
$ac_ext
32081 LDFLAGS
="$saved_LDFLAGS"
32083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32084 $as_echo "$gcc_cv_no_pie" >&6; }
32085 if test "$gcc_cv_no_pie" = "yes"; then
32086 NO_PIE_FLAG
="-no-pie"
32090 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32091 # Check whether --enable-cet was given.
32092 if test "${enable_cet+set}" = set; then :
32093 enableval
=$enable_cet;
32094 case "$enableval" in
32096 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32105 $as_echo_n "checking for CET support... " >&6; }
32108 i
[34567]86-*-linux* | x86_64-
*-linux*)
32110 cet_save_CFLAGS
="$CFLAGS"
32111 CFLAGS
="$CFLAGS -fcf-protection"
32112 case "$enable_cet" in
32114 # Check if target supports multi-byte NOPs
32115 # and if compiler and assembler support CET.
32116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32117 /* end confdefs.h. */
32123 #if !defined(__SSE2__)
32124 #error target does not support multi-byte NOPs
32133 if ac_fn_cxx_try_compile
"$LINENO"; then :
32138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32141 # Check if compiler and assembler support CET.
32142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32143 /* end confdefs.h. */
32153 if ac_fn_cxx_try_compile
"$LINENO"; then :
32158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32159 if test $support_cet = "no"; then
32160 if test x
$enable_bootstrap != xno \
32161 && test -z "${with_build_subdir}" \
32162 && (test ! -f ..
/stage_current \
32163 ||
test `cat ../stage_current` != "stage1"); then
32164 # Require CET support only for the final GCC build.
32165 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32167 # Don't enable CET without CET support for non-bootstrap
32168 # build, in stage1 nor for build support.
32174 CFLAGS
="$cet_save_CFLAGS"
32182 cet_save_CFLAGS
="$CFLAGS"
32183 CFLAGS
="$CFLAGS -fcf-protection=none"
32184 cet_save_LDFLAGS
="$LDFLAGS"
32185 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32186 if test x
$may_have_cet = xyes
; then
32187 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32189 /* end confdefs.h. */
32199 if ac_fn_cxx_try_link
"$LINENO"; then :
32204 rm -f core conftest.err conftest.
$ac_objext \
32205 conftest
$ac_exeext conftest.
$ac_ext
32208 if test x
$may_have_cet = xyes
; then
32209 if test x
$cross_compiling = xno
; then
32210 if test "$cross_compiling" = yes; then :
32211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32213 as_fn_error $?
"cannot run test program while cross compiling
32214 See \`config.log' for more details" "$LINENO" 5; }
32216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32217 /* end confdefs.h. */
32227 if ac_fn_cxx_try_run
"$LINENO"; then :
32228 have_multi_byte_nop
=yes
32230 have_multi_byte_nop
=no
32232 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32233 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32237 if test x
$have_multi_byte_nop = xyes
; then
32238 if test "$cross_compiling" = yes; then :
32239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32241 as_fn_error $?
"cannot run test program while cross compiling
32242 See \`config.log' for more details" "$LINENO" 5; }
32244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32245 /* end confdefs.h. */
32253 __attribute__ ((noinline, noclone))
32254 xxx (void (*f) (void))
32260 __attribute__ ((noinline, noclone))
32274 if ac_fn_cxx_try_run
"$LINENO"; then :
32279 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
32280 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
32284 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
32285 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32289 # Enable CET in cross compiler if possible so that it will run on both
32290 # CET and non-CET hosts.
32293 if test x
$enable_cet = xyes
; then
32294 CET_HOST_FLAGS
="-fcf-protection"
32295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32296 $as_echo "yes" >&6; }
32298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32299 $as_echo "no" >&6; }
32301 CFLAGS
="$cet_save_CFLAGS"
32302 LDFLAGS
="$cet_save_LDFLAGS"
32304 case x
$enable_languages in
32313 # Check linker supports '-z bndplt'
32314 ld_bndplt_support
=no
32315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32316 $as_echo_n "checking linker -z bndplt option... " >&6; }
32317 if test x
"$ld_is_gold" = xno
; then
32318 if test $in_tree_ld = yes ; then
32319 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
32320 ld_bndplt_support
=yes
32322 elif test x
$gcc_cv_ld != x
; then
32323 # Check if linker supports -a bndplt option
32324 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
32325 ld_bndplt_support
=yes
32329 if test x
"$ld_bndplt_support" = xyes
; then
32331 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32335 $as_echo "$ld_bndplt_support" >&6; }
32337 # Check linker supports '--push-state'/'--pop-state'
32338 ld_pushpopstate_support
=no
32339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32340 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32341 if test x
"$ld_is_gold" = xno
; then
32342 if test $in_tree_ld = yes ; then
32343 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
32344 ld_pushpopstate_support
=yes
32346 elif test x
$gcc_cv_ld != x
; then
32347 # Check if linker supports --push-state/--pop-state options
32348 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
32349 ld_pushpopstate_support
=yes
32353 if test x
"$ld_pushpopstate_support" = xyes
; then
32355 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32359 $as_echo "$ld_pushpopstate_support" >&6; }
32361 # On s390, float_t has historically been statically defined as double for no
32362 # good reason. To comply with the C standard in the light of this definition,
32363 # gcc has evaluated float expressions in double precision when in
32364 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32365 # a smooth transition towards the new model used by most architectures, where
32366 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32367 # float_t from that, this behavior can be configured with
32368 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32369 # the old model. When omitted, native builds and cross compiles that have target
32370 # libc headers will detect whether libc clamps float_t to double and in that
32371 # case maintain the old model. Otherwise, they will default to the new model.
32372 # Check whether --enable-s390-excess-float-precision was given.
32373 if test "${enable_s390_excess_float_precision+set}" = set; then :
32374 enableval
=$enable_s390_excess_float_precision;
32376 enable_s390_excess_float_precision
=auto
32382 if test x
"$enable_s390_excess_float_precision" = xauto
; then
32383 # Can we autodetect the behavior of the target libc?
32384 if test "$target" = "$host" -a "$host" = "$build"; then
32385 enable_s390_excess_float_precision
=autodetect
32386 elif test "x$with_headers" != xno
; then
32387 # cross build. are target headers available?
32388 # carefully coerce the build-system compiler to use target headers
32389 saved_CXXFLAGS
="$CXXFLAGS"
32390 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32391 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32392 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32394 /* end confdefs.h. */
32399 if ac_fn_cxx_try_compile
"$LINENO"; then :
32400 enable_s390_excess_float_precision
=autodetect
32402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32403 CXXFLAGS
="$saved_CXXFLAGS"
32406 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
32407 saved_CXXFLAGS
="$CXXFLAGS"
32408 if ! test "$target" = "$host" -a "$host" = "$build"; then
32409 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
32410 unset CROSS_TEST_CXXFLAGS
32412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32413 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32414 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
32415 $as_echo_n "(cached) " >&6
32418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32419 /* end confdefs.h. */
32421 #define __FLT_EVAL_METHOD__ 0
32423 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32426 if ac_fn_cxx_try_compile
"$LINENO"; then :
32427 gcc_cv_float_t_clamped_to_double
=yes
32429 gcc_cv_float_t_clamped_to_double
=no
32431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32434 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32435 CXXFLAGS
="$saved_CXXFLAGS"
32436 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
32438 # no way to detect behavior of target libc, default to new model
32439 enable_s390_excess_float_precision
=no
32444 if test x
"$enable_s390_excess_float_precision" = xyes
; then
32446 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32452 # Configure the subdirectories
32453 # AC_CONFIG_SUBDIRS($subdirs)
32455 # Create the Makefile
32456 # and configure language subdirectories
32457 ac_config_files
="$ac_config_files $all_outputs"
32460 ac_config_commands
="$ac_config_commands default"
32462 cat >confcache
<<\_ACEOF
32463 # This file is a shell script that caches the results of configure
32464 # tests run on this system so they can be shared between configure
32465 # scripts and configure runs, see configure's option --config-cache.
32466 # It is not useful on other systems. If it contains results you don't
32467 # want to keep, you may remove or edit it.
32469 # config.status only pays attention to the cache file if you give it
32470 # the --recheck option to rerun configure.
32472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32474 # following values.
32478 # The following way of writing the cache mishandles newlines in values,
32479 # but we know of no workaround that is simple, portable, and efficient.
32480 # So, we kill variables containing newlines.
32481 # Ultrix sh set writes to stderr and can't be redirected directly,
32482 # and sets the high bit in the cache file unless we assign to the vars.
32484 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32485 eval ac_val
=\$
$ac_var
32489 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32493 _ | IFS | as_nl
) ;; #(
32494 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
32495 *) { eval $ac_var=; unset $ac_var;} ;;
32501 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32502 *${as_nl}ac_space
=\
*)
32503 # `set' does not quote correctly, so add quotes: double-quote
32504 # substitution turns \\\\ into \\, and sed turns \\ into \.
32507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32510 # `set' quotes correctly as required by POSIX, so do not add quotes.
32511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32520 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32522 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32524 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
32525 if test -w "$cache_file"; then
32526 if test "x$cache_file" != "x/dev/null"; then
32527 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32528 $as_echo "$as_me: updating cache $cache_file" >&6;}
32529 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
32530 cat confcache
>"$cache_file"
32532 case $cache_file in #(
32534 mv -f confcache
"$cache_file"$$
&&
32535 mv -f "$cache_file"$$
"$cache_file" ;; #(
32537 mv -f confcache
"$cache_file" ;;
32542 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32543 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32548 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32549 # Let make expand exec_prefix.
32550 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32552 DEFS
=-DHAVE_CONFIG_H
32557 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32558 # 1. Remove the extension, and $U if already installed.
32559 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32560 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32562 # will be set to the directory where LIBOBJS objects are built.
32563 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32564 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32566 LIBOBJS
=$ac_libobjs
32568 LTLIBOBJS
=$ac_ltlibobjs
32573 : "${CONFIG_STATUS=./config.status}"
32575 ac_clean_files_save
=$ac_clean_files
32576 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32577 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32578 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32580 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32582 # Generated by $as_me.
32583 # Run this file to recreate the current configuration.
32584 # Compiler output produced by configure, useful for debugging
32585 # configure, is in config.log if it exists.
32588 ac_cs_recheck=false
32591 SHELL=\${CONFIG_SHELL-$SHELL}
32594 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32595 ## -------------------- ##
32596 ## M4sh Initialization. ##
32597 ## -------------------- ##
32599 # Be more Bourne compatible
32600 DUALCASE
=1; export DUALCASE
# for MKS sh
32601 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32604 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32605 # is contrary to our usage. Disable this feature.
32606 alias -g '${1+"$@"}'='"$@"'
32607 setopt NO_GLOB_SUBST
32609 case `(set -o) 2>/dev/null` in #(
32621 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32622 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32625 # Prefer a ksh shell builtin over an external printf program on Solaris,
32626 # but without wasting forks for bash or zsh.
32627 if test -z "$BASH_VERSION$ZSH_VERSION" \
32628 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32629 as_echo='print
-r --'
32630 as_echo_n='print
-rn --'
32631 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32632 as_echo='printf %s
\n'
32633 as_echo_n='printf %s
'
32635 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32636 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32637 as_echo_n='/usr
/ucb
/echo -n'
32639 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32640 as_echo_n_body='eval
32644 expr "X$arg" : "X\\(.*\\)$as_nl";
32645 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32647 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32649 export as_echo_n_body
32650 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32652 export as_echo_body
32653 as_echo='sh
-c $as_echo_body as_echo
'
32656 # The user is always right.
32657 if test "${PATH_SEPARATOR+set}" != set; then
32659 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32660 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32667 # We need space, tab and new line, in precisely that order. Quoting is
32668 # there to prevent editors from complaining about space-tab.
32669 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32670 # splitting by setting IFS to empty value.)
32673 # Find who we are. Look in the path if we contain no directory separator.
32676 *[\\/]* ) as_myself=$0 ;;
32677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32678 for as_dir in $PATH
32681 test -z "$as_dir" && as_dir=.
32682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32688 # We did not find ourselves, most probably we were run as `sh COMMAND'
32689 # in which case we are not to be found in the path.
32690 if test "x$as_myself" = x
; then
32693 if test ! -f "$as_myself"; then
32694 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32698 # Unset variables that we do not need and which cause bugs (e.g. in
32699 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32700 # suppresses any "Segmentation fault" message there. '((' could
32701 # trigger a bug in pdksh 5.2.14.
32702 for as_var
in BASH_ENV ENV MAIL MAILPATH
32703 do eval test x\
${$as_var+set} = xset \
32704 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32717 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32720 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32721 # ----------------------------------------
32722 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32723 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32724 # script with STATUS, using 1 if that was 0.
32727 as_status
=$1; test $as_status -eq 0 && as_status
=1
32729 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32730 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32732 $as_echo "$as_me: error: $2" >&2
32733 as_fn_exit
$as_status
32737 # as_fn_set_status STATUS
32738 # -----------------------
32739 # Set $? to STATUS, without forking.
32740 as_fn_set_status
()
32743 } # as_fn_set_status
32745 # as_fn_exit STATUS
32746 # -----------------
32747 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32751 as_fn_set_status
$1
32757 # Portably unset VAR.
32760 { eval $1=; unset $1;}
32762 as_unset
=as_fn_unset
32763 # as_fn_append VAR VALUE
32764 # ----------------------
32765 # Append the text in VALUE to the end of the definition contained in VAR. Take
32766 # advantage of any shell optimizations that allow amortized linear growth over
32767 # repeated appends, instead of the typical quadratic growth present in naive
32769 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32770 eval 'as_fn_append ()
32781 # as_fn_arith ARG...
32782 # ------------------
32783 # Perform arithmetic evaluation on the ARGs, and store the result in the
32784 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32785 # must be portable across $(()) and expr.
32786 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32787 eval 'as_fn_arith ()
32794 as_val
=`expr "$@" || test $? -eq 1`
32799 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32800 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32806 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32807 as_basename
=basename
32812 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32818 as_me
=`$as_basename -- "$0" ||
32819 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32820 X"$0" : 'X\(//\)$' \| \
32821 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32823 sed '/^.*\/\([^/][^/]*\)\/*$/{
32837 # Avoid depending upon Character Ranges.
32838 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32839 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32840 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32841 as_cr_digits
='0123456789'
32842 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32844 ECHO_C
= ECHO_N
= ECHO_T
=
32845 case `echo -n x` in #(((((
32847 case `echo 'xy\c'` in
32848 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32850 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
32857 rm -f conf$$ conf$$.exe conf$$.
file
32858 if test -d conf$$.dir
; then
32859 rm -f conf$$.dir
/conf$$.
file
32862 mkdir conf$$.dir
2>/dev
/null
32864 if (echo >conf$$.
file) 2>/dev
/null
; then
32865 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
32867 # ... but there are two gotchas:
32868 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32869 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32870 # In both cases, we have to default to `cp -pR'.
32871 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
32873 elif ln conf$$.
file conf$$
2>/dev
/null
; then
32881 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
32882 rmdir conf$$.dir
2>/dev
/null
32887 # Create "$as_dir" as a directory, including parents if necessary.
32892 -*) as_dir
=.
/$as_dir;;
32894 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
32898 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32899 *) as_qdir
=$as_dir;;
32901 as_dirs
="'$as_qdir' $as_dirs"
32902 as_dir
=`$as_dirname -- "$as_dir" ||
32903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32904 X"$as_dir" : 'X\(//\)[^/]' \| \
32905 X"$as_dir" : 'X\(//\)$' \| \
32906 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32907 $as_echo X"$as_dir" |
32908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32912 /^X\(\/\/\)[^/].*/{
32925 test -d "$as_dir" && break
32927 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32928 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
32932 if mkdir
-p .
2>/dev
/null
; then
32933 as_mkdir_p
='mkdir -p "$as_dir"'
32935 test -d .
/-p && rmdir .
/-p
32940 # as_fn_executable_p FILE
32941 # -----------------------
32942 # Test if FILE is an executable regular file.
32943 as_fn_executable_p
()
32945 test -f "$1" && test -x "$1"
32946 } # as_fn_executable_p
32947 as_test_x
='test -x'
32948 as_executable_p
=as_fn_executable_p
32950 # Sed expression to map a string onto a valid CPP name.
32951 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32953 # Sed expression to map a string onto a valid variable name.
32954 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32958 ## ----------------------------------- ##
32959 ## Main body of $CONFIG_STATUS script. ##
32960 ## ----------------------------------- ##
32962 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
32964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32965 # Save the log message, to keep $0 and so on meaningful, and to
32966 # report actual input values of CONFIG_FILES etc. instead of their
32967 # values after options handling.
32969 This file was extended by $as_me, which was
32970 generated by GNU Autoconf 2.69. Invocation command line was
32972 CONFIG_FILES = $CONFIG_FILES
32973 CONFIG_HEADERS = $CONFIG_HEADERS
32974 CONFIG_LINKS = $CONFIG_LINKS
32975 CONFIG_COMMANDS = $CONFIG_COMMANDS
32978 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32983 case $ac_config_files in *"
32984 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
32987 case $ac_config_headers in *"
32988 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
32992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32993 # Files that config.status was made for.
32994 config_files="$ac_config_files"
32995 config_headers="$ac_config_headers"
32996 config_links="$ac_config_links"
32997 config_commands="$ac_config_commands"
33001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33003 \`$as_me' instantiates files and other configuration actions
33004 from templates according to the current configuration. Unless the files
33005 and actions are specified as TAGs, all are instantiated by default.
33007 Usage: $0 [OPTION]... [TAG]...
33009 -h, --help print this help, then exit
33010 -V, --version print version number and configuration settings, then exit
33011 --config print configuration, then exit
33012 -q, --quiet, --silent
33013 do not print progress messages
33014 -d, --debug don't remove temporary files
33015 --recheck update $as_me by reconfiguring in the same conditions
33016 --file=FILE[:TEMPLATE]
33017 instantiate the configuration file FILE
33018 --header=FILE[:TEMPLATE]
33019 instantiate the configuration header FILE
33021 Configuration files:
33024 Configuration headers:
33027 Configuration links:
33030 Configuration commands:
33033 Report bugs to the package provider."
33036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33037 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33040 configured by $0, generated by GNU Autoconf 2.69,
33041 with options \\"\$ac_cs_config\\"
33043 Copyright (C) 2012 Free Software Foundation, Inc.
33044 This config.status script is free software; the Free Software Foundation
33045 gives unlimited permission to copy, distribute and modify it."
33050 test -n "\$AWK" || AWK=awk
33053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33054 # The default lists apply if the user does not specify any file.
33060 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33061 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33065 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33077 # Handling of the options.
33078 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33080 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33081 $as_echo "$ac_cs_version"; exit ;;
33082 --config |
--confi |
--conf |
--con |
--co |
--c )
33083 $as_echo "$ac_cs_config"; exit ;;
33084 --debug |
--debu |
--deb |
--de |
--d |
-d )
33086 --file |
--fil |
--fi |
--f )
33089 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33090 '') as_fn_error $?
"missing file argument" ;;
33092 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33093 ac_need_defaults
=false
;;
33094 --header |
--heade |
--head |
--hea )
33097 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33099 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33100 ac_need_defaults
=false
;;
33102 # Conflict between --help and --header
33103 as_fn_error $?
"ambiguous option: \`$1'
33104 Try \`$0 --help' for more information.";;
33105 --help |
--hel |
-h )
33106 $as_echo "$ac_cs_usage"; exit ;;
33107 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33108 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33111 # This is an error.
33112 -*) as_fn_error $?
"unrecognized option: \`$1'
33113 Try \`$0 --help' for more information." ;;
33115 *) as_fn_append ac_config_targets
" $1"
33116 ac_need_defaults
=false
;;
33122 ac_configure_extra_args
=
33124 if $ac_cs_silent; then
33126 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33131 if \$ac_cs_recheck; then
33132 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33134 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33135 CONFIG_SHELL='$SHELL'
33136 export CONFIG_SHELL
33141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33146 ## Running $as_me. ##
33152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33156 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33157 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33164 # Handling of arguments.
33165 for ac_config_target
in $ac_config_targets
33167 case $ac_config_target in
33168 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
33169 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
33170 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
33171 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
33172 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33173 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
33174 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33175 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33176 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
33177 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33179 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33184 # If the user did not use the arguments to specify the items to instantiate,
33185 # then the envvar interface is used. Set only those that are not.
33186 # We use the long form for the default assignment because of an extremely
33187 # bizarre bug on SunOS 4.1.3.
33188 if $ac_need_defaults; then
33189 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33190 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33191 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
33192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33195 # Have a temporary directory for convenience. Make it in the build tree
33196 # simply because there is no reason against having it here, and in addition,
33197 # creating and moving files from /tmp can sometimes cause problems.
33198 # Hook for its removal unless debugging.
33199 # Note that there is a small window in which the directory will not be cleaned:
33200 # after its creation but before its name has been assigned to `$tmp'.
33204 trap 'exit_status=$?
33205 : "${ac_tmp:=$tmp}"
33206 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33208 trap 'as_fn_exit 1' 1 2 13 15
33210 # Create a (secure) tmp directory for tmp files.
33213 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33217 tmp
=.
/conf$$
-$RANDOM
33218 (umask 077 && mkdir
"$tmp")
33219 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33222 # Set up the scripts for CONFIG_FILES section.
33223 # No need to generate them if there are no CONFIG_FILES.
33224 # This happens for instance with `./config.status config.h'.
33225 if test -n "$CONFIG_FILES"; then
33227 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
33228 ac_cs_awk_getline
=:
33229 ac_cs_awk_pipe_init
=
33230 ac_cs_awk_read_file
='
33231 while ((getline aline < (F[key])) > 0)
33234 ac_cs_awk_pipe_fini
=
33236 ac_cs_awk_getline
=false
33237 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
33238 ac_cs_awk_read_file
='
33240 print "cat " F[key] " &&"
33241 '$ac_cs_awk_pipe_init
33242 # The final `:' finishes the AND list.
33243 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
33245 ac_cr
=`echo X | tr X '\015'`
33246 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33247 # But we know of no other shell where ac_cr would be empty at this
33248 # point, so we can use a bashism as a fallback.
33249 if test "x$ac_cr" = x
; then
33250 eval ac_cr
=\$
\'\\r
\'
33252 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33253 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33256 ac_cs_awk_cr
=$ac_cr
33259 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33262 # Create commands to substitute file output variables.
33264 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33265 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33266 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
33269 } >conf$
$files.sh
&&
33270 . .
/conf$
$files.sh ||
33271 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
33272 rm -f conf$
$files.sh
33275 echo "cat >conf$$subs.awk <<_ACEOF" &&
33276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33278 } >conf$$subs.sh ||
33279 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33282 for ac_last_try in false false false false false :; do
33283 . ./conf$$subs.sh ||
33284 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33286 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33287 if test $ac_delim_n = $ac_delim_num; then
33289 elif $ac_last_try; then
33290 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33292 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33295 rm -f conf$$subs.sh
33297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33298 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33302 s/^/S["/; s
/!.
*/"]=/
33312 s/\(.\{148\}\)..*/\1/
33314 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33319 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33326 s/\(.\{148\}\)..*/\1/
33328 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33332 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33337 ' <conf$$subs.awk | sed '
33342 ' >>$CONFIG_STATUS || ac_write_fail=1
33343 rm -f conf$$subs.awk
33344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33346 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33347 for (key in S) S_is_set[key] = 1
33349 \$ac_cs_awk_pipe_init
33353 nfields = split(line, field, "@
")
33355 len = length(field[1])
33356 for (i = 2; i < nfields; i++) {
33358 keylen = length(key)
33359 if (S_is_set[key]) {
33361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33362 len += length(value) + length(field[++i])
33367 if (nfields == 3 && !substed) {
33369 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33370 \$ac_cs_awk_read_file
33376 \$ac_cs_awk_pipe_fini
33379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33380 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33381 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33384 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33385 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33388 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33389 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33390 # trailing colons and then remove the whole line if VPATH becomes empty
33391 # (actually we leave an empty line to preserve line numbers).
33392 if test "x
$srcdir" = x.; then
33393 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33412 fi # test -n "$CONFIG_FILES"
33414 # Set up the scripts for CONFIG_HEADERS section.
33415 # No need to generate them if there are no CONFIG_HEADERS.
33416 # This happens for instance with `./config.status Makefile'.
33417 if test -n "$CONFIG_HEADERS"; then
33418 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33422 # Transform confdefs.h into an awk script `defines.awk', embedded as
33423 # here-document in config.status, that substitutes the proper values into
33424 # config.h.in to produce config.h.
33426 # Create a delimiter string that does not exist in confdefs.h, to ease
33427 # handling of long lines.
33429 for ac_last_try in false false :; do
33430 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33431 if test -z "$ac_tt"; then
33433 elif $ac_last_try; then
33434 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33436 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33440 # For the awk script, D is an array of macro values keyed by name,
33441 # likewise P contains macro parameters if any. Preserve backslash
33442 # newline sequences.
33444 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33446 s/.\{148\}/&'"$ac_delim"'/g
33449 s/^[ ]*#[ ]*define[ ][ ]*/ /
33456 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33458 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33463 D["\
1"]=" \
3\\\\\\n
"\\/p
33465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33470 s/.\{148\}/&'"$ac_delim"'/g
33475 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33478 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33480 ' <confdefs.h | sed '
33481 s/'"$ac_delim"'/"\\\
33482 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33485 for (key in D) D_is_set[key] = 1
33488 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33490 split(line, arg, " ")
33491 if (arg[1] == "#") {
33495 defundef
= substr
(arg
[1], 2)
33498 split(mac1
, mac2
, "(") #)
33500 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33501 if (D_is_set
[macro
]) {
33502 # Preserve the white space surrounding the "#".
33503 print prefix
"define", macro P
[macro
] D
[macro
]
33506 # Replace #undef with comments. This is necessary, for example,
33507 # in the case of _POSIX_SOURCE, which is predefined and required
33508 # on some systems where configure will not decide to define it.
33509 if (defundef
== "undef") {
33510 print
"/*", prefix defundef
, macro
, "*/"
33518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33519 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33520 fi # test -n "$CONFIG_HEADERS"
33523 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33528 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33530 case $ac_mode$ac_tag in
33532 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33533 :[FH
]-) ac_tag
=-:-;;
33534 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33551 -) ac_f
="$ac_tmp/stdin";;
33552 *) # Look for the file first in the build tree, then in the source tree
33553 # (if the path is not absolute). The absolute path cannot be DOS-style,
33554 # because $ac_f cannot contain `:'.
33558 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33560 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33562 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33563 as_fn_append ac_file_inputs
" '$ac_f'"
33566 # Let's still pretend it is `configure' which instantiates (i.e., don't
33567 # use $as_me), people would be surprised to read:
33568 # /* config.h. Generated by config.status. */
33569 configure_input
='Generated from '`
33570 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33572 if test x
"$ac_file" != x-
; then
33573 configure_input
="$ac_file. $configure_input"
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33575 $as_echo "$as_me: creating $ac_file" >&6;}
33577 # Neutralize special characters interpreted by sed in replacement strings.
33578 case $configure_input in #(
33579 *\
&* |
*\|
* |
*\\* )
33580 ac_sed_conf_input
=`$as_echo "$configure_input" |
33581 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33582 *) ac_sed_conf_input
=$configure_input;;
33586 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33587 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33592 ac_dir
=`$as_dirname -- "$ac_file" ||
33593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33594 X"$ac_file" : 'X\(//\)[^/]' \| \
33595 X"$ac_file" : 'X\(//\)$' \| \
33596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33597 $as_echo X"$ac_file" |
33598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33602 /^X\(\/\/\)[^/].*/{
33615 as_dir
="$ac_dir"; as_fn_mkdir_p
33619 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33621 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33622 # A ".." for each directory in $ac_dir_suffix.
33623 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33624 case $ac_top_builddir_sub in
33625 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33626 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33629 ac_abs_top_builddir
=$ac_pwd
33630 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33631 # for backward compatibility:
33632 ac_top_builddir
=$ac_top_build_prefix
33635 .
) # We are building in place.
33637 ac_top_srcdir
=$ac_top_builddir_sub
33638 ac_abs_top_srcdir
=$ac_pwd ;;
33639 [\\/]* | ?
:[\\/]* ) # Absolute name.
33640 ac_srcdir
=$srcdir$ac_dir_suffix;
33641 ac_top_srcdir
=$srcdir
33642 ac_abs_top_srcdir
=$srcdir ;;
33643 *) # Relative name.
33644 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33645 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33646 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33648 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33660 # If the template does not know about datarootdir, expand it.
33661 # FIXME: This hack should be removed a few years after 2.60.
33662 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33673 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33674 *datarootdir
*) ac_datarootdir_seen
=yes;;
33675 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33677 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33680 ac_datarootdir_hack='
33681 s&@datadir@&$datadir&g
33682 s&@docdir@&$docdir&g
33683 s&@infodir@&$infodir&g
33684 s&@localedir@&$localedir&g
33685 s&@mandir@&$mandir&g
33686 s&\\\${datarootdir}&$datarootdir&g' ;;
33690 # Neutralize VPATH when `$srcdir' = `.'.
33691 # Shell code in configure.ac might set extrasub.
33692 # FIXME: do we really want to maintain this feature?
33693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33694 ac_sed_extra="$ac_vpsub
33697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33699 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33700 s|@configure_input@|
$ac_sed_conf_input|
;t t
33701 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33702 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33703 s
&@srcdir@
&$ac_srcdir&;t t
33704 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33705 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33706 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33707 s
&@builddir@
&$ac_builddir&;t t
33708 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33709 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33710 $ac_datarootdir_hack
33712 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33713 if $ac_cs_awk_getline; then
33714 $AWK -f "$ac_tmp/subs.
awk"
33716 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
33718 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33721 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33723 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33725 which seems to be undefined. Please make sure it is defined" >&5
33726 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33727 which seems to be undefined. Please make sure it is defined" >&2;}
33729 rm -f "$ac_tmp/stdin"
33731 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33732 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33740 if test x"$ac_file" != x-; then
33742 $as_echo "/* $configure_input */" \
33743 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33744 } >"$ac_tmp/config.h" \
33745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33746 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33747 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33748 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33751 mv "$ac_tmp/config.h" "$ac_file" \
33752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33755 $as_echo "/* $configure_input */" \
33756 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33757 || as_fn_error $? "could not create -" "$LINENO" 5
33765 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
33768 # Prefer the file from the source tree if names are identical.
33769 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33770 ac_source=$srcdir/$ac_source
33773 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33774 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33776 if test ! -r "$ac_source"; then
33777 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33781 # Try a relative symlink, then a hard link, then a copy.
33783 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33784 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33786 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33787 ln "$ac_source" "$ac_file" 2>/dev/null ||
33788 cp -p "$ac_source" "$ac_file" ||
33789 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33792 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33793 $as_echo "$as_me: executing $ac_file commands" >&6;}
33798 case $ac_file$ac_mode in
33799 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33801 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33802 for lang in $subdirs c-family common analyzer rtl-ssa
33804 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33806 "as":F) chmod +x as ;;
33807 "collect-ld":F) chmod +x collect-ld ;;
33808 "nm":F) chmod +x nm ;;
33809 "dsymutil":F) chmod +x dsymutil ;;
33811 case ${CONFIG_HEADERS} in
33812 *auto-host.h:config.in*)
33815 # Make sure all the subdirs exist.
33816 for d in $subdirs doc build common c-family
33818 test -d $d || mkdir $d
33828 ac_clean_files=$ac_clean_files_save
33830 test $ac_write_fail = 0 ||
33831 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33834 # configure is writing to config.log, and then calls config.status.
33835 # config.status does its own redirection, appending to config.log.
33836 # Unfortunately, on DOS this fails, as config.log is still kept open
33837 # by configure, so config.status won't be able to
write to it
; its
33838 # output is simply discarded. So we exec the FD to /dev/null,
33839 # effectively closing config.log, so it can be properly (re)opened and
33840 # appended to by config.status. When coming back to configure, we
33841 # need to make the FD available again.
33842 if test "$no_create" != yes; then
33844 ac_config_status_args
=
33845 test "$silent" = yes &&
33846 ac_config_status_args
="$ac_config_status_args --quiet"
33848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33851 # would make configure fail if this is the last instruction.
33852 $ac_cs_success || as_fn_exit
1
33854 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33856 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}